finalize-spec-retrospective
Write a finalized spec's retrospective — acceptance criteria against what shipped, deviations, review findings, CI history with a mechanism for every nondeterministic failure, effort from the run-events log — and emit evidence-backed improvement proposals into .claude/proposals/pending.md
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-10
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- finalize-spec-retrospective
- description
- Write a finalized spec's retrospective — acceptance criteria against what shipped, deviations, review findings, CI history with a mechanism for every nondeterministic failure, effort from the run-events log — and emit evidence-backed improvement proposals into .claude/proposals/pending.md
- argument-hint
- <spec-name>
03 SKILL.md 正文
Finalize Spec — Retrospective
Step 3 of /finalize-spec. The retrospective is the spec's permanent record of how it went, and the input to the harness's learning loop: every lesson that points at a mechanism becomes a proposal a maintainer can accept.
Input
$ARGUMENTS: the spec name. specs/unfinalized/<spec>/retrospective.md already holds the ## Review Summary from /finalize-spec-review.
Invocation contexts
- Slash command: writes the retrospective sections and appends proposals in the working tree it runs in (the finalize worktree under
/finalize-spec); run alone, it writes the files and commits nothing. - Model-invoked: the same.
- Non-interactive: the same. Choosing which lessons become proposals is an advisory step: apply the criteria below and record
auto-confirmed (non-interactive). Nothing here writes outside the spec directory and.claude/proposals/pending.md.
Sources
Every number comes from one of these, never from memory of the run; a value that cannot be produced is written unknown.
| Section | Source |
|---|---|
| Acceptance | requirements.md criteria; the reviewers' spec-wide acceptance map; each task's Acceptance and its merged tests |
| Deviations | every task's Spec deviations in origin/main's tasks.md; the Review Summary's design divergences |
| CI history | finalize.py verify note=history: lines; for each task pull request, gh run list --branch <its head branch> --json headSha,workflowName,conclusion,createdAt (a failure and a success on the same headSha is a nondeterministic failure); fail and retry rows of the run-events log |
| Effort | python3 scripts/harness/runspec.py summary --spec <spec>; the first run_start and last merge rows of .claude/data/run-events.jsonl (in the main checkout) for wall-clock |
Steps
-
Write the sections after the Review Summary, in this order, each always present (
NoneorNo datawhen empty):## Acceptance | Criterion | Result | Evidence | |---|---|---| | <requirement criterion, short> | met / partial / unmet | <test name, PR #n, or why not> | ## Deviations - Task N: <deviation> — <recorded in the task entry | found by review>; <impact> ## CI history - <workflow/job> on <PR #n | merge sha7>: <real | infra | unknown>, <what failed>. <For a nondeterministic failure: Mechanism: <the mechanism>, failing value <x>, passing value <y> — or "unexplained nondeterminism" with both values when no mechanism is known.> ## Effort dispatched=N returned=M failed=K; attempts <total> over <tasks> tasks; first-pass <n>/<tasks>; review rounds <n>; wall-clock <first run_start> → <last merge> <the runspec.py summary table> ## Lessons - What worked: <practice, with the task or PR that shows it> - What to change: <problem, with its evidence> ## Proposals - <P-<spec>-<n> — title>, or NoneFlake discipline. Never label a failure a flake from "a retry went green": that proves nondeterminism, not its cause. The words flake or flaky appear only on a line that also gives
Mechanism:with the failing and the passing value (.claude/rules/agent-behavioral-posture.md§7). Thefinalizelint check enforces this. -
Choose proposals. A lesson becomes a proposal when its evidence points at the harness, not at one task: a spec-format ambiguity two tasks resolved differently; a gate that passed a defect the review found; a skill step runs skipped or improvised; a CI failure class seen more than once; a review finding class the per-task review should have caught. A one-off slip with no mechanism stays under Lessons. Also turn into proposals the important review findings the Review Summary routed here.
-
Append each proposal to
.claude/proposals/pending.mdin the format of.claude/proposals/README.md, one change and one target each. Take every id frompython3 scripts/harness/finalize.py proposal-id --spec <spec>, run again after each append. Types:rule,skill,hook,knowledge,product. Proposals are public: generic hazard, no private detail. -
Check in the working tree:
scripts/ci/lint-agent-harness.sh --only proposals,referencespasses. (Thefinalizecheck readsspecs/done/, so it runs in/finalize-spec-publishafter the move.)
Output
The path written, the proposal ids (or none), and one line per section with its count: criteria met/partial/unmet, deviations, CI failures by class, dispatched/returned/failed.
04 同仓库更多 Skills
mythhelm-deliver-backlog
Coordinate a MYTHHELM backlog run with the shared stage checks and maintainer checkpoints.
mythhelm-bootstrap
Orient a Grok Build session in the MYTHHELM repository before task or spec work.
vendor-consult
Run one advisory stage consult (premise-ground, spec-validate, task-review, change-review, stuck-oracle, dossier) with an optional external vendor, then adjudicate the answer at its anchors
update-docs
Bring README, docs/, knowledge/, WORKFLOW.md and CLAUDE.md in line with what a shipped spec or a merged change actually did — find every statement the change made stale, fix it where readers look, and add only the new facts they need
triage
Score an idea or a GitHub issue against the master spec's stages, gates and commitments, check it for duplicates, and recommend whether it becomes a backlog card; read-only
test-driven-development
Red-green-refactor for Go — use when implementing any feature, bug fix or behaviour change, before writing implementation code