Claude Code research workflow tool that auto-configures library-specific sub-agents via Context7
npm install claude-docs

Claude Code research workflow tool that auto-configures library-specific sub-agents via Context7.
Requirements: Claude Code CLI installed
``bash`
cd your-project
npx claude-docs
claude /sync-docs
claude-docs sets up your project for AI-powered documentation research:
1. Configures Context7 MCP server automatically
2. Installs slash commands (/sync-docs, /research)
3. Creates base research agents for codebase exploration
Then claude /sync-docs:package.json
- Scans / requirements.txt for dependencies@research-{library}
- Validates each library against Context7
- Generates agents with Context7 patterns
`bash`
cd your-project
npx claude-docs
You'll be prompted for a Context7 API key (optional, increases rate limits).
Get one free at context7.com/dashboard.
This creates:
- .mcp.json - Context7 MCP server configuration.claude/commands/
- - /sync-docs and /research commands.claude/agents/
- - Base research agents
After setup, run:
`bash`
claude /sync-docs
This scans your dependencies and creates agents like:
- @research-react - React documentation specialist@research-stripe
- - Stripe documentation specialist@research-next
- - Next.js documentation specialist
Direct invocation:
``
@research-react how do I use useEffect cleanup?
Via router:
``
/research stripe webhook signature verification
Always available after setup:
| Agent | Purpose |
|-------|---------|
| @codebase-locator | Find WHERE code lives |@codebase-analyzer
| | Understand HOW code works |@codebase-pattern-finder
| | Find EXAMPLES in the codebase |@web-search-researcher
| | Research topics not in Context7 |
`
Usage: claude-docs [options]
Options:
-V, --version output the version number
--skip-mcp Skip Context7 MCP configuration
-h, --help display help for command
`
- Prompts for Context7 API key (optional)
- Runs claude mcp add to configure Context7 MCP server.claude/commands/sync-docs.md
- Creates and research.md.claude/agents/
- Creates base agent templates in
- Reads package.json / requirements.txt@research-{library}
- Queries Context7 to validate each library
- Creates agents with Context7 search patterns/research
- Updates router with agent list
An API key is optional but increases rate limits.
Get one free: context7.com/dashboard
The key is stored in .mcp.json as a header for the Context7 MCP server.
If you skipped MCP setup or it failed, configure manually:
`bash`
claude mcp add --transport http --scope project context7 https://mcp.context7.com/mcp
With API key:
`bash`
claude mcp add --transport http --scope project context7 https://mcp.context7.com/mcp \
--header "CONTEXT7_API_KEY: your-key"
Not all libraries have Context7 coverage. The agent will be skipped.
Use @web-search-researcher` for libraries not in Context7.
Get a free API key at context7.com/dashboard.
MIT