Skip to content
Back to skills

Skill Improver

ASecurity

Improve, test and maintain Claude Code skills. Modes: `fix` runs a skill's eval cases and fixes what the failed answers show is missing; `improve` hill-climbs a 10-dimension quality rubric with blind scoring and an A/B comparator; `score` rates a skill without editing it; `freshen` verifies the skill's external references online and applies updates; `trigger` measures and tunes how reliably the description fires; `invocation` decides whether a skill is automatic, slash-only, path-scoped or re...

  • 8 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added May 27, 2026
data-aipythongobashgit

Works with

  • claude code
  • cli

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned November 25, 2026

npx -y skills add air-gapped/skills --skill skill-improver --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Skill Improver?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Skill Improver
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/air-gapped-skill-improver/badge)](https://www.skillsdirectory.com/skills/air-gapped-skill-improver)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: skill-improver
description: >-
  Improve, test and maintain Claude Code skills. Modes: `fix` runs a skill's
  eval cases and fixes what the failed answers show is missing; `improve`
  hill-climbs a 10-dimension quality rubric with blind scoring and an A/B
  comparator; `score` rates a skill without editing it; `freshen` verifies the
  skill's external references online and applies updates; `trigger` measures
  and tunes how reliably the description fires; `invocation` decides whether a
  skill is automatic, slash-only, path-scoped or retired; `trim` finds the
  shortest description that still fires; `outcome` runs eval cases with and
  without the skill; `floor` measures what a bare model already knows;
  `ages` lists each skill's verification age.
when_to_use: >-
  Use when asked to improve, score, audit, test or freshen a skill, when a skill
  is out of date, when a skill does not trigger or triggers wrongly, or when
  asked whether a skill actually helps, or when the skill listing is too large.
argument-hint: '[fix|improve|score|freshen|trigger|invocation|trim|outcome|floor|ages|batch] [<skill-name>|--all|<glob>]'
---

# Skill Improver

`/skill-improver <mode> <target> [--opts]`. `<target>` is a skill name, a
SKILL.md path, `--all`, or a glob (`'vllm-*'`). No mode → **Auto**. No target
(except `ages`, `batch`) → ask.

| Mode | Does | Read first |
|---|---|---|
| Auto | Decides which modes the skill needs, runs them | §Auto |
| `fix` | Runs the skill's eval cases, fixes what the failed answers show is missing | §Fix |
| `improve` | Keep/discard loop on the 10-dimension rubric | `references/improve-loop.md`, `references/quality-rubric.md` |
| `score` | Rubric score, no edits | §Score |
| `freshen` | Follows the product: adds what changed, retires what it moved past | `references/freshen-patterns.md` |
| `trigger` | Measures and tunes the description's trigger rate | `references/trigger-patterns.md` |
| `invocation` | Decides automatic / slash-only / `paths` / retire, per skill and per family | `references/invocation-patterns.md` |
| `trim` | Cuts an automatic description in steps while trigger and sibling scores hold; every cut fact stays in the body | `references/invocation-patterns.md` §trim |
| `outcome` | Runs the skill's eval cases with vs without it (`claude plugin eval`) | §Outcome |
| `floor` | Measures what a bare model already knows about the subject | `references/floor-patterns.md` |
| `ages` | Fleet table of verification age vs last change | §Ages |
| `batch` | Runs `improve`, `freshen` or `trigger` over many skills | §Batch |

Flags are mode-specific: `--iterations N` (improve),
`--runs-per-query N`, `--missed "<query>"` (trigger; repeatable — seeds a
user-reported miss as a should-trigger query), `--against <git-ref>` (outcome).

## Auto

1. **Read the evidence, no edits:** the `Freshened:` line in
   `references/sources.md`; one `gh release list --repo <o>/<r> --limit 5` per
   upstream whose version the skill states, compared against the version in the
   skill's text (never assume "no new release"); `git log --format='%ad %s'
   --date=short -- <skill-dir> | head -20`; `references/improvement-backlog.md`
   §Open (has a named blocker arrived?); `disable-model-invocation` and
   `references/trigger-evals.json`; how fast the subject moves.
   A `Parked:` line in `sources.md` means no step is due: skip the skill
   unless that line's freshen trigger has fired or the user asks for it.
2. **Decide each step:**

   | Step | Run when |
   |---|---|
   | `invocation` | no invocation decision on record, or the skill gained side effects, a fixed procedure or a sibling; skip the rest for a skill it retires or makes slash-only |
   | `freshen` | an upstream is newer than the skill states; the last pass is old for this product's pace; a model or Claude Code release it depends on shipped |
   | `floor` | fact-heavy skill, no floor run since the last model release — then cut what the model now knows |
   | `fix` | the skill has `evals/evals.json` and its content changed since the last outcome run |
   | `improve` | the skill has no eval cases, or `fix` left weak cases that only restructuring can address, or the user asks for it; and content changed since the last improve pass, a backlog blocker arrived, or no improve pass is on record |
   | `trigger` | description changed or trigger evals fail; never for `disable-model-invocation` |
   | `trim` | automatic skill over ~600 listing characters, or carrying a version number in its description |

3. **Print the plan** — one line per step: run or skip, with the evidence,
   sized to the reason for the run and the usage and time the user has. Run in
   table order. Nothing due is a valid result: say so and stop.
4. **Report** what ran, what changed, the commits, what was skipped and why.

## Fix

The cheapest change that measurably improves answers: find what the skill
lacks, from the answers it produced. Prefer it over `improve` for a skill with
eval cases.

1. Run `outcome-eval.py <skill-dir> --write-benchmark` (no `--against`). It
   ends by listing the **weak cases** — the skill loses to the without arm or
   scores under 0.7 — with each failed assertion and how many runs failed it.
2. For each weak case, read the failed answers in the printed `current.json`
   (grader `evidence`) and name the cause: fact missing from the skill; fact
   only in `sources.md` or buried; skill text wrong; assertion stale; judge
   noise (the answer was right). Cite the moment: case, run, and the quoted
   answer line where it goes wrong. A failure in 1 of 3 runs is noise until
   that moment shows the mechanism; no cited moment, no fix.
3. One cause per commit. Verify every fact against the primary source; put a
   known failure and its fix where the agent reads it; correct an assertion
   only with source evidence, in its own commit that cites the source. The
   report lists every changed assertion, before and after — a score that rose
   because a check got easier is not a better answer.
4. Re-run just those cases: `--case '03-*,06-*'` (comma-separated globs). Keep a fix when the case rises,
   stays above the without arm, and the re-run answers no longer show the
   cited moment; revert otherwise. A rise with the moment still present is
   noise.
5. Done = every weak case fixed, shown to be noise, or recorded in the backlog
   with its blocker; committed; `references/lessons.md` read first and given
   its end-of-pass entry (or none). The step-1 run is the benchmark
   (`--write-benchmark`); re-run in full only when several cases changed.

## Improve

1. Read `references/quality-rubric.md` and score all 10 dimensions against it.
   A total given without reading the rubric is an estimate: never decide on one.
   The score needs only the rubric and the text — a skill pasted inline is
   scored the same way.
2. Apply ONE change.
3. Re-score cold; print both score tables and the decision.
4. Decide. With eval cases: a `--case` re-run against the old text decides
   (`outcome-eval.py --case <glob> --against HEAD`) and the rubric total only
   ranks what to try next. Without: keep +3 or more; +1/+2 only when a second
   cold score confirms it or the change also simplifies (re-scoring an unchanged
   skill moves the total 2–3 points, up to 6); Δ0 only when it fixes a
   verifiable defect or simplifies; revert the rest.
5. Repeat from 2 until 90+ with no dimension below 7, the ceiling is mapped
   (`improve-loop.md` Phase 5), or 10 iterations. The blind scorer and
   comparator run once per pass and never hold a decision open.

Phases, decision rules and stop conditions: `references/improve-loop.md`.

- **One change per iteration.** State it in 10 words with one verb; an "and"
  means two iterations. A move that starts rewording prose is two changes. A
  change plus the pointer and source row it needs is one change.
- **Two lenses, never mixed in one hypothesis.** INV = how the agent works
  (procedure, tool use, done conditions, scripts). DOM = what a practitioner
  knows (facts, failure mechanisms, decision rules). `improve-loop.md` Phase 2.
- **The backlog holds only what no agent in the session can obtain**
  (`references/backlog-format.md`); if the unblocking command can run now, run it.
- **Read `references/lessons.md` in Phase 0; write at most one entry at the
  end.** Each kept change gets an attribution verdict in the landing commit
  (`improve-loop.md` Phase 7).
- **Report lines before → after with every pass.** An addition replaces text
  or states a failure an agent would otherwise hit; anything else is cut.
- **A pass ends with work, not a report.** Done = every keep applied, blind
  score at baseline (on a snapshot, with the baseline commit recorded) and at
  stop, the A/B comparator verdict, an `outcome` run when the skill has eval
  cases, committed with the backlog in the same commit, resolved items deleted
  from Open. Zero discards = stopped early.

## Rules for every mode

- **Run without pausing** between iterations; print status lines.
- **State the spend before any fan-out** of subagents or `claude -p` probes:
  calls, model, rough dollars from `scripts/model-rates.json`, computed from
  the real counts (queries × runs × measurements; agents × turns). Upkeep —
  reading releases, checking sources, applying verified findings, grading —
  runs on `sonnet`, or `haiku` where it is pure lookup. Spend the session's
  model on what upkeep cannot do: restructuring a skill (`improve`) and judging
  a disputed finding. An agent costs turns × context: start from a candidate
  list, batch probes into one command, commit once.
- **At most 20 subagents run at once, helpers included.** An agent that
  delegates holds `1 + helpers` slots; launch `20 // (1 + helpers)` and refill
  as each finishes.
- **Git is the state.** Commit each kept change; `git diff` before reverting.
  Never `rm`: revert with git, put temp dirs and snapshots under a fresh
  `mktemp -d` and leave them.
- **Classify overlap before deleting.** Only `DUPLICATE` is deletable;
  `INTENTIONAL_DETAIL` (summary in SKILL.md, detail in `references/`) and
  `RELATED_BUT_DISTINCT` stay. `scripts/dedup-fleet.py` produces the table;
  `references/improvement-patterns.md` §Pattern 6.1 reads it.
- **Preserve the author's domain knowledge.** Change how the skill teaches, not
  what it teaches.
- **The reader is an agent.** Every line you write into a skill states what to
  do or a fact the agent acts on, in the imperative. Leave out persuasion, how a
  finding was made and what the text used to say; where a fact came from and
  when it was checked go in `references/sources.md`. Keep a version or issue
  number in agent text only where the agent compares against it or acts on it.
  **A known failure is agent text, never history:** its symptom, affected
  versions and fix stay where the agent reads them.
- **A failed measurement is NO SCORE, never 0.** A timed-out probe, a dead
  scorer, an errored eval run: exclude it from the denominator and say what is
  missing. An incomplete run is never compared with a complete one; a pass that
  could not measure its mode's evidence is stopped early.
- **The skill outranks training data.** Never change an external claim
  (version, date, flag, model name, SHA) from memory — verify online and cite,
  or drop the change. Wanting to lower a version or move a date back is the
  stale-prior alarm: check first, expect the skill to be right. A subagent's
  "wrong version" finding is applied only after the primary source confirms
  it. Open a new citation and confirm its title, date and the attributed figure
  before writing it down.

## Fleet checks

Seven `scripts/check-*.py` checkers (fences, tables, links, advisory floors,
expiring claims, issue states). Run them over the whole tree; what each catches
and which hits are expected: `references/fleet-checks.md`.

## Blind validation

**Scorer** — the `blind-scorer` agent, spawned with a two-line path tail. Omit
`model` (the definition pins it) and effort. Run at baseline (on a snapshot,
in the background) and at stop. Print the bias table: every dimension where
self and blind differ by 2+.

**A/B comparator — decides the pass.** Absolute scores cannot show whether a
pass helped. `scripts/ab-setup.py <baseline-ref> <skill-dir>` extracts baseline
and final into a `mktemp -d` without `evals/` or `improvement-backlog.md`, with
one timestamp on every file; label them `DIR A` / `DIR B` by coin flip; spawn three
`skill-comparator` agents **from outside the repo** (inside, they see recent
commit subjects). Majority gives `IMPROVED` / `NO CHANGE` / `REGRESSED`; a tie
is `NO CHANGE`; `REGRESSED` outranks any score gain — revert the responsible
iteration. Commands and leakage classes: `references/blind-validation.md`.

## Outcome

Rubric and comparator judge the skill's text. `outcome` measures whether the
skill makes the model's answers better:

```bash
python3 ${CLAUDE_SKILL_DIR}/scripts/outcome-eval.py <skill-dir> [--against <git-ref>] [--write-benchmark]
```

It converts `<skill>/evals/evals.json` into `claude plugin eval` cases (one
grader per assertion), runs each with and without the skill, and with
`--against` the other version too. Prompts force invocation, so the number is
about content; trigger mode measures triggering. Defaults: 3 runs, Sonnet,
\$20 cap. The judge is Haiku, and Sonnet with `--write-benchmark`; a case that
comes out weak under Haiku is run again under Sonnet, which decides it. After an edit, re-check with `--with-only`: it runs only
the with-skill arm and compares with the without-skill scores stored in
`evals/last-run.json`, and refuses when a case has none for this model and judge.

- **Price it first:** \$0.10–0.30 per with-skill run and \$0.05–0.20 per without,
  times cases × runs × arms. The run ends by printing the tokens it used and,
  on a subscription, the plan's usage before and after.
- **Read failures before concluding.** A per-case difference of one run, or a
  total gap under ~0.15, is noise until the failed answers are read.
- **A skill that does not beat the without arm on a case** carries nothing the
  model lacks there — a deletion candidate, confirmed with `floor`.
- `--write-benchmark` writes `evals/benchmark.plugin-eval.json`, which
  `eval-evidence.py` reads for the Dim 10 gate.
- Fewer than 8 cases cannot resolve a delta: grow them with
  `scripts/grow-evals.py` first.

## Score

1. Read the target and `references/quality-rubric.md`.
2. Run `python3 ${CLAUDE_SKILL_DIR}/scripts/eval-evidence.py <skill-dir>`; take
   Dim 10's cap from it, never judge the delta by eye.
3. Score all 10 dimensions with the rubric's template; print the table; name the
   lowest dimension and the single highest-impact fix.
4. Dim 9 capped by `sources.md` staleness → recommend `freshen`. Fewer than 8
   eval cases → recommend `scripts/grow-evals.py`.
5. Stop. Do not start the loop unless asked.

## Freshen

Follow the product, in both directions. Read the releases between the version
the skill states and the current one, and verify every `sources.md` row in one
batched sweep on a cheap helper (`web-searcher` for web/gh rows, `Explore` for
local clones). Apply one verified finding at a time, each backed by the source
that verified it:

- **Add or correct** what an agent acts on: a wrong fact, a removed flag, a new
  failure with its fix. A new feature earns a line only when an agent would
  otherwise do the task wrong.
- **Check upstream, not the tool.** Compare against the upstream release list;
  a tool's own update check or status command can report "current" while
  upstream is months ahead.
- **Check every referenced file, folder and tool exists** on the machine the
  skill runs on, and its installed version against upstream's latest.
- **Retire** what the product moved past (`scripts/retire-candidates.py
  <skill-dir> --floor <oldest supported release>` lists where to look): a
  workaround for a fixed bug, a feature that was superseded, a version gate below every supported release,
  news that became ordinary.

A finding's URL, issue number and check date go in `sources.md`, not in the
instruction text. End by writing the single `Freshened: <date>` header stamp;
an unreachable row gets an inline exception note. A partial pass keeps the old
stamp. Commit once per skill, the body listing each finding. Workflow F0–F6,
probe templates and classification: `references/freshen-patterns.md`.

## Trigger

Print calls × cost before the first probe and size the run to its reason: a
reported miss or false trigger (`--missed`) measures those queries plus at most
8 guard queries, 7 runs each, about 100 probe calls; the full eval set runs when
the user asks for it or has usage to spend. Metric: trigger rate on should- and
should-not-trigger queries, test scores blinded, description ≤1024 characters. Probe: `scripts/probe-trigger.py`. Eval set:
`<skill>/references/trigger-evals.json`, `[{"query", "should_trigger",
"source", "bucket"}]`, buckets `explicit` / `implicit` / `contextual` /
`negative`. Workflow T0–T7: `references/trigger-patterns.md`. Accuracy is
the score; fewer characters breaks a tie, and added characters need a higher
score. 1,536 is a ceiling, not a target; no version numbers in the description.

## Floor

`python3 ${CLAUDE_SKILL_DIR}/scripts/knowledge-floor.py --skill <name> [--extract]`
(the run prints its cost);
fleet: `scripts/floor-fleet.py --root <dir>`. Read-only. Classify the skill
first: on an encoded-preference skill a high floor is expected, not a delete
list. `KNOWS` is a candidate, never a licence to cut; `CONFLICTS` never means
the skill is wrong. `references/floor-patterns.md`.

The reference model is `haiku` (Haiku 5.5, the default): it stands in for the
best open-weight models other users run the skills on. Remove only what it
`KNOWS` (confirmed by eval cases where the skill has them); what a stronger
model knows and `haiku` does not stays. State every `CONFLICTS` claim more
loudly. Re-run on each model release.

## Ages

Run `scripts/staleness-report.py [<glob>|<root>]`, print its table verbatim,
then one sentence naming the stalest bucket and the next `freshen` target. No
probes, scoring or edits. `cases` marked `!` = fewer than 8 eval cases; `open`
= backlog Open items — report it when the fleet total moved.

## Batch

`scripts/scan-skills.sh` lists targets; worst first, one worker per skill, a
summary row for every listed skill. With the `Workflow` tool opted in:
`scripts/batch-workflow.js` (`args: ["keda", "helm", ...]`), commit after review.

## Files beyond the mode table

| File | Load when |
|---|---|
| `references/quality-rubric.md` | scoring |
| `references/improvement-patterns.md` | choosing an improvement |
| `references/blind-validation.md` | spawning a scorer or comparator |
| `references/fleet-checks.md` | running or proposing a sweep |
| `references/backlog-format.md` | writing a target's `improvement-backlog.md` |
| `references/lessons.md` | Phase 0 of any `fix` or `improve` pass; writing its end-of-pass entry |
| `references/anthropic-skill-design.md` | scoring Dims 1, 2, 8, 9; frontmatter questions |
| `references/invocation-patterns.md` | where a fix goes (frontmatter, `skillOverrides`, plugin); listing cost |
| `references/scripts.md` | choosing a script |

Why a rule exists and when it changed: `references/sources.md`.

Files in this skill

  • SKILL.md36.8 KB
  • references/anthropic-skill-design.md18 KB
  • references/freshen-patterns.md12.9 KB
  • references/improvement-patterns.md16.3 KB
  • references/quality-rubric.md16.9 KB
  • references/sources.md9.6 KB
  • references/trigger-patterns.md19.6 KB
  • scripts/probe-trigger.py12.7 KB
  • scripts/scan-skills.sh1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data-ai →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.