/odin-code:restart-keeping-lessonsfrom ODIN Code
Archives failed branches and dead code as evidence, then writes a new v0 skeleton with one vertical loop. Use when an implementation has more workarounds than structure.
Ships in ODIN Code. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Field | Bound contract |
|---|---|
| Trigger | The implementation accumulated more workarounds than structure and another patch will not pay, or the human says "start over", "scrap it and rebuild", or "restart from scratch". |
| Authority | Reversible local: writes only the failed-branch evidence archive and the new v0 skeleton inside the named restart scope; rollback is undo (delete the written skeleton files and archive entries; original code is never deleted). No remote mutation. No branch deletion, no force push, no history rewrite, no deletion or rewrite of original code. |
| Side effect | Archives failed branches and dead code as evidence, and writes a new v0 skeleton with one vertical loop. Nothing outside the restart scope is written. |
| Done | Three schema-conformant artifacts exist in the restart scope and the v0 loop clears its named first gate. |
All artifacts are written inside the named restart scope directory.
Keep/discard split: <restart-scope>/RESTART-SPLIT.md
Schema: a list of entries, each with:
item: the file, module, or component namedecision: keep or discardevidence_citation: the specific evidence supporting the decision (a surviving test name, a gate result, a schema that survived QA, the complaint text)Evidence archive: <restart-scope>/RESTART-ARCHIVE.md
Schema: a list of entries, each with:
item: the discarded file, module, or componentfailure_note: one line naming what it taught (what not to do, what failed QA, what was scaffold)v0 skeleton: <restart-scope>/v0/ directory containing the skeleton code structured to deliver exactly one vertical loop, plus <restart-scope>/v0/GATE.md naming the first gate.
<restart-scope>/RESTART-SPLIT.md following the artifact schema. Archive discards into <restart-scope>/RESTART-ARCHIVE.md with one-line failure notes. Original code is never deleted or rewritten; the archive records what was discarded and why, not the deletion itself. Done when: both files exist and conform to their schemas.<restart-scope>/v0/ carrying the kept lessons, structured to deliver exactly that one complete vertical loop. Discover the project build and verification commands from the project manifest: read Makefile, justfile, package.json scripts, Cargo.toml, CMakeLists.txt, or equivalent to find the build command and the test or verification command. Record them in the skeleton. Done when: the v0 skeleton exists with one vertical loop structure and the discovered build and verification commands recorded.blocked: no valid restart evidence (no complaint, no workaround record) or the complaint and QA evidence reference a different build or scope than the named restart scope. Nothing written. Report the blocker.partial: an archive or skeleton write failed partway. Report which entries landed and which did not. The completed entries remain in place; the missing entries are named. Do not silently complete or silently delete partial writes.non-converged: the loop does not clear the first gate. Report the failing gate and the evidence. Do not add a second loop, weaken the gate, or reintroduce discarded code.Three artifacts inside the restart scope: the keep/discard split (RESTART-SPLIT.md) with per-entry evidence citations, the evidence archive (RESTART-ARCHIVE.md) of failed branches and negatives with failure notes, and the v0 skeleton (v0/ with GATE.md) containing one complete vertical loop plus its named first gate. Terminal classification is exactly one of done (all artifacts exist and the loop clears the gate), blocked (no valid evidence or scope mismatch, nothing written), partial (an archive or skeleton write failed partway; report landed and missing entries), or non-converged (the loop fails the gate; failing gate and evidence reported).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub outlinedriven/odin-claude-plugin --plugin odin-code35 skills in this plugin
/api-and-interface-designUse when asked to design or change a public API, route, CLI flag, or module boundary. Not for remote, credential, publish, deploy, or irreversible changes./architectUse when non-trivial code needs a design, codebase design or architecture needs improving, or one module needs targeted interface narrowing, seams, or testability. Not for diagrams, deploy, or irreversible changes./ast-grepUse when asked to run AST-based structural search, lint, or rewrite of code when regex is too fragile. Not for remote, credential, publish, deploy, or irreversible changes.Other plugins' skills for the same job