agentleFS
Masih-0x3Masih-0x3/agent-skills/skills/context7-mcp/SKILL.md

context7-mcp

Skill0 starsChanged 3 months agoMITView on GitHub

Use when the task depends on current documentation for a library, framework, SDK, API, CLI tool, cloud service, setup/configuration, version migration, or platform-specific behavior. Prefer Context7 when available; fall back to official docs or source repos when Context7 is unavailable or weak.

  • Reads credentials

34 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use find-docs, python-pro and 9 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.
  • aaronbrethorstSkill

    find-docs

    Retrieves up-to-date documentation, API references, and code examples for any developer technology. Use this skill whenever the user asks about a specific library, framework, SDK, CLI tool, or cloud service -- even for well-known ones like React, Next.js, Prisma, Express, Tailwind, Django, or Spring Boot. Your training data may not reflect recent API changes or version updates.

    Also in 3 projects that use this

  • lsyamsiarSkill

    python-pro

    Use when building Python 3.11+ applications requiring type safety, async programming, or robust error handling. Generates type-annotated Python code, configures mypy in strict mode, writes pytest test suites with fixtures and mocking, and validates code with black and ruff. Invoke for type hints, async/await patterns, dataclasses, dependency injection, logging configuration, and structured error handling.

    Also in 3 projects that use this

  • seikaikyoSkill

    doubt-driven-development

    對非平凡決策啟動新鮮 context 對抗審查(找碴不背書),在修正還便宜的時候抓出錯誤方向。適用:高風險改動(production、資安敏感邏輯、不可逆操作)、不熟的程式碼、要宣稱「這樣是安全的 / 可行的」之前。機械性操作與一行修改不適用。

    Also in 3 projects that use this

  • HK-hubSkill

    code-simplification

    Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity.

    Also in 3 projects that use this

  • AnthropicSkill

    design-system

    Audit, document, or extend your design system. Use when checking for naming inconsistencies or hardcoded values across components, writing documentation for a component's variants, states, and accessibility notes, or designing a new pattern that fits the existing system.

    Also in 4 projects that use this

  • OpenAISkill

    writing-plans

    Use when you have a spec or requirements for a multi-step task, before touching code

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 34 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use Context7 for current technical documentation instead of relying on model memory when the answer depends on a library, framework, SDK, …

    line 8
  2. Distinctive:

    Use this skill when the user:

    line 14
  3. Distinctive:

    Never send the following to Context7:

    line 32
  4. Distinctive:

    Use no more than three Context7 documentation queries for one user question before falling back to the best available source.

    line 54
  5. Distinctive:

    If Context7 is unavailable, ambiguous, or low quality, use official docs, source repositories, standards, or runtime evidence instead.

    line 55
  6. Distinctive:

    Use the Context7 MCP tools in this order:

    line 64
  7. Distinctive:

    When multiple good matches exist, prefer the official or primary project.

    line 73
  8. Distinctive:

    When this skill materially affects the answer or implementation, include a compact note:

    line 77
  9. Distinctive:

    Do not over-quote documentation.

    line 83

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

Context7 MCP

Use Context7 for current technical documentation instead of relying on model memory when the answer depends on a library, framework, SDK, API, CLI, cloud service, platform setup, configuration option, version migration, or code example whose behavior may have changed.

This is an on-demand documentation router. Do not load docs for general programming concepts, repo-specific business logic, ordinary code review, or refactors where local source truth is enough.

When To Use

Use this skill when the user:

  • Asks setup or configuration questions, such as "How do I configure Next.js middleware?"
  • Requests code that depends on a library API, such as a Prisma query or Supabase auth flow.
  • Needs API, CLI, SDK, framework, or cloud-provider reference behavior.
  • Mentions a version-specific framework or package, such as React 19, Next.js 16, Tailwind 4, Prisma 6, or Wrangler.
  • Hits an error that may be caused by changed platform behavior, deprecated options, migration rules, or current docs.
  • Asks for current best practice for a specific package, service, or platform.

Skip this skill when:

  • The question is pure business logic, architecture, refactoring, testing strategy, or general programming.
  • The needed truth is in local source files, generated types, schemas, tests, logs, database rows, or runtime output.
  • The only available query would require sending secrets, private customer data, proprietary source blobs, or long private snippets.
  • The package behavior is already pinned and verified by local docs/tests, and external docs would not change the answer.

Privacy Boundary

Never send the following to Context7:

  • API keys, tokens, passwords, cookies, headers, private URLs, account IDs, or credential names.
  • Customer data, patient data, payment data, private emails, or direct personal identifiers.
  • Proprietary source files, long private snippets, private prompts, or internal documents.
  • .env contents, config secrets, auth headers, or database connection strings.

Sanitize the question. Send only the package/platform name, version when relevant, public error shape, and the narrow technical question.

Workflow

  1. Identify the library, SDK, API, CLI, framework, or cloud service.
  2. Detect the version from local source when it is cheap and relevant:
    • JavaScript/TypeScript: package.json, lockfiles, framework config.
    • Python: pyproject.toml, requirements.txt, lockfiles.
    • Go: go.mod.
    • Rust: Cargo.toml.
    • Ruby: Gemfile.
    • Platform CLIs: config files, lockfiles, package manager metadata, or local --version output when safe.
  3. Resolve the Context7 library ID unless the user already supplied a valid /org/project or /org/project/version ID.
  4. Select the best match by exact name, official/high-reputation source, version match, snippet coverage, and relevance to the task.
  5. Query docs with a narrow task-specific question.
  6. Use no more than three Context7 documentation queries for one user question before falling back to the best available source.
  7. If Context7 is unavailable, ambiguous, or low quality, use official docs, source repositories, standards, or runtime evidence instead.
  8. In the answer or implementation notes, distinguish:
    • verified from current docs
    • verified from local source/runtime
    • inferred
    • not verified

Tool Contract

Use the Context7 MCP tools in this order:

  1. resolve_library_id
    • libraryName: official package/platform name when known.
    • query: the sanitized user question and relevant version/context.
  2. query_docs
    • libraryId: selected Context7-compatible ID.
    • query: a narrow question that avoids secrets and private code.

When multiple good matches exist, prefer the official or primary project. If the version the user asks about appears in the result list, use the version-specific ID.

Closeout

When this skill materially affects the answer or implementation, include a compact note:

Docs: Context7 <libraryId> used for <question>; version <version or unknown>; fallback <none or source>.

Do not over-quote documentation. Summarize the relevant rule and cite the source/tool result when the answer depends on it.

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.