agentleFS
bmcszkbmcszk/agent-skills/skills/context7/SKILL.md

context7

Skill1 starsChanged 2 months agoMITView on GitHub

Fetch up-to-date documentation for any library, framework, SDK, API, or CLI tool via Context7 (mcpc). Use when you need current version-accurate docs, code examples, or API references — training data may be outdated. Prefer this over web search for library documentation queries. Keywords: context7, documentation, library docs, API reference, up-to-date docs, version-accurate, code examples.

27 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use agent-browser, copywriting and 6 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.
  • VercelSkill

    agent-browser

    Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

    Also in 4 projects that use this

  • SupabaseSkill

    copywriting

    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 3 projects that use this

  • OpenAISkill

    writing-skills

    Use when creating new skills, editing existing skills, or verifying skills work before deployment

    Also in 3 projects that use this

  • OpenAISkill

    verification-before-completion

    Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always

    Also in 3 projects that use this

  • AWSSkill

    grill-me

    A relentless interview to sharpen a plan or design.

    Also in 4 projects that use this

  • SentrySkill

    commit

    Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 23 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Prefer this over web search for library documentation queries.

    line 16
  2. Very specific:

    Call resolve-library-id before query-docs (unless user provides /org/project format ID)

    line 80
  3. Distinctive:

    Do not call either tool more than 3 times per question

    line 81
  4. Very specific:

    Use proper library names: "Next.js" not "nextjs", "Customer.io" not "customerio"

    line 82
  5. Very specific:

    Write specific queries: "How to set up JWT auth in Express.js" not "auth"

    line 83
  6. Distinctive:

    Never include API keys, passwords, or sensitive data in queries

    line 84

“Common” is measured: kept by at least 6 in 10 of the 23 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

What this does

Fetches current, version-accurate documentation and code examples for any programming library, framework, SDK, API, CLI tool, or cloud service. Use this even for well-known libraries — training data may not reflect recent changes.

Prefer this over web search for library documentation queries.

Setup

mcpc connect ~/.mcpc/mcp.json:context7 @c7

Tools

resolve-library-id

Resolves a package/product name to a Context7-compatible library ID. MUST call this first before query-docs.

Parameters:

ParameterTypeRequiredDescription
querystringyesThe question or task — used to rank results by relevance
libraryNamestringyesOfficial library name with proper punctuation (e.g., "Next.js", "Three.js")

Returns: List of matching libraries with IDs (format: /org/project), descriptions, snippet counts, reputation scores, and version info.

Selection: Pick based on name match, source reputation (High > Medium > Low), snippet coverage, and benchmark score.

query-docs

Retrieves documentation and code examples for a resolved library ID.

Parameters:

ParameterTypeRequiredDescription
libraryIdstringyesContext7 library ID from resolve-library-id (e.g., /vercel/next.js)
querystringyesSpecific question — include relevant details for better results

Workflow

1. mcpc @c7 tools-call resolve-library-id → get library ID
2. mcpc @c7 tools-call query-docs → get documentation

Examples

mcpc @c7 tools-call resolve-library-id libraryName:="React" query:="useEffect cleanup function"
# → libraryId: /facebook/react

mcpc @c7 tools-call query-docs libraryId:="/facebook/react" query:="useEffect cleanup function examples"
# → documentation with code examples

With version

mcpc @c7 tools-call resolve-library-id libraryName:="Next.js" query:="app router"
# → returns versions: /vercel/next.js, /vercel/next.js/v14.3.0-canary.87

mcpc @c7 tools-call query-docs libraryId:="/vercel/next.js/v14.3.0-canary.87" query:="app router setup"

Rules

  • Call resolve-library-id before query-docs (unless user provides /org/project format ID)
  • Do not call either tool more than 3 times per question
  • Use proper library names: "Next.js" not "nextjs", "Customer.io" not "customerio"
  • Write specific queries: "How to set up JWT auth in Express.js" not "auth"
  • Never include API keys, passwords, or sensitive data in queries

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.