Foreword¶
When building Agent Skills yourself, common issues often aren’t about “not knowing the steps to write,” but rather missing fields in the frontmatter, vague trigger descriptions, or section structures that don’t comply with project specifications. Manually checking against a checklist, having a colleague or yourself review it again, often requires several back-and-forth rounds.
The skill-improver introduced below automates this process: it repeatedly executes “Review → Fix by severity → Re-review” on the target Skill until it meets Trail of Bits’ quality requirements for Claude Code Skills, or reaches the iteration limit. It relies on the skill-reviewer within plugin-dev to conduct reviews, acting as a meta-capability to “improve Skills using Skills.” If you only need a single review, you should use skill-reviewer directly instead of starting a loop.
What is this¶
skill-improver is a plugin Skill in the Trail of Bits skills marketplace, authored by Paweł Płatek. Its positioning is: to run an automated fix-review loop targeting Claude Code’s SKILL.md (and referenced files in the same directory) until critical quality issues are eliminated.
For official instructions and commands, see the Skill Improver documentation. The skill is defined in the repository path plugins/skill-improver/skills/skill-improver/ (corresponding to the skill-improver directory on GitHub).
Core Functions¶
Automated fix-review loop¶
Based on the positioning above, the core workflow can be summarized in five steps:
- Parse the Skill directory or
SKILL.mdpath you provide, and create session state under.claude/. - Call the skill-reviewer from plugin-dev to list issues by severity level.
- Critical / Major issues must be fixed; Minor issues should be evaluated to determine if they have real value before making changes (the documentation explicitly notes that the reviewer may false-positive on minor issues).
- Run skill-reviewer again to confirm fixes are effective and discover new issues.
- Repeat until completion conditions are met or
--max-iterations(default 20) is reached.
Upon completion, the Agent must output the explicit marker <skill-improvement-complete>; the stop hook only recognizes this marker and will not end the loop based on vague assessments like “it’s good enough.”
Issue Severity (and Fix Strategy)¶
The documentation categorizes findings into three types with different fix strategies:
| Level | Typical Items | Handling Method |
|---|---|---|
| Critical | Missing name/description, invalid YAML, referenced files or paths do not exist |
Fix immediately |
| Major | Weak trigger description, inappropriate narrative persona, body text too long without splitting into references/, missing When to Use / When NOT to Use |
Must fix |
| Minor | Style preferences, optional enhancements, formatting suggestions | Evaluate each item before changing |
Multi-session and Cancellation¶
You can start multiple parallel improvement sessions for different Skills, with state files named like .claude/skill-improver.*.local.md. To abort, use /cancel-skill-improver; file modifications already made will be preserved.
Relationship with code-improver¶
The same repository also contains the code-improver plugin, which provides a general review-and-fix workflow with mechanisms like a findings ledger and scope guard. It also includes an entry point for Skill-oriented improvements. This article focuses on the independent skill-improver plugin; if you need to work on branch diffs or require heavier convergence/scope control, please consult the code-improver documentation separately.
Installation and Activation¶
Prerequisite: plugin-dev and skill-reviewer¶
skill-improver depends on the plugin-dev plugin (which provides the skill-reviewer agent). In Claude Code, run /plugins and confirm plugin-dev is in the list; if not, install it from the official plugin source (documentation example: /plugin install plugin-dev).
Add Trail of Bits Marketplace¶
First, add the marketplace in Claude Code:
/plugin marketplace add trailofbits/skills
Browse and install the plugin:
/plugin menu
You can also install the skill-improver plugin path directly as per the documentation:
/plugin install trailofbits/skills/plugins/skill-improver
Codex CLI¶
Codex supports Claude plugin marketplace compatibility. The typical commands to install the marketplace and add the plugin are:
codex plugin marketplace add trailofbits/skills
codex plugin list
codex plugin add <plugin-name>@trailofbits
The specific plugin name should be based on the output of codex plugin list; whether skill-improver is listed separately depends on the marketplace metadata, but installation also depends on plugin-dev.
Cursor¶
The public documentation primarily focuses on Claude Code slash commands (/skill-improver). If Cursor loads the same Trail of Bits marketplace via a compatible Skills/plugin mechanism, the steps should be consistent with the Claude Code marketplace installation; differences not specifically explained in the official documentation will not be elaborated here.
Typical Usage¶
Starting the Improvement Loop¶
Initiate the loop for a Skill directory or SKILL.md:
/skill-improver ./plugins/my-plugin/skills/my-skill
/skill-improver ./skills/my-skill/SKILL.md --max-iterations 15
Parameter meanings:
<SKILL_PATH>: The Skill directory, or a path pointing toSKILL.md.--max-iterations N: Maximum number of rounds, default is 20.
The command implementation first parses the path (directory containing SKILL.md, or SKILL.md directly provided; otherwise Glob matches within the repository), then calls the plugin’s setup-skill-improver.sh to initialize the loop.
Iteration Example from Documentation (Summary)¶
The first review round might report: missing name in frontmatter, description using second person, missing When NOT to Use, and a minor issue about “a certain line being verbose.” The fix phase will add the name, rewrite the description, add sections, and decide not to change the minor issue because “keeping the context is more useful.”
If the second round only leaves similar minor issues that are still judged as false positives, and critical/major issues are cleared and verified by skill-reviewer, output <skill-improvement-complete> to end.
Viewing or Cleaning State¶
View active session state files:
ls .claude/skill-improver.*.local.md
cat .claude/skill-improver.*.local.md
Cancel the loop:
/cancel-skill-improver
If the default 20 rounds are reached without completion, you can manually handle remaining items and restart with a higher limit, e.g., --max-iterations 30.
Applicable Scenarios and Notes¶
Suitable for:
- New Skills that already work but need to align with Trail of Bits / Claude Code Skill quality standards.
- Multiple Skills needing unified frontmatter, trigger language, and When to Use / When NOT to Use structures.
- Wanting to replace repetitive “manual fix + ask reviewer again” labor with an automated loop.
Not suitable for:
- Single review only: Use plugin-dev’s skill-reviewer (or
/skill-reviewer), do not start the skill-improver loop. - Single minor changes: Editing
SKILL.mddirectly is faster. - Non-Skill files: This tool only targets Skill directory structures.
Notes:
- Subagent not found errors will occur if plugin-dev is not installed; install plugin-dev first.
- Do not blindly auto-fix all Minor items, otherwise it may introduce meaningless diffs.
- The loop termination depends on
<skill-improvement-complete>; omitting it will cause the hook to think it is still in progress. - Installation paths and default iteration counts in official examples are subject to the Mintlify documentation.
Conclusion¶
skill-improver converges Skill quality improvement into a repeatable fix-review loop: reviews are conducted by skill-reviewer, fix strategies are distinguished by Critical / Major / Minor, and completion conditions are finalized by an explicit marker. For developers who frequently build their own Skills, it reduces the time spent manually checking against specifications, leaving energy for the domain steps themselves.
Official Repository: trailofbits/skills
Plugin Documentation: Skill Improver
Skill Path: plugins/skill-improver/skills/skill-improver