agentleFS
jalbarrangjalbarrang/skills/context7/SKILL.md

context7

Skill2 starsChanged 3 months agoMITView on GitHub

Fetch current, version-accurate third-party library docs from Context7 before coding against any library API — treat trained-in API knowledge as stale. Prefer docs.mjs with --name (auto-resolves to an exact Context7 ID); use resolve.mjs only when the match is ambiguous. Also retrieves raw cached documents via docRef. Use when importing, configuring, or calling a third-party library, or when the user mentions Context7, library docs, or API lookup.

  • Reads credentials

28 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use superpowers, mermaid-diagrams 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.
  • HK-hubSkill

    superpowers

    A complete software development methodology and skill composition system, ported from obra/superpowers. Provides structured, repeatable workflow: brainstorming, design, planning, TDD, subagent-driven dev, code review, finishing branch. Use for coding, building projects, refactoring, bug fixing, or any programming tasks.

    Also in 4 projects that use this

  • LangChainSkill

    mermaid-diagrams

    Embed Mermaid diagrams in generated wiki pages. Use whenever documenting a runtime or request flow, a call sequence, a state machine or lifecycle, a data model or entity relationships, or non-trivial control flow, since these are clearer as a diagram than as prose. Also use when an update run touches a page that already contains a mermaid fence, or a page that contains a text fence a previous run degraded.

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

  • MicrosoftSkill

    mcp-builder

    Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

    Also in 5 projects that use this

  • VercelSkill

    vercel-react-best-practices

    React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

    Also in 4 projects that use this

  • StrayDragonSkill

    ui-ux-pro-max

    UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 24 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    Run from any cwd as node <skill-dir>/scripts/<name>.mjs ….

    line 32
  2. Very specific:

    Call docs.mjs --name <lib> --query "..." before writing code against a third-party API.

    line 44
  3. Very specific:

    If auto-resolve is ambiguous, run resolve.mjs, pick an ID, then docs.mjs --id </org/lib>.

    line 45
  4. Very specific:

    When the curated excerpt omits detail, pass the printed docRef to raw.mjs.

    line 46

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

Pull live library documentation from Context7 instead of relying on model memory. Scripts are Node ≥20 ESM, dependency-free.

Setup

  1. Get an API key from context7.com.
  2. Export it (preferred):
export CONTEXT7_API_KEY=ctx7sk-...
  1. Or set apiKey in ~/.agents/context7.json. Optional TTL overrides:
{
  "apiKey": "ctx7sk-...",
  "cache": { "resolveTtlHours": 168, "docsTtlHours": 24 }
}

Cache lives under ~/.agents/context7/cache/.

Scripts

Run from any cwd as node <skill-dir>/scripts/<name>.mjs ….

ScriptUsage
docs.mjsnode scripts/docs.mjs --name <lib> [--query <q>] [--topic <t>] [--page <n>] or --id </org/lib>
resolve.mjsnode scripts/resolve.mjs <libraryName> [--query <intent>]
raw.mjsnode scripts/raw.mjs --doc-ref <ref>

Deep docs: reference/docs.md, reference/resolve.md, reference/raw.md.

Workflow

  1. Call docs.mjs --name <lib> --query "..." before writing code against a third-party API.
  2. If auto-resolve is ambiguous, run resolve.mjs, pick an ID, then docs.mjs --id </org/lib>.
  3. When the curated excerpt omits detail, pass the printed docRef to raw.mjs.
  4. A (cache hit) marker on docs.mjs means the local cache served a fresh entry (default docs TTL 24h).

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.