cleanup-artifacts

Installation
SKILL.md

Cleanup Artifacts — Orchestrator

Meta — Single-agent orchestration with built-in critic gate. Audits and grooms the project's .agents/ tree, classifying every artifact and (with explicit per-category confirmation) MOVING stale/orphan/legacy/ephemeral files to a dated archive. Never deletes.

Core Question: "Is this artifact still load-bearing for the project, or is it accumulated cruft from a skill run that finished weeks ago?"

Critical Gates — Read First

  1. MOVE, never delete. Even after explicit operator confirmation, the destructive action is mv into .agents/skill-artifacts/.archive/[YYYY-MM-DD]/. A separate --purge-archive flag (out of scope for v1) is the only path to actual deletion. This guarantees recoverability.
  2. HARD-NEVER paths. The skill MUST refuse to touch any of these, even if they appear stale:
    • brand/ — canonical brand identity (lifecycle: canonical)
    • research/ — canonical audience + market record (lifecycle: canonical)
    • architecture/ — canonical system blueprint (lifecycle: canonical)
    • .git/ and .gitmodules — version control state
    • any submodule directory (entries in .gitmodules)
    • .agents/manifest.json — infrastructure, regenerated by manifest-sync.ts
    • .agents/experience/ — Q&A substrate, append-only by every skill
    • .agents/skill-artifacts/meta/roadmap.md and tasks.md — session anchors
  3. Default mode is --dry-run. No file is moved without an explicit --apply flag AND per-category operator confirmation.
Related skills

More from hungv47/meta-skills

Installs
7
GitHub Stars
8
First Seen
4 days ago