← ClaudeAtlas

roll-.dreamlisted

Nightly code and architecture health scan. Passively triggered by scheduler (cron or GitHub Actions), not invoked by users directly. Detects dead code, architectural drift from domain model, pruning candidates, emerging patterns, doc coverage gaps, and doc staleness (文档新鲜度). Outputs REFACTOR entries to .roll/backlog.md and a daily log to .roll/dream/. Distinct from roll-sentinel: sentinel monitors runtime behavior; dream reviews code structure and architectural health.
seanyao/roll · ★ 13 · AI & Automation · score 86
Install: claude install-skill seanyao/roll
# Roll Dream (Nightly Code Health Scan) > Follows the Architecture Constraints, Development Discipline, and Engineering > Common Sense defined in the project AGENTS.md. **Passively triggered — do not invoke manually.** Runs nightly via scheduler. Consolidates structural signals accumulated during the day, surfaces technical debt, and writes REFACTOR entries to BACKLOG. The human reviews the dream log in the morning brief. ## Distinction from roll-sentinel | | roll-sentinel | roll-.dream | |--|--------------|------------| | **Trigger** | Post-deploy, scheduled patrol | Nightly, fixed schedule | | **Target** | Runtime behavior (production) | Code structure (codebase) | | **Output** | FIX entries | REFACTOR entries + dream log | | **Question** | "Is the product working?" | "Is the code healthy?" | ## Scan Logic Run all scans every night. Each scan is independent. ### Scan 1 — Dead Code Find code that is defined but never referenced: ```bash # Unused exports (TypeScript/JS) grep -r "^export " src/ --include="*.ts" -l | while read f; do symbol=$(grep -o "export \(function\|const\|class\|type\|interface\) [A-Za-z]*" "$f" | awk '{print $NF}') # check if symbol appears anywhere else in the codebase done # Unused files (no imports pointing to them) # Git: files not touched in 90+ days and not imported anywhere git log --since="90 days ago" --name-only --format="" | sort -u > /tmp/recently_touched ``` Flag: files or exports with zero references outside their own file. #