context7

A guide for finding the correct version of a software library's documentation and code examples. Version-specific documentation describes how a library works in a particular release.

In plain words
What is it for?
Use it to search for a library, identify its official owner and repository, and fetch general or topic-specific documentation.
Why use it?
It reduces errors caused by using outdated examples or guessing the wrong library repository.

Skill for Claude CodeCodex

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/dineshdb/pie/context7
Any agent
npx skills add dineshdb/pie --skill context7
Clone the repo
git clone --depth 1 https://github.com/dineshdb/pie

Made for: Claude Code, Codex.

Per session 11 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 191 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00011 $0.00191
Opus 5 $0.00005 $0.00096
Sonnet 5 $0.00002 $0.00038
Haiku 4.5 $0.00001 $0.00019

Measured 2d ago against content hash 3646492d2742, 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 1 finding 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 2d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s 'https://context7.com/api/v1/search?query=<LIBRARY_NAME>'
.pie/skills/context7/SKILL.md · 23 lines

What it actually says

Search for Library

Always search first to identify the correct owner/repo slug.

curl -s 'https://context7.com/api/v1/search?query=<LIBRARY_NAME>'

Fetch Docs/Examples

Use the slug (e.g., tokio-rs/tokio) to get specific information.

curl -s 'https://context7.com/api/v1/OWNER/REPO?topic=<TOPIC>'

Tip: Omit topic for a general overview.

Handling Results

  • Redirects: If the response says has been redirected to, use the new slug provided.
  • Popularity: Prefer results with high stars and trustScore.
  • Accuracy: Never guess slugs; the search API is the source of truth.
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. 2d ago First seen · 23 lines · 11 tokens per session scan A 3646492d2742

Subscribe to this mod's changes

context7 is a skill published in the GitHub repository dineshdb/pie (2 stars, last pushed 3mo ago), licensed MIT. It adds 11 tokens to every session and 191 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

release

Create a new versioned release with changelog. Bumps version in code, updates CHANGELOG.md, commits, tags, and pushes using the repository release flow. GitHub Actions creates the release and uses only the current changelog section as release notes. Use when the user says "release", "cut a release", "bump version"…

genai-io/san · 75 tokens

qa

Regression test a San feature by name. Looks for a feature doc in docs/reference/ or docs/packages/2-feature/, runs automated Go tests and interactive tmux tests, then produces a pass/fail report. Use this skill when the user says "qa", "regression test", "test feature X", "verify feature", or references a feature…

genai-io/san · 85 tokens

openspec-explore

Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use when the user wants to think through something before or during a change.

KunAgent/Kun · 39 tokens

openspec-apply-change

Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks.

KunAgent/Kun · 31 tokens

Diagram design

DESIGN.md-driven HTML, SVG, and editable whiteboard diagrams.

KunAgent/Kun · 17 tokens

pi-sync

Daily upstream-sync job for the pi Go port — fetch upstream pi, triage every change since the recorded pin, port what's in scope, verify idiomatic + parity via independent reviews, update the ledger, and push. Use for "sync with upstream", "porting job", or as the scheduled daily run.

sky-valley/pi · 66 tokens