Context7
Skill0 starsChanged 9 months agoMITView on GitHub
Up-to-date library documentation and code examples from Context7. USE WHEN looking up API docs, library documentation, framework guides, code examples, OR needing version-specific technical documentation. Prevents hallucinated APIs.
- Reads credentials
32 other projects use a version of this.
Adopted by
Most recently taken up by
- autohandai/community-skillstheir own version, first seen Nov 29, 2026
- HEADING-OS-Official/heading-ostheir own version, first seen Nov 29, 2026
- compozy/compozytheir own version, first seen Nov 28, 2026
- netresearch/context7-skilltheir own version, first seen Nov 21, 2026
- RidhuanDEV/claude-skillstheir own version, first seen Nov 16, 2026
- ZhouYinLong-lab/Dog-Skillstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use superpowers, mermaid-diagrams and 9 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.
HK-hubSkillsuperpowers
A complete software development methodology and skill composition system, ported from obra/superpowers. Provides structured, repeatable workflow: brainstorming, design, planning, TDD, subagent-driven dev, code review, finishing branch. Use for coding, building projects, refactoring, bug fixing, or any programming tasks.
Also in 4 projects that use this
LangChainSkillmermaid-diagrams
Embed Mermaid diagrams in generated wiki pages. Use whenever documenting a runtime or request flow, a call sequence, a state machine or lifecycle, a data model or entity relationships, or non-trivial control flow, since these are clearer as a diagram than as prose. Also use when an update run touches a page that already contains a mermaid fence, or a page that contains a text fence a previous run degraded.
Also in 3 projects that use this
SupabaseSkillcopywriting
Write or audit UI copy (buttons, labels, empty states, error messages, tooltips, form text) anywhere in the monorepo. Load it before shipping or reviewing any user-facing text — including when copy is incidental to the task, like a new feature that adds buttons, toasts, dialogs, or validation messages.
Also in 4 projects that use this
MicrosoftSkillmcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Also in 5 projects that use this
VercelSkillvercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
Also in 4 projects that use this
StrayDragonSkillui-ux-pro-max
UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.
Also in 4 projects that use this
Other versions32 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 32
- compozy/compozy★ 2.9ksame name
- pedronauck/skills★ 659same name
- netresearch/context7-skill★ 97same name
- Dianel555/DSkills★ 65same name
- Pi-Teacher/skills★ 26same name
- JetBrains/junie-extensions★ 23same name
- alebgl77/claude-inc★ 21same name
- archibate/agent-skills★ 19same name
- arvindand/agent-skills★ 17same name
- autohandai/community-skills★ 14same name
22 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 repository97 other files it gives its agents.
- skills/obsidian-second-brain-skill/templates/CLAUDE.mdCLAUDE.md
- 1passwordSkill
- alz-accelerator-skillSkill
- ArgocdAppInstallSkill
- argocd-applicationset-skillSkill
- ArgocdClusterBootstrappingSkill
- argocd-cluster-bootstrappingSkill
- ArgoCdCommandSkill
- ArgocdImageUpdaterSkill
- argocd-image-updaterSkill
- ArgoCDReviewSkill
- argocd-cliSkill
- ArgoRolloutsSkill
- atuinSkill
- az-aks-agentSkill
- aztfexport-skillSkill
- azure-ad-ssoSkill
- azure-devops-skillSkill
- azure-devops-wikiSkill
- AzureFinOpsSkill
- BmadOrchestrateSkill
- cloudflare-dnsSkill
- commit-skillSkill
- consulting-designSkill
- defectdojoSkill
- dependency-track-skillSkill
- direnvSkill
- external-dnsSkill
- external-urlsSkill
- GithubPagesSkill
- gitops-principles-skillSkill
- git-advanced-workflowsSkill
- git-advanced-workflowsSkill
- git-worktreeSkill
- grafana-skillSkill
- holmesgpt-skillSkill
- Iterm2Skill
- json-canvasSkill
- justfile-skillSkill
- k8s-clustersSkill
- k8s-timezone-configSkill
- kargo-skillSkill
- keyvault-csi-driverSkill
- knativeSkill
- lokiSkill
- looking-up-docsSkill
- macos-cleanerSkill
- macos-setupSkill
- managing-infraSkill
- markitdown-skillSkill
- merge-and-cleanup-skillSkill
- mimirSkill
- mkdocsSkill
- neovimSkill
- NotebookLMSkill
- obsidian-basesSkill
- obsidian-markdownSkill
- obsidian-master-skillSkill
- obsidian-nvimSkill
- obsidian-second-brainSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 28 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 123
When you need documentation during a coding session:
- Distinctive: line 147
Combine with local context: - use Context7 to verify APIs, then apply to your codebase
“Common” is measured: kept by at least 6 in 10 of the 28 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
Query up-to-date, version-specific documentation and code examples directly from source libraries via Context7's documentation aggregation platform.
Why Context7
| Benefit | Description |
| Current APIs | No hallucinated or outdated patterns - documentation comes from actual sources |
| Version-Specific | Gets docs for exact library versions you're using |
| Code Examples | Real, working code extracted from actual documentation |
| Broad Coverage | 1000+ libraries including React, Next.js, Vue, Go, Python, Kubernetes, etc. |
Setup
# Navigate to tools directory and install dependencies
cd ~/.claude/skills/Context7/Tools
bun install
# Optional: Set API key for higher rate limits
export CONTEXT7_API_KEY="ctx7sk_your_key_here" # Get at context7.com/dashboardAvailable CLI Tools
| Tool | Purpose | Command |
lookup | Full lookup (resolve + query) | bun src/cli/lookup.ts <library> <query> |
resolve | Find library ID | bun src/cli/resolve.ts <library> [query] |
query | Query docs by ID | bun src/cli/query.ts <library_id> <query> |
Quick Reference
Full Lookup (Recommended)
One command to resolve library and query documentation:
cd ~/.claude/skills/Context7/Tools
bun src/cli/lookup.ts react "useEffect cleanup function"
bun src/cli/lookup.ts next.js "app router middleware"
bun src/cli/lookup.ts kubernetes "deployment rolling update"Step-by-Step (When Needed)
Step 1: Resolve Library ID
bun src/cli/resolve.ts react
bun src/cli/resolve.ts next.js "authentication"Returns: Context7-compatible library ID like /facebook/react or /vercel/next.js
Step 2: Query Documentation
bun src/cli/query.ts /facebook/react "useEffect cleanup"
bun src/cli/query.ts /vercel/next.js "middleware configuration"Returns: Relevant documentation snippets and code examples
Common Library IDs
| Library | Context7 ID | CLI Shortcut |
| React | /facebook/react | react |
| Next.js | /vercel/next.js | next.js, nextjs |
| Vue | /vuejs/vue | vue |
| Kubernetes | /kubernetes/kubernetes | kubernetes, k8s |
| Go stdlib | /golang/go | go, golang |
| Python | /python/cpython | python |
| Node.js | /nodejs/node | node, nodejs |
| TypeScript | /microsoft/typescript | typescript, ts |
| Prisma | /prisma/prisma | prisma |
| Tailwind | /tailwindlabs/tailwindcss | tailwind, tailwindcss |
Workflow Routing
| Workflow | Trigger | File |
| ResolveLibrary | "find library ID", "resolve library" | Workflows/ResolveLibrary.md |
| QueryDocs | "lookup docs", "get documentation", "code examples" | Workflows/QueryDocs.md |
| FullLookup | "help me with [library]", "how do I use [feature]" | Workflows/FullLookup.md |
Examples
Example 1: React Hooks Documentation
cd ~/.claude/skills/Context7/Tools
bun src/cli/lookup.ts react "useEffect cleanup function"Output includes current React docs with cleanup pattern examples.
Example 2: Kubernetes Deployment Spec
bun src/cli/lookup.ts kubernetes "deployment spec rolling update strategy"Output includes current K8s API reference for Deployment.
Example 3: Next.js App Router
bun src/cli/lookup.ts next.js "middleware authentication app router"Output includes latest Next.js middleware documentation.
Example 4: Using in Claude Code Session
When you need documentation during a coding session:
User: "How do I implement server-side data fetching in Next.js 14?"
Claude runs:
cd ~/.claude/skills/Context7/Tools && bun src/cli/lookup.ts next.js "server components data fetching"
Then synthesizes response with current patterns (Server Components, not old getServerSideProps)Environment Variables
| Variable | Description | Default |
CONTEXT7_API_KEY | API key for higher rate limits | None (uses public rate limits) |
Get your API key at context7.com/dashboard
Tips
- Be specific in your query for better results
- Max 3 calls per question - if you can't find it after 3 tries, use best available info
- Include version in query if you need specific version docs (e.g., "React 18 concurrent features")
- Combine with local context - use Context7 to verify APIs, then apply to your codebase
- Known IDs skip API - common libraries like
react,next.jsuse cached IDs to skip the resolve step
Project Structure
Tools/
├── package.json # Dependencies and scripts
├── tsconfig.json # TypeScript configuration
└── src/
├── index.ts # Library exports
├── lib/
│ └── context7.ts # Core API client
└── cli/
├── lookup.ts # Full lookup command
├── resolve.ts # Library ID resolver
└── query.ts # Documentation queryAPI Reference
The TypeScript client can also be imported programmatically:
import { Context7Client, getKnownLibraryId } from "./src/index.js";
const client = new Context7Client({ apiKey: process.env.CONTEXT7_API_KEY });
// Full lookup
const result = await client.lookup("react", "useEffect hooks");
console.log(result.rawContent);
// Or step by step
const { bestMatch } = await client.resolveLibrary("react");
const docs = await client.queryDocs(bestMatch.id, "useEffect cleanup");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.

