Fix

From dannys-code-corner/incan · View interactive version

Fix is an AI agent skill from the GitHub repository dannys-code-corner/incan. Fix actionable in-scope findings in the current Incan worktree, usually after /review. Use when the user asks to fix review findings, clean up reported issues, apply in-scope review feedback, or says /fix.

How to use this skill

Skill file

Fix — Incan Compiler

Purpose

/fix is the repair half of the review workflow. It consumes concrete findings from /review or obvious unresolved worktree issues and fixes them directly when they are in scope and safe.

The primary source of truth is the persistent report in the current worktree:

Use /fix when:

Do not use /fix as a substitute for first-pass diagnosis when the problem is still unclear. Use /review first.

/fix is different from /review: it should consume the current report, not wipe it. If the report is stale or obviously belongs to a previous run, rerun /review instead of trying to repair against bad state.

Workflow

  1. Start from the current dirty worktree and the concrete findings already on record from /review, inline review comments, or the user's instructions.
  2. Read .agents/state/review-report.md first when it exists.
  3. For orchestrated reviews, treat ## Findings as the default task list.
  4. For generic single-review reports, fall back to ## Files only if there is no top-level ## Findings list.
  5. Fix only findings that are:
  1. Do not widen scope. Avoid opportunistic refactors beyond what is needed to resolve the findings cleanly.
  2. Update .agents/state/review-report.md as findings move between open, fixed, and blocked.
  3. Append short timestamped entries to ## Activity as you work. Log each major action instead of relying on a final prose recap.
  4. After edits, run make fmt.
  5. Run the narrowest relevant verification for the fixes you made.
  6. Run make pre-commit.
  7. If make pre-commit fails for reasons unrelated to your fixes, keep the local fixes and report the failure as residual risk in the report file.
  8. If findings remain unresolved, classify each as one of:
  1. Preserve findings even when they are non-blocking or design-oriented. design-tension, maintainability, and docs drift are still findings; they may simply move to a lower-priority fix queue instead of being dropped.

Fixing rules

Verification

/fix should usually run:

If make pre-commit fails because of unrelated sandbox or network issues, say so explicitly in .agents/state/review-report.md. That does not justify leaving local findings unfixed.

The report must remain a structured artifact. Do not replace it with a narrative summary. If ## Activity is missing, repair the report before you finish. For orchestrated runs, the canonical report should stay thin and findings-driven; do not recreate a giant per-file checklist there.

When consuming an orchestrated report, update:

Do not invent new findings unless the edit work uncovers a tightly related issue needed to finish the requested fix cleanly.

Classification on findings is for handling, not suppression.

Output format

Produce a concise report with:

## Fix — <subject / branch / files>

### Fixed
<item> — <file>:<line> — <what changed>

### Verification
<command> — <result>

### Residual risk
<anything still unresolved, with classification>

If nothing needed fixing, say so directly.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.