/officialunofficial-skills:to-invariants [output-path] (default: docs/INVARIANTS.md)from Official Unofficial Skills
Distills invariants from conversation and codebase into a document. Use to capture properties that must always hold, harden a design, or turn a spec into checkable assertions.
Ships in Official Unofficial Skills. 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.
None: SKILL.md is the whole skill.
Take the current conversation context and codebase understanding and produce a set of invariants: properties that must ALWAYS hold for the system to be correct. Do NOT interview the user — synthesize what you already know. Two audiences, two sections: design-level system invariants and enforceable invariants that map to a concrete check.
An invariant is not a feature, a requirement, or a nice-to-have. It is a condition whose violation means the system is broken. "Users can reset their password" is a feature. "A session token is never valid after logout" is an invariant.
If you have not already, skim the code in the area under discussion to ground the invariants in the real data structures, state machines, and boundaries. Use the project's own vocabulary. An invariant you cannot point at a place in the code for is a guess — mark it as one.
Sweep the design through these lenses — each tends to surface a different class of invariant. Aim for coverage, not volume; skip lenses that don't apply.
decode(encode(x)) == x; save→load, serialize→parse, redo(undo) are identity.For each invariant, decide which section it belongs in, and find where it lives in the code:
A single invariant can appear in both sections: stated as a system truth, then listed with its concrete check.
Write to the path in {{ARGUMENTS}}, or docs/INVARIANTS.md by default. If the file exists, merge — don't clobber invariants already recorded; add, refine, and flag conflicts. Use the template below.
Summarize to the user: how many invariants, and — most important — the GAPs (invariants with no enforcement). Ask whether they want the gaps turned into tests or tickets (do not do it unless asked).
Properties that must ALWAYS hold. A violation is a bug, by definition. Scope: <the system/feature/module these cover>
Design-level properties. Each: the property, why it holds, and the blast radius if it breaks.
Each maps to a concrete check. [x] = enforced today; [ ] = GAP, not enforced.
<test / assertion / constraint / type> at <location>.<property test / precondition / DB constraint>.Task: distill the invariants from the current context and write them to the doc. {{ARGUMENTS}}
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub officialunofficial/skills --plugin officialunofficial-skills85 skills in this plugin
/alignmentMeasures a running page for edges, gaps, centres and radii that miss by a pixel or two, judges visual weight, and returns a numbered report with proof./animateBuilds a web animation from scratch and writes the code. Decides in order whether it should animate at all, its purpose, the tool, the properties, the easing and duration or spring, how it interrupts and exits, and reduced motion. Use when asked to animate something, add motion, build a transition, or make a component feel alive. For React Native or Expo use animate-expo. To critique existing motion use review-animations. To audit a whole codebase use improve-animations./animate-expoOther plugins' skills for the same job