context7

context7 is a skill for Claude Code, Codex from alebgl77/claude-inc. It costs 106 tokens per session (892 once invoked), scanned A, original, MIT.

A documentation-checking assistant for using the exact installed version of a software library before writing code that depends on it.

In plain words
What is it for?
Use it when working with libraries such as React, Next.js, LangChain, Prisma, or Tailwind to inspect the lockfile and consult current official documentation.
Why use it?
Software libraries change quickly, so remembered examples or broad version ranges can lead to deprecated APIs and broken code.

Skill for Claude CodeCodex

Part of the claude-inc plugin — 46 skills, 3 commands, 8 agents shipped together

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.

agentmods
npx agentmods add skills/alebgl77/claude-inc/context7
Any agent
npx skills add alebgl77/claude-inc --skill context7
Clone the repo
git clone --depth 1 https://github.com/alebgl77/claude-inc

Made for: Claude Code, Codex.

Or install claude-inc, the plugin that ships this one along with the rest of its 46 skills, 3 commands, 8 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/alebgl77/claude-inc/context7.svg)](https://agentmods.dev/skills/alebgl77/claude-inc/context7)
Your own site
<a href="https://agentmods.dev/skills/alebgl77/claude-inc/context7"><img src="https://agentmods.dev/badge/skills/alebgl77/claude-inc/context7.svg" alt="Measured on agentmods" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 892 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00106 $0.00892
Opus 5 $0.00053 $0.00446
Sonnet 5 $0.00021 $0.00178
Haiku 4.5 $0.00011 $0.00089

Measured 3d ago against content hash 528e72133286, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

context7 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 3d 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.

skills/context7/SKILL.md · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Context7 — Docs Fetcher

"Live library docs"

Trained knowledge ages; your dependencies don't wait. The docs are the source of truth — memory is only a hint.

When to use

  • Writing code against fast movers — Next.js, React, LangChain, Prisma, Tailwind — where trained knowledge is stale by default
  • "Check the actual docs before you write this" / "is this still the right API in v15?"
  • "This worked in v4 but breaks in v5" — any deprecation warning or breaking-change error
  • Choosing between API generations — "app router or pages router way?"
  • Before adding a dependency — verify the current install command and quickstart, not remembered ones

Workflow

  1. List the libraries the task touches and flag fast movers (any project with major releases in the past year).
  2. Resolve the exact installed version from the lockfile — package-lock.json, pnpm-lock.yaml, yarn.lock, poetry.lock, uv.lock, Cargo.lock, go.sum. Grep the lockfile itself; never trust manifest ranges or memory.
  3. Fetch current docs for that version. Optional upgrade: with the Context7 MCP server installed, call resolve-library-id then get-library-docs. Otherwise WebFetch/WebSearch the official docs, changelog, and migration guide — official sources only.
  4. Quote the relevant passage verbatim — signature, options, gotchas — before writing a single line of code.
  5. Write the code against the quoted signature, exactly; no extra parameters from memory.
  6. Pin the library and version in the output header; note any deprecations between installed and latest.
  7. If lockfile and docs disagree (docs describe a newer API), surface it: ship code for the installed version plus the upgrade path.
  8. If the doc page covers multiple versions, confirm the version selector matches the installed one before quoting.
  9. No network at all? Say so loudly, mark the code UNVERIFIED, and list exactly which signatures must be checked before merge.

Output format

Library: <name>@<exact version>   (source: <lockfile>)
Docs: <official URL or Context7 library ID>   (fetched <date>)

Doc quote:
> <verbatim excerpt covering every API surface used below>

Code:
<snippet that matches the quote>

Version notes: <deprecations, breaking changes, upgrade advice — or "none">

Read the full file on GitHub · 72 lines

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. 3d ago First seen · 72 lines · 106 tokens per session scan A 528e72133286

Subscribe to this mod's changes

context7 is a skill published in the GitHub repository alebgl77/claude-inc (12 stars, last pushed 4d ago), licensed MIT. It adds 106 tokens to every session and 892 once invoked, about $0.0005 per session on Opus 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

development

开发语言能力索引。Python、Go、Rust、TypeScript、Java、C++、Shell。当用户提到编程、开发、代码、语言时路由到此。.

fengshao1227/ccg-workflow · 41 tokens

rust-pro

Master modern Rust (2024 edition) with async patterns, advanced type system features, and production-ready systems programming. Expert in the current Rust ecosystem including Tokio, axum, and modern crates. Use PROACTIVELY for Rust development, performance optimization, or systems programming.

vudovn/ag-kit · 58 tokens

ax-python-agent

Use when writing Python code with axllm for agents, child delegation, tools, MCP, citations, persistent playbook learning, stage instructions, runtime state, final typed responses, and direct-respond executor skipping.

ax-llm/ax · 49 tokens

migrate-better-result-3

Migrate a TypeScript codebase from better-result 2.x to 3.0. Use when upgrading better-result across the TaggedError syntax, removed Result serialization helpers, recovery inference, matching, or retry APIs.

dmmulroy/better-result · 52 tokens

mps-aspect-actions

Use when defining or editing MPS node factories (the "actions" aspect) — NodeFactories roots, per-concept NodeFactory setup functions that initialize a freshly created node and optionally copy data from a replaced sampleNode, plus the actions aspect's CopyPasteHandlers and PasteWrappers roots. Reach for this skill…

JetBrains/MPS · 115 tokens

product-marketing

Build product marketing strategy including positioning, messaging, and go-to-market. Use when the user says "positioning", "messaging framework", "go-to-market", "GTM strategy", "product marketing", "competitive positioning", "battlecard", "sales enablement", "launch plan", or asks about how to position or message…

OpenClaudia/openclaudia-skills · 77 tokens