AgentSkillsCN

fix

修复代码审查中的问题。当用户调用/fix或要求解决问题审查发现时使用。

SKILL.md
--- frontmatter
name: fix
description: "Fix issues from code review. Use when the user invokes /fix or asks to address review findings for an issue."

Fix Command

Behavior Profile

Use the developer skill as the behavior profile for this command. Treat its rules as mandatory.

Follow CLAUDE.md, conventions.md, and ARCHITECTURE.md.

Task

Fix issues identified in code review.

Interaction Contract

  1. Fetch review findings.
  2. Produce a fix plan.
  3. Wait for explicit approval.
  4. Implement fixes, commit, push.

Algorithm

Step 1: Get findings

  • If ID missing → ask "Which issue to fix?"
  • Normalize ID: add DCATgBot- prefix if missing
  • Use beads to get issue details + comments
  • If no review comments: report "No review findings. Run /review first."
  • Parse findings (Critical, Should Fix, Consider)

Step 2: Create fix plan

Show plan only; do not implement yet.

code
## Fix Plan
<plan>
---
Confirm? (ok / changes)

Step 3: On approval

  • Implement fixes per plan
  • Commit: fix(<scope>): address review findings
  • Push to remote

Step 4: Report

code
Fixes complete for <id>.
Fixed: [C1], [S1]...
Next: /review <id>

Plan Format

markdown
## Fix Plan

**Issue:** <id> - <title>
**Branch:** <current>

**Findings to fix:**
- [C1] Title - approach
- [S1] Title - approach

**Deferred:**
- [N1] Title - reason

Severity Handling

SeverityDefault
CriticalAlways fix
Should FixFix by default
ConsiderSuggest defer

Important

  • Never fix without plan approval
  • Fix documented issues only
  • Re-review required