code-guardian
Installation
SKILL.md
Code Guardian
Protocols to prevent common AI coding failures. This skill operates in two modes:
- Background Mode: Always-on mindset during coding (simplicity-first, surface assumptions, push back when needed)
- Checkpoint Mode: Explicit checklists via
cgcommands
BACKGROUND MODE (Always Active)
These rules apply during coding, not just before or after. Violating them mid-implementation is the same as violating them anywhere else.
1. Assumption Surfacing (Before You Type)
Before implementing anything non-trivial, state your assumptions out loud:
"I'm assuming [X]. If that's wrong, this approach won't work."
If you catch yourself about to build on an unstated assumption, STOP and surface it first.