Skip to content
Development
Skill

/fix

Resolve blocking review gaps through bounded repairs and independent re-review; diagnose stalled attempts without expanding scope.

From plugin
genie
33820 skills1 command
Install
$ npx -y skills add automagik-dev/genie --skill fix --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/fix

Context preview

The summary Claude sees to decide when to auto-load this skill.

Resolve blocking review gaps through bounded repairs and independent re-review; diagnose stalled attempts without expanding scope.

SKILL.md

fix.SKILL.md
name: fix
description: "Resolve blocking review gaps through bounded repairs and independent re-review; diagnose stalled attempts without expanding scope."
category: lifecycle
mutates: repo

Fix

Given a FIX-FIRST review, the original criteria, and validation commands, dispatch a fixer for the blocking gaps and a different reviewer for the result. The fixer changes only the assigned scope. Reuse the existing worker context when appropriate; a reviewer never reviews its own edits.

Repair budget

Resolve `B` once per group from `genie config get budgets.maxEscalationsPerGroup`, default 2 when the key is unset; `genie doctor` echoes the resolved value. A different positive integer applies only when that key or an explicit user instruction supplies it, and the handoff states the active value and which of the two it came from. Carry `B`, attempts used, and effort-escalation counters across handoffs. Switching skills or correcting a diagnosis never resets them. An override does not expand scope, permit unchanged retries, or skip diagnosis or independent re-review.

1. Diagnose the failure before choosing a repair. An `overdesigned-plan` returns to planning without consuming a fix attempt. 2. Dispatch the fixer with the gap evidence, criteria, owned files, validation, and remaining budget. 3. Run the relevant checks and independent `review` after each repair; record the evidence and attempt count. 4. SHIP returns to the caller. FIX-FIRST may repeat up to `B` loops only with a changed approach or new evidence. At the cap, on unchanged failure, or on BLOCKED, take the diagnostic route below.

Escalation Diagnosis

| Cause | Required response | |---|---| | `missing-context` | Obtain the absent files, logs, history, or criteria; keep model/effort unchanged. | | `ambiguous-spec` | Resolve the competing interpretations with the user or plan owner. | | `env-tool-failure` | Repair the demonstrated environment/tool problem or report its exact blocker. | | `overdesigned-plan` | Remove or defer machinery lacking a present requirement or measurement; return to design/plan review. Do not spend retries defending it. | | `model-capacity` | Only after ruling out the other causes with new evidence may model/effort increase one step in runtime configuration. Inherit the active model otherwise. |

Allow at most two escalation attempts per group. More requires an explicit human decision recorded with group, old/new settings, evidence, approver, and timestamp. Repeated verdicts are not new evidence and do not grant more repairs. A user-approved simplification invalidates superseded design/plan evidence and requires fresh review.

If reviewers disagree, record both verdicts, the contested criterion, evidence, and human resolution. Do not silently override either verdict.

Promotion gate

Recursive confidence is not approval: attempts that converge on the same repair prove consistency, not authorization. A repair touching release machinery, retirement or backup paths, the install record, the tracked roadmap snapshot, or anything outside the worktree stays a dry run or a preview no matter how many attempts agreed, until an independent re-review passes and the coordinator records a human ruling naming the change, its blast radius, the approver, and the timestamp. Attempt count never substitutes for that ruling, and a converged repair that cannot obtain it is reported as blocked rather than applied.

Handoff

Return resolved and remaining gaps with file locations, checks and results, cause and next route, `attempts=<used>/B`, and `effort_escalations=<used>/2`, and `budget_source=<config|instruction|default>`. Report any unresolved review disagreement.

The fixer never changes task status and posts nothing to the card. The group stays `in_progress` through repair and review; only its coordinator marks it done after SHIP and passing validation. Each re-review verdict is relayed to the card by the coordinator as one `genie task comment <task-id> --worker orchestrator -- 'review: … — …'`; an exhausted loop or diagnosed route gets one `blocked: <cause> — <route>` comment. Without a task row, use the review evidence directly. Continue independent groups while one group is blocked.

Read more
Ships withgenie

Wishes in, PRs out. CLI agent that interviews you, plans the work, dispatches parallel agents in isolated worktrees, and reviews code before you see it.

Get the whole plugin
Stats
338
Stars
50
Forks
Active
Maintenance
TypeScript
Language
MIT
License
4h ago
Last commit
1y ago
Created

Repo: automagik-dev/genie

Other skills on genie.