PluginBench
Skill
Review
Audit score 70

platform-docs-get

forcedotcom/sf-skills

Retrieve authoritative Salesforce documentation from official sources like developer.salesforce.com and help.salesforce.com.

What is platform-docs-get?

This skill fetches and extracts official Salesforce documentation from Salesforce-owned domains, handling JS-heavy and shell-rendered pages that are difficult to retrieve with standard fetching. Use it when you need to ground answers in authoritative Salesforce sources for Apex, APIs, LWC, Agentforce, setup articles, or design system guidance.

  • Retrieves documentation from official Salesforce domains (developer.salesforce.com, help.salesforce.com, architect.salesforce.com, admin.salesforce.com, lightningdesignsystem.com)
  • Handles JS-heavy and shell-rendered pages using browser-rendered extraction when needed
  • Classifies requests by doc family (developer, help, architect/admin, design system, legacy atlas) to target the right source
  • Validates that exact concepts or identifiers actually appear on retrieved pages before accepting them as evidence
  • Follows relevant child links from landing pages to find specific concept documentation
  • Rejects broad landing pages, shell pages, and third-party sources when official documentation should exist

How to install platform-docs-get

npx skills add https://github.com/forcedotcom/sf-skills --skill platform-docs-get
Prerequisites
  • Python 3.10 or later (required)
  • Playwright library (optional, for extraction scripts in scripts/ directory)
Claude Code
Cursor
Windsurf
Cline

How to use platform-docs-get

  1. 1.Identify the exact concept, identifier, class name, method, or feature being requested
  2. 2.Classify the request into a doc family: developer docs, help articles, architect/admin guidance, design system, or legacy atlas
  3. 3.Determine the most likely official Salesforce documentation source and URL
  4. 4.Fetch the targeted official page; use browser-rendered extraction if the page is JS-heavy or returns shell content
  5. 5.Verify that the exact concept, identifier, or phrase actually appears on the retrieved page
  6. 6.If the concept is missing from the landing page, inspect and follow 1–3 relevant official child links
  7. 7.Return the guide/article title, exact URL, source type, and any extraction caveats; reject pages that do not contain the requested concept

Use cases

Good for
  • A user asks for Apex API reference or class documentation—retrieve the exact official reference page where the class or method appears
  • A user needs Lightning Web Components documentation for a specific feature like Wire Service or Lightning Message Service—find the exact LWC concept page, not just the LWC guide homepage
  • A user requests Agentforce Actions setup or developer guidance—locate the official Agentforce developer page with the exact concept
  • A user needs help article content for a Salesforce setup or configuration task—use browser-rendered extraction to bypass shell pages and retrieve the real article body
  • A user asks about Lightning Design System components or design tokens—fetch the exact SLDS documentation page from lightningdesignsystem.com
Who it's for
  • Salesforce developers building with Apex, APIs, or LWC
  • Salesforce administrators setting up features or configurations
  • Salesforce architects designing solutions
  • Anyone needing authoritative Salesforce product documentation

platform-docs-get FAQ

When should I use this skill instead of searching the web?

Use this skill when you need authoritative Salesforce documentation from official Salesforce domains. Avoid it for third-party blogs, code changes, deployment tasks, or when the user explicitly asks for non-official sources.

What should I do if a page appears to be a shell or returns only navigation text?

Treat outputs like 'Loading', 'CSS Error', or mostly chrome/navigation text as failed extraction. Use browser-rendered extraction or follow linked official child pages to reach the real article body. If extraction still fails, return the best official URLs found and explicitly state that article-body extraction was unsuccessful.

Is it acceptable to answer from a broad guide homepage?

No. A broad landing page is not sufficient unless it clearly contains the exact requested concept, identifier, or phrase. Follow child links to find the specific concept page.

What official Salesforce domains should I prioritize?

Prioritize developer.salesforce.com, help.salesforce.com, architect.salesforce.com, admin.salesforce.com, and lightningdesignsystem.com. Legacy atlas pages (developer.salesforce.com/docs/atlas.en-us.*) are valid if they are the official reference for the concept.

How do I know when I have found enough evidence?

A page is good enough when the exact identifier, exact concept phrase, or multiple query-specific phrases appear in the correct official context. Include the guide/article title, exact URL, source type, and any extraction caveats in your answer.

Full instructions (SKILL.md)

Source of truth, from forcedotcom/sf-skills.


name: platform-docs-get description: "Official Salesforce documentation retrieval skill. Use when you need authoritative Salesforce docs from developer.salesforce.com, help.salesforce.com, architect.salesforce.com, admin.salesforce.com, or lightningdesignsystem.com, especially when pages are JS-heavy, shell-rendered, or hard to extract with naive fetching. Use to ground answers in official Salesforce sources instead of third-party blogs or summaries. TRIGGER when: user asks for official Salesforce documentation, Apex or API reference, LWC docs, Agentforce docs, setup or help articles, or any doc from a Salesforce-owned domain. DO NOT TRIGGER when: user is asking for a code change, deployment task, or anything not requiring documentation retrieval — use the appropriate sf-* skill instead." metadata: version: "1.2" domains: ["Platform"] cliTools: - tool: ["python3"] semver: ">=3.10.0"

platform-docs-get

Use this skill to retrieve and ground answers in official Salesforce documentation on the public web.

This skill provides a reliable online retrieval playbook for Salesforce docs that are hard to fetch, especially help.salesforce.com, JS-heavy developer.salesforce.com, Lightning Design System docs on lightningdesignsystem.com, and other official Salesforce-owned doc pages such as architect.salesforce.com and admin.salesforce.com.

Optional extraction scripts are available in scripts/ — see the Reference File Index below.

Scope

In scopeOfficial Salesforce doc retrieval: Apex, API, LWC, metadata, Agentforce, setup articles, SLDS, architect/admin guidance
Out of scopeThird-party blogs, PDF fallback, local corpus indexing, benchmark workflows, generating code or metadata

Required Inputs

Before fetching, identify:

  • The exact concept, identifier, class, method, or feature name being requested
  • The likely doc family (developer docs, help articles, design system, architect/admin)

No additional setup is required to use the retrieval playbook in this skill. The optional extraction scripts require playwright — see scripts/requirements.txt.

Official Sources Only

Prefer Salesforce-owned documentation sources:

  • developer.salesforce.com
  • help.salesforce.com
  • architect.salesforce.com
  • admin.salesforce.com
  • lightningdesignsystem.com
  • other official Salesforce documentation pages when Salesforce uses them as the source of truth

Avoid third-party blogs, videos, or summary articles unless the user explicitly asks for them.

Do not fall back to PDFs.

Retrieval Workflow

1. Classify the request first

Before fetching anything, identify the likely doc family.

FamilyTypical SourceUse For
Developer docsdeveloper.salesforce.com/docs/...Apex, APIs, LWC, metadata, Agentforce developer docs
Help docshelp.salesforce.com/...setup, admin, product configuration
Architect/Admin docsarchitect.salesforce.com/..., admin.salesforce.com/...best practices, patterns, well-architected guidance, admin enablement
Design system docslightningdesignsystem.com/...SLDS, Cosmos, design tokens, component and styling guidance
Legacy atlas docsdeveloper.salesforce.com/docs/atlas.en-us.*older official guide and reference docs

2. Identify the exact concept

Extract the real target before you search:

  • exact API/class/method name
  • exact feature name
  • exact product phrase
  • exact setup concept

Examples:

  • Lightning Message Service
  • Wire Service
  • System.StubProvider
  • Agentforce Actions
  • Messaging for In-App and Web allowed domains

3. Prefer targeted official retrieval

Do not broad-crawl Salesforce docs.

Instead:

  1. identify the most likely official guide root or article
  2. if search is needed, restrict it to official Salesforce domains only
  3. fetch that official page
  4. check whether the exact concept actually appears on the page
  5. if not, inspect and follow the most relevant 1–3 official child links
  6. stop once you have grounded evidence

4. Do not stop at broad landing pages

A guide landing page is not enough unless it clearly contains the exact requested concept.

This is especially important for:

  • LWC docs
  • Agentforce docs
  • broad platform guide homepages
  • help landing pages that link to the real article

5. For developer.salesforce.com

Use this playbook:

  • start with the most likely official guide root
  • if the page is JS-heavy, prefer browser-rendered extraction
  • check whether the exact concept appears on the page
  • if the concept is missing, inspect official child links and follow the best matching 1–3 links
  • prefer exact concept pages over broad guide roots
  • legacy atlas pages are valid if they are the real official reference for the concept

6. For help.salesforce.com

Help pages often fail with naive fetching.

Use this playbook:

  • prefer exact articleView?id=... URLs when available
  • use browser-rendered extraction when plain fetch returns shell content
  • treat outputs like Loading, Sorry to interrupt, CSS Error, or mostly chrome/navigation text as failed extraction, not evidence
  • look for the real article body, not just header, nav, or footer text
  • reject shell pages and soft-404 pages such as:
    • "We looked high and low but couldn't find that page"
    • generic empty help shells
  • if starting from a nearby guide or hub page, follow linked Help articles until you reach the real article body
  • if extraction still fails after targeted retries, return the best official Help URLs you found and explicitly say that article-body extraction was unsuccessful

Acceptance Rules

A page is good enough to answer from only when at least one of these is true:

  • the exact identifier appears on the page
  • the exact concept phrase appears on the page
  • multiple query-specific phrases appear in the correct official context

A page is not good enough when:

  • it is only a broad landing page
  • it is a shell page with little real article text
  • it is from the wrong product area
  • it does not contain the requested identifier or concept
  • it is a third-party explanation when an official page should exist

Rejection Rules

Reject these as final evidence:

  • broad guide homepages without the exact concept
  • release notes when a concept/reference page is expected
  • admin blog posts when developer docs are requested
  • third-party blogs when official docs are available
  • shell-rendered pages with no real article body
  • pages whose titles sound right but whose body does not contain the requested concept

Grounding Requirements

When answering, include:

  1. guide/article title
  2. exact official URL
  3. source type:
    • developer doc page
    • atlas reference page
    • help article page
  4. any caveat if extraction was partial or browser-rendered

If evidence is weak, say so plainly.

Examples

Example: Lightning Message Service

Do not stop at the general LWC guide root. Find the exact LWC page for Lightning Message Service or follow the most relevant child links from the LWC docs until the exact concept appears.

Example: Wire Service

Do not answer from the LWC homepage unless Wire Service is actually present there. Follow the relevant child doc page for wire service or wire adapters.

Example: Agentforce Actions

Do not answer from a broad Agentforce landing page or a blog post. Find the official Agentforce developer page for actions, or follow the best matching child pages from the official Agentforce docs.

Example: Messaging for In-App and Web allowed domains

Prefer official Help articles and browser-rendered extraction. Reject generic help shells. Follow linked Help articles from nearby official messaging docs if needed.

Example: System.StubProvider

Prefer the official Salesforce reference/developer page where the exact identifier appears. Do not substitute a broader Apex landing page if the identifier is absent.

Non-Goals

This skill should not:

  • maintain a local documentation corpus
  • rely on a local index
  • use PDF fallback
  • run benchmark workflows
  • depend on repo-specific scripts to be useful

Output Expectations

For each retrieval, include:

  1. Guide or article title
  2. Exact official URL
  3. Source type (developer doc page / atlas reference page / help article page)
  4. Any caveat if extraction was partial or browser-rendered

If evidence is weak, say so plainly rather than forcing an answer.


Reference File Index

FileWhen to read
scripts/extract_salesforce_doc.pyUse to fetch any official Salesforce doc URL; automatically routes help.salesforce.com into the dedicated Help extractor and supports browser-rendered extraction for all Salesforce-owned doc hosts
scripts/extract_help_salesforce.pyUse directly when targeting help.salesforce.com articleView URLs; use when the wrapper is not appropriate
scripts/runtime_bootstrap.pyImported by the extraction scripts to resolve the isolated platform-docs-get Python runtime and Playwright browser path; not called directly
scripts/requirements.txtLists Python dependencies (playwright, playwright-stealth) needed to run the extraction scripts