Review and fix

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

Review and fix is an AI agent skill from the GitHub repository dannys-code-corner/incan. Run the Incan review/fix loop end to end: review, fix actionable findings, and review again until clean or blocked. Use when the user wants an autonomous review-and-repair pass or says /review-and-fix.

How to use this skill

Skill file

Review And Fix — Incan Compiler

Purpose

/review-and-fix is the user-facing entry point for autonomous review plus repair.

The user should not need to choose between the simple reviewer and the orchestrated reviewer. This skill decides that

itself from the current worktree.

Under the hood it chooses one of two paths:

/loop still owns repetition and stopping conditions for the small/local path. For broad scopes, this skill owns the

high-level routing and uses the persistent report at .agents/state/review-report.md.

Workflow

  1. Inspect the current dirty worktree before choosing a path.
  2. Choose the small/local path when the change is narrow enough for one honest reviewer, for example:
  1. Choose the broad/multi-surface path when any of the following are true:
  1. For the small/local path:
  1. For the broad/multi-surface path:
  1. Treat .agents/state/review-report.md as a live structured artifact, not a final prose summary.
  2. For orchestrated runs, treat slice reports as the primary evidence and the canonical report as a thin merged

findings index. Preserve findings by default; do not over-prune them during merge.

  1. Each new /review-and-fix invocation starts with a fresh report scaffold. Do not reuse an older run's findings or

activity log.

Routing rule

The default user expectation should be simple:

If the scope is borderline, prefer the broader review path. The cost of one wider first pass is lower than repeated

serial misses and reruns.

Verification expectations

The repair pass should aim to leave the worktree in a strong verified state:

If the broad gate fails for unrelated environmental reasons, report that explicitly as residual risk instead of

pretending the loop is clean.

Output format

Produce a short summary:

## Review And Fix — <subject / branch>

### Chosen path
<small/local review loop or broad orchestrated review>

### Review findings
<high-signal findings from the chosen review path>

### Fixes applied
<what changed>

### Final review state
<clean / blocked / residual risk>

### Verification
<commands and outcomes>
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.