Documentation Researcher Skill
Mode 1: Initialize (init)
When argument is init:
- Run the initialization script: ``
node ${CLAUDE_PLUGIN_ROOT}/scripts/init.js.
2. Check if `CLAUDE.md` exists (at project root):
- If exists: Read it and append the knowledge base section if not already present
- If not exists: Create it with the knowledge base section
**Append/create this section in CLAUDE.md:**
Knowledge Base
This project uses .claude/skills/project-knowledge-base/ for documentation.
Before coding unfamiliar patterns:
- Load the
project-knowledge-baseskill to see available references - If topic not covered, use
/docs-researcher <technology> <topic> for <context>
Always consult the knowledge base when clarification is needed.
**Example:**
User: /docs-researcher init Actions: 1. Bash(node ${CLAUDE_PLUGIN_ROOT}/scripts/init.js .) 2. Read CLAUDE.md (if exists, at project root) 3. Write updated CLAUDE.md with knowledge base section Response: Report what was created/updated
## Mode 2: Research
When argument is a research request (not "init"), invoke the `docs-researcher` agent.
Task( subagent_type: "docs-researcher", description: "Research documentation", prompt: "{user's research request}" )
Agent will:
- Search the web for documentation
- Fetch and extract relevant content
- Save to `.claude/skills/project-knowledge-base/references/`
- Update the SKILL.md index
**Example:**
User: /docs-researcher TanStack Router beforeLoad for authentication guards Action: Task(subagent_type: "docs-researcher", prompt: "TanStack Router beforeLoad for authentication guards") Response: Agent's research results