feat: add context7-cache skill — local documentation cache#685
Open
m2015agg wants to merge 2 commits intoanthropics:mainfrom
Open
feat: add context7-cache skill — local documentation cache#685m2015agg wants to merge 2 commits intoanthropics:mainfrom
m2015agg wants to merge 2 commits intoanthropics:mainfrom
Conversation
Caches Context7 library docs in SQLite+FTS5, serving via CLI instead of MCP round-trips. Auto-detects project dependencies, pre-caches docs, and provides FTS5 search across all cached libraries. Benchmarked with Anthropic SkillsBench (LLM grader, Sonnet 4.6): - CLI cache: 93% pass rate (± 10%) in 17.9s - MCP server: 87% pass rate (± 12%) in 31.9s - CLI is 1.8x faster, no hallucinations observed - MCP fabricated a non-existent FastAPI scope parameter in 3/3 runs 3 evals: FastAPI dependency injection, Celery+Redis config, Supabase RLS Each eval: 3 runs per config, LLM-graded assertions with evidence Includes: SKILL.md, benchmark.json, benchmark.md, setup check script. Requires: npm install -g @m2015agg/context7-skill Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Remove non-standard fields (compatibility, metadata, allowed-tools) - Match format of existing skills (claude-api, webapp-testing) - Add LICENSE.txt Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
fc52e1b to
62f9dd3
Compare
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
context7-cache— a skill that caches Context7 library documentation locally in SQLite+FTS5, serving docs via CLI instead of MCP round-trips.@m2015agg/context7-skill(npm | GitHub)package.json,requirements.txt,pyproject.toml, etc.Anthropic SkillsBench Results
Benchmarked using the skill-creator framework with LLM grader (Sonnet 4.6). 3 evals × 3 runs per config.
scopeparam (3/3 runs)Per-eval breakdown
scopeparameter)Key finding
The MCP server returned Context7 docs that included a fabricated
scopeparameter on FastAPI'sDepends()— caught by the LLM grader in all 3 runs. The CLI cache served pre-verified cached docs without this hallucination.Files added
skills/context7-cache/SKILL.md— 131 lines, follows specskills/context7-cache/references/benchmark.json— full benchmark dataskills/context7-cache/references/benchmark.md— human-readable summaryskills/context7-cache/scripts/check-setup.sh— setup verificationTest plan
namefield🤖 Generated with Claude Code