Research & Context

/context7

Use when needing current API references, function signatures, or library usage patterns. Looks up documentation via Context7 API. Covers docs lookup, library documentation, API reference, how to use library. NOT for: web search (use WebSearch), project-specific code (read the codebase).

$ golems-cli skills install context7
Good
100% best pass rate
9 assertions
3 evals
1 workflow

Updated 2 weeks ago

Look up current library documentation using Context7 API.

Context7 provides up-to-date documentation and code examples for programming libraries. Prefer the Context7 MCP tools (mcp__context7__*) when available — they're simpler. Use this skill as a fallback when the MCP is unavailable or for scripted/batch lookups.

Quick Reference

ActionScriptExample
Search for libraryscripts/resolve-library.sh./resolve-library.sh react
Query documentationscripts/query-docs.sh./query-docs.sh /vercel/next.js 'app router'
Show usagescripts/default.shAuto-runs when skill loaded

Usage

1. Find a Library ID

First, search for the library to get its Context7 ID:

./scripts/resolve-library.sh react

Output example:

## Library Search Results
 
| Name | ID | Snippets | Score |
|------|-----|----------|-------|
| React | /facebook/react | 1250 | 95 |
| React Native | /facebook/react-native | 890 | 92 |

2. Query Documentation

Then use the library ID to query specific documentation:

./scripts/query-docs.sh /vercel/next.js 'how to use app router'

Output: Markdown-formatted documentation snippets with code examples.

Workflows

/context7:lookup