One line away from Claude Code having reliable docs

Your dependencies → specialized doc agents in seconds

$npx claude-docs

requires claude code cli

GitHub stars

How It Works

  1. 1.
    npx claude-docs— Configures Context7 MCP, installs slash commands, creates base agents
  2. 2.
    claude /sync-docs— Scans your dependencies, validates with Context7, generates library agents
  3. 3.
    @research-react— Call agents directly

Or use /research to auto-route:

/research "how do I validate webhooks?"

↓ detects stripe → routes to @research-stripe

↓ queries Context7 → docs-backed answer

Base Agents for Efficient Research

AgentPurposeSource
@codebase-locatorFind WHERE code livesView
@codebase-analyzerUnderstand HOW code worksView
@codebase-pattern-finderFind EXAMPLES in the codebaseView
@web-search-researcherResearch topics not in Context7View

Plus dynamically generated @research-{library} agents based on your dependencies.

Why Pre-Generated Agents

/sync-docs scans your package.json or requirements.txt, validates each library against Context7, and generates dedicated @research-{library} agents with the correct Context7 library IDs baked in. It also creates a personalized /research command that knows all your available agents and routes queries automatically.

Why not query docs on-the-fly?

  • Save context — Agent prompts are loaded only when invoked, not on every request
  • Fewer MCP calls — Library IDs are resolved once at sync time, not every query
  • Better prompts — Each agent has library-specific instructions and topic hints
  • Predictable — You can inspect and edit the generated agents in .claude/agents/

Why Context7

Context7 indexes up-to-date dev-documentation for thousands of libraries.

We use it because it works. Instead of building and maintaining our own documentation scraper, we chose a reliable provider. Less code to maintain, more time to improve the actual agents.

context7.com

TODO:

[ ]Support more manifest types (Cargo.toml, go.mod, pyproject.toml)
[ ]Auto-select docs version based on repo (e.g. Next.js app/pages router)
[ ]Use Context7 TS SDK for speed and token reduction

PRs welcome → CONTRIBUTING.md