skills/context7/SKILL.md
Library documentation lookup with tokenization and reranking. Use when user mentions external libraries, frameworks, or packages (e.g., how do I use React hooks, FastAPI authentication, pandas DataFrame). Triggers on library names, package imports, framework questions. Returns top 5 most relevant documentation chunks.
npx skillsauth add tesseract-ripple/claude-research-config context7Install this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Fetch up-to-date documentation for any library with intelligent chunking and reranking.
First, resolve the library name to a Context7-compatible ID:
mcp__context7__resolve-library-id({ libraryName: "<package name>" })
Example: libraryName: "react" → returns /facebook/react
Fetch docs with topic focus and token budget:
mcp__context7__get-library-docs({
context7CompatibleLibraryID: "<library_id>",
topic: "<specific topic>",
tokens: 5000
})
After receiving documentation, apply this mental reranking:
| Library Type | Example Query | Topic | |-------------|---------------|-------| | React/Vue/Angular | "React hooks for state" | "hooks" or "useState" | | FastAPI/Flask/Django | "FastAPI authentication" | "auth" or "security" | | Pandas/NumPy | "pandas merge dataframes" | "merge" or "join" | | SQLAlchemy/Prisma | "SQLAlchemy relationships" | "relationships" | | Testing libs | "pytest fixtures" | "fixtures" |
For programmatic reranking, use the wrapper script:
# Process context7 output and rerank
python ~/.config/context7/context7_wrapper.py process \
--query "authentication middleware" \
--top 5 \
--input docs.md
If library not found:
1. resolve-library-id({ libraryName: "react" })
2. get-library-docs({
context7CompatibleLibraryID: "/facebook/react",
topic: "hooks",
tokens: 5000
})
1. resolve-library-id({ libraryName: "fastapi" })
2. get-library-docs({
context7CompatibleLibraryID: "/tiangolo/fastapi",
topic: "security oauth2",
tokens: 5000
})
documentation
Draft or refine a LaTeX section for a research paper, note, or proof writeup.
development
Computationally verify a mathematical identity, construction, or cryptographic property using Python.
testing
Cross-reference all citations in .tex files against bibliography entries. Find missing entries, unused references, and quality issues.
research
Survey a research topic — find approaches, compare tradeoffs, summarize key papers and results.