agentleFS
dannys-code-cornerdannys-code-corner/incan/.agents/skills/review-and-fix/SKILL.md

review-and-fix

Skill73 starsChanged 7 days agoApache-2.0View on GitHub

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.

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    no evidence of cross-cutting code/docs/tests/RFC churn.

    line 30
  2. Very specific:

    Treat .agents/state/review-report.md as a live structured artifact, not a final prose summary.

    line 44
  3. Distinctive:

    If the scope is borderline, prefer the broader review path.

    line 58
  4. Distinctive:

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

    line 70

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

  • small/local scope: /loop /review /fix
  • broad/multi-surface scope: review-orchestrate -> /fix -> final review pass

/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:
    • a small number of touched files,
    • one main subsystem,
    • code-only or docs-only,
    • no evidence of cross-cutting code/docs/tests/RFC churn.
  3. Choose the broad/multi-surface path when any of the following are true:
    • multiple subsystems are touched,
    • both code and user-facing docs moved,
    • tests, docs, and implementation all changed,
    • the worktree is large enough that one reviewer is likely to skip surfaces,
    • the user explicitly wants subagents or delegated review.
  4. For the small/local path:
    • invoke /loop with /review as detector and /fix as repair skill,
    • let /loop repeat until clean or legitimately blocked.
  5. For the broad/multi-surface path:
    • run review-orchestrate,
    • consume the merged findings with /fix,
    • then run a final review pass appropriate to the remaining scope.
  6. Treat .agents/state/review-report.md as a live structured artifact, not a final prose summary.
  7. 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.
  8. 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:

  • users ask for /review-and-fix
  • this skill decides whether the work is small or broad
  • the user does not need to manually choose /review vs review-orchestrate

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:

  • make fmt
  • narrow relevant checks
  • cargo run -p incan_lang --bin generate_lang_reference when language registries, the reference generator, or workspaces/docs-site/docs/language/reference/language.md changed; inspect and commit any resulting generated diff
  • make pre-commit

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>

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.