c7

Fetch library documentation from Context7 and cache it locally via a Bash CLI.

11|2|Updated Oct 1, 2025
One-click install
npx skills add https://github.com/antoniocascais/claude-code-toolkit --skill c7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: c7
Source: https://github.com/antoniocascais/claude-code-toolkit/tree/main/skills/c7
Command: npx skills add https://github.com/antoniocascais/claude-code-toolkit --skill c7

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires curl, jq, and includes scripts (resource) components.

What problem does it solve?

This Skill provides a lightweight tool to fetch up-to-date library documentation from Context7 and save results to a local cache for quick access during development.

Core Features & Use Cases

  • Fetch documentation for a specific library and query to obtain current API references and code examples.
  • List cached documentation to avoid redundant fetch operations.
  • Force re-fetch to bypass cache when documentation updates are required or for troubleshooting.

Quick Start

Use the c7 CLI to fetch docs for a library, for example: scripts/c7.sh nextjs "app router middleware" List cached docs with: scripts/c7.sh --list Force a fresh fetch with: scripts/c7.sh --force nextjs "app router middleware"

Frequently Asked Questions about c7

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch up-to-date library documentation for API references and code examples?

You can fetch up-to-date library documentation by running a Bash CLI script that queries Context7 and saves the API references and code examples to a local cache in /tmp/context7 for quick access during development.

What dependencies do I need to run a Bash CLI script that fetches library docs?

You need curl and jq installed in your environment to execute the Bash CLI script that fetches library docs. These dependencies handle the HTTP requests and process the JSON data returned from the Context7 documentation service.

How can I list cached library documentation to avoid redundant fetch operations?

You can list cached library documentation by running the CLI script with the --list option. This displays previously fetched docs stored in the local cache, preventing redundant network requests to Context7 for existing API references.

When should I force a re-fetch of library documentation instead of using the cache?

You should force a re-fetch of library documentation when you require updated API references or are troubleshooting. Running the CLI with the --force option bypasses the local cache and retrieves fresh SDK docs directly from Context7.

Do I need an internet connection to access cached SDK docs after the initial fetch?

You do not need an active internet connection to access cached SDK docs after the initial fetch. The CLI script saves the retrieved library documentation locally to /tmp/context7, allowing offline access to previously downloaded API references and code examples.

Can I use this CLI tool to fetch documentation for any development library?

Yes, you can use the CLI tool to fetch documentation for any library supported by Context7 across development tasks. It accepts a library name and a specific query string to retrieve targeted API references, code examples, or SDK docs on demand.