agentleFS
crashcartlabscrashcartlabs/skill-testing/.claude/skills/improving-skills/SKILL.md

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

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    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.

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
  1. Very specific:

    Always invoked manually via /improving-skills.

    line 20
  2. Very specific:

    If <skill-dir>/references/learnings.md exists and carries a "Retro log" of observations from real runs, read it and fold its Status: open …

    line 37
  3. Very specific:

    Verify the target ships a tests.md sidecar with ≥3 scenarios — the quality dimension scores candidates against those scenarios.

    line 43
  4. Very specific:

    Score the baseline: Run .claude/skills/improving-skills/scripts/score-skill.sh runs/<run-id>/skill/SKILL.md and record the composite as …

    line 47
  5. Very specific:

    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 …

    line 52
  6. Distinctive:

    not: call the skill done. This runs once at loop end, never per-iteration (it spawns ~4N sub-agents).

    line 61
  7. Very specific:

    Never modify frontmatter field names (name, description) — only their values.

    line 72
  8. Very specific:

    Never drop below the harness floor: every kept iteration must pass eval/check-skill.sh cleanly (zero FAILs).

    line 74
  9. Distinctive:

    After the loop stops, emit:

    line 81

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. 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 like 2026-05-13-1542). Initialize a scratch git branch for the run.
  2. Read configuration. Copy templates from this skill's templates/ into runs/<run-id>/ if not already present:
    • program.md — goals and constraints. If <skill-dir>/goal.md exists (drafted via /goal-improve-skill), seed program.md from 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.md exists and carries a "Retro log" of observations from real runs, read it and fold its Status: open entries into program.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 a tests.md sidecar with ≥3 scenarios — the quality dimension scores candidates against those scenarios. If test-prompts.md or tests.md is missing/empty, stop and ask the user to populate it before starting the loop.
  3. Score the baseline. Run .claude/skills/improving-skills/scripts/score-skill.sh runs/<run-id>/skill/SKILL.md and record the composite as iteration 0 in runs/<run-id>/results.tsv.
  4. Run the loop. See loop.md for the iteration mechanics and stopping conditions.
  5. 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 record Value-add verdict: N/A (non-generative). Record the verdict (PASS / CONCERN / FAIL, lift, seeds) in runs/<run-id>/results.tsv and 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".
  6. 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.md and the results.tsv audit 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. Renaming description to desc would break discovery.
  • Never drop below the harness floor: every kept iteration must pass eval/check-skill.sh cleanly (zero FAILs).
  • Preserve the skill's intended behavior. If test-prompts.md says 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.md

Details

  • 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.