Skip to content
Back to skills

Improve Skill

ASecurity

Rewrites one skill folder to cut AI slop without losing a rule, after the author confirms each cut. Use when a skill reads bloated, repetitive or shouty.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 26, 2026
ai-agentsgorefactoringgitapi

Works with

  • claude code
  • cli
  • api

Security analysis

A100/100

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

Scanned December 4, 2026

npx -y skills add fabiandistler/agents --skill improve-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Improve Skill?

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

Security grade badge for Improve Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fabiandistler-improve-skill/badge)](https://www.skillsdirectory.com/skills/fabiandistler-improve-skill)

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: improve-skill
category: refactoring
activation: command
disable-model-invocation: true
environments: coding, chat
argument-hint: "<skill-folder>"
compatibility: Reads one skill folder, in a repo or unpacked from a claude.ai ZIP; git is not required. Writes a snapshot and the rewrite to the OS temp directory; changes the folder and packs a new archive beside the old claude.ai ZIP, or opens a branch and pull request in a repo, only after the author agrees. Eval mode needs Claude Code with Anthropic's skill-creator installed; elsewhere the rule inventory is the only check and behavior is verified by hand.
description: Rewrites one skill folder to cut AI slop without losing a rule, after the author confirms each cut. Use when a skill reads bloated, repetitive or shouty.
metadata:
  version: "0.4"
  opencode/slash: "true"
  opencode/autoinvoke: "false"
---

# Improve Skill

Remove the filler from one skill: text that costs the agent tokens and
attention without changing what it does.

## When to use

- One skill folder whose body reads bloated: redundant rules, excessive
  emphasis, needless choices, decorative sections or explanations of familiar concepts.
- A skill in a repository (delivered as a branch and pull request), or an
  unpacked claude.ai skill ZIP outside any repository (delivered as a
  re-packed archive beside the old ZIP).
- A check stronger than the rule inventory: eval mode compares the old and
  new skill on the same prompts through Anthropic's `skill-creator`.

Writing a new skill, or changing how a description triggers, is
`skill-creator`'s job.

The frontmatter, description included, stays byte for byte as it was, because
a changed trigger would blur whether the rest of the skill still behaves the
same. A finding in it (SL6, any D item, a packager validation failure) is a
**D-finding**. Use "Not rewritten here: take it to `skill-creator`" as its
proposed action, and direct description findings to that skill's description
optimisation. D-findings stay out of the interview and rewrite.

## 1. Snapshot

The argument is a folder holding a `SKILL.md`. If it does not hold one, stop
and ask for the skill folder.

Before reading any file in it, create the **run directory**
`<tmpdir>/improve-skill-<name>-<timestamp>/` in the OS temp directory, copy the
whole folder into it as `old_skill/`, and print that path. Every file the run
writes before delivery goes into the run directory. Use the snapshot as the
checking baseline and rollback copy.

Done when `diff -r <folder> <snapshot>` prints nothing.

## 2. Scan

Read `references/slop-signals.md`. It defines SL1 to SL7: the shape of each
signal, the test that separates slop from a load-bearing line, the proposed
action, and the checklist ID each one maps to.

Read the snapshot, not the original: `SKILL.md` including its frontmatter, and
every Markdown file under `references/`. Take the signals in order, SL1 to
SL7, and walk the full text once per signal. For every hit, record:

- the signal ID and its checklist ID;
- the `path:line`, relative to the skill folder;
- the quoted text, verbatim in the skill's own language and short enough to
  locate it;
- the proposed action from the signal, adjusted by its test. A line that
  passes the test as load-bearing gets a change of form (a reason added, a
  duplicate merged), never removal.

When the skill folder sits in a checkout that has
`docs/agents/skill-audit-checklist.md` at its root, also apply that
checklist's D, B and R items, and record their hits the same way under the
item's ID. A hit that matches both a signal and a checklist item is one
candidate citing both IDs.

Done when every signal and every applied checklist item has been checked
against every file, including the ones with no hit.

## 3. List the candidates

Print the candidates numbered from 1, ordered by file (`SKILL.md` first) and
then by line, so that two runs on the same skill produce the same numbers.
Use this shape:

```markdown
3. SL4/B9 SKILL.md:23
   > IMPORTANT: You MUST NEVER include …

   Action: Keep the rule, state it plainly, add the failure it prevents.
```

For a D-finding, use the proposal defined above.

## 4. Inventory the rules

List every rule and branch of the snapshot's body and references, before
anything is rewritten. An item is anything that changes what the agent does: a step, a constraint, a
condition and each of its branches, a default, an output format, a completion
criterion, a pointer to another file. Definitions, exposition and decoration
are not items. A rule stated in several places is one item citing every line.

Number the items `R1`, `R2`, … in file and line order and print them:

```markdown
R4 SKILL.md:23-24 Exclude every pull request whose title starts with `chore(deps)`.
```

Done when every imperative or conditional sentence in the snapshot's body
belongs to an item.

## 5. Interview

Interview the author about the candidates in **rounds**, before any file is
written:

1. Ask one numbered question per candidate except D-findings. State the
   recommended decision (accepted, or load-bearing when the signal's test
   says the line carries a rule) with the `R` items it touches, worded so
   that a single "yes" accepts it.
   Where the action adds a reason, ask the author for the failure the rule
   prevents; the reason is the author's, never invented.
2. Ask every question that depends on no open answer in the same round.
   Questions that depend on an open answer, such as which wording of a
   repeated rule to keep, go into the next round.
3. Record each candidate as **accepted** (apply the proposed action),
   **rejected** (leave the text as it is) or **load-bearing** (keep its rule,
   change only its form). Mark an `R` item **struck by author** only on a
   numbered interview answer that strikes it. Cite that answer.

Done when every candidate has a recorded decision and the author has
confirmed the printed record.

## 6. Rewrite once

Copy the snapshot to `new_skill/` in the run directory and apply every
accepted and load-bearing decision there, in one pass. The original folder
stays untouched until delivery. A later fix in step 7 edits `new_skill/` in
place: a **repair** of this rewrite, not a second one.

- Leave the text of rejected candidates as it was.
- Write in the skill's own language; a German skill stays German.
- Keep every `R` item that was not struck, in the place the agent needs it
  while acting.

Done when every recorded decision is applied and `diff` of the frontmatter
blocks of `old_skill/SKILL.md` and `new_skill/SKILL.md` prints nothing.

## 7. Check

The rule inventory runs on every rewrite. Eval mode runs after it when the
author asked for it with the command or accepts it when proposed.

### Rule inventory

Read `new_skill/` from disk, not from memory of the rewrite, and map each `R`
item to one of:

- the `path:line` in `new_skill/` that carries the rule, with a short quote;
  a rule whose form changed by an accepted candidate maps with that
  candidate's number;
- **struck by author**, with the number of the answer that struck it.

An item with neither is **unmapped**. Print the mapping as a list in `R`
order, then this sentence: "The rule inventory catches lost rules; it cannot
see shifted emphasis or tone."

An unmapped item blocks delivery. Name each one with its snapshot `path:line`
and quote, deliver nothing (no diff as the result, no branch, no commit, no
pull request), and ask the author for each: restore it (copy the rule back
into `new_skill/` as a repair) or strike it (a recorded answer). Then run
this check again.

Done when every `R` item is mapped.

### Propose eval mode

If the author has not asked for eval mode, propose it when either holds, and
name which:

- **An eval covers a touched rule.** A rule is touched when it maps with a
  candidate number or is struck by author. It is covered when a prompt or
  expected behavior in `old_skill/evals.json` (`should_trigger`,
  `expected_behavior`) or `old_skill/evals/evals.json` (`skill-creator`'s
  `prompt`, `expected_output`, `expectations`) exercises what the rule
  governs.
- **More than a third of the words go.** Count the words of `SKILL.md`
  without its frontmatter plus every Markdown file under `references/`, in
  `old_skill/` and in `new_skill/`; propose when the new count is below
  two thirds of the old.

When neither holds, propose nothing: the rule inventory is the check.

### Eval mode

When the author asked for eval mode or accepts it, read
`references/eval-mode.md` and follow it.

## 8. Deliver

Print the unified diff, `diff -ru old_skill new_skill`, then the **report**:
the candidate decisions, the inventory mapping with its blind-spot sentence,
and eval mode's tables or its "Behavior not checked" note when step 7 produced
them. Ask the author whether to deliver, and
on "yes":

- **Folder in a git work tree** (`git -C <folder> rev-parse --show-toplevel`
  succeeds): create the branch `improve-skill/<name>` from the current
  branch, copy `new_skill/` over the folder, and commit in the repository's
  commit convention. Push the branch and open a pull request whose body holds
  the report.
  Use the forge's API tool if the session has one; otherwise, on GitHub use
  `gh api repos/<owner>/<repo>/pulls -f title=<title> -f head=improve-skill/<name> -f base=<base> -f body=<body>`.
  On another forge, use its CLI the same way.
- **Folder outside any git work tree** (an unpacked claude.ai skill): copy
  `new_skill/` over the folder; the run creates no repository. Then pack it
  for claude.ai as `references/claude-ai-zip.md` describes.

Print the snapshot path last.

Files in this skill

  • SKILL.md9.5 KB
  • agents/openai.yaml164 B
  • evals.json5.8 KB
  • references/claude-ai-zip.md1.6 KB
  • references/eval-mode.md2.2 KB
  • references/slop-signals.md3.5 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 ai-agents →

Comments

Loading comments…

Newsletter

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