Fix

From OutlineDriven/odin-codex-plugin · View interactive version

Fix is an AI agent skill from the GitHub repository OutlineDriven/odin-codex-plugin. Polymorphic iterative repair loop — accept a verifier failure, structured findings (review/resolve/triage-issue), or a bug description; modify→verify→keep on green, auto-revert on guard regression, until clean or iteration cap. Use when the user says "fix", "make it pass", or "apply the findings", o

How to use this skill

Skill file

Fix

Failure-driven iterative repair. Detect → Prioritize → Fix ONE thing → Commit → Verify → Keep/Revert → Repeat.

When to Apply / NOT

Apply: user says "fix", "make it pass", "apply findings"; input is a verifier failure, findings file, or bug description.

NOT apply:

Detected Mode Acknowledgement [LOAD-BEARING]

First output line before ANY edit:

detected: <mode> — target=TARGET guard=GUARD scope=SCOPE cap=20

Mode values: gh-route, findings, verifier-failure, bug-spec. Full classifier: references/classifier.md.

Input Classifier

First-match wins. Full detail: references/classifier.md.

| Priority | Mode | Minimum condition |

|----------|------|-------------------|

| 1 | gh-route | GH-flavored input + open PR + gh auth status clean |

| 2 | findings | Path to */findings.md, */review/*.md, or structured findings text |

| 3 | verifier-failure | Raw verifier stdout (FAILED, error TS, --- FAIL, etc.) |

| 4 | bug-spec | Natural-language description — catch-all fallback |

Auto-Detect Gate

Auto-infer: target verifier, scope glob, guard command, iteration cap (default 20).

Trigger AskUserQuestion (single-select per axis, NEVER multiSelect) when:

Iterative Loop

Full spec: references/loop.md. Key rules:

Verifier Detection

Repo-native first (use fd --max-depth 2 to locate):

  1. Justfile → just test (guard: just check)
  2. Makefile → make test (guard: make check)
  3. package.json → npm test (guard: tsc --noEmit && eslint .)
  4. dune-project → dune build @runtest (guard: dune build)

Language fallbacks:

Full matrix: references/verifiers.md.

GH Auto-Route

When open PR + gh auth status clean + GH-flavored input:

| Sub-target | Trigger language |

|------------|-----------------|

| gh-fix-ci | "CI", "Actions", "workflow", "checks", Actions run URL |

| gh-address-comments | "reviewer said", "address comment", "PR feedback", "requested changes" |

Both sets of language → fire AMBIGUOUS_GH_ROUTE (single-select: gh-fix-ci vs gh-address-comments).

Partial match → GH_PARTIAL ambiguity flag.

Hand-off & Integration

Failure Modes

Anti-Patterns

Constitutional Rules

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.