improving-skills
Skill0 starsChanged 6 months agoMITView on GitHub
Iteratively improves an agent skill's SKILL.md by mutating it, scoring against a fixed composite (trigger accuracy, instruction quality, token efficiency, best-practices compliance), and keeping only changes that raise the score. Use when the user asks to tighten, shrink, or improve a SKILL.md while preserving its intended behavior.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- TomokiIchi/my-claude-skillstheir own version, first seen Feb 15, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- TomokiIchi/my-claude-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- automating-browsersSkill
- generating-ai-ideasSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 2 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Always invoked manually via /improving-skills.
- Very specific: line 37
If <skill-dir>/references/learnings.md exists and carries a "Retro log" of observations from real runs, read it and fold its Status: open …
- Very specific: line 43
Verify the target ships a tests.md sidecar with ≥3 scenarios — the quality dimension scores candidates against those scenarios.
- Very specific: line 47
Score the baseline: Run .claude/skills/improving-skills/scripts/score-skill.sh runs/<run-id>/skill/SKILL.md and record the composite as …
- Very specific: line 52
Value-add check: When the loop stops, run the value-add test (eval/value-add-test.md) once on the final kept candidate — the composite …
- Distinctive: line 61
not: call the skill done. This runs once at loop end, never per-iteration (it spawns ~4N sub-agents).
- Very specific: line 72
Never modify frontmatter field names (name, description) — only their values.
- Very specific: line 74
Never drop below the harness floor: every kept iteration must pass eval/check-skill.sh cleanly (zero FAILs).
- Distinctive: line 81
After the loop stops, emit:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Improving Skills
Adapts the autoresearch loop (modify → verify → keep-or-revert) for one purpose only: improving SKILL.md files. The target is always a single SKILL.md; no prompts, no agents, no generic code optimization.
When to use
The user wants to autonomously improve a specific SKILL.md — phrasings like "tighten this skill", "shrink the skill body without losing capability", "make this skill trigger more reliably", "run autoresearch on the X skill".
Always invoked manually via /improving-skills. The skill has
disable-model-invocation: true so it never auto-fires.
Steps
- Set up the run. Take the target SKILL.md path from the user. Copy
the entire skill directory to
runs/<run-id>/skill/(run-id is a short timestamp like2026-05-13-1542). Initialize a scratch git branch for the run. - Read configuration. Copy templates from this skill's
templates/intoruns/<run-id>/if not already present:program.md— goals and constraints. If<skill-dir>/goal.mdexists (drafted via/goal-improve-skill), seedprogram.mdfrom it instead of starting from the blank template.eval.json— scoring config (paths, weights, iteration cap)test-prompts.md— positive + negative trigger fixtures (drives the trigger-accuracy dimension) If<skill-dir>/references/learnings.mdexists and carries a "Retro log" of observations from real runs, read it and fold itsStatus: openentries intoprogram.md's "Notes for the agent" as a candidate-edit backlog — these are the human-flagged improvements the loop should try first. Treat them as candidates, not mandates: each must still pass the harness and raise the composite to be kept, and any unhelpful entry is just reverted. Verify the target ships atests.mdsidecar with ≥3 scenarios — the quality dimension scores candidates against those scenarios. Iftest-prompts.mdortests.mdis missing/empty, stop and ask the user to populate it before starting the loop.
- Score the baseline. Run
.claude/skills/improving-skills/scripts/score-skill.sh runs/<run-id>/skill/SKILL.mdand record the composite as iteration 0 inruns/<run-id>/results.tsv. - Run the loop. See loop.md for the iteration mechanics and stopping conditions.
- Value-add check. When the loop stops, run the value-add test
(
eval/value-add-test.md) once on the final kept candidate — the composite proves the skill is well-formed, not that it beats just asking the model. Skip only if the target is not a generative/judgment skill (deterministic / safety / format-compliance); then recordValue-add verdict: N/A (non-generative). Record the verdict (PASS / CONCERN / FAIL, lift, seeds) inruns/<run-id>/results.tsvand the report. A FAIL means the composite gains never reached the user (usually scaffolding burying substance) — recommend the substance-first remedy and do not call the skill done. This runs once at loop end, never per-iteration (it spawns ~4N sub-agents). See scoring.md → "What the composite does NOT measure". - Report. Summarize: starting score, best score, number of iterations,
what changed in the winning candidate, and the value-add verdict. Point the
user at
runs/<run-id>/skill/SKILL.mdand theresults.tsvaudit log.
Constraints
- One focused change per iteration. Resist the urge to refactor multiple things at once.
- Never modify frontmatter field names (
name,description) — only their values. Renamingdescriptiontodescwould break discovery. - Never drop below the harness floor: every kept iteration must pass
eval/check-skill.shcleanly (zero FAILs). - Preserve the skill's intended behavior. If
test-prompts.mdsays a prompt should fire, the candidate must keep it firing.
Output format
After the loop stops, emit:
## Improving-skills run <run-id>
- Target: <path>
- Iterations: <n>
- Baseline score: <score>
- Best score: <score> (iteration <k>)
- Token reduction: <baseline_tokens> → <best_tokens> (<percent>%)
- Trigger (simulated / empirical): <sim> / <emp>
- Value-add verdict: <PASS|CONCERN|FAIL, lift, seeds | N/A (non-generative)>
## What changed
<2-4 bullets describing the surviving edits>
## Audit log
runs/<run-id>/results.tsv
runs/<run-id>/skill/SKILL.mdDetails
- Loop mechanics, retry behavior, stopping conditions: loop.md
- Scoring composite and how to interpret results.tsv: scoring.md
- Empirical trigger measurement (real firing vs simulated prediction):
eval/trigger-accuracy.md
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.

