بنقرة واحدة
durable-artifact-cleanup
Audit and remove obsolete durable implementation artifacts after execution is complete.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Audit and remove obsolete durable implementation artifacts after execution is complete.
التثبيت باستخدام 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 | durable-artifact-cleanup |
| description | Audit and remove obsolete durable implementation artifacts after execution is complete. |
Use this skill when source docs, implementation handoffs, improvement records, plans, execution-state docs, or handoff prompts have served their purpose and should not drift from maintained code.
Scope boundary:
plan-tooling artifact-audit is available, use it for repeated
candidate classification into delete, keep, rehome, and
manual-review.docs/plans/ batch deletion, use this skill to classify ambiguous
scope first, then use docs-plan-cleanup as the deterministic batch executor
when keep/delete intent is known.Prereqs:
Inputs:
Status: complete, passing validation, final commit, or accepted-risk note.Outputs:
delete, keep, rehome, and manual-review.Exit codes:
Failure modes:
Confirm cleanup scope
docs/plans/<slug>/ and none has been
promoted into maintained docs.plan-tooling artifact-audit --candidate <path> --format json
when multiple candidates or repeated classification are involved. Treat the
JSON classes as input to this workflow, not as authority to delete files.plan-tooling artifact-audit is not installed or cannot evaluate the
repository, continue with the manual audit steps below and report the
fallback.docs-plan-cleanup for broad docs/plans/ pruning after active bundles are
known.rehome only when the project has audit, release, compliance, or historical lookup needs.Verify completion
Status: complete, equivalent task ledger completion, merged/closed issue or PR, or explicit user confirmation.keep or manual-review.Scan references
rg over tracked docs/code/tests plus relevant issue/PR links when available.Read First lists, execution-state links, plan references, and handoff prompts.keep or
rehome until references are updated.Separate evidence from stale coordination docs
heuristic-system/error-inbox/ and
heuristic-system/operation-records/ as retained evidence
locations. Keep them unless the entry is closed/promoted and the cleanup
request explicitly includes it.rehome until the retained content is linked from a maintained location.Apply cleanup
delete.docs/plans/ cleanup, run docs-plan-cleanup dry-run/execute
instead of manually deleting plan bundles.Validate and report
discussion-to-implementation-doc: creates implementation handoffs that may later become cleanup candidates.review-to-improvement-doc: creates improvement records; delete them only after fixes are complete and evidence is retained elsewhere when
needed.execute-from-plan: updates execution state; use this cleanup skill after execution status is complete and no future resume
is needed.docs-plan-cleanup: deterministic batch executor for broad docs/plans/ coordination-doc pruning with its existing report format. Use
it after this workflow or a reviewed plan-tooling artifact-audit report when
keep/delete intent is known.handoff-session-prompt: prompt artifacts should usually be deleted once source docs and execution state are the maintained record.