/claude-skills:c7searchfrom claude-skills
Fetches current, version-correct documentation and code examples for any library, framework, or API via the Context7 CLI. Use when the user needs up-to-date API details or code examples.
Ships in claude-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
c7search wraps the Context7 v2 documentation API in a single static
binary. It exposes two operations — resolve a library name to an ID, then
fetch docs for that ID — with on-disk caching, secret redaction, retries,
and semantic exit codes. Payload goes to stdout (markdown by default,
JSON on demand); status messages go to stderr, so you can pipe stdout
straight into the model context without filtering.
<library>" / "show me <library>'s API for Y"command -v c7search >/dev/null 2>&1 && c7search version || echo MISSING
If MISSING: the quickest install (and the only one needing no extra
steps on macOS) is go install github.com/kevin-burns/c7search@latest,
then ensure $(go env GOPATH)/bin is on $PATH. For release binaries
and per-OS notes (macOS Gatekeeper, Windows SmartScreen), see the install
section of the README: https://github.com/kevin-burns/c7search#install.
If you can't install a binary, fall back to the curl-based context7
skill (same endpoints, no caching/retries):
https://github.com/intellectronica/agent-skills/blob/main/skills/context7/SKILL.md
An API key is optional (CONTEXT7_API_KEY=ctx7sk-... lifts rate limits);
the anonymous tier is fine for casual lookups. c7search auth status
prints the key source and connectivity.
Prefer this two-step recipe. It uses the v2 endpoints exclusively and has predictable resolution.
Avoid
c7search ask "..."except for a known-unambiguous lookup.askdoes resolve+fetch in one shot over free-form v1 search, ranking the entire query string — so incidental feature keywords drag it to the wrong library. Real misses: a query mentioning "mock" resolved to a mock-testing lib, "plugins" to a plugins SDK, "register a tool in fastmcp" to a Go DI library. The more keywords you stuff in, the worse it gets. Instead resolve by library name (Step 1) — that anchors resolution to the actual library, then use--topicondocsto focus. Treataskas a last resort.
Step 1 — resolve the library ID. Use --library-name when you know
the name; the positional argument becomes the relevance topic:
c7search resolve --library-name <name> "<topic>" --json --limit 1 | jq -r '.[0].id'
Returns an ID like /vercel/next.js. For free-form lookups where you
don't know the library name, omit --library-name and inspect the top
results before fetching — that path ranks by trust score and can surface
high-trust hits for unrelated libraries:
c7search resolve "<query>" --json --limit 5 | jq '.[] | {id, trustScore, totalSnippets, stars}'
Step 2 — fetch docs. Pass the resolved ID and a semantic --topic:
c7search docs "<library-id>" --topic "<topic>" --tokens <budget>
Two-step lookup (Next.js app-router middleware):
LIB=$(c7search resolve --library-name "next.js" "app router middleware" --json --limit 1 \
| jq -r '.[0].id')
c7search docs "$LIB" --topic "middleware" --tokens 4000
Filter by language before ingesting (only TypeScript snippets):
LIB=$(c7search resolve --library-name "next.js" "server actions" --json --limit 1 \
| jq -r '.[0].id')
c7search docs "$LIB" --topic "server actions" --tokens 6000 --json \
| jq '.snippets[] | select(.codeLanguage | test("typescript|ts"))'
Default markdown is what Context7 token-optimizes for LLMs (Source:
headers + fenced code blocks + --- separators). Feed it straight into
context. Use --json only when you need to filter or sort snippets by
a structured field (codeLanguage, codeTitle) before ingesting — it
adds ~10–15% token overhead from the JSON envelope.
--tokens)| Goal | Budget |
|---|---|
| One specific API call (signature, parameters) | 1500 |
| Walkthrough of a feature (default) | 4000–6000 (default 5000) |
| Whole-library reference | 10000+ (anonymous tier may rate-limit) |
$?| Code | Meaning |
|---|---|
0 | OK |
1 | No results (search returned empty) |
2 | API error (5xx, 429, 404) |
3 | Auth error (401/403) — check CONTEXT7_API_KEY |
4 | Usage / bad request |
if ! out=$(c7search docs "$LIB" --topic "$TOPIC" 2>&1); then
case $? in
1) echo "no docs found";;
2) echo "API problem; retry later";;
3) echo "check CONTEXT7_API_KEY";;
*) echo "unknown error: $out";;
esac
fi
--no-cache only when you need
fresh data (e.g. a release you just published)./owner/repo or owner/repo. Leading slashes,
whitespace, and case are normalized.--debug is safe. Bearer tokens and URL credentials are scrubbed
before any log line reaches stderr.The c7search CLI is my own open-source tool (MIT): https://github.com/kevin-burns/c7search. It queries Context7's public documentation API, a third-party service — this skill and the CLI are not affiliated with or endorsed by Context7, and Context7's API terms and rate limits apply.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub kevin-burns/claude-skills --plugin claude-skills32 skills in this plugin
/adr-authorWrite or amend an architecture decision record (ADR) that a team will want to read and that names exactly what it decides: the modules, functions, paths or settings, and what must or must never happen. Asks whether the decision deserves a record, interviews briefly, follows the repo's existing ADR format and numbering, shows the draft before writing, and self-checks it (hedged decisions, names missing from the code, status and supersede links). Also amends or supersedes a record when the code turned out to be right. Use for "write an ADR", "record this decision", "document the architecture decision we made", "turn this into a decision record", "supersede ADR 4", "our ADR no longer matches the code", or a one-off exception to an existing ADR. Does not judge code against records, and does not make the decision. General prose and docs are clear-and-human./azadvertizerOffline lookups over AzAdvertizer's published Azure data: Policy, policy initiative and RBAC role metadata with cross-references found nowhere else in one place (which roles a policy uses, which initiatives include a policy, which policies use a role), plus Entra ID roles, API permissions (Microsoft Graph and other first-party apps) and resource types with their latest API versions. Use whenever accurate current facts about an Azure built-in policy, initiative, RBAC or Entra role, Graph permission or resource API version are needed for Azure IaC, governance or landing-zone work./business-planBuild an honest, investor-credible business plan from a founder's idea: full plan, one-page summary and a short investor pitch, as editable Markdown. Use to plan, pitch or pressure-test a venture: "write a business plan for my idea", "is this worth building", size a market, competitor teardown, go-to-market, 3-year financials, "should I raise". Cites sources, computes from the user's assumptions, never invents a number, and ends with a go / no-go / reshape verdict./clear-and-humanWrite, review or rewrite prose so it reads like a specific human wrote it, not an AI: docs, READMEs, runbooks, ADRs, PR and commit messages, blog and LinkedIn posts, emails, Slack, video scripts. Use to humanize or de-slop AI text, check whether a draft "sounds like AI", tighten it, or match the user's voice. Neutral and factual; never invents specifics. Persuasive marketing copy is hook-and-human; a CV or LinkedIn profile is cv-and-human./convert-to-webpConvert images (PNG, JPG, etc.) to WebP format. Use when saving screenshots or images for web projects, Hugo sites, or any context where WebP is preferred./cv-and-humanTailor, rewrite or ATS-proof a CV/resume, or a LinkedIn profile, for applicant tracking systems and LinkedIn recruiter search: keyword/gap analysis against a job description, why a CV fails automated screening, parse checks, de-slopping. Also the LinkedIn profile itself: "rewrite my LinkedIn headline", About section, experience bullets, personal brand positioning, "make my LinkedIn match my CV". Needs something to DO to the document. No target role, an open question about what they are credible for: cv-evidence-base. A LinkedIn post: hook-and-human or clear-and-human.Other plugins' skills for the same job