skill-improver-loop
Iteratively reviews and improves Claude Code skills by running automated fix-review cycles until no critical or major issues remain. Use when fixing multiple skill quality issues, running automated improvement loops, iterating a skill until it passes skill-reviewer, or enforcing consistent quality without manual editing. NOT for one-time reviews — use /skill-reviewer directly. For manual, conversational refinement with a user checkpoint at each step, use skill-refiner-interactive instead — this skill runs unattended automated cycles with no interactive checkpoints.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- skill-improver-loop
- description
- Iteratively reviews and improves Claude Code skills by running automated fix-review cycles until no critical or major issues remain. Use when fixing multiple skill quality issues, running automated improvement loops, iterating a skill until it passes skill-reviewer, or enforcing consistent quality without manual editing. NOT for one-time reviews — use /skill-reviewer directly. For manual, conversational refinement with a user checkpoint at each step, use skill-refiner-interactive instead — this skill runs unattended automated cycles with no interactive checkpoints.
- allowed-tools
- Read Edit Write Glob Grep Task Skill
02 资源文件 3
- 参考文档references/issue-categorization.md2.4 KB
- 参考文档references/post-fix-validation.md2.0 KB
- 参考文档references/structural-changes.md1.4 KB
03 SKILL.md 正文
Skill Improvement Methodology
Iteratively improve a Claude Code skill using the skill-reviewer agent until it meets quality standards.
Prerequisites
Requires the plugin-devkit plugin, which provides the skill-reviewer agent.
Verify it's enabled: run /plugins — plugin-devkit should appear in the list.
Skill Location
Search in this order:
- Project paths (preferred):
skills/skill-name/or.claude/skills/skill-name/in current project - User-space (fallback):
~/.claude/skills/skill-name/— only if not in project - Cache paths (forbidden):
~/.claude/plugins/cache/*— REFUSE; read-only installed copies
Use Glob **/SKILL.md to find all skills in the project.
Scope Rules
| Path type | Action |
|---|---|
skills/*/ or .claude/skills/*/ in project |
✅ Edit freely |
~/.claude/skills/*/ |
⚠️ Only if not in project |
~/.claude/plugins/cache/* or any /cache/ path |
❌ REFUSE immediately |
Quick Start
- Locate — Find the skill directory using the Skill Location rules above
- Review — Call
skill-revieweron the target skill in Structured output mode (see "Invoking skill-reviewer" below) - Categorize — Read
countsandfindings[].severitydirectly from the returned YAML — no prose-parsing needed. See${CLAUDE_SKILL_DIR}/references/issue-categorization.mdfor what Critical / Major / Minor mean when deciding fixes - Fix — Address critical and major issues. For structural changes (moving, reorganizing content), follow
${CLAUDE_SKILL_DIR}/references/structural-changes.md - Validate — Run post-fix validation phases before the next review cycle. See
${CLAUDE_SKILL_DIR}/references/post-fix-validation.md. For plugin-rule compliance (naming, language, tool-scoping, formatting), invokeplugin-rulebookvia theSkilltool and treat any violations as Major issues. - Evaluate — Check each minor issue individually before fixing. See
${CLAUDE_SKILL_DIR}/references/issue-categorization.mdfor evaluation criteria - Repeat — Continue until
counts.critical == 0andcounts.major == 0. Abort after 3 cycles (the default; when invoked under the Finding-ID Fix Mode below, use the scope manifest'smax_fix_attemptsinstead): if either count is still nonzero, report the remaining findings and stop — do not loop indefinitely.
When to Use
- Improving a skill with multiple quality issues
- Iterating on a new skill until it meets standards
- Automated fix-review cycles instead of manual editing
- Consistent quality enforcement across skills
When NOT to Use
- One-time review: Use
/skill-reviewerdirectly instead - Quick single fixes: Edit the file directly
- Non-skill files: Only works on SKILL.md files — never a valid fix path for an agent, command, hook, or rule finding, even under Finding-ID Fix Mode below. Those always go through their own matching dev skill directly.
- Experimental skills: Manual iteration gives more control
- Creating a new skill from scratch: Use
skill-developmentinstead - Empirical benchmarking/eval-driven testing with baseline comparison: Use
skill-testerinstead
Finding-ID Fix Mode
When invoked with a bounded finding-ID list (e.g. from plugin-lifecycle-downstream's Phase
4/6/8), follow plugin-rulebook/references/finding-id-fix-contract.md: touch only the named
findings' files, report per-ID applied/deferred/failed status instead of (or alongside)
the <skill-improvement-complete> marker, and use the scope manifest's max_fix_attempts in
place of step 7's default 3-cycle limit. This loop is one of two valid fix paths for a
skill-type finding — skill-development used directly is the other, when more control over
each edit is wanted. It is never the only path for a skill-type finding, and per the
Non-skill-files rule above, it is never valid for any other component type.
Invoking skill-reviewer
Review the skill at [SKILL_PATH] using the plugin-devkit:skill-reviewer agent in Structured output mode. Return YAML only, per skill-reviewer's own Structured Output Mode schema.
Replace [SKILL_PATH] with the absolute path to the skill directory. Invoke via the Task tool with subagent_type='plugin-devkit:skill-reviewer'. Parse the returned YAML directly: counts.critical/counts.major drive the loop-termination check (steps 3/7 above), verdict drives the Completion Criteria check below, and findings[] (each with severity/location/finding/fix) is the issue list to work through in step 4. If the response isn't valid YAML with counts/verdict present, treat skill-reviewer as unavailable — see Testing & Validation gate 4.
Completion Criteria
CRITICAL: The stop hook checks for this exact marker only — no other signal terminates the loop.
<skill-improvement-complete>
Output when: (1) skill-reviewer's structured output has verdict: Pass or S-Tier with counts.critical: 0 and counts.major: 0, (2) all critical and major issues are fixed and verified by re-running skill-reviewer, or (3) remaining issues are only minor and evaluated individually as false positives or not worth fixing.
Do NOT output while any critical or major issue remains unfixed.
Testing & Validation
After invoking the skill, verify:
- Trigger phrases — confirm skill activates on: "fix my skill", "improve skill quality", "run the improvement loop", "iterate until it passes skill-reviewer"
- Non-triggers — confirm skill does NOT activate on: "review my skill once", "create a new skill", "check plugin structure"
- Loop termination — skill emits
<skill-improvement-complete>on its own line when done; stop hook detects via whole-line match - skill-reviewer reachable —
Tasktool withsubagent_type='plugin-devkit:skill-reviewer'succeeds; stop hook surfaces the error and halts if unavailable - Structured output parses — the response is valid YAML with
counts/verdict/findingspresent; if not, treat skill-reviewer as unavailable rather than falling back to prose-parsing
Quality gates:
- [ ]
TaskandSkillare inallowed-toolsbefore activating the loop - [ ]
plugin-devkitplugin is installed (run/pluginsto verify) - [ ] Loop does not emit
<skill-improvement-complete>whilecounts.criticalorcounts.majoris nonzero - [ ] Every
skill-reviewercall requests Structured output mode — never parsed from the narrative report format
Gotchas
- Marking complete without re-running skill-reviewer. After applying fixes, always re-run skill-reviewer to verify — a fix can introduce new issues that invalidate the earlier pass.
- Skipping minor issue evaluation. Evaluate each minor issue individually. Some are false positives; some are genuine improvements. Blanket skip or blanket accept both lead to wrong outcomes.
- Editing cache-path skills.
~/.claude/plugins/cache/*contains read-only installed copies. REFUSE edits immediately and report the correct editable path to the user.
Rationalizations to Reject
- "I'll mark it complete and come back later" — Fix issues now
- "This minor issue seems wrong, skip all of them" — Evaluate each one individually
- "The reviewer is being too strict" — The quality bar exists for a reason
- "It's good enough" — If there are major issues, it's not good enough
Reference Guide
| Resource | Purpose |
|---|---|
references/issue-categorization.md |
Critical / Major / Minor definitions and minor issue evaluation criteria |
references/structural-changes.md |
Pre-change gates and movement pattern for reorganizing content |
references/post-fix-validation.md |
Seven-phase validation to run after fixes, before next review cycle |
plugin-rulebook skill |
Active rule configuration for naming, language, tool-scoping, and formatting compliance |
04 同仓库更多 Skills
demo
Fixture skill used by scripts.marketplace_ci sync tests.
export-demo
Fixture skill used by scripts.marketplace_ci export tests.
work-to-development
Validate an accepted Linear Issue's readiness for implementation (criteria, dependencies, duplicate/existing artifacts) and request governed branch/worktree creation through git-kit:starting-work — recording work-started Git/GitHub evidence and a deliberate Linear Started transition only after Git identity is read back and verified. Use when asked to start work on a Linear issue, begin development for an accepted issue, or prepare an accepted issue for implementation. Never creates a branch directly — always delegates to git-kit.
work-linking
Create and maintain stable cross-system links and authority labels between Notion and Linear records, and detect/repair drift between them. Use when asked to link a Notion record to a Linear record, check for drift between Notion and Linear, or repair a broken/stale link. Repairs only the bounded non-authoritative copy or link — never chooses by newest timestamp, and never creates a reverse-write loop against either system's own authority.
status-and-learning
Produce a dated, explicitly non-live Linear-to-Notion progress summary, or capture an outcome/learning after work completes. Use when asked to summarize progress to Notion, report portfolio status, or capture what was learned from a completed piece of work — not to disposition open follow-up items (see open-item-management for that). Never runs automatically or continuously — every summary is a deliberate, approved snapshot, not a live sync.
repository-gates
Discover, delegate, record, and invalidate this repository's actual Git/GitHub lifecycle gates (pre-commit, pre-push, PR required checks, Codex delta review, review requirements, merge rights) and the repository-policy provider profile that maps governed operations to git-kit. Use when asked what gates apply to this repository, to discover repository policy before starting Wave 2 work, or to check whether prior gate evidence is still valid after new commits. Discovery and delegation only — never executes a gate's own internal logic, and never invents a gate the repository doesn't actually define (in particular, never assumes a "Review Changes" gate exists).