원클릭으로
docs-plan-cleanup
Prune outdated docs/plans coordination markdown and reconcile plan-related docs safely for a target project.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Prune outdated docs/plans coordination markdown and reconcile plan-related docs safely for a target project.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Resume and execute implementation work from a plan-tracking GitHub issue that carries issue-hosted source, plan, and execution-state snapshots, preserving progress on the issue when local docs/plans files may be cleaned up.
Use when the user wants to open or continue a GitHub issue as the durable timeline for a discovered problem, investigation, blocker, implementation handoff, or unresolved follow-up loop.
Finalize and close plan-tracking GitHub issues after issue-backed execution is complete and the user or project policy has approved closure.
Open or preview a provider-aware GitHub or GitLab tracking issue for a docs/plans plan bundle, bootstrapping the source doc and plan first when the user has a converged feature discussion but no plan file yet.
Deliver a dispatch-ready plan by sprint: split plan tasks into PR lanes, dispatch subagent work, enforce acceptance gates, and advance through final integration without main-agent implementation.
Close out an existing plan-issue runtime where main-agent owns orchestration and review only, subagents own implementation task lanes, and close gates require approval plus merged PRs.
| name | docs-plan-cleanup |
| description | Prune outdated docs/plans coordination markdown and reconcile plan-related docs safely for a target project. |
Scope boundary:
docs/plans/
coordination-doc pruning.plan-tooling artifact-audit report can classify candidates, but this
skill only executes known keep/delete intent through the existing cleanup
script and report format.durable-artifact-cleanup first when that
judgment is unclear, the audit report contains rehome or manual-review,
or the scope includes named artifacts outside docs/plans/.Prereqs:
bash, git, find, and rg available on PATH.docs/plans/.--execute.plan-tooling artifact-audit report, or a prior durable-artifact-cleanup
audit.Inputs:
--project-path <path>: target project path override. Default resolution order: --project-path > $PROJECT_PATH > current directory.--keep-plan <path|name>: plan or source doc to preserve (repeatable). Supports:
docs/plans/foo/foo-plan.md),foo-plan.md),foo-plan),foo) when docs/plans/foo/foo-plan.md exists.--keep-plans-file <path>: newline list of plans to preserve (# comments allowed).--execute: apply deletions (default is dry-run).--delete-important: also delete docs/specs/** and docs/runbooks/** files only tied to removed plans.--delete-empty-dirs: remove empty directories under docs/ after deletion.Outputs:
docs-plan-cleanup-report:v1 with sections:
[plan_md_to_clean][plan_related_md_to_clean][plan_related_md_kept_referenced_elsewhere][plan_related_md_to_rehome][plan_related_md_manual_review][non_docs_md_referencing_removed_plan]plan_md_* labels for compatibility, but candidates include plan-source coordination docs.--execute mode:
docs/plans/**/*.md coordination files,discussion-to-implementation-doc and
review-to-improvement-doc source docs under deleted plan folders by default,docs/plans/<slug>/ folder as a
kept plan/source doc,docs/**/*.md that only depend on removed plans and are not externally referenced,heuristic-system/**/*.md as retained records for manual review,--delete-important is explicitly set.Exit codes:
0: success1: runtime failure2: usage error or invalid keep-plan inputFailure modes:
docs/plans/ is missing in the target project.git, rg, find).--keep-plan / --keep-plans-file references unknown or ambiguous plans.$AGENT_HOME/skills/workflows/plan/docs-plan-cleanup/scripts/docs-plan-cleanup.shIdentify active plans and plan-source docs that must be kept.
plan-tooling artifact-audit report, translate only
reviewed delete and keep items into this script's keep/delete inputs.
Do not execute rehome, manual-review, or unknown classifications from
this skill.durable-artifact-cleanup for the audit.rehome or
manual-review, stop and use durable-artifact-cleanup to interpret that
candidate before batch deletion.Run dry-run first (defaults to $PROJECT_PATH when exported):
PROJECT_PATH=/path/to/project bash $AGENT_HOME/skills/workflows/plan/docs-plan-cleanup/scripts/docs-plan-cleanup.sh --keep-plan active-planReview report sections:
docs/plans/foo/foo-plan.md keeps its sibling
source docs and execution-state docs in docs/plans/foo/.plan_related_md_kept_referenced_elsewhere are protected from auto-delete.plan_related_md_to_rehome should be consolidated before deletion.error-inbox/ and operation-records/ entries are
retained records. They are manual-review items, not auto-delete candidates,
even when they reference a removed plan.docs-plan-cleanup-report:v1 section names unchanged;
they are the executor report format, not the normalized audit classes.Apply cleanup after review:
bash $AGENT_HOME/skills/workflows/plan/docs-plan-cleanup/scripts/docs-plan-cleanup.sh --project-path /path/to/project --keep-plan active-plan --execute --delete-empty-dirs
Use --delete-important only when you are sure docs/specs/** and
docs/runbooks/** candidates are obsolete. This still must not delete
HEURISTIC_SYSTEM error-inbox/ or operation-records/ entries.
references/ASSISTANT_RESPONSE_TEMPLATE.md as the response format when reporting cleanup results.[execution] with status: applied, the response must include:
total_plan_mdplan_md_to_keepplan_md_to_cleanplan_related_md_to_cleanplan_related_md_kept_referenced_elsewhereplan_related_md_to_rehomeplan_related_md_manual_reviewnon_docs_md_referencing_removed_planplan_md_to_keepplan_md_to_cleanplan_related_md_to_cleanplan_related_md_kept_referenced_elsewhereplan_related_md_to_rehomeplan_related_md_manual_reviewnon_docs_md_referencing_removed_plannone row in that table.