Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add melodic-software/claude-code-plugins/plugin install context7Wrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/melodic-software/claude-code-plugins/lookup)<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/lookup"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/lookup/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/lookup"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/lookup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00088 | $0.01674 |
| Opus 5.5 | $0.00035 | $0.00670 |
| Sonnet 5.5 | $0.00018 | $0.00335 |
| Haiku 4.5 | $0.00009 | $0.00167 |
Grade A, and why
lookup scanned grade A with 0 findings 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 yesterday.
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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Arguments. [lookup <library> <query>|update]. A bare argument is lookup, e.g. /context7:lookup react "useEffect cleanup".
Pre-computed context
Installed CLI version: !ctx7 --version 2>/dev/null || echo "not installed (run: npm install -g ctx7@latest)"
Latest release, checked at most once a day: !node "${CLAUDE_PLUGIN_ROOT}/lib/prerequisites.mjs" latest "${CLAUDE_PLUGIN_ROOT}" --for skill:lookup --data-dir "${CLAUDE_PLUGIN_DATA}" || echo "not checked (node did not run)"
When that line names a newer release or a missing CLI, tell the user once. Add the update hint after this colon when one is set, and nothing when it is empty or still a placeholder: ${user_config.cli_update_hint}
MCP availability: if mcp__context7__resolve-library-id and mcp__context7__query-docs are in your tool list, the MCP path is configured.
Actions
| Action | When | Loads |
|---|---|---|
lookup <library> <query> (default) |
A question about a library | context/lookup.md: query writing, result selection, versioned lookups, common mistakes |
update |
CLI upgrade and upstream drift check | context/update.md: merge strategy, what to preserve, baseline refresh |
Verify library behavior against Context7 before stating it; training data lags library releases. CLI install, CONTEXT7_API_KEY auth and MCP wiring belong to /context7:setup.
Lookup
Resolve the name to a Context7 library ID, then fetch docs with that ID:
ctx7 library "<name>" "<question>"
MSYS_NO_PATHCONV=1 ctx7 docs "<libraryId>" "<question>"
Or through the MCP server, when configured: mcp__context7__resolve-library-id, then
mcp__context7__query-docs with the resolved ID.
-
Pointer: for each MCP tool's parameters, fetch Context7: MCP Tools live.
-
Always resolve first; the docs step rejects anything but a resolved ID, unless the user supplied one in
/org/projectform. -
One concept per query; run a separate lookup per independent topic, and at most 3 lookup commands per topic. When Context7 does not cover it, answer from training knowledge and say so.
-
Never put API keys, passwords or other credentials in a query: it is sent to the Context7 backend.
-
Keep the two steps above as the default.
ctx7 search "<question>"is an option for a question that spans several libraries or names none, only whenctx7 --helplists it. When to choose it and where its behavior is read: context/cli.md.
What ships with it
9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- yesterday Changed · -24 tokens per session 46e469943f8c
- 2d ago Changed 4bd1c2cd5735
- 6d ago Changed · +5 lines 9428afe5519e
- 8d ago Changed · +6 lines 5a97fd1c1fc2
- 11d ago Changed 8e2c624a68e8
- 13d ago Changed 28070012e09a
- 17d ago Changed · -8 lines 5afeb4ce0095
- 18d ago Changed · +2 lines 8b747ed842fc
- 26d ago Changed · +6 lines b3d2abea1144
- 1mo ago First seen · 84 lines · 112 tokens per session scan A 525a0dffc932
lookup is a skill published in the GitHub repository melodic-software/claude-code-plugins (33 stars, last pushed today), licensed MIT. It adds 88 tokens to every session and 1,674 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
lookup compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| lookupmelodic-software/claude-code-plugins | Skill | 33 | today | MIT | A | 88 | Claude Code |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 101k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 395k | today | MIT | A | 36 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 330k | 2d ago | MIT | A | 21 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 14k | yesterday | CC0-1.0 | A | 113 | Claude Code, Codex |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | today | MIT | A | 95 | Claude Code |