agentleFS
rakaarwakyrakaarwaky/agents-arwaky/skills/research-study/context7-cli/SKILL.md

context7-cli

Skill0 starsChanged 3 days agoMITView on GitHub

Operates the ctx7 CLI and Context7 MCP registry — resolve a library ID, then query its docs (doc lookup / find-docs), skills install/search/suggest/list/remove/generate, and MCP setup. Use when mentioning ctx7 or context7, looking up API docs or library docs for a library or framework, finding docs via ctx7, installing skills, or configuring Context7 MCP for an editor.

  • Reads credentials
  • Installs packages

8 other projects use a version of this, 7 of them edited.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

ctx7 CLI

The Context7 CLI does three things: fetches up-to-date library documentation, manages AI coding skills, and sets up Context7 MCP for your editor. Doc lookup (the resolve-then-query workflow over MCP tools or the CLI) is covered in references/find-docs.md; this skill covers the tool itself.

Global rules

  • Keep the CLI current. npm install -g ctx7@latest (or npx ctx7@latest <command> without installing) before running commands.
  • Library IDs need the / prefix — /facebook/react, not facebook/react. Always run ctx7 library to resolve an ID before calling ctx7 docs; ctx7 docs react "hooks" fails without a valid ID.
  • Skills repo format is /owner/repo — e.g. ctx7 skills install /anthropics/skills.
  • Login requirements. Most commands work without login. skills generate always requires it; ctx7 setup requires it unless --api-key or --oauth is passed. Set CONTEXT7_API_KEY to skip interactive login entirely.
  • Authentication. ctx7 login (browser OAuth), ctx7 login --no-browser (prints URL), ctx7 logout (clear tokens), ctx7 whoami (current status).

Routing

StepReferencePurpose
Doc lookup workflowreferences/find-docs.mdResolve a library ID, then query its docs — two transports (MCP tools or CLI).
ctx7 library / ctx7 docsreferences/docs.mdCommand reference. Use when writing code, verifying API signatures, or when training data may be outdated.
Skills managementreferences/skills.mdctx7 skills install /owner/repo, search <keywords>, suggest, list, remove <name>, generate (login required).
MCP setupreferences/setup.mdctx7 setup — configure Context7 MCP for Claude Code / Cursor / OpenCode.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.