consolidatelisted
Install: claude install-skill darkroomengineering/cc-settings
# Consolidate Rules, Skills, and Learnings
Prevent context bloat and contradictions by periodically auditing, merging, and pruning.
## Phase 1: Audit
### Count everything
```bash
echo "Rules:" && ls ~/.claude/rules/*.md 2>/dev/null | wc -l
echo "Skills:" && ls -d ~/.claude/skills/*/SKILL.md 2>/dev/null | wc -l
echo "Auto-memory entries:" && find ~/.claude/projects/*/memory -name "*.md" -not -name "MEMORY.md" 2>/dev/null | wc -l
echo "CLAUDE.md lines:" && wc -l ~/.claude/CLAUDE.md 2>/dev/null
echo "AGENTS.md lines:" && wc -l ~/.claude/AGENTS.md 2>/dev/null
```
### Check for contradictions
Read all rules and flag:
- Opposites ("always X" in one, "never X" in another)
- Significant overlap (two rules covering the same concern)
- References to outdated tools, patterns, or dependencies
- Vague rules that aren't actionable
### Check skill triggers
Read all skill descriptions and flag:
- Overlapping trigger phrases between skills
- Skills that never get invoked (ask the user)
- Outdated instructions
## Phase 2: Merge and Deduplicate
### Rules
- Merge rules covering the same concern
- Remove rules that duplicate AGENTS.md guardrails
- Remove rules for problems that no longer occur
- Tighten vague rules into specific instructions
### Skills
- Merge skills with overlapping triggers
- Remove unused skills
- Update outdated instructions
- Ensure distinct, non-overlapping trigger phrases
### Auto-memory
- Review entries under `~/.claude/projects/<hash>/memory/`
- Remove entries a