graph-skills-retriever
Skill217 starsChanged 8 months agoMITView on GitHub
Retrieve a bounded bundle of relevant external skills from a prebuilt Graph of Skills workspace. Use when the task may need specialized skills, scripts, or references that are not already obvious from current context, especially in containerized eval environments that mount a prebuilt GoS graph.
In this repository2 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- vector-skills-retrieverSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. About 0 are common, 13 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Use this skill instead of manually browsing a large skill library.
- Very specific: line 25
If that wiring is missing, read references/container-layout.md.
- Distinctive: line 40
Keep it short, but make it specific.
- Distinctive: line 75
Start with a short task-level query.
- Distinctive: line 76
Read the returned bundle carefully and check the retrieval status.
- Very specific: line 77
If the result says Retrieval Status: NO_SKILL_HIT, explicitly state that no relevant skill was retrieved and continue on a no-skill path.
- Very specific: line 78
If the result says Retrieval Status: SKILL_HIT, inspect the task requirements, tests, and verifier first.
- Very specific: line 79
Use the exact Source: paths returned by retrieval.
- Very specific: line 80
Follow the retrieved skill instructions and inspect the referenced Source: paths when you need scripts or references from a specific skill.
- Distinctive: line 81
Use the skill bundle to narrow the solution space.
- Distinctive: line 86
Prefer 1-2 targeted retrieval calls over scanning the whole library.
- Distinctive: line 87
Keep the query focused on the current task or subproblem, not the whole conversation history.
- Distinctive: line 91
Do not include benchmark names, generic filler, or conversation meta-text unless they are truly task-relevant.
- Very specific: line 92
If the result is too broad, narrow the query and reduce --top-n.
- Distinctive: line 93
If the result is empty, retry with simpler keywords before giving up.
- Distinctive: line 94
If no skill is retrieved after retrying, say so explicitly and solve without pretending a skill was used.
- Distinctive: line 95
After a skill hit, take the shortest path to verifier pass and satisfy only the verifier's minimum requirement first.
- Very specific: line 96
Use the exact Source: paths already returned before searching elsewhere.
- Distinctive: line 97
Do not add extra features, side outputs, UI panels, or refactors unless the task explicitly requires them.
- Distinctive: line 98
Treat retrieved skills as a constraint on implementation choices, not permission to explore more branches.
- Very specific: line 99
Use --json only when you need structured fields like scores or edge evidence.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Purpose
Use this skill instead of manually browsing a large skill library.
It assumes the environment already provides:
- the
graphskills-queryCLI - a GoS workspace or a prebuilt workspace configured through
GOS_WORKING_DIRand optionallyGOS_PREBUILT_WORKING_DIR
If that wiring is missing, read references/container-layout.md.
Retrieve Relevant Skills
Construct the query yourself. Do not rely on the retrieval system to infer missing task structure for you.
A good query should usually include only the retrieval-critical fields that are actually known:
- the concrete goal
- the main artifact or file format
- the key operation or algorithm
- the required library, API, protocol, or tool name if known
- the verifier-critical constraint or invariant
- the task object being edited, parsed, generated, optimized, or validated
Keep it short, but make it specific. Prefer a compact noun/verb phrase over a long paragraph.
Good patterns:
update embedded xlsx in pptx and preserve formulas
parallel tfidf indexing with processpoolexecutor deterministic ranking
civ6 district adjacency exact calculator for verifier
parse branching dialogue script into graph exportBad patterns:
please solve this task for me
I need help with a benchmark task
fix the project and make everything workRun:
graphskills-query "short specific query with goal + artifact + operation + constraint"Useful flags:
graphskills-query "debug spring boot jakarta migration build errors" --top-n 5 --seed-top-k 4 --max-context-chars 9000
graphskills-query "extract text from receipts into xlsx" --json
graphskills-query "review paper references and improve the draft" --workspace /opt/graphskills/runtimeHow To Use The Results
- Start with a short task-level query.
- Read the returned bundle carefully and check the retrieval status.
- If the result says
Retrieval Status: NO_SKILL_HIT, explicitly state that no relevant skill was retrieved and continue on a no-skill path. Do not imply that you used a retrieved skill. - If the result says
Retrieval Status: SKILL_HIT, inspect the task requirements, tests, and verifier first. Write down the minimum acceptance requirements before implementing. - Use the exact
Source:paths returned by retrieval. Do not reconstruct paths from the skill name or scan the whole skill library if aSource:path is already available. - Follow the retrieved skill instructions and inspect the referenced
Source:paths when you need scripts or references from a specific skill. - Use the skill bundle to narrow the solution space. Prefer the shortest path to verifier pass, and prefer adapting an existing script or interface over inventing a broader replacement.
- Re-query with a narrower subproblem if the task shifts.
Guidance
- Prefer 1-2 targeted retrieval calls over scanning the whole library.
- Keep the query focused on the current task or subproblem, not the whole conversation history.
- Query content priority:
goal > artifact/format > operation/API > verifier constraint. - Include filenames, formats, protocols, or library names when they are part of the task signal.
- Include exact invariants when they matter, e.g.
preserve formulas,deterministic ranking,exact total,match verifier. - Do not include benchmark names, generic filler, or conversation meta-text unless they are truly task-relevant.
- If the result is too broad, narrow the query and reduce
--top-n. - If the result is empty, retry with simpler keywords before giving up.
- If no skill is retrieved after retrying, say so explicitly and solve without pretending a skill was used.
- After a skill hit, take the shortest path to verifier pass and satisfy only the verifier's minimum requirement first.
- Use the exact
Source:paths already returned before searching elsewhere. - Do not add extra features, side outputs, UI panels, or refactors unless the task explicitly requires them.
- Treat retrieved skills as a constraint on implementation choices, not permission to explore more branches.
- Use
--jsononly when you need structured fields like scores or edge evidence; plain text is usually enough.
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.

