/open-skills:plan-cleanupfrom open-skills
Removes planning artifacts and tech debt after plan execution. Scans for PLAN.md, temp files, and tool artifacts, then confirms before deletion.
Ships in open-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Remove planning artifacts and tech debt after a plan has been executed. No new work. No scope additions. Just cleanup.
Structured execution spec:
protocol.yon. Read it for the canonical rules and step sequence; this file is explanation. The two must stay in sync — if you edit one, update the other and refresh the@STAMPdate.
Scan for artifacts left behind by the planning and execution cycle:
Planning docs (created by /plan-create, /plan-phases, /plan-deep-dive):
PLAN.mdimplementation_plan.mdtask.md (if created as a plan artifact, not a pre-existing project file)*-plan.md files in the project rootExecution scaffolding (created by /plan-execute or setup steps):
Tool artifacts:
.claude/ directories created incidentally in skill or tool folders (not the user's project .claude/)For each candidate, verify: is this file needed by the project going forward? If yes, leave it. If it exists only because of the planning cycle, it's an artifact.
Gate: list every artifact found before removing anything. If none found, declare "No artifacts found — workspace is clean" and stop.
Before confirmation, establish the exact physical target of each candidate using no-follow leaf and parent-chain identity, and prove it remains within the project. For recursive removal, enumerate links and prove containment. Stop if proof is unavailable or a redirect escapes or is unknown. Present the exact physical target list and irreversible effects to the user:
"Found the following planning artifacts and exact physical targets; removal is irreversible:
- [file 1]
- [file 2]
Remove all? (y / skip [filename] / cancel)"
On confirmation:
git rm if tracked and its exact index effects are proven to preserve unrelated staged and worktree changes; otherwise stop the Git portion. Use rm if untracked.Gate: do not remove any file not explicitly identified in Phase 1. Do not remove files the user skipped.
chore: remove planning artifacts only if the actual effects match the authorization and preserve unrelated index and worktree state. If that cannot be proven, stop the Git portion and report what was already removed and skipped.Terminal declaration (required):
Cleanup complete — [N] artifacts removed.Cleanup complete — workspace was already clean.Cleanup halted — [reason]. Removed: [list]. Skipped: [list].Human output. This skill's handler-facing output obeys the human-output contract (
human-output/SKILL.md).
Self-improvement. On completion, run the Self-Improvement Protocol (
self-improve/SKILL.md): apply its signal taxonomy and threshold to this run; surface any surviving proposal for handler approval. Conservative — silent otherwise. Never auto-apply.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub allemaar/open-skills --plugin open-skills93 skills in this plugin
/agent-mailboxTwo or more agents — any harness, any vendor — collaborate through any shared folder: share a folder, load the skill, point at it.
/agent-outputCompact agent-to-agent communication contract for worker reports, handoffs, status, blockers, and review findings. Trigger phrases: "/agent-output", "brief the worker", "make agent reports terse". Not a transport; use /agent-mailbox for delivery.
/ask-gateThe Ask-Gate Protocol (AGP). Before surfacing an AskUserQuestion, triage whether the question is genuinely the handler's call (anti-nag); ask routine questions directly after a quality checklist, but escalate high-stakes / branching / irreversible ones through /insight-critique then /insight-assess first. Trigger via /ask-gate, or automatically before any handler-facing question. Not /caller-options (routes a skill's venue/mode) or /next-skills (recommends successors) — AGP governs the question itself.
Other plugins' skills for the same job