Documentation
README
Creating Claude Rules
Overview
Rules in .claude/rules/ are modular instructions scoped to specific files via glob patterns. They load automatically with same priority as CLAUDE.md.
When to Use
- Creating new rules in
.claude/rules/ - Fixing rules that use wrong frontmatter (
globsinstead ofpaths) - Migrating Cursor rules to Claude format
- Organizing project-specific conventions
Quick Reference
| Field | Claude | Cursor |
|---|---|---|
| Path patterns | paths |
globs |
| Always apply | Omit paths |
alwaysApply: true |
| Description | Not documented | description |
Frontmatter
Path-Scoped Rules
This is the opening of the README. Read the full README on GitHub.