Invariant Hunter

Use when reviewing Go, Python, or TypeScript code for invariants left to runtime, convention, or type assertions: tightening a domain model after prototyping, reducing casts and type-system bypasses, reviewing optionality and discriminated unions, or establishing a safety baseline before a refactor. Defaults to the codebase. Covers unguarded type assertions, loose optionality, defensive access in non-boundary code, leaky discriminated unions, runtime checks promotable to types, type-system bypasses, and Go's unchecked errors, nil pointer risks, zero-value traps, error chain correctness, context misuse, panic/recover misuse, and race conditions.

skyosev Updated

File contents

skyosev/agent-skills/tree/main/code-hunter/invariant-hunter commit 5394732363

Frequently asked questions

npx skillmds@latest add skyosev/invariant-hunter