context7-clean
Skill2 starsChanged 7 months agoMITView on GitHub
Look up technical documents from Context7 using curl native, key taken from environment variable. Used when you need to find libraryId, get docs by query, or browse the docs index llms.txt.
- Reads credentials
In this repository47 other files it gives its agents.
- brainstormingSkill
- claude-code-termux-runbookSkill
- cli-patcherSkill
- code-review-workflowSkill
- commit-commandsSkill
- consulting-analysisSkill
- data-analysisSkill
- deep-researchSkill
- edit-tool-compat-guardSkill
- env-managerSkill
- executing-plansSkill
- feature-devSkill
- firecrawlSkill
- frontend-designSkill
- gateway-device-pairingSkill
- githubSkill
- glibc-prebuilt-bundleSkill
- gogSkill
- image-generationSkill
- memory-setupSkill
- module-auditorSkill
- module-scaffoldSkill
- openclaw-config-guardianSkill
- openclaw-ollama-runtime-kbSkill
- plugin-cutover-guardianSkill
- plugin-runtime-guardianSkill
- python-env-managerSkill
- self-improving-agentSkill
- simplify-and-hardenSkill
- skill-benchSkill
- skill-creatorSkill
- skill-unificationSkill
- skill-vetterSkill
- socratic-groundingSkill
- subagent-orchestrationSkill
- systematic-debuggingSkill
- tailscale-oauth-bridgeSkill
- termux-packagerSkill
- termux-runnerSkill
- test-driven-developmentSkill
- vercel-deploy-claimableSkill
- verification-before-completionSkill
- video-generationSkill
- workspace-cleanupSkill
- writing-plansSkill
- yt-dlp-ingest-firstSkill
- zero-downtime-cutoverSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 4 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
no dependency on separate plugin runtime,
- Very specific: line 16
Only use shell scripts in scripts/.
- Distinctive: line 19
Use skill when the user requests one of the following tasks:
- Very specific: line 22
Read the docs index from llms.txt before deep querying.
- Very specific: line 53
If the user does not have libraryId, run scripts/ctx7_search.sh first.
- Very specific: line 55
Run scripts/ctx7_get_docs.sh <libraryId> <query> to get the content.
- Very specific: line 56
If you need to expand the docs range, run scripts/ctx7_explore_index.sh.
- Distinctive: line 96
Do not print the full token in log/chat.
- Very specific: line 97
Only use HTTPS endpoints context7.com as in reference.
- Distinctive: line 116
Check the results, state validation and next steps.
- Very specific: line 119
If CONTEXT7_API_KEY or equivalent env is missing: report missing secret but do not echo the value.
- Very specific: line 120
If curl returns timeout / TLS / DNS error: retry at least once then report network unavailable and tried endpoint.
- Very specific: line 121
If libraryId resolve is ambiguous or the return document is empty: narrow the query and state what part was verified from the actual …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Context7 Clean
This skill standardizes Context7 queries towards minimal + deterministic:
- no hardcode secrets,
- no dependency on separate plugin runtime,
- Only use shell scripts in
scripts/.
Activation cues
Use skill when the user requests one of the following tasks:
- Find
libraryIdfrom the library name (e.g. react, nextjs). - Get docs/context by
libraryId+query. - Read the docs index from
llms.txtbefore deep querying.
Prerequisites
- There is
curlin PATH. - There is an outbound network to
https://context7.com. - For auth endpoint:
CONTEXT7_API_KEYmust be exported from env (recommended source:/data/adb/openclaw/home/.openclaw/secrets.env).
Indexed Reference Map
- @[SKILL.md#L1-L116] Standard Frontmatter (
name,description). - @[SKILL.md#L10-L116] Context7 Clean.
- @[SKILL.md#L17-L116] Activation cues.
- @[SKILL.md#L23-L116] Prerequisites.
- @[SKILL.md#L28-L116] Indexed sub-skill references (source map).
- @[SKILL.md#L53-L116] Standard operating procedure (SOP).
- @[SKILL.md#L60-L116] Commands.
- @[SKILL.md#L62-L116] 0) load env key (example).
- @[SKILL.md#L65-L116] 1) search library.
- @[SKILL.md#L68-L116] 2) fetch docs by libraryId.
- @[SKILL.md#L71-L116] 3) inspect index.
- @[SKILL.md#L75-L116] Examples.
- @[SKILL.md#L87-L116] Error handling.
- @[SKILL.md#L95-L116] Security constraints.
Supporting files
- @[references/API_REFERENCE.md#L1-L51] Reference document/rulebook for technical decisions.
- @[references/specification.md#L1-L93] Reference document/rulebook for technical decisions.
- @[scripts/ctx7_explore_index.sh#L1-L13] Execution/automation script for skill.
- @[scripts/ctx7_get_docs.sh#L1-L33] Execution/automation script for skill.
- @[scripts/ctx7_search.sh#L1-L32] Execution/automation script for skill.
Standard operating procedure (SOP)
- If the user does not have
libraryId, runscripts/ctx7_search.shfirst. - Select the appropriate
libraryIdfrom the search results. - Run
scripts/ctx7_get_docs.sh <libraryId> <query>to get the content. - If you need to expand the docs range, run
scripts/ctx7_explore_index.sh. - Answer based on real output; If the API fails, report a real error, not a made-up error.
Commands
# 0) load env key (example)
set -a; . /data/adb/openclaw/home/.openclaw/secrets.env; set +a
# 1) search library
scripts/ctx7_search.sh react "hooks"
# 2) fetch docs by libraryId
scripts/ctx7_get_docs.sh /facebook/react "useEffect cleanup"
# 3) inspect index
scripts/ctx7_explore_index.shExamples
Input:
- Task: "Find the latest React hooks docs"
Flow:
scripts/ctx7_search.sh react "hooks"- select
libraryId(eg/facebook/react) scripts/ctx7_get_docs.sh /facebook/react "hooks"
Expected output:
- JSON (search) or text payload (context), used as evidence for the answer.
Error handling
ERROR: CONTEXT7_API_KEY is not set
=> export key from env and run again.curl not found in PATH
=> install/edit PATH before using skill.- HTTP non-200 / empty output
=> retry once with simpler query; If it still fails, report unavailable.
Security constraints
- Absolutely do not commit the key to the skill file.
- Do not print the full token in log/chat.
- Only use HTTPS endpoints
context7.comas in reference.
Trigger Rules
- Positive: Triggers when the user request matches
context7-cleanaccording to description: Look up technical documents from Context7 using native curl, key taken from environment variable. Used when you need to find libraryId, get docs by query, or browse the docs index llms.txt. - Negative: Not enabled for requests outside scope or without the workflow/expertise of this skill.
- Escalation: If there is an external action/network write or sensitive operation, an approval checkpoint must be added before executing.
Output Contract
- Deliverable: target tracking result of
context7-clean; Specify the artifact/path/steps performed (if any). - Validation: reports
PASS/FAILstatus and main checks have been run. - Failure mode: when there is an error, the root cause + proposed fix must be stated.
Scope
- In-scope: tasks that match the skill description: Look up technical documents from Context7 using native curl, key taken from environment variable. Used when you need to find libraryId, get docs by query, or browse the docs index llms.txt.
- Out-of-scope: request outside the domain or against system policy.
SOP
- Determine whether the request is within the scope of the skill or not.
- Execute the skill's main workflow/instructions in a safe order.
- Check the results, state validation and next steps.
Error Handling
- If
CONTEXT7_API_KEYor equivalent env is missing: report missing secret but do not echo the value. - If
curlreturns timeout / TLS / DNS error: retry at least once then report network unavailable and tried endpoint. - If
libraryIdresolve is ambiguous or the return document is empty: narrow the query and state what part was verified from the actual response.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

