Knowledge of documentation platforms and fetching strategies. Use when adding new documentation sources, determining fetch strategy for a docs site, detecting doc frameworks, or configuring the docs registry.
Knowledge of documentation platforms and fetching strategies. Use when adding new documentation sources, determining fetch strategy for a docs site, detecting doc frameworks, or configuring the docs registry.
Documentation Sources Skill
Understand documentation platforms and how to efficiently fetch content from each. Supports 20+ platforms and frameworks.
Variables
Variable
Default
Description
PREFER_LLMSTXT
true
Check for llms.txt before other strategies
PREFER_GITHUB
true
Prefer raw GitHub over web crawling
BROWSER_FALLBACK
true
Use browser automation when curl fails
DEFAULT_STRATEGY
web_crawl
Fallback when detection fails
Instructions
MANDATORY - Follow the Workflow steps below when adding or analyzing documentation sources.
Always check for AI-native signals first (llms.txt)
Prefer raw content over rendered HTML
Use browser automation only when necessary
Red Flags - STOP and Reconsider
If you're about to:
Web crawl a site without checking for llms.txt first
Use browser automation without trying curl first
Add a source without detecting the documentation framework
Skip GitHub raw access when repo is available
STOP -> Read the appropriate cookbook file -> Follow detection order -> Then proceed
Quick Decision Tree
What documentation are you adding?
│
├─ Has /llms.txt? ──────────────────────► llmstxt-strategy.md
│
├─ GitHub repo available?
│ └─ Has docs.yml/mint.json/mkdocs.yml? ► github-strategy.md
│
├─ Has /openapi.json or /asyncapi.yaml? ─► openapi-strategy.md
│
├─ Has /sitemap.xml? ───────────────────► sitemap-strategy.md
│
├─ Curl returns <1KB? (JS-rendered) ────► browser-strategy.md
│
└─ Nothing else works? ─────────────────► sitemap-strategy.md (crawl mode)
Workflow
Identify the documentation URL
CHECKPOINT: Check for AI-native signals (llms.txt, ai.txt)
Check if GitHub repo is available
Detect documentation framework from config files
Select appropriate strategy from cookbook
CHECKPOINT: Test fetch with curl before using browser