CC-MEM-021: Directory Tree or File Listing in CLAUDE.md
Summary
- Rule ID:
CC-MEM-021 - Severity:
LOW - Category:
Claude Memory - Normative Level:
BEST_PRACTICE - Auto-Fix:
No - Verified On:
2026-10-17
Applicability
- Tool:
claude-code - Version Range:
unspecified - Spec Revision:
unspecified
Evidence Sources
Test Coverage Metadata
- Unit tests:
true - Fixture tests:
true - E2E tests:
false
Examples
The following examples demonstrate what triggers this rule and how to fix it.
Invalid
# Layout
```
repo/
├── src/
│ ├── api/
... (20+ tree lines)
```
Valid
# Layout
- API handlers live in src/api/handlers/ and must not import from src/ui/.