CLAUDE.md: add rules-loading discipline tip to Workflow Best Practices

Records the official docs behavior: .claude/rules/*.md without paths:
frontmatter auto-load into every session like CLAUDE.md; with paths:
they lazy-load only when Claude touches matching files. Thematically
grouped next to the existing 200-line CLAUDE.md rule so context-discipline
rules stay adjacent.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Shayan Rais
2026-04-20 00:07:57 +05:00
parent 08cf087a16
commit b077d931f8
+1
View File
@@ -92,6 +92,7 @@ When the user asks a Claude Code best practice question, **always search this re
From experience with this repository:
- Keep CLAUDE.md under 200 lines per file for reliable adherence
- `.claude/rules/*.md` with `paths:` YAML frontmatter are lazy-loaded only when Claude touches matching files; without frontmatter they load into every session like CLAUDE.md
- Use commands for workflows instead of standalone agents
- Create feature-specific subagents with skills (progressive disclosure) rather than general-purpose agents
- Perform manual `/compact` at ~50% context usage