fix
Use when a bug ticket or GitHub issue should go from report to an approved fix plan — "plan a fix", "fix this issue". Root-causes it via rca, then plans in plan mode with the failing regression test first. Routes to hex-plan instead when the fix is large or moves an interface contract.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 15
- Forks
- 1
01 前言 Front Matter
- name
- fix
- triggers
- [ "plan a fix", "fix issue", "fix this issue", "fix ticket" ]
- description
- Use when a bug ticket or GitHub issue should go from report to an approved fix plan — "plan a fix", "fix this issue". Root-causes it via rca, then plans in plan mode with the failing regression test first. Routes to hex-plan instead when the fix is large or moves an interface contract.
- argument-hint
- issue-number | url | description
- user-invocable
- true
03 SKILL.md 正文
Fix — RCA, then a regression-test-first plan
1. Root cause
Read ../rca/SKILL.md and follow it in full against $ARGUMENTS. Do not shortcut its gates — a fix plan built on an unverified cause is the failure this skill exists to prevent.
2. Verdict gate
Verdict ≠ bug → output the RCA report and stop. No plan.
3. Escalation gate
Stop and do not enter plan mode when any holds:
- size L or XL (
../rca/references/sizing.md) - any interface surface is touched (same file, list)
- confidence low, or repro not reproduced with no observed causal chain
Output the RCA header, the one-line reason, and:
## Actions
- Run `/hex-plan <issue>` with this RCA as input (XL → `/hex-architect` first)
4. Plan
Call EnterPlanMode (load it via ToolSearch select:EnterPlanMode if deferred). The plan file holds, in order:
- RCA header — the five-line block from the report, plus the causal chain's key
file:line. - Regression test — first. Level per
workflow-bugfix.mdPhase 3: acceptance bug → pytest intest/tests/; unit bug → inline#[cfg(test)]in the faulty module. Name the test, what it asserts (the root cause, not the symptom), and the command that shows it red on current HEAD (task test:parallel --force -- tests/<file>orcargo test <filter>). One per blast-radius site when the sites differ in behaviour. - Fix — at the root-cause layer; every site from the blast radius covered or explicitly excluded with reason. No drive-by refactor.
- Verify — regression test green, the subsystem gate for the code changed (
task rust:verify), thentask verifyas the final gate before commit. - Commit —
fix(<scope>): <user-facing sentence>, signed off (git commit -s); the subject is the changelog line.Fixes #<n>in the body.
Then ExitPlanMode. After approval, implement per workflow-bugfix.md (the /bugfix checklist): test red first, then fix, then green. If the fix grows past M mid-implementation, stop and re-enter step 3.
$ARGUMENTS
04 同仓库更多 Skills
rca
Use when a bug ticket, GitHub issue or error report needs a root cause analysis before code is touched — "is this a bug", "why does this fail". Read-only. Gives a verdict (bug or not-a-bug kind), file:line evidence, ruled-out hypotheses, other affected sites, fix direction and size. A ticket, not a diff (hex-review).
p9-skill
Principle 9 differential fixture skill (v2).
p9-member
Bundle member skill for the Principle 9 fixture (v2).
p9-hookish
Hook-free skill carrying an ignored hook.toml (v2).
p9-skill
Principle 9 differential fixture skill (v1).
p9-member
Bundle member skill for the Principle 9 fixture (v1).