context7-mcp
Skill0 starsChanged 10 months agoMITView on GitHub
Query up-to-date library and framework documentation via the Context7 MCP server. Use when user asks 'how does X work in Next.js?', 'show me the React docs for Y', 'what's the API for Supabase Z?', 'latest docs for tanstack-query', or needs current documentation for any library/framework. Do NOT use for general web search or current events (use tavily-mcp instead).
18 other projects use a version of this.
Adopted by
Most recently taken up by
- KarhouTam/agent-skillstheir own version, first seen Oct 5, 2026
- rtadewald/skillstheir own version, first seen Sep 28, 2026
- sarveshcore/claude-skillstheir own version, first seen Sep 4, 2026
- zaphod72/claude-skillstheir own version, first seen Sep 4, 2026
- danielvm-git/bigpowerstheir own version, first seen Sep 1, 2026
- Yass5002/agent-skillstheir own version, first seen Aug 27, 2026
Used with
Projects with it also use to-tickets, writing-plans and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AWSSkillto-tickets
Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker (edges as text in one file per ticket locally, or native blocking links on a real tracker).
Also in 3 projects that use this
OpenAISkillwriting-plans
Use when you have a spec or requirements for a multi-step task, before touching code
Also in 4 projects that use this
VercelSkillfind-skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Also in 5 projects that use this
OpenAISkillexecuting-plans
Use when you have a written implementation plan to execute in a separate session with review checkpoints
Also in 3 projects that use this
SentrySkilldiagnosing-bugs
A discipline for hard bugs, flaky tests, CI hangs, and performance regressions in this SDK. Use when the user says "diagnose" or "debug this", reports something broken/throwing/failing/hanging/slow, or a test is flaky. Builds a tight, red-capable feedback loop before hypothesizing.
Also in 3 projects that use this
AWSSkillgrill-me
A relentless interview to sharpen a plan or design.
Also in 7 projects that use this
- +2 more from aws
- +3 more from openai
Other versions18 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 18
- upstash/context7★ 63ksame name
- danielvm-git/bigpowers★ 252same name
- rtadewald/skills★ 168same name
- myths-labs/muse★ 35same name
- julianromli/faiz-skills★ 16same name
- Samin12/skills★ 9same name
- apenlor/opencode-expert-mode★ 4same name
- AbdulDevHub/Agent-Skills-Factory★ 2same name
- adrienlupo/Claude-code-config★ 2same name
- damacus/agent-skills★ 2same name
8 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository19 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- audit-planSkill
- builder-workflowSkill
- code-reviewSkill
- create-planSkill
- customizeSkill
- devSkill
- hand-crafted-svgSkill
- implementSkill
- improve-promptSkill
- playwright-e2eSkill
- playwright-mcpSkill
- postgres-expertSkill
- react-form-builderSkill
- review-planSkill
- sequential-thinking-mcpSkill
- server-action-builderSkill
- service-builderSkill
- tavily-mcpSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 18 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
All Context7 MCP tools use the mcp__context7__ prefix.
- Distinctive: line 101
Note: If a common ID stops working, re-resolve it — library IDs can change when repos are reorganized.
- Very specific: line 116
Add version context: "Next.js 15 app router middleware" vs just "middleware"
- Distinctive: line 121
Ask about one feature at a time rather than broad overviews
- Distinctive: line 122
If output is still large, extract the relevant section and summarize for the user
“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Context7 Library Documentation
You are an expert at using the Context7 MCP server to retrieve current, accurate library documentation. Context7 provides up-to-date docs for thousands of libraries and frameworks, eliminating outdated training data issues.
Critical: These Are Direct Tool Calls
MCP tools are direct tool calls — exactly like Read, Grep, or Bash. They are NOT CLI commands.
CORRECT — call the tool directly:
Tool: mcp__context7__resolve-library-id
Parameters: { "libraryName": "next.js" }WRONG — do NOT shell out:
Bash: claude mcp call context7 resolve-library-id ... # This does not workAll Context7 MCP tools use the mcp__context7__ prefix.
Critical: Always Resolve Library ID First
You must call resolve-library-id before query-docs unless you already have a confirmed /org/project ID from a previous call in this session.
Critical: Output Size Awareness
| Tool | Output Size | Notes |
resolve-library-id | Small | Returns list of matching library IDs |
query-docs | Medium-Large | Documentation content — scales with topic breadth. Use specific queries to limit size. |
Workflow: Find & Query Documentation
Trigger: User asks about library APIs, framework patterns, configuration options, or "how to do X with Y library"
Steps
- Resolve the library ID:
resolve-library-id({ libraryName: "next.js" }) → returns matching libraries with /org/project IDs - Query documentation with a specific question:
query-docs({ libraryId: "/vercel/next.js", query: "how to use middleware for authentication" }) → returns relevant documentation sections - Refine if needed (max 3 calls per tool per question):
query-docs({ libraryId: "/vercel/next.js", query: "middleware matcher config" }) → more specific follow-up
Key Patterns
- Be specific in queries: "How to set up authentication with JWT in Express.js" beats "auth"
- Max 3 calls per tool per question — if 3 queries don't answer it, use a different approach
- One library per query — don't try to query multiple libraries in a single
query-docscall - Use the full
/org/projectformat forlibraryId(e.g.,/vercel/next.js,/supabase/supabase)
Decision Tree
| User Needs | Action |
| Docs for a known library | resolve-library-id → query-docs |
| Not sure which library to use | resolve-library-id with general term, review matches |
| Already have library ID from this session | Skip resolve, go straight to query-docs |
| Library not found in Context7 | Fall back to tavily-mcp search or WebFetch for official docs site |
Common Library IDs
These are frequently used in this project — skip resolve-library-id for these:
| Library | ID |
| Next.js | /vercel/next.js |
| React | /facebook/react |
| Supabase JS | /supabase/supabase-js |
| TanStack Query | /tanstack/query |
| Zod | /colinhacks/zod |
| React Hook Form | /react-hook-form/react-hook-form |
| Tailwind CSS | /tailwindlabs/tailwindcss |
| date-fns | /date-fns/date-fns |
| Radix UI | /radix-ui/primitives |
| Playwright | /microsoft/playwright |
| Vitest | /vitest-dev/vitest |
Note: If a common ID stops working, re-resolve it — library IDs can change when repos are reorganized.
Troubleshooting
"Library not found"
- Try alternate names: "react-query" vs "tanstack query" vs "@tanstack/react-query"
- Try the npm package name: "next" vs "next.js"
- Try the GitHub org/repo format directly: "vercel/next.js"
- Fall back to
tavily-mcpsearch for the official docs URL, then useWebFetch
Query Returns Irrelevant Results
- Make your query more specific — include the exact API name or concept
- Try rephrasing: "server actions" vs "use server directive" vs "form actions"
- Add version context: "Next.js 15 app router middleware" vs just "middleware"
Query Returns Too Much Content
- Narrow the query to a specific function or concept
- Ask about one feature at a time rather than broad overviews
- If output is still large, extract the relevant section and summarize for the user
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

