agentleFS
glrodaszglrodasz/dotfiles/skills/context7-mcp/SKILL.md

context7-mcp

Skill20 starsChanged 14 days agoMITView on GitHub

Fetch current library and framework documentation through Context7 instead of answering from training data. Use when the user asks about libraries, frameworks, API references, or needs code examples — setup questions ("How do I configure Next.js middleware?"), code generation involving libraries ("Write a Prisma query for…"), API references ("What are the Supabase auth methods?"), or mentions of specific frameworks like React, Vue, Next.js, Svelte, Express, Tailwind, Prisma, Supabase. Not for refactoring, writing scripts from scratch, debugging business logic, code review, or general programming concepts.

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

Adopted by

Most recently taken up by

Used with

Projects with it also use find-docs, find-skills and 10 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

  • VercelSkill

    find-skills

    Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

    Also in 7 projects that use this

  • GoogleSkill

    improve-codebase-architecture

    Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

    Also in 6 projects that use this

  • GoogleSkill

    diagnosing-bugs

    Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.

    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

  • VercelSkill

    web-design-guidelines

    Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

    Also in 4 projects that use this

  • +3 more from google

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 31 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before sending, confirm the answer rests on the fetched docs, not on memory: every API name or option mentioned appears in the query-docs …

    line 51
  2. Distinctive:

    If resolution or the query returned nothing useful, say so explicitly rather than answering from training data as if it were current.

    line 54

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

Answer from fetched docs. If Context7 returns nothing useful, say so rather than silently falling back to memory. Every query is sent to an external API, so it never carries the user's pasted code, logs, internal URLs, secrets, or personal data.

Phase 1 — Resolve the library ID

Call context7:resolve-library-id with:

  • libraryName: the library name extracted from the user's question
  • query: what to look up in the docs, rewritten in your own words (improves relevance ranking), e.g. Next.js middleware redirect based on auth cookie, not the user's message with its pasted code

Phase 2 — Select the best match

From the resolution results, choose per the tool's own selection guidance. If the user mentioned a version (e.g. "React 19"), prefer version-specific IDs.

Phase 3 — Fetch the documentation

Call context7:query-docs with:

  • libraryId: the selected Context7 library ID (e.g. /vercel/next.js)
  • query: one topic per call, rewritten the same way as in Phase 1. When the question spans several topics, make one call per topic (at most 3 per question), unless it is about how the topics interact.
  • language: the language the user writes in (e.g. TypeScript), when known

Phase 4 — Draft the answer

Draft the answer from the fetched docs: include their code examples and cite the resolved version.

Phase 5 — Verify

Before sending, confirm the answer rests on the fetched docs, not on memory: every API name or option mentioned appears in the query-docs result, and the version cited is the one that was resolved. Re-query or remove any claim the docs don't support, then recheck. If resolution or the query returned nothing useful, say so explicitly rather than answering from training data as if it were current.

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.