List current rules structure and CLAUDE.md references
Displays the current rules organization showing critical rules and context files.
/plugin marketplace add FrancisVarga/coconut-claude-code-plugins/plugin install coconut-rules@coconut-claude-code-pluginsIf the user passes --help as an argument, display this help and stop:
/coconut-rules:list-rules - List Rules Structure
DESCRIPTION
Display the current rules organization showing context files
in .claude/rules/.
USAGE
/coconut-rules:list-rules
/coconut-rules:list-rules --help
OUTPUT
Shows:
- Critical rules in CLAUDE.md
- Context files in .claude/rules/
- Orphaned or missing files
- Recommendations for optimization
EXAMPLES
# List all rules
/coconut-rules:list-rules
SAMPLE OUTPUT
## Rules Structure
### Critical Rules (Always Loaded)
From CLAUDE.md:
- Never commit secrets ✓
- Feature branches only ✓
### Context Files (On-Demand)
.claude/rules/
├── python.md (Python/FastAPI)
├── typescript.md (React/TypeScript)
└── docker.md (Containers)
## Summary
- Critical rules: 2 (in CLAUDE.md)
- Context files: 3 (loaded on-demand)
INDICATORS
✓ Properly configured
✗ Issue found
⚠️ Recommendation available
Display the current rules organization.
.claude/rules/# Check for coconut rules structure
ls -la .claude/rules/ 2>/dev/null && echo "Rules structure found"
Look for:
## Critical Rules section## Rules or ## Context table referencing .claude/rules/## Rules Structure
### Critical Rules (Always Loaded)
From CLAUDE.md:
- Never commit secrets ✓
- Feature branches only ✓
- Run tests before commit ✓
### Context Files (On-Demand)
.claude/rules/
├── python.md (Python/FastAPI)
├── typescript.md (React/TypeScript)
└── docker.md (Containers)
### Context Table
| Working On | Read | Status |
|------------|------|--------|
| Python/FastAPI | python.md | ✓ exists |
| TypeScript/React | typescript.md | ✓ exists |
| Docker | docker.md | ✓ exists |
## Summary
- Critical rules: 3 (in CLAUDE.md)
- Context files: 3 (loaded on-demand)
- Loading optimization: Active
Based on findings:
| Symbol | Meaning |
|---|---|
| ✓ | Properly configured |
| ✗ | Issue found |
| ⚠️ | Recommendation |