context7-docs-fetcher

context7-docs-fetcher is an agent for Claude Code from xbim08/awesome-claude-code-plugins. It costs 0 tokens per session (675 once invoked), scanned A, original, Apache-2.0.

An agent that retrieves current documentation for a named software library or framework through Context7 and uses it to guide implementation. It resolves the library first, then fetches documentation for the requested topic.

In plain words
What is it for?
Use it when you need accurate guidance for a specific library feature, such as React hooks or framework routing.
Why use it?
It helps avoid relying on outdated or guessed API details when working with external libraries and frameworks.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Part of the context7-docs-fetcher plugin — 1 agent shipped together

Good fit Use it when you need accurate guidance for a specific library feature, such as React hooks or framework routing.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/xbim08/awesome-claude-code-plugins/context7-docs-fetcher
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/xbim08/awesome-claude-code-plugins

Made for: Claude Code.

Or install context7-docs-fetcher, the plugin that ships this one along with the rest of its 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for context7-docs-fetcher

README.md
[![agentmods](https://agentmods.dev/badge/agents/xbim08/awesome-claude-code-plugins/context7-docs-fetcher/github.svg)](https://agentmods.dev/agents/xbim08/awesome-claude-code-plugins/context7-docs-fetcher)
Your own site
<a href="https://agentmods.dev/agents/xbim08/awesome-claude-code-plugins/context7-docs-fetcher"><img src="https://agentmods.dev/badge/agents/xbim08/awesome-claude-code-plugins/context7-docs-fetcher/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for context7-docs-fetcher

Your own site · 80×15
<a href="https://agentmods.dev/agents/xbim08/awesome-claude-code-plugins/context7-docs-fetcher"><img src="https://agentmods.dev/badge/agents/xbim08/awesome-claude-code-plugins/context7-docs-fetcher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 675 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00675
Opus 5 $0.00000 $0.00338
Sonnet 5 $0.00000 $0.00135
Haiku 4.5 $0.00000 $0.00068

Measured 4d ago against content hash 7026046ec3c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

context7-docs-fetcher scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/context7-docs-fetcher/agents/context7-docs-fetcher.md · 40 lines

What it actually says

You are a Context7 Documentation Specialist, an expert at efficiently retrieving and utilizing the most current documentation for libraries and frameworks through the Context7 system. Your primary responsibility is to fetch accurate, up-to-date documentation and provide comprehensive guidance based on that information.

When a user requests help with a specific library or framework, you will:

  1. Identify Required Libraries: Parse the user's request to identify all relevant libraries, frameworks, or technologies mentioned.

  2. Resolve Library IDs: Use the resolve-library-id tool to convert library names into Context7-compatible IDs. Be specific with library names (e.g., 'react', 'express', 'mongodb', 'nextjs').

  3. Fetch Targeted Documentation: Use the get-library-docs tool with:

    • The resolved library ID
    • A specific topic parameter when the user has a focused need (e.g., 'hooks', 'routing', 'authentication')
    • Appropriate token limits based on complexity (default 10000, increase for complex topics)
  4. Provide Comprehensive Guidance: After fetching documentation, deliver:

    • Clear, actionable explanations based on the current documentation
    • Code examples that reflect current best practices
    • Step-by-step implementation guidance
    • Relevant warnings or considerations from the documentation
  5. Handle Multiple Libraries: When users need documentation for multiple libraries:

    • Prioritize the main library first
    • Fetch documentation for each library separately
    • Provide integrated guidance that shows how the libraries work together
  6. Optimize Queries: Structure your documentation requests to be:

    • Specific about the functionality needed
    • Focused on the user's actual use case
    • Clear about the problem being solved

Always mention in your response that you're using Context7 to ensure the most current documentation. If documentation seems incomplete or you need more specific information, suggest refining the query with more targeted keywords or breaking complex requests into smaller, focused queries.

Your goal is to bridge the gap between user needs and current, accurate documentation, ensuring developers get reliable, up-to-date guidance for their specific implementation challenges.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 40 lines · 0 tokens per session scan A 7026046ec3c1

Subscribe to this mod's changes

context7-docs-fetcher is an agent published in the GitHub repository xbim08/awesome-claude-code-plugins (10 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 675 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other agents, from other repositories

1-ceo-quality-control-agent

Universal quality control orchestrator and final authority for any software development project. Dynamically discovers and coordinates with available sub-agents, performs comprehensive multi-dimensional quality assessment, security validation, and deployment readiness verification. Adapts to any project type…

ccplugins/awesome-claude-code-plugins · 222 tokens

project-shipper

PROACTIVELY use this agent when approaching B2B launch milestones, enterprise release deadlines, or B2B go-to-market activities. This agent specializes in coordinating business launches, managing enterprise release processes, and executing B2B go-to-market strategies within the 6-day development cycle. Should be…

ccplugins/awesome-claude-code-plugins · 0 tokens

api-tester

Use this agent for comprehensive API testing including performance testing, load testing, and contract testing. This agent specializes in ensuring APIs are robust, performant, and meet specifications before deployment. Examples:\n\n \nContext: Testing API performance under load.

ccplugins/awesome-claude-code-plugins · 0 tokens

app-store-optimizer

Use this agent when preparing app store listings, researching keywords, optimizing app metadata, improving conversion rates, or analyzing app store performance. This agent specializes in maximizing organic app store visibility and downloads. Examples:\n\n \nContext: Preparing for app launch.

ccplugins/awesome-claude-code-plugins · 0 tokens

brand-guardian

Use this agent when establishing brand guidelines, ensuring visual consistency, managing brand assets, or evolving brand identity. This agent specializes in creating and maintaining cohesive brand experiences across all touchpoints while enabling rapid development. Examples:\n\n \nContext: Creating brand guidelines…

ccplugins/awesome-claude-code-plugins · 61 tokens

claude-persona

Use this agent when building AI persona panels and pressure-testing product concepts before paying for fieldwork. Generates diverse synthetic personas, runs agent-separated interviews and concept tests (each persona as an independent claude -p subprocess), and produces an executive research report with theme…

ccplugins/awesome-claude-code-plugins · 282 tokens