Fetch and cache documentation for a library with version-specific snapshots
Fetches and caches library documentation for version-specific AI context.
/plugin marketplace add squirrelsoft-dev/doc-fetcher/plugin install doc-fetcher@squirrelsoft-dev-tools<library> [version] [--url <custom-url>]Fetch and cache documentation for a specified library, creating a local snapshot in ~/.claude/docs for accurate, version-specific AI context.
pwdWhen the user invokes this command, follow these steps:
$ARGUMENTS
--url flag for custom documentation URLs1.5. INSTALL DEPENDENCIES: If ~/.claude/plugins/cache/doc-fetcher/node_modules doesn't exist then execute cd ~/.claude/plugins/cache/doc-fetcher && npm install after installation change the directory back to the project workspace root.
Run Fetch Command:
node ~/.claude/plugins/cache/doc-fetcher/scripts/fetch-docs.js $ARGUMENTS~/.claude/docs/[library]/[version]/index.json and structure in sitemap.jsonHandle Results:
~/.claude/docs/[library]/[version]/)Error Handling:
--url flag with custom URLcrawl_delay_ms in doc-fetcher-config.json--url with the docs homepageSkill Generation: If auto_generate_skills: true in config, inform the user that a skill was automatically created and how to use it.
~/.claude/plugins/cache/doc-fetcher/~/.claude/docs and shared across all projectsdoc-fetcher-config.json and defaults to ~/.claude/docs/fetch-docs nextjs 15.0.0) to match your project's package.json/update-docs for that)