一键导入
verify-closeout
expert: "Execute a 10-item Definition of Done checklist with concrete
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
expert: "Execute a 10-item Definition of Done checklist with concrete
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use at the start of every agent session, even if the task seems obvious and you think you already know what to do. Activates when the agent has just opened a repository, does not know what to do, needs to orient itself, or is beginning any new session. Also activates for "where do I start?", "what should I work on?", "what is the current state?". Skipping orientation leads to wasted effort and missed context.
expert: "Structured task execution procedure for individual implementation
expert: "Multi-agent development orchestration with conflict-aware parallel
expert: "Review orchestration with adaptive specialist dispatch,
Use at the start of every agent session, even if the task seems obvious and you think you already know what to do. Activates when the agent has just opened a repository, does not know what to do, needs to orient itself, or is beginning any new session. Also activates for "where do I start?", "what should I work on?", "what is the current state?". Skipping orientation leads to wasted effort and missed context.
expert: "Structured task execution procedure for individual implementation
| name | verify-closeout |
| description | {"expert":"Execute a 10-item Definition of Done checklist with concrete verification actions per item, producing a structured pass/fail report","natural":"Check that a feature is truly done by running through the Definition of Done checklist and reporting what passed and what failed"} |
| triggers | ["verify close-out","check definition of done","audit feature completion","verify feature is done","run DoD checklist"] |
| roles | ["verifier"] |
| stage | verifying |
| constraint_level | high |
Overarching policy (applies project-wide, not just to feature close-out):
- All tests pass on
mainat all times. Any commit that introduces a test failure onmainis a DoD violation, regardless of which feature or package the change was in.- Any developer who observes a failing test on
mainis responsible for reporting it immediately — create a BUG entity or file an incident. "Not my package" is not an acceptable response. All team members share collective responsibility for test suite health.
done.git status --porcelain, go test ./...).fail with the reason.You will receive a feature ID. Execute all ten verification actions below and produce the structured output format at the end. Do not converse, ask, or clarify — just check and report.
Condition: Every task under the feature is done, not-planned, or duplicate.
No task remains in ready, active, needs-review, or needs-rework.
Verification action: Call entity(action: "list", type: "task", parent_feature: "<FEATURE-ID>"). Confirm every returned task has status done, not-planned, or duplicate.
Pass criterion: Zero tasks in non-terminal statuses.
Fail criterion: Any task in ready, active, needs-review, or needs-rework.
Condition: git status is clean. No uncommitted source files, test files,
workflow state, or temporary artifacts.
Verification action: Run git status --porcelain in the repository root.
Confirm no output (empty string).
Pass criterion: git status --porcelain produces zero lines of output.
Fail criterion: Any line of output — uncommitted or untracked files exist.
Condition: Scratch scripts, repro files, debug output, or manual test fixtures used during development are deleted.
Verification action: Run git status --porcelain and check for untracked files
(?? prefix). Review each untracked file to determine if it is a temporary artifact.
Also check the worktree root for common temp file patterns (*.tmp, debug_*,
scratch_*, repro_*).
Pass criterion: No untracked temporary files. Committed files in appropriate locations are acceptable. Fail criterion: Untracked temporary files present in the worktree.
Condition: go build ./... and go test ./... both pass on the feature branch.
Suitable new tests exist for the change.
Verification action: Run go build ./... in the repository root, then run
go test ./... (or test(action: "run")). Record the exit codes and any failure
output from both. Cross-reference against the test-status record produced by
test(action: "verify") — the record must show zero failures for the relevant
packages and a clean bill of health for the feature.
Pass criterion: Both go build ./... and go test ./... exit zero with
no failures. The test-status record confirms a clean run.
Fail criterion: Any build error, test failure, or non-zero exit code from
either command. Mismatch between the test-status record and the live run.
Main-branch policy: The same standard applies to
mainat all times. See the overarching policy at the top of this document.
Condition: At minimum one review sub-agent with clean context has been dispatched
(via orchestrate-review), findings collated, and no blocking findings remain. A
review document is registered.
Verification action: Call doc(action: "list", owner: "<FEATURE-ID>", type: "report"). Confirm at least one report-type document exists. Call entity(action: "get", id: "<FEATURE-ID>") and confirm the feature reached reviewing stage with review completed.
Pass criterion: At least one review document registered. Feature passed through
reviewing stage with no blocking findings.
Fail criterion: No review document found, or feature skipped the reviewing stage,
or blocking findings remain unresolved.
Condition: Feature advanced through developing → reviewing → merging → verifying → done.
Each transition is an explicit entity(action: "transition") call. No stage skipped.
Verification action: Call entity(action: "get", id: "<FEATURE-ID>"). Check
the status history if available, or the current status. The feature should currently
be in verifying status and have passed through reviewing and merging.
Pass criterion: Feature status is verifying. Previous transitions through
reviewing and merging are confirmed.
Fail criterion: Feature is not in verifying, or lifecycle stages were skipped.
Condition: merge(action: "execute") succeeded and
git merge-base --is-ancestor <feature-branch> main exits zero.
Verification action: Determine the feature branch name (from the entity or worktree
record). Run git merge-base --is-ancestor <branch> main and check the exit code.
Also run git branch --merged main | grep <feature-id> to confirm the branch appears
as merged.
Pass criterion: git merge-base --is-ancestor exits zero. Branch appears in
git branch --merged main.
Fail criterion: Non-zero exit from git merge-base, or branch not found in
merged list.
Condition: git branch | grep <feature-id> returns nothing. The branch is gone.
Verification action: Run git branch | grep <feature-id>. Confirm no output.
Pass criterion: Zero lines of output — the feature branch does not exist.
Fail criterion: The branch name appears in git branch output.
Condition: worktree(action: "remove") called. git worktree list confirms
the worktree directory is gone.
Verification action: Run git worktree list. Confirm no worktree path contains
the feature ID. Also call worktree(action: "list", entity_id: "<FEATURE-ID>")
and confirm no active worktree record exists.
Pass criterion: No worktree for this feature in git worktree list and no
active worktree record.
Fail criterion: Worktree directory still exists or worktree record is still active.
Condition: Tier-2 knowledge entries contributed during the feature are confirmed, flagged, or retired. Related entities (bugs, decisions) are transitioned to terminal states.
Verification action: Call knowledge(action: "list", topic_filter: "<FEATURE-ID>").
Check that all returned entries are in confirmed, retired, or disputed status
(not contributed). Call entity(action: "list", parent_feature: "<FEATURE-ID>", type: "bug")
and entity(action: "list", parent_feature: "<FEATURE-ID>", type: "decision").
Confirm all related entities are in terminal states.
Pass criterion: No knowledge entries in contributed status. All related bugs
and decisions in terminal states.
Fail criterion: Unresolved knowledge entries or non-terminal related entities.
When verifying a retro-fix feature (a feature created to address signals from a retrospective), the close-out criteria shift for Item 10. Items 1–9 remain identical to the standard DoD.
Apply this variant when the feature under verification has tags linking it to
retrospective source signals. Detect this by calling entity(action: "get", id: "<FEATURE-ID>") and checking for signal ID tags (e.g., SIG-... or
retro:... patterns). If the feature has no signal tags, use the standard
DoD Item 10 instead.
Condition: Every source retro signal linked to the fix feature is in a
terminal resolution state — confirmed, retired, or linked. No source
signal remains in contributed status.
Verification action:
entity(action: "get", id: "<FEATURE-ID>") and extract the feature's
tags. Identify all signal IDs referenced in the tags.knowledge(action: "get", id: "<SIGNAL-ID>")
and check the entry's status.knowledge(action: "list", topic_filter: "<FEATURE-ID>")
to surface any additional linked entries.Pass criterion: All source retro signal entries are in confirmed,
retired, or linked status.
Fail criterion: Any source retro signal entry is still in contributed
status, or a referenced signal ID cannot be resolved.
When the retro-fix variant applies, use the same output format but replace item 10 in the table:
| 10 | Signals addressed | pass / fail | <evidence> |
Produce exactly this structured output — no preamble, no conversation, no questions:
## Close-Out Verification Report
**Feature:** <FEATURE-ID>
**Aggregate Verdict:** all-pass | failures-found (<N> failures)
| # | DoD Item | Status | Evidence |
|---|----------|--------|----------|
| 1 | All tasks terminal | pass / fail | <evidence> |
| 2 | All changes committed | pass / fail | <evidence> |
| 3 | Temporary files removed | pass / fail | <evidence> |
| 4 | Builds and tests pass | pass / fail | <evidence> |
| 5 | Code reviewed | pass / fail | <evidence> |
| 6 | Full lifecycle advanced | pass / fail | <evidence> |
| 7 | Merge ancestry verified | pass / fail | <evidence> |
| 8 | Branch deleted | pass / fail | <evidence> |
| 9 | Worktrees removed | pass / fail | <evidence> |
| 10 | Knowledge curated and entities closed | pass / fail | <evidence> |