skills/enforcing-code-quality/SKILL.md
Behavioral protocol for all code changes. Invoked automatically by develop and test-driven-development. Triggers: 'code quality', 'no shortcuts', 'production quality', 'enforce standards'. NOT for: reviewing others' code (use code-review) or test quality (use fixing-tests).
npx skillsauth add axiomantic/spellbook enforcing-code-qualityInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
any type, swallowed error, and skipped test becomes someone's 3am incident.| Input | Required | Description | |-------|----------|-------------| | Code being written | Yes | Implementation in progress | | Existing patterns | No | Codebase conventions to match | | Test requirements | No | Expected coverage and assertion depth |
| Output | Type | Description | |--------|------|-------------| | Compliant code | Code | Implementation meeting all standards | | Issue flags | Inline | Pre-existing issues discovered | | Pattern notes | Inline | Conventions followed or justified deviations |
| Behavior | Rationale | |----------|-----------| | Read existing patterns FIRST | Consistency > cleverness | | Understand WHY before fixing | Root cause, not symptom | | Full assertions in tests | Prove behavior, not just execution | | Handle all error branches | Production sees every edge case |
When discovering issues in touched code:
patterns/assertion-quality-standard.md)assert result == expected), never substring checks; for dynamic output, construct full expected value dynamicallyassert "X" in result is BANNED -- static or dynamic)any types introducedpatterns/assertion-quality-standard.md)assert result == expected_complete_output); for dynamic output, construct full expected value dynamicallyassert "X" in result is BANNED -- static or dynamic)assert result == func(same_input))<FINAL_EMPHASIS> Zero shortcuts. Zero swallowed errors. Zero skipped assertions. Code that ships must be code you would defend at 3am. If any checklist item is unchecked, it is not done. </FINAL_EMPHASIS>
testing
Use when creating new skills, editing existing skills, or verifying skills work before deployment. Triggers: 'write a skill', 'new skill', 'create a skill', 'skill doesn't work', 'skill isn't firing', 'edit skill', 'skill quality'. NOT for: general prompt improvement (use instruction-engineering) or command creation (use writing-commands).
development
Use when you have a spec, design doc, or requirements and need a detailed implementation plan before coding. Triggers: 'write a plan', 'create implementation plan', 'plan this out', 'break this down into steps', 'convert design to tasks', 'implementation order'. Also invoked by develop during planning. NOT for: reviewing existing plans (use reviewing-impl-plans).
testing
Use when creating new commands, editing existing commands, or reviewing command quality. Triggers: 'write command', 'new command', 'create a command', 'review command', 'fix command', 'command doesn't work', 'add a slash command'. NOT for: skill creation (use writing-skills).
development
Use when about to claim discovery during debugging. Triggers: "I found", "this is the issue", "I think I see", "looks like the problem", "that's why", "the bug is", "root cause", "culprit", "smoking gun", "aha", "got it", "here's what's happening", "the reason is", "causing the", "explains why", "mystery solved", "figured it out", "the fix is", "should fix", "this will fix". Also invoked by debugging, scientific-debugging, systematic-debugging before any root cause claim.