improve
Skill9 starsChanged 5 months agoMITView on GitHub
Autonomous improvement loop — run a skill against test inputs, score output via rubric, analyze failures, propose instruction changes to SKILL.md, verify improvement. Human gate on every change.
36 other projects use a version of this.
Adopted by
Most recently taken up by
- crbnos/carbontheir own version, first seen Oct 4, 2026
- kyashrathore/Claxedotheir own version, first seen Oct 4, 2026
- getstackit/stackittheir own version, first seen Oct 1, 2026
- garthcodes/claude-skillstheir own version, first seen Sep 30, 2026
- manusco/resonancetheir own version, first seen Sep 28, 2026
- jim60105/copilot-prompttheir own version, first seen Sep 28, 2026
Used with
Projects with it also use factory, goal and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
popmechanicSkillfactory
Self-contained SaaS pipeline — invoke directly, do not decompose. Generates a factory app with landing page, Stripe subscription checkout, Vibe Token economics, and deploys to Cloudflare Workers. Use when the user wants to monetize an app, add billing, create token-backed revenue sharing, or turn an app into a business.
Also in 3 projects that use this
jthackSkillgoal
Codex-style /goal for Claude Code. Use when the user runs /goal, wants a persistent long-running objective, or wants to pause, resume, clear, or complete a goal.
Also in 3 projects that use this
ww-w-aiSkillloop
Run a prompt or command on a recurring interval. Useful for monitoring, polling, or periodic checks.
Also in 3 projects that use this
Microsoft AzureSkilltest
Also in 5 projects that use this
BlockSkillplan
Draft a TDD, PRD, or lightweight plan in the conversation without committing it.
Also in 7 projects that use this
Google CloudSkillfix
Plan a remediation strategy after a test failure.
Also in 3 projects that use this
Other versions36 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 36
- crbnos/carbon★ 2.7ksame name
- SethGammon/Citadel★ 922same name
- gadicc/yahoo-finance2★ 802same name
- shobcoder/shob★ 577same name
- owainlewis/blueprint★ 410same name
- AkaraChen/aghub★ 271same name
- kyashrathore/Claxedo★ 83same name
- joshuadavidthomas/agent-skills★ 54same name
- valpere/session-indexer★ 42same name
- manusco/resonance★ 37same name
26 more not listed
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 repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- vera-system/CLAUDE.mdCLAUDE.md
- buildSkill
- code-reviewSkill
- consultSkill
- curateSkill
- doc-syncSkill
- frameSkill
- gap-handlerSkill
- panelSkill
- researchSkill
- scoutSkill
- start-vagueSkill
- tddSkill
- wireframe-firstSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 2 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 35 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Use llm.scoring_model for both scoring AND credit assignment (the scorer diagnoses its own scores).
- Very specific: line 31
Run one improvement cycle.
- Distinctive: line 34
Run up to 5 consecutive cycles.
- Very specific: line 37
Read vera-system/runs/*-improve.tsv files, summarize win rates and recent changes.
- Very specific: line 48
When no tests exist in .claude/skills/improve/tests/<skill-name>/, stop and prompt the user:
- Very specific: line 127
Growth check: If a change increases SKILL.md by more than 5%, apply SUMMARIZE alongside it.
- Distinctive: line 187
No real failures to write tests from → use the skill more, collect signal first
“Common” is measured: kept by at least 6 in 10 of the 35 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/improve — Autonomous Instruction Improvement
Closed loop: run → measure → analyze failure → propose change → apply → re-measure → keep or revert.
Configuration (auto-loaded)
cat vera-system/config.jsonUse llm.scoring_model for both scoring AND credit assignment (the scorer diagnoses its own scores). If config is missing, fall back to vera-system/scripts/vera_config.py.
Scoring model should differ from the model executing the skill. Same model family for both = Goodharting risk — the optimizer learns to please the judge rather than genuinely improve.
Architecture
- Editable asset — the target skill's SKILL.md (modified directly, git history is the log)
- Rubric score — computed by judge model (from
llm.scoring_modelin config) - Time-boxed cycle — one atomic change per iteration, keep/revert based on score delta
Routing
<skill-name>
Run one improvement cycle. Requires tests in .claude/skills/improve/tests/<skill-name>/ — if none exist, prompt user to write them (see Writing Tests below).
<skill-name> --batch
Run up to 5 consecutive cycles. Stop early if: no failures, score plateaus (delta < 0.5 for 2 consecutive cycles), or budget exceeded.
status
Read vera-system/runs/*-improve.tsv files, summarize win rates and recent changes.
No arguments
List all skills, show which have tests in .claude/skills/improve/tests/, suggest which to improve based on last scores.
Writing Tests
The eval harness IS the product — the loop itself is trivial. Auto-generating tests from SKILL.md is circular: you'd test what the skill already says, not what it should do. Write tests from real failures.
When no tests exist in .claude/skills/improve/tests/<skill-name>/, stop and prompt the user:
- What's a query where you'd KNOW if the output was wrong?
- What's a claim a lazy output would make that's actually false?
- What's the thing most people get wrong about this topic?
Each answer becomes a test file in .claude/skills/improve/tests/<skill-name>/:
---
name: descriptive-test-name
created: YYYY-MM-DD
---
## Input
[The exact input/scenario to give the skill]
## Expected Qualities
- Should cite at least 8 sources
- Should identify the main tradeoff between X and Y
- Should NOT recommend Z (known bad fit)3-5 tests per skill. Diversity matters more than quantity — different topics, different difficulty levels, different failure modes.
The Loop
1. LOAD — read SKILL.md + tests + rubric
2. RUN — execute skill against each test input (use subagent for isolation)
3. SCORE — judge output via rubric (scoring_model)
4. TRIAGE — all pass? done. failures? continue
5. ANALYZE — credit assignment: which section caused failure?
6. PROPOSE — one atomic change
7. APPLY — edit SKILL.md on a git branch
8. VERIFY — re-run ALL tests, check for improvement AND regression
9. GATE — keep if improved with no regression, revert otherwise
10. LOG — append to vera-system/runs/{skill}-improve.tsvStep 3: SCORE
python3 vera-system/scripts/openrouter.py \
--model "{llm.scoring_model}" \
--system "Score this skill output using the rubric. Return ONLY valid JSON." \
--prompt "RUBRIC:\n{rubric}\n\nTEST INPUT:\n{input}\n\nOUTPUT:\n{output}\n\nScore each dimension 1-5. Return: {\"dimensions\": [{\"name\": \"...\", \"score\": N, \"reason\": \"...\"}], \"composite\": N.N, \"floor_violations\": [\"dimensions below minimum\"], \"pass\": true/false}"Pass threshold and dimension floors are defined in each rubric file (.claude/skills/improve/rubrics/<type>.md — ships with research.md, code.md, prose.md). Read them from the file — don't hardcode. A floor violation (e.g., accuracy < 3 on research, build_succeeds < 4 on code) fails the test regardless of composite score.
Step 5: ANALYZE (Credit Assignment)
The critical step most systems skip. The scorer diagnoses its own scores:
python3 vera-system/scripts/openrouter.py \
--model "{llm.scoring_model}" \
--system "You are diagnosing why an AI skill produced poor output. Identify the section of instructions that caused the problem." \
--prompt "SKILL.md:\n{skill_md}\n\nTEST INPUT:\n{test_input}\n\nOUTPUT:\n{actual_output}\n\nFAILED DIMENSIONS:\n{failed_dimensions}\n\nIdentify the section(s) in SKILL.md responsible. For each:\n1. Quote the relevant section\n2. How it caused the failure\n3. What it SHOULD say\n\nReturn JSON: {\"attributions\": [{\"section\": \"...\", \"problem\": \"...\", \"suggestion\": \"...\"}]}"Section-level attribution, not line-level — rewriting the failing section is more reliable than surgical line edits.
Step 6: PROPOSE
One atomic change per cycle:
| Operator | When |
| ADD | Uncovered case |
| DELETE | Instruction causes harm |
| EDIT | Close but wrong |
| SUMMARIZE | Growth check triggered |
| GENERALIZE | Multiple similar ADDs |
| REWRITE | Plateau — 2+ stale cycles on same failure. Rewrite the entire section. |
Growth check: If a change increases SKILL.md by more than 5%, apply SUMMARIZE alongside it. Don't compress deliberately-sized skills — only compress growth from the loop.
Step 8: VERIFY
Re-run ALL tests against the modified SKILL.md — not just failures. A fix for one test can degrade another (the Langfuse lesson: optimizers cut anything not covered by tests).
Apply the WIN/LOSS rule deterministically — collect the target's before/after and every previously-passing test's before/after into JSON, and let score-gate.py decide (so a hand-computed delta or an overlooked regression can't flip the verdict):
python3 vera-system/scripts/score-gate.py improve --file .improve/delta.json
# delta.json: {"target":{"old":N,"new":N},"previously_passing":[{"name":"...","old":N,"new":N}, ...]}
# prints TARGET_DELTA=±N BAND=0.50 [REGRESSION test="..." drop=N] VERDICT=WIN|LOSS [PLATEAU=1]VERDICT=WIN→ the target improved and nothing previously-passing dropped past the variance band (default 0.5, ~LLM judge noise).VERDICT=LOSS→ no target improvement, or aREGRESSIONline fired. A regression loses even when the target improved.PLATEAU=1→ the target delta is below the band; in--batch, two consecutive plateau cycles is the stop signal.
Step 9: GATE
Human approves every change.
If improved with no regression:
## Proposed: {OPERATOR} on {skill-name}
**Test:** {test description}
**Before:** {old_composite} — {failed dimensions}
**After:** {new_composite} — {improved dimensions}
**Delta:** +{delta}
**Change:**
{git diff of SKILL.md}
**Attribution:** {section that caused failure, from Step 5}
[Approve / Reject / Modify]- Approved: Merge branch to main. Record as WIN.
- Rejected: Record reason in commit message (loop checks git history before re-proposing).
- Modified: Apply edit, re-verify, merge. Record as WIN (modified).
If no improvement or regression: Revert automatically. Record as LOSS.
Rubrics
Rubrics live in .claude/skills/improve/rubrics/<type>.md. Ships with research.md, code.md, prose.md. Each rubric defines its own dimensions, weights, pass threshold, and dimension floors. Add new rubric files for new content types — match the type name to the test file's rubric: frontmatter field.
Cost
Per cycle: ~$0.20-0.40. Batch (5 cycles): ~$1.00-2.00. Varies with model pricing and test count.
When NOT to Use
- Problem is a bug → fix the bug directly
- Skill needs structural redesign → manual audit with research first
- No real failures to write tests from → use the skill more, collect signal first
Author: Shareef Ellis · @shareefatwork
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.

