fetching-salesforce-docs

Extract official Salesforce documentation content from JavaScript-heavy web pages.

803|289|Updated Nov 7, 2025
One-click install
npx skills add https://github.com/forcedotcom/sf-skills --skill fetching-salesforce-docs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fetching-salesforce-docs
Source: https://github.com/forcedotcom/sf-skills/tree/main/skills/fetching-salesforce-docs
Command: npx skills add https://github.com/forcedotcom/sf-skills --skill fetching-salesforce-docs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright, playwright-stealth, and includes scripts (resource) components.

What problem does it solve?

Fetching Salesforce documentation can fail when pages are JavaScript-heavy, shell-rendered, or require browser execution to reveal the real article body.

Core Features & Use Cases

  • Official-source-first retrieval: Prioritizes Salesforce-owned domains (developer/help/architect/admin/SLDS) and avoids third-party summaries.
  • Hard-to-extract Help article support: Uses Playwright to render and extract the actual Help article content when normal fetching returns only shells.
  • Evidence-based grounding: Ensures the extracted page contains the requested concept/identifier and rejects landing pages and weak matches.

Quick Start

Use the fetching-salesforce-docs skill when the user asks for authoritative Salesforce documentation (e.g., Apex/API/LWC/Help/SLDS/setup guidance) and you need the exact official URL and extracted article text as evidence.

Frequently Asked Questions about fetching-salesforce-docs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract text from Salesforce Help articles that render as empty shells?

Salesforce Help articles often require browser execution to reveal content. Using Playwright with stealth plugins renders JS-heavy pages, extracts the actual article body, and navigates child links to retrieve the complete documentation text.

Why does fetching Salesforce documentation return shell pages instead of article content?

Salesforce documentation pages are frequently JavaScript-heavy or shell-rendered, causing standard fetch methods to fail. Browser-based extraction via Playwright renders the page fully, revealing the real article body that standard retrieval cannot access.

Can I use this to retrieve official Apex, LWC, and SLDS documentation from public web pages?

Yes, this retrieves official Salesforce documentation from public web pages across Apex, LWC, SLDS, and Help articles. It prioritizes Salesforce-owned domains and validates exact-concept matching to ensure the extracted page contains the requested identifier.

Does this approach validate that the retrieved Salesforce docs match my requested concept?

Yes, evidence-based grounding validates that the extracted page contains the requested concept or identifier. It rejects landing pages and weak matches, ensuring the output includes the title, official URL, source type, and browser-rendering signals.

What is the best way to ground LWC API answers in official Salesforce documentation?

The best way to ground LWC API answers is retrieving official Salesforce docs via browser-based extraction. This ensures the content comes from Salesforce-owned domains and includes structured output with the official URL and source type for verification.

Do I need Playwright to extract Salesforce setup articles from public web pages?

Playwright is required when fetching Salesforce setup articles from public web pages because these pages are JS-heavy and shell-rendered. Standard fetching returns only shells, while Playwright with stealth plugins executes the browser to reveal the real article body.