/odin-code:universal-invariant-baselinefrom ODIN Code
Applies an invariant-first, fail-fast baseline to source code: adds native invariant checks, fail-fast guards, and eliminates special cases like boolean flags and magic constants.
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, 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 | User explicitly requests an invariant-first, fail-fast, special-case-eliminating baseline for a named implementation. |
| Authority | Reversible local: writes only the named local artifact; rollback is version control (restore) or undo (file deletion). No remote mutation. |
| Side effect | Replace the target local file with its invariant-first, fail-fast, special-case-eliminating refinement. |
| Done | All named invariant checks pass and no unresolved special-case artifacts remain. |
Required:
TARGET: path to the local source file or module to baseline.LANGUAGE: the target's language (e.g., python, rust, typescript). Required to select correct invariant patterns.TARGET is a concrete, scoped implementation task with a named local path. If TARGET is absent, empty, or points to a non-local artifact, raise BLOCKED-INPUT and stop. Done when: TARGET is confirmed as a concrete local path.LANGUAGE, enumerate the language-native invariant patterns that govern correctness: type contracts, ownership/borrow rules, null/void guards, resource lifecycle ordering, and domain-specific preconditions. Write each as a named, executable check with a unique identifier. Done when: every invariant pattern is a named, executable check with a unique identifier.INVARIANT-FAIL: <identifier> and the observed violation. The target artifact is unchanged until all checks pass. Done when: every mutable state operation, external call, and branching decision has a matching invariant guard.INVARIANT-FAIL: <identifier> listing the specific failure. Record the complete set of removed special-case artifacts as the resolution log. Done when: all invariant checks pass and the resolution log is complete.| Failure class | Condition | Result |
|---|---|---|
| BLOCKED-INPUT | TARGET absent, empty, or non-local | Stop. No file changed. |
| INVARIANT-FAIL | A named invariant check fails | Stop. Artifact unchanged. Report <identifier>. |
| SPECIAL-CASE-INCOMPLETE | Not all special-case artifacts resolved | Stop. Report the unresolved set. |
Partial-result rule: in-place edits to the target are rolled back via VCS on failure. Run git restore TARGET to revert the working copy to its pre-edit state. If the target was a new file, delete it instead. No partial result is emitted.
The target local artifact replaced with its invariant-first refinement, plus a resolution log listing every removed special case and the invariant identifier that now governs its behavior.
What SKILL.md sets; muted values are Claude Code's defaults
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./breaking-drivenUse when bloated code needs clean re-derivation, or the user says "this module is bloated" or "break it and rebuild". Not for untracked data or changes without VCS rollback./clean-clean-cutUse when asked to run /clean-clean-cut to cut accumulated records and residue. Not for untracked or non-VCS changes, or branch/worktree cleanup: use git-cleanup./code-simplificationUse when the user asks to simplify, clean, or refine code. Not for new abstractions or whole-codebase refactors.Other plugins' skills for the same job