context7
Installation
SKILL.md
Context7
Use Context7 for version-specific docs and code examples. Prefer direct HTTP via curl
Required shell helper
Source the bash helper from this skill once per shell:
source "${SKILLS_DIR:-skills}/context7/scripts/context7.sh"
If SKILLS_DIR is unavailable, source the same file from your local skills/ checkout.
Then use context7 <subcommand> everywhere below.
Credential check policy: do not stop at echo $CONTEXT7_API_KEY in the parent shell. Always run the documented helper entrypoint first; it auto-loads a skill-local .env using the lookup order below. The API key is optional for basic usage, so only report a credential problem if the real command still fails or the user specifically needs higher-rate access.