memory-hygienelisted
Install: claude install-skill mishahanin/heading-os
# Memory Hygiene
Detect objective memory defects. This skill is a detector, not a fixer: it surfaces deterministically-verifiable rot and hands resolution to `/dream`. It NEVER merges, deletes, or rewrites memory.
## Phase 0 - Run the detector
```bash
python scripts/memory-hygiene.py
```
The script:
- Reads the canonical auto-memory dir (`<data-root>/auto-memory/`) and computes orphans, line-budget breach, and stale files.
- Runs `odin-brain-health.py --compile` and reads its temporal-validity errors.
- Writes `outputs/operations/memory-hygiene/YYYY-MM-DD_memory-hygiene_report.md`.
- Prints a one-line summary and exits `0` (clean) or `1` (objective defects present).
If the Odin brain is unavailable, the script degrades clearly and still reports the auto-memory half.
## Phase 1 - Present the result
Read the report it wrote and present, grouped:
1. **Objective defects (the gate)** - dangling/circular `superseded_by`, orphan memory files, over-budget `MEMORY.md`. These are the items that need action.
2. **Advisory (non-gating)** - stale files (>45 days), Odin stale seeds/positions, orphan principles. Mention counts; do not treat as failures.
State the exit posture plainly: "clean" or "N objective defect(s)".
## Phase 2 - Hand resolution to /dream
If objective defects exist, recommend `/dream` to resolve them (consolidation is judgement). Do NOT fix them here. Name the specific defects so `/dream` has a worklist.
## NEVER
- NEVER merge, delete, reword, or otherwise m