/odin-run:audit-loop-scaffoldfrom ODIN Run
Restores loop scaffold files (STATE.md, gate.yaml, loop-budget.md, loop-run-log.md) to match provenance-pinned templates. Reports any other drifted files without modifying them.
Ships in ODIN Run. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Field | Bound contract |
|---|---|
| Trigger | Loop scaffold files have drifted from their templates or from each other |
| Authority | Reversible local: writes only the four named auto-fixable files; rollback is restoring retained pre-write content. No remote mutation. Retains pre-write content (including the absence state for newly created files) and rolls back on verification failure. |
| Side effect | Rewrites only STATE.md, gate.yaml, loop-budget.md, loop-run-log.md from templates; reports every other drifted file |
| Done | Scaffold files match their templates or drift is reported with its exact file; nothing outside the fixed set was written |
| Input | Required | Description |
|---|---|---|
| loop_dir | yes | path to the loop directory containing scaffold files |
| templates | yes | STATE.md.template, gate.yaml.template, loop-budget.md.template, loop-run-log.md.template from the loop-engineering provenance |
Templates must be sourced from cobusgreyling/loop-engineering at revision d03dcb92. No other skill, module, AGENTS file, or planning artifact is required.
loop_dir to an absolute path. Fail with loop_dir_unavailable if it does not exist or is not a directory. Done when: loop_dir resolves to an existing directory.template_unavailable if any template cannot be read. Done when: all four templates are in memory.loop_dir at depth 1 (direct children only). Done when: the direct-child file list is complete.loop_dir/<name>.
b. If the target does not exist or its hash differs from the template hash, write the template content to the target path.
c. Record the write in the action log with before/after hashes (before hash is null for newly created files).
Done when: every auto-fixable file matches its template or is written from it, and before/after hashes are recorded.loop_dir not in the auto-fixable set: compute the file hash. If the hash matches none of the four template hashes, record the file path and hash in the drift report. Done when: every non-auto-fixable drifted file is in the drift report.auto_fix_verify_failed. Done when: every written file matches its template byte-for-byte.non_converged. Done when: the assertion holds.| Class | Partial-result rule | Rollback |
|---|---|---|
| loop_dir_unavailable | return blocked; no writes performed | n/a |
| template_unavailable | return blocked; no writes performed | n/a |
| auto_fix_verify_failed | return non_converged; include the failing file | restore each written file to its step 4 backup state: existing files to recorded content, newly created files deleted |
| non_converged | return non_converged; include the full action log and drift report | restore all auto-fixable files to their step 4 backup state |
On any failure, the result reports exactly what was attempted, what succeeded, and what must be done manually.
{
"status": "converged" | "non_converged" | "blocked",
"loop_dir": "<resolved absolute path>",
"auto_fixed": [
{
"file": "STATE.md" | "gate.yaml" | "loop-budget.md" | "loop-run-log.md",
"before_hash": "<hex or null>",
"after_hash": "<hex>"
}
],
"drift_reported": [
{
"file": "<relative path>",
"hash": "<hex>"
}
],
"failure": "<failure class or null>",
"failing_files": ["<file name>"],
"action_log": [
{
"file": "STATE.md" | "gate.yaml" | "loop-budget.md" | "loop-run-log.md",
"before_hash": "<hex or null>",
"after_hash": "<hex or null>"
}
],
"converged": true | false
}
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub outlinedriven/odin-claude-plugin --plugin odin-run46 skills in this plugin
/append-run-logUse when a completed agent run must be recorded as durable, queryable evidence. Not for remote, credential, publish, deploy, or irreversible changes./artifact-arenaUse when asked to run /artifact-arena to generate and judge competing artifact implementations. Not for remote, credential, publish, deploy, or irreversible changes./autopilotUse when a human has an approved delivery plan and wants the full chain run under phase gates. Not for planning, open-ended debugging, or single-step execution: use work directly./cloud-task-orchestratorUse when a human explicitly runs /cloud-task-orchestrator for a large task across cloud agents to drain a verified task graph. Not for local subagent coordination: use orchestration-patterns./corroborate-by-independent-rerunsUse when a candidate patch or answer needs independent corroboration before it is trusted. Not for multi-stance investigation: use council./cross-run-playbookUse when a long agentic project needs each cycle to end in a learning memo and a keep/iterate/restart decision. Not for single-pass builds.Other plugins' skills for the same job