๐Ÿ“‹

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.

Step 1 of 4

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).

Step 2 of 4

Describe this rule file

Write one sentence explaining what Claude should know about this topic. This becomes the intro of the file.

Step 3 of 4

Add your rules

Each rule is one clear instruction for Claude. Add as many as you need.

Step 4 of 4

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.

โœ…

Your rule file is ready

rules.md

                

๐Ÿ“ Save this file to .claude/rules/ inside your project folder.