cc-os/plugins/os-doc-hygiene/openspec/changes/archive/2026-06-24-add-clean
jared b235e99145 Migrate os-doc-hygiene plugin into cc-os; record ADR-019
Moves the doc-hygiene plugin from the standalone cc-plugins repo into
cc-os as plugins/os-doc-hygiene/, following the same pattern as
os-vault and os-orchestration. Also commits the previously-unstaged
ADR-019 (global os-orchestration plugin supersedes per-project
orchestration text), which documents the prior migration but never
made it into a commit.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-03 11:12:31 -04:00
..
specs/doc-clean Migrate os-doc-hygiene plugin into cc-os; record ADR-019 2026-07-03 11:12:31 -04:00
.openspec.yaml Migrate os-doc-hygiene plugin into cc-os; record ADR-019 2026-07-03 11:12:31 -04:00
README.md Migrate os-doc-hygiene plugin into cc-os; record ADR-019 2026-07-03 11:12:31 -04:00
design.md Migrate os-doc-hygiene plugin into cc-os; record ADR-019 2026-07-03 11:12:31 -04:00
proposal.md Migrate os-doc-hygiene plugin into cc-os; record ADR-019 2026-07-03 11:12:31 -04:00
tasks.md Migrate os-doc-hygiene plugin into cc-os; record ADR-019 2026-07-03 11:12:31 -04:00

README.md

add-clean

Build step #4: the hygiene-clean skill, patch_applier.py (already built — 263 tests pass), and /hygiene clean/sweep routing. Loads the report written by check, gates confirm-tier entries (delete-range, all generative) with a batch-confirm prompt, applies deterministic entries via the per-file transaction applier (content-hash guard, descending-anchor application, incompatible-ops detection, precise git staging), delegates generative distillation to a Sonnet subagent via workflows/distill.md, and produces exactly one git commit (git-context commit-apply). sweep = check-then-clean at command level, no double-commit. Resolves the deferred insert-frontmatter guard hole from add-check.