sf-docs

Extracts and cleans text from JavaScript-heavy Salesforce documentation pages.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/dcinzona/folios --skill sf-docs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sf-docs
Source: https://github.com/dcinzona/folios/tree/main/.agents/skills/sf-docs
Command: npx skills add https://github.com/dcinzona/folios --skill sf-docs

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Many official Salesforce documentation pages are difficult to fetch reliably because they are client-rendered, use nested shadow DOMs, or present shell/placeholder content; this skill provides a deterministic playbook and tools to find and extract the real article content so answers can be grounded in authoritative sources.

Core Features & Use Cases

  • Provides targeted retrieval heuristics for developer.salesforce.com, help.salesforce.com, architect.salesforce.com, admin.salesforce.com, and lightningdesignsystem.com.
  • Includes a Help-specific extractor that performs browser-rendered extraction with deep shadow DOM traversal and heuristics to detect and reject shell pages.
  • Supplies a lightweight wrapper script for other official Salesforce doc hosts, optional stealth mode, child-link awareness to follow relevant child pages, and structured JSON output with title, URL, host type, cleaned article text, and content links.
  • Use cases: grounding API or Apex answers in official reference pages, extracting setup guidance from Help articles, and retrieving design system docs for UI guidance.

Quick Start

Use the sf-docs extractor to fetch a Salesforce doc URL, extract the article title and cleaned body text, and return the exact official URL and source type.

Frequently Asked Questions about sf-docs

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

FAQPage Schema
How do I extract text content from Salesforce Help articles rendered inside a shadow DOM?

Salesforce Help shadow DOM extraction uses browser-rendered fetching with deep shadow DOM traversal to bypass shell pages, returning structured JSON containing the cleaned article body text, title, and source URL.

Why does my web scraper return empty or placeholder content from developer.salesforce.com?

Developer.salesforce.com serves client-rendered shell pages that standard fetchers cannot execute. Browser-rendered extraction runs the JavaScript and applies heuristics to detect and reject shell content, ensuring only the real article body is captured.

Can I use Playwright to scrape lightningdesignsystem.com and follow relevant child links?

Yes, Playwright can extract content from lightningdesignsystem.com and other official Salesforce doc hosts. The extractor includes child-link awareness to automatically follow and retrieve relevant nested documentation pages.

What's the best way to ground AI answers in official Salesforce documentation?

Ground answers by extracting authoritative text from developer, help, architect, admin, and lightningdesignsystem Salesforce domains. The extractor outputs structured JSON with cleaned text, title, URL, and host type to provide a verified factual basis.

Does this Salesforce documentation extractor support stealth mode to avoid bot detection?

Yes, the extractor includes an optional stealth mode using playwright-stealth. This helps reliably retrieve content from JS-heavy or protected Salesforce documentation pages without triggering browser bot detection blocks.

What structured output format does the Salesforce web documentation extractor return?

The extractor returns structured JSON outputs containing the article title, exact source URL, host type, cleaned article body text, and extracted content links to provide a complete and authoritative grounding payload.