generate-rule
Installation
SKILL.md
Add a new rule to an existing CLAUDE.md.spec.ts (or create one if it doesn't exist).
Arguments
$ARGUMENTS — A natural language description of what the rule should enforce. Examples:
- "no console.log in production code"
- "every controller needs a test file"
- "always use the custom logger instead of console"
- "imports should go through barrel files"
- "don't use moment.js, we're migrating to dayjs"
Instructions
Step 1: Find the Spec File
Look for CLAUDE.md.spec.ts in the repo root. If it doesn't exist: