一键导入
tracking-issue-closeout
Finalize and close plan-tracking GitHub issues after issue-backed execution is complete and the user or project policy has approved closure.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Finalize and close plan-tracking GitHub issues after issue-backed execution is complete and the user or project policy has approved closure.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | tracking-issue-closeout |
| description | Finalize and close plan-tracking GitHub issues after issue-backed execution is complete and the user or project policy has approved closure. |
Prereqs:
--repo <owner/repo>.gh is available on PATH, and gh auth status succeeds for live mode.python3 is available on PATH.plan-tracking-issue or has equivalent source and plan snapshot comments.execute-from-tracking-issue.Inputs:
--issue <number-or-url>.--repo <owner/repo>.--review-approved or --review-comment-url <url>.--issue-json <path> for audit/render dry runs without live GitHub reads.--skip-pr-checks only when PR merge state has already been verified externally and recorded in the issue.--repair-closed for an already closed issue whose final dashboard drifted after execution. This mode is explicit and never
closes the issue again.--finalize-closed with --repair-closed to append one missing <!-- tracking-issue-closeout:v1 --> comment for an already
closed, otherwise complete issue. Existing closeout markers are never duplicated.Outputs:
<!-- tracking-issue-closeout:v1 --> closeout comment summarizing checks, outcome, and approval basis.completed in live mode.--repair-closed mode, updated final dashboard body and JSON report only by default.--repair-closed --finalize-closed mode, one missing closeout marker may be appended before the dashboard repair; existing markers are
left untouched.--report-out <path> is supplied.Exit codes:
0: success1: readiness, validation, GitHub mutation, or close gate failure2: usage errorFailure modes:
--repair-closed, open while --repair-closed is selected, or not associated with the
selected repository.complete, lacks the canonical task ledger, or contains task rows not marked done or deferred.$AGENT_HOME/skills/workflows/issue/tracking-issue-closeout/scripts/tracking-issue-closeout.shgh issue view <issue> --json number,title,state,body,comments,labels,url.--issue-json <path> and require --dry-run.<!-- plan-tracking-issue:snapshot:v1 kind=source --> exists.<!-- plan-tracking-issue:snapshot:v1 kind=plan --> exists.<!-- execute-from-tracking-issue:state:v1 --> exists.<details> block when the state comment uses the default
collapsed-ledger format.Status: complete.done or explicitly deferred.<!-- execute-from-tracking-issue:session:v1 --> comment exists and the latest session indicates completion.--review-approved or --review-comment-url.--skip-pr-checks is used. The parser accepts PR #<number>,
pull request #<number>, and GitHub /pull/<number> links; generic issue, decision, task, and bare #<number> references are not PR
evidence.<!-- tracking-issue-closeout:v1 -->.--repair-closed mode:
--finalize-closed is also supplied and no closeout marker exists.--finalize-closed, append exactly one missing closeout marker before repairing the dashboard; if a marker already exists, do not
duplicate it.gh issue close.mode=repair-closed / repair_only=true, or mode=repair-closed-finalize / finalized_closed_issue=true, in stdout and JSON.completed.plan-tracking-issue: creates the tracking issue and source/plan snapshot comments.execute-from-tracking-issue: executes the issue-backed plan and appends state/session/validation comments; it does not close by default.
Execution-state creation remains owned by execute-from-tracking-issue, not by closeout or repair mode.issue-follow-up: use for generic GitHub issue timelines that are not tied to plan snapshot markers.skills/workflows/issue/_shared/lib/manage_issue_lifecycle.sh): lower-level generic open/update/comment/close
operations.dispatch-issue-closeout: use for heavyweight dispatch or plan-issue runtimes with task-lane close gates, approvals, and merged PR checks.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.
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.
Main-agent PR review workflow that enforces explicit PR comment links, routes follow-up back to subagent-owned task lanes, mirrors decisions to the issue timeline, and controls merge/close outcomes.