dreaminglisted
Install: claude install-skill davidlee/doctrine
# Dreaming
Memory decays. Files move, commands change, invariants shift, duplicates
accumulate. This skill is the maintenance loop that keeps the corpus
trustworthy — one procedure, entered from either direction.
**Reactive entry.** Something changed: a file was renamed, a command flag was
removed, an ADR shifted a subsystem boundary, a code review found stale
memories referencing old paths. Run the procedure scoped to the affected area.
**Proactive entry.** Idle time, end-of-slice wrap-up, or a scheduled
maintenance window. Run the procedure corpus-wide.
## Procedure
1. **Validate.** Run `doctrine memory validate` corpus-wide (reactive: scope
with `--path-scope`/`--glob` to the changed area). Triage each finding:
- Fix immediately if trivial (update a path, refresh a scope)
- Capture as a backlog item if non-trivial (risk, chore, or improvement)
- Note and defer if low-impact and not time-sensitive
2. **Prune.** Identify stale memories:
- Past `review_by` date → flag for review or archive
- Unverified threads past expiry → archive (`memory status <REF>
archived`)
- `working`-lifespan memories older than a few days → retract or promote
to a durable type
- Run `doctrine memory status <REF> archived` for stale items; use
`retracted` for memories that were simply wrong.
3. **Link.** Strengthen the graph:
- Review suggested relations on recently-recorded or recently-edited
memories (check `memory show <REF>` for relation rows)