skill-improve
它能做什么
这个技能通过检查单项智能体技能、进行针对性修复并再次测试来改进它。适合编写或维护技能,并希望指令更清晰、更可靠的人。
适用场景
- ✓当某项技能未通过检查,需要针对性修复的时候。
- ✓当有人想让某项技能更清晰、更可靠的时候。
- ✓当你想在改动前后比较某项技能的质量分数的时候。
技能链接
https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/skill-improve/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请改进我的 tech-debt 技能,让它通过检查,并且只保留能提高分数的改动。”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能会对指定的技能运行检查,进行针对性修复,然后再次检查。如果分数提高,它会保留该改动;如果分数下降,则会撤销。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
!bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" resolve_config --keys automation
Automation mode: Resolve modes.automation (project.local.yaml →
project.yaml → default collaborative). Every AskUserQuestion call and
every file write follows .claude/docs/automation-modes.md
(collaborative asks always · guided major-only · autonomous logs and proceeds;
automation_always_ask categories always prompt).
Skill Improve
Runs an improvement loop on a single skill: test → fix → retest → keep or revert.
Its score comes from /skill-test static and category checks, which read the
skill rather than run it: a better score means a better-written skill, not proof
that it behaves better. To check behaviour, run the skill on a real request
before and after the change.
Phase 1: Parse Argument
Read the skill name from the first argument. If missing, output usage and stop:
Usage: /skill-improve [skill-name]
Example: /skill-improve tech-debt
Verify .claude/skills/[name]/SKILL.md exists. If not, stop with:
"Skill '[name]' not found."
Glob CCGS Skill Testing Framework/catalog.yaml. When it exists, say so first:
"CCGS Skill Testing Framework/ was renamed studio-tests/ in 1.2.0, and this
skill reads only studio-tests/. Move any specs you wrote there; UPGRADING.md
(v1.1.3 → v1.2.0, studio-tests/) says how." Then go on.
Phase 2: Baseline Test
Run /skill-test static [name] and record the baseline score:
- Count of FAILs
- Count of WARNs
- Which specific checks failed (Check 1–7)
Display to the user:
Static baseline: [N] failures, [M] warnings
Failing: Check 4 (no ask-before-write), Check 5 (no handoff)
If the static result is NOT ASSESSED (the skill file could not be read or parsed), stop and report it with its reason: there is no score to improve, and 0 FAILs from a file nobody could read is not a clean result.
If baseline is 0 FAILs and 0 WARNs, note it and proceed to Phase 2b.
Phase 2b: Category Baseline
Look up the skill's category: field in studio-tests/catalog.yaml.
If no category: field is found, display:
"Category: not yet assigned — skipping category checks."
and skip to Phase 3.
If category is found, run /skill-test category [name] and record the category baseline:
- Count of FAILs
- Count of WARNs
- Which specific category rubric metrics failed
Display to the user:
Category baseline: [N] failures, [M] warnings ([category] rubric)
A category result of NOT ASSESSED (a rubric section the skill-test could not find or apply) is reported with its reason and is not a zero: the category dimension is then excluded from "already passes" below.
If BOTH static and category baselines are 0 FAILs and 0 WARNs — and neither is NOT ASSESSED — stop: "This skill already passes all static and category checks. No improvements needed."
Phase 3: Diagnose
Read the full skill: .claude/skills/[name]/SKILL.md and every file in its references/ folder,
if it has one — the longest skills keep each phase there. Name the file each
gap is in.
For each failing or warning static check, identify the exact gap:
- Check 1 fail → which frontmatter field is missing
- Check 2 fail → how many phases found vs. minimum required
- Check 3 fail → no verdict keywords anywhere in the skill body
- Check 4 fail → Write or Edit in allowed-tools but no ask-before-write language
- Check 5 warn → no follow-up or next-step section at the end
- Check 6 warn →
context: forkset but fewer than 5 phases found - Check 7 warn → argument-hint is empty or doesn't match documented modes
For each failing or warning category check (if category was assigned in Phase 2b), identify the exact gap in the skill's text. For example:
- If G2 fails (gate mode, director panel width): skill body does not size the
PHASE-GATE panel from
modes.workflow(PR atminimal, TD + PR atstandard, all 4 atfull) - If A2 fails (authoring, no per-section May-I-write): skill asks once at the end, not before each section write
- If T3 fails (team, BLOCKED not surfaced): skill doesn't halt dependent work on blocked agent
Show the full combined diagnosis to the user before proposing any changes.
Phase 4: Propose Fix
Write a targeted fix for each failure and warning. Show the proposed changes as clearly marked before/after blocks. Only change what is failing — do not rewrite sections that are passing. In a skill with a `refer
常见问题
分数更高就代表技能效果更好吗?
不一定。分数只检查技能的编写质量,要验证它的行为,应该用真实请求来测试。
如果技能名称写错了怎么办?
技能会停止,并报告找不到该技能。
它会重写整个技能吗?
不会。它只做针对性修复,并只保留能提高分数的部分。
详情
作者的原始描述
Improve a skill via a test-fix-retest loop — static checks, targeted fixes, keep or revert on score change.
热度
- GitHub 星标
- 33k
- 排名
- #8482
- 许可证
- MIT
- 更新时间
- 2026/10/18
评论
- …