The context7 skill retrieves current documentation for software libraries, frameworks, and components through the Context7 API, enabling developers to access up-to-date code examples, API references, and usage patterns without relying on potentially outdated training data. It solves the problem of stale documentation by allowing users to search for specific libraries by name and fetch relevant documentation snippets on topics ranging from specific functions to architectural patterns. The skill is designed for developers who need to verify correct library usage, explore API features, or access documentation for libraries that have been updated since the model's training data.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
6
skills.sh installs
11.3K
GitHub stars
301
last updated
Aug 21, 2026

Install

$ npx -y skills add intellectronica/agent-skills --skill context7 --agent claude-code

Installs into .claude/skills of the current project.

Files

Context7

Overview

This skill enables retrieval of current documentation for software libraries and components by querying the Context7 API via curl. Use it instead of relying on potentially outdated training data.

Workflow

Step 1: Search for the Library

To find the Context7 library ID, query the search endpoint:

curl -s "https://context7.com/api/v2/libs/search?libraryName=LIBRARY_NAME&query=TOPIC" | jq '.results[0]'

Parameters:

  • libraryName (required): The library name to search for (e.g., "react", "nextjs", "fastapi", "axios")
  • query (required): A description of the topic for relevance ranking

Response fields:

  • id: Library identifier for the context endpoint (e.g., /websites/react_dev_reference)
  • title: Human-readable library name
  • description: Brief description of the library
  • totalSnippets: Number of documentation snippets available

Step 2: Fetch Documentation

To retrieve documentation, use the library ID from step 1:

curl -s "https://context7.com/api/v2/context?libraryId=LIBRARY_ID&query=TOPIC&type=txt"

Sponsors

Details

Repository
github.com/intellectronica/agent-skills
Categories
Backend & APIs, Documentation, AI & Agent Building

More from intellectronica/agent-skills

All 22
1getcargohq avatarcargo-workspace-managementgetcargohq/cargo-skillsManage workspace users, API tokens, folders, roles, and submit reports to workspace management using the Cargo CLI. Use when the user wants to invite or manage 11.2Kskills.sh installs
2shopify avatarshopify-polaris-app-homeshopify/shopify-ai-toolkitBuild your app's primary user interface embedded in the Shopify admin. If the prompt just mentions `Polaris` and you can't tell based off of the context what AP11Kskills.sh installs
3nomadamas avatarnaver-blog-researchnomadamas/k-skillSearch Naver blogs, read full post content, and download images using only python3 stdlib — no API key required.10.9Kskills.sh installs
4shopify avatarshopify-functionsshopify/shopify-ai-toolkitShopify Functions allow developers to customize the backend logic that powers parts of Shopify. Available APIs: Discount, Cart and Checkout Validation, Cart Tra10.8Kskills.sh installs
5okx avatarokx-cex-marketokx/agent-skillsUse this skill when the user asks for: price of any asset, ticker, order book, candles, OHLCV, funding rate, open interest, OI change scanner, market screener (10.7Kskills.sh installs
6anthropics avatardocumentationanthropics/knowledge-work-pluginsWrite and maintain technical documentation. Trigger with "write docs for", "document this", "create a README", "write a runbook", "onboarding guide", or when th10.6Kskills.sh installs