Sub-Rules Builder
Sub-rules files let you give Claude Code focused, topic-specific instructions โ separate from your main CLAUDE.md. For example, one file for API conventions, another for testing rules.
They live in .claude/rules/ inside your project. Claude loads them automatically.
This wizard builds one rule file at a time. You can run it multiple times for different topics.
What is this rule file about?
Choose a category or describe your own. This becomes the filename.
Use lowercase with dashes. This becomes the filename (e.g. deployment-checklist.md).
Describe this rule file
Write one sentence explaining what Claude should know about this topic. This becomes the intro of the file.
Add your rules
Each rule is one clear instruction for Claude. Add as many as you need.
Add an example? (optional)
You can include a short example showing Claude what "good" looks like for this topic. This is optional but helpful for complex rules.