Generated Cleanup

Scans a project's generated-artifact surface (08-Generated/ + promoted folders), groups retirement candidates into three groups (promoted-and-stale, approaching-timeout, superseded), and stages a cleanup proposal for unconditional operator approval before any archive action. Keys on the reconciled lifecycle fields (lifecycle_state / promotion_state / lifecycle_changed) plus a derived staleness signal and the artifact-lint report; never reads the deprecated single-field workflow machine. The archive action branches by promotion_state: a staged file is swept to _archived/ (archived-in-place); a promoted file is content-retired in place (no move). Recommend-only at Autonomy Tier 1 — nothing is moved or archived without approval; a scheduled run stages a proposal that never self-applies. Distinct from cleanup-orphan-state.sh (a state-file tool, never invoked here). Triggers: "clean up 08-Generated", "run generated cleanup", "archive stale generated artifacts", "what generated files can be retired".

cody-hutson 6122579 2 files · 48.4 KB Updated

File contents

cody-hutson/pmo-platform/tree/main/operations/skills/generated-cleanup commit 6122579e0f

Frequently asked questions

npx skillmds@latest add cody-hutson/generated-cleanup