Fetches and caches library documentation, then generates version-specific skills for Claude Code
Fetches and caches library documentation, then generates version-specific skills for Claude Code
/plugin marketplace add squirrelsoft-dev/doc-fetcher/plugin install doc-fetcher@squirrelsoft-dev-toolsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
You have been activated because the user wants to fetch, update, or manage library documentation.
Use the doc-crawler subagent to fetch documentation and generate skills for the requested library.
Extract from the user's message:
Use the Task tool to spawn the doc-crawler subagent with a clear prompt:
Fetch the [version|latest] documentation for [library] and generate skills.
Library: [extracted library name]
Version: [extracted version or "latest"]
Custom URL: [if provided, otherwise omit]
After fetching:
1. Generate the expert skill using /doc-fetcher:generate-skill
2. Report the results including number of pages cached and skills generated
After the agent completes, summarize the results to the user:
| User Says | Parsed As |
|---|---|
| "Get the latest documentation for Next.js" | library: nextjs, version: latest |
| "Fetch React 19 docs" | library: react, version: 19 |
| "I need the Tailwind CSS documentation" | library: tailwindcss, version: latest |
| "Download documentation for Prisma" | library: prisma, version: latest |
| "Update my Vue.js documentation" | library: vue, action: update |
| "Get docs from https://tanstack.com/query" | library: tanstack-query, url: provided |
When spawning the doc-crawler agent, use this pattern:
Task tool with subagent_type: "doc-fetcher:doc-crawler"
Prompt: "Fetch the [version] documentation for [library].
Instructions:
1. Find the documentation URL (use resolver script or web search)
2. Run /doc-fetcher:fetch-docs [library] [version] [--url if provided]
3. After fetching, run /doc-fetcher:generate-skill [library] [version]
4. Report:
- Pages cached
- Cache location
- Skills generated
- Any errors or warnings"
If the user provides a URL like "Fetch docs from https://example.com/docs":
--url flagIf the user says "update" instead of "fetch":
/doc-fetcher:update-docs insteadIf the user requests multiple libraries:
If no version is specified:
The task is complete when:
~/.claude/docs/[library]/[version]/[library]-[version]-expert)This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.