context7-docs

context7-docs is a skill for Claude Code, Codex from upstash/context7. It costs 157 tokens per session (610 once invoked), scanned A, original, MIT.

A documentation lookup guide for finding current instructions and code examples for libraries, frameworks, SDKs, command-line tools, and cloud services.

In plain words
What is it for?
It helps resolve a tool to its documentation source and retrieve focused guidance for tasks involving products such as React, Next.js, Prisma, Express, Tailwind, Django, or Spring Boot.
Why use it?
It helps avoid using examples that no longer match the software or its version.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps resolve a tool to its documentation source and retrieve focused guidance for tasks involving products such as React, Next.js, Prisma, Express, Tailwind, Django, or Spring Boot.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/upstash/context7/context7-docs
About the project

Context7 is a documentation service that puts current, version-specific library documentation and code examples into prompts for large language models and AI coding editors. Developers use it to help coding agents produce answers based on the libraries they actually use; the catalogue entries provide ways for agents to access Context7 through its CLI or MCP server.

upstash/context7 · 63,103 stars · on GitHub · context7.com

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.

Any agent
npx skills add upstash/context7 --skill context7-docs
Clone the repo
git clone --depth 1 https://github.com/upstash/context7

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/upstash/context7/context7-docs/github.svg)](https://agentmods.dev/skills/upstash/context7/context7-docs)
Your own site
<a href="https://agentmods.dev/skills/upstash/context7/context7-docs"><img src="https://agentmods.dev/badge/skills/upstash/context7/context7-docs/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/upstash/context7/context7-docs"><img src="https://agentmods.dev/badge/skills/upstash/context7/context7-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 157 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 610 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. ✓ AI security review Fable 5.1 · 6 Sept 2026 📄 Read the review Third-party audits
  • Snyk warn 7 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00157 $0.00610
Opus 5.5 $0.00063 $0.00244
Sonnet 5.5 $0.00031 $0.00122
Haiku 4.5 $0.00016 $0.00061

Measured 1mo ago against content hash 292089a6f9ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

context7-docs 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 1mo 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.

packages/pi/skills/context7-docs/SKILL.md · 46 lines

What it actually says

Context7 Documentation Lookup

Retrieve current documentation and code examples from Context7 using the resolve-library-id and query-docs tools that ship with this extension.

When to use

Reach for these tools whenever a question involves a specific library, framework, SDK, CLI tool, or cloud service. Examples:

  • "How do I configure caching in Next.js 16?"
  • "What's the syntax for Prisma's findMany with relations?"
  • "Show me a working Tailwind v4 install for a Vite app."
  • "How do I rate-limit with @upstash/ratelimit?"

Workflow

  1. Resolve the library ID. Call resolve-library-id with the library name and what to look up in the library's documentation. The tool returns matching libraries with their Context7 IDs (/org/project format), descriptions, snippet counts, and quality scores. Pick the best match — prioritize official sources, name match, and high benchmark scores.
  2. Query the docs. Call query-docs with the chosen library ID and what to look up in the library's documentation, scoped to a single concept — if the question spans multiple distinct concepts, make a separate call per concept with the same library ID, unless the question is about how the concepts interact. The tool returns documentation snippets and code examples.
  3. Answer. Cite the library ID you used and quote code examples verbatim when relevant.

If the user supplies a library ID in /org/project or /org/project/version format directly, skip step 1 and call query-docs immediately.

Constraints

  • Do not call either tool more than 3 times per question.
  • Do not pass API keys, passwords, credentials, personal data, or proprietary code as the query argument — it is sent to the Context7 API.
  • Authentication uses the CONTEXT7_API_KEY environment variable. Get a key at https://context7.com/dashboard if requests fail with an auth error.
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. 1mo ago First seen · 46 lines · 157 tokens per session scan A 292089a6f9ff

Subscribe to this mod's changes

context7-docs is a skill published in the GitHub repository upstash/context7 (63,103 stars, last pushed today), licensed MIT. It adds 157 tokens to every session and 610 once invoked, about $0.0006 per session on Opus 5.5. 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-08-30.

Related

Other skills, from other repositories

anki

Use when the user wants to create Anki flashcards, manage Anki decks, search notes, or interact with Anki via AnkiConnect. Triggers on phrases like "create flashcards", "add to Anki", "make Anki cards", "batch create notes", or "manage my Anki deck".

nailuoGG/anki-mcp-server · 67 tokens

active-recall

Quizzes the user on AnNuMa (Analysis und Numerische Mathematik) exam topics using active recall. Use this skill whenever the user wants to be tested, quizzed, or drilled on a math topic, or says things like "quiz me", "test me on", "active recall", "flashcard", "ask me questions about", or "let's practice ". The skill…

AlirezaFakari/annuma-study-companion · 132 tokens

gentech-blockrun

GenTech Labs' integration patterns for BlockRun MCP from Hermes Agent. Covers daily usage patterns, cost-optimized workflows, multi-tool pipelines, and reliable error handling for BlockRun's full toolset.

BlockRunAI/blockrun-mcp · 46 tokens

memstack-marketing-webinar-script

Use this skill when the user says 'webinar script', 'webinar', 'live presentation', 'teach-to-sell', or needs a timestamped presentation script with slide notes, presenter cues, and replay email sequence. Do NOT use for launch plans or static sales page copy.

cwinvestments/memstack · 65 tokens

dsm5

Assess and explain questions about mental health and neurocognitive conditions against DSM-5-TR diagnostic criteria, and guide evidence-based conversations for clinicians, patients, and family members. Use when someone asks about symptoms, possible conditions, differential diagnoses, diagnostic criteria, prevalence…

magnus919/agent-skills · 106 tokens

vibehub

A terminology helper for Vibe Coding tasks, where software is built from natural-language requests. It turns vague descriptions into clearer technical wording and identifies useful terms for interface, web, software, Git, AI-agent, or design concepts.

oil-oil/vibe-hub-skill · 175 tokens