
find-docs
Retrieves up-to-date documentation, API references and code examples for any developer technology. Use when the user asks about, or you need docs for, a specific library, framework, SDK, CLI tool or cloud service - even well-known ones, as training data may be outdated. Prefer this over web search for library docs and API details.
- Installs
- 50
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/sammcj/agentic-coding --skill find-docs- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads find-docs automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Documentation Lookup
Retrieve current documentation and code examples for any library using the Context7 CLI.
Run the context7 CLI directly like so:
pnpx ctx7@latest <command>
Workflow
Two-step process: resolve the library name to an ID, then query docs with that ID.
# Step 1: Resolve library ID
ctx7 library <name> <query>
# Step 2: Query documentation
ctx7 docs <libraryId> <query>
You MUST call ctx7 library first to obtain a valid library ID UNLESS the user explicitly provides a library ID in the format /org/project or /org/project/version.
IMPORTANT: Do not run these commands more than 3 times per question. If you cannot find what you need after 3 attempts, use the best result you have.
Step 1: Resolve a Library
Resolves a package/product name to a Context7-compatible library ID and returns matching libraries.
ctx7 library React "How to clean up useEffect with async operations"
ctx7 library "Next.js" "How to set up app router with a proxy"
ctx7 library Prisma "How to define one-to-many relations with cascade delete"
Use the official library name with its punctuation ("Next.js" not nextjs, "Three.js" not threejs). If results look wrong, try an alternate spelling such as next.js before changing the query.
Always pass a query argument - it is required and directly affects result ranking. Use the user's intent to form the query, which helps disambiguate when multiple libraries share a similar name. Do not include any sensitive or confidential information such as API keys, passwords, credentials, personal data, or proprietary code in your query.
Result fields
Each result includes:
- Library ID - Context7-compatible identifier (format:
/org/project) - Name - Library or package name
- Description - Short summary
- Code Snippets - Number of available code examples
- Source Reputation - Authority indicator (High, Medium, Low, or Unknown)
- Benchmark Score - Quality indicator (100 is the highest score)
- Versions - List of versions if available. Use one of those versions if the user provides a version in their query. The format is
/org/project/version.
Selection process
- Analyse the query to understand what library/package the user is looking for
- Select the most relevant match based on:
- Name similarity to the query (exact matches prioritised)
- Description relevance to the query's intent
- Documentation coverage (prioritise libraries with higher Code Snippet counts)
- Source reputation (consider libraries with High or Medium reputation more authoritative)
- Benchmark score (higher is better, 100 is the maximum)
- If multiple good matches exist, acknowledge this but proceed with the most relevant one
- If no good matches exist, clearly state this and suggest query refinements
- For ambiguous queries, request clarification before proceeding with a best-guess match
Version-specific IDs
If the user mentions a specific version, use a version-specific library ID:
# General (latest indexed)
ctx7 docs /vercel/next.js "How to set up app router"
# Version-specific
ctx7 docs /vercel/next.js/v16.2.9 "How to set up app router"
The available versions are listed in the ctx7 library output. Use the closest match to what the user specified.
Step 2: Query Documentation
Retrieves up-to-date documentation and code examples for the resolved library.
ctx7 docs /facebook/react "How to clean up useEffect with async operations"
ctx7 docs /vercel/next.js "How to add an authentication proxy to app router"
ctx7 docs /prisma/prisma "How to define one-to-many relations with cascade delete"
If you know the user's programming language, add --language so examples in that language rank first:
ctx7 docs /websites/twilio "How to send an SMS" --language Ruby
Writing good queries
The query directly affects the quality of results. Be specific and keep each query to one topic. For a question spanning distinct concepts, run a separate docs command per concept, unless the question is about how they interact. Do not include any sensitive or confidential information such as API keys, passwords, credentials, personal data, or proprietary code in your query.
- Good:
"How to set up authentication with JWT in Express.js" - Good:
"React useEffect cleanup function with async operations" - Bad (vague):
"auth","hooks" - Bad (multi-topic):
"routing and auth and caching in Next.js"
Describe what to look up in the docs rather than the task to complete. One-word queries return generic results. Multi-topic queries return shallow results for each topic.
The output contains two types of content: code snippets (titled, with language-tagged blocks) and info snippets (prose explanations with breadcrumb context).
Authentication
Works without authentication. For higher rate limits:
# Option A: environment variable
export CONTEXT7_API_KEY=your_key
# Option B: OAuth login
ctx7 login
Error Handling
If a command fails with a quota error ("Monthly quota reached" or "quota exceeded"):
- Inform the user their Context7 quota is exhausted
- Suggest they authenticate for higher limits:
ctx7 login - If they cannot or choose not to authenticate, answer from training knowledge and clearly note it may be outdated
Do not silently fall back to training data - always tell the user why Context7 was not used.
Common Mistakes
- Library IDs require a
/prefix -/facebook/reactnotfacebook/react - Always run
ctx7 libraryfirst -ctx7 docs react "hooks"will fail without a valid ID - Use descriptive queries, not single words -
"React useEffect cleanup function"not"hooks" - One topic per query - split
"routing and auth and caching"into onedocscommand per concept - Do not include sensitive information (API keys, passwords, credentials) in queries
FAQ
What does the find-docs skill do?
Retrieves up-to-date documentation, API references and code examples for any developer technology. Use when the user asks about, or you need docs for, a specific library, framework, SDK, CLI tool or cloud service - even well-known ones, as training data may be outdated. Prefer this over web search for library docs and API details.
How do I install find-docs?
Run npx skills add https://github.com/sammcj/agentic-coding --skill find-docs in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/find-docs/ (personal) or .claude/skills/find-docs/ (project).
Which AI agents can use find-docs?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is find-docs safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains find-docs?
It is published by sammcj in sammcj/agentic-coding. It has 50 recorded installs.
More from sammcj/agentic-coding
critical-thinking-logical-reasoning
sammcj/agentic-coding
Critically analyse the reasoning in written content (articles, blogs, transcripts, reports), not code. Use only when explicitly asked to critically analyse or critique an argument.
writing-documentation-with-diataxis
sammcj/agentic-coding
Applies the Diataxis framework to create or improve technical documentation. Use when being asked to write high quality tutorials, how-to guides, reference docs, or explanations, when reviewing documentation quality, or when deciding what type of documentation to create. Helps identify documentation types using the action/cognition and acquisition/application dimensions.
creating-development-plans
sammcj/agentic-coding
Creates structured development plans with phased task breakdowns, requirements, and QA checklists. Use when the user explicitly asks to create a dev plan, development plan, or document development requirements.
ghostty-config
sammcj/agentic-coding
Open the skill to read its SKILL.md instructions.
code-simplification
sammcj/agentic-coding
Use this skill when you need to review and refactor code to make it simpler, more maintainable, and easier to understand. Helps with identifying overly complex solutions, unnecessary abstractions.
prompt-enhancer
sammcj/agentic-coding
Open the skill to read its SKILL.md instructions.
Popular docs & writing skills
grill-with-docs
mattpocock/skills
A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
lark-markdown
open.feishu.cn
飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。
writing-beats
mattpocock/skills
Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.
writing-shape
mattpocock/skills
Writing, exploit: shape raw material into an article, paragraph by paragraph.
writing-fragments
mattpocock/skills
Writing, explore: mine raw fragments, no structure yet.
writing-for-agents
mattpocock/skills
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.