scrape-docs
Installation
SKILL.md
Scrape documentation from the provided URL(s) and store them in ~/.claude/docs/ for future grep-based lookups.
Process
For each URL in $ARGUMENTS:
-
Run the scrape script:
<skill-base-dir>/scripts/scrape-docs.sh <url>Resolve
<skill-base-dir>to this skill's loaded directory in either Pi or Claude. The script fetches the page, converts HTML to clean text viatextutil(macOS built-in), and saves to~/.claude/docs/<domain>/<path-slug>.md. -
Verify the output — read the first 20 lines to confirm it captured real content (not a login wall, CAPTCHA, or empty page).
-
If the script fails or content is poor, fall back to WebFetch:
- Fetch the URL with WebFetch using the prompt: "Extract the complete technical documentation content verbatim. Preserve all code examples, CLI commands, API references, configuration options, and parameter descriptions. Remove navigation, sidebars, footers, cookie banners, and marketing copy. Output clean markdown."
- Write the result to
~/.claude/docs/<domain>/<path-slug>.md