finalize-spec-verify
Decide from git and GitHub whether a spec can be finalized — every task complete with a merged pull request on origin/main, main's CI green at its tip, the required checks unchanged, no unresolved review thread and no open fix pull request
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-10
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- finalize-spec-verify
- description
- Decide from git and GitHub whether a spec can be finalized — every task complete with a merged pull request on origin/main, main's CI green at its tip, the required checks unchanged, no unresolved review thread and no open fix pull request
- argument-hint
- <spec-name> [--alias <word>]
03 SKILL.md 正文
Finalize Spec — Verify
Step 1 of /finalize-spec, and runnable on its own to ask "can this spec be finalized now?". It writes nothing.
Input
$ARGUMENTS: <spec-name> [--alias <word>]. The alias is the one the spec's pull-request titles carry (default: the spec name).
Invocation contexts
- Slash command: runs the check and prints the verdict with its reasons.
- Model-invoked: the same;
/finalize-speccontinues only onverdict=ready. - Non-interactive: the same. It has no write and no question, so it behaves identically in every context.
Steps
-
Run the check from any checkout of the repository:
python3 scripts/harness/finalize.py verify --spec <spec> --alias <alias>It fetches origin and reads
tasks.mdon origin/main, never a local copy, then requires:Fact Reason line when it fails The spec is in specs/unfinalized/on origin/mainstate:Every task's entry is complete and well-formed and names its pull request (the predicates of runspec.py verify-merged)task N: ...Each of those pull requests is merged, with its merge commit on origin/main task N: PR #n is ...No unresolved review thread on any of them thread-unresolved:No open pull request titled (<alias> task N)or(<alias> fix)open-pr:main's push runs at its tip, which contains every merge of the spec, completed and green main-tip:The CI OKjob still needs every job it needed before the spec's first mergegate-weakened:main's ruleset still requires CI OK,DCO sign-off,Dependency review,Analyze (actions)andAnalyze (go)required-checks:note=history:lines name failed or unfinished runs on the spec's merge commits below the tip. They do not block, because the tip's green run covers the same code and more, but they are the retrospective's CI history.note=required-checks:names a required check the expected list lacks; add it to.claude/data/required-checks.jsonanddocs/automation.mdtogether, in their own pull request (therequired-checkslint keeps the two equal). -
Read the exit status:
- 0,
verdict=ready: finalize may proceed. - 3,
verdict=unknown: a run is still queued or in progress. Wait for it withpython3 scripts/harness/finalize.py ci --sha <the sha named> --wait(Bash timeout 600000), then run step 1 again. Never proceed on 3. - 1,
verdict=not-ready: report thereason=lines. A redmain-tipgoes to/finalize-spec-verify-cifor classification before anything else; the other reasons are escalations for the maintainer. - 2: git or GitHub could not be read. That is missing data, not a verdict: retry once, then escalate.
- 0,
Output
The script's output verbatim, then one line: Verify: <verdict> (<N> reasons).
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