spec-kitty.accept
Validate an approved mission before merge
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- spec-kitty.accept
- description
- Validate an approved mission before merge
- user-invocable
- true
03 SKILL.md 正文
Startup Upgrade Check
Run this at most once per active agent session before the first Spec Kitty command workflow.
If you already ran spec-kitty upgrade --agent-check --json in this session, reuse that result and skip this block.
Do not run or announce an upgrade check again for later Spec Kitty commands in the same session.
Otherwise, before continuing, run:
spec-kitty upgrade --agent-check --json
If JSON action is none, continue.
If action is auto_upgrade, run upgrade_command before continuing. If it fails, tell the user and continue with the current Spec Kitty version.
If action is guidance, show upgrade_note briefly, then continue.
If action is prompt, ask the user with the host-native question UI when available:
Spec Kitty {latest_version} is available. You are on {installed_version}. Upgrade now?
Use these choices:
- Upgrade now (recommended) - record
upgrade_now, runupgrade_command, then continue. - Always keep me up to date - record
always, runupgrade_command, then continue. - Not now - record
not_now, then continue. - Never ask again - record
never_ask, then continue.
Record the selected choice before continuing:
spec-kitty upgrade --agent-choice <upgrade_now|always|not_now|never_ask> --agent-latest <latest_version> --json
If no host-native question UI is available, present the same four choices in plain text and wait for the user.
In non-interactive hosts, choose not_now and continue.
/spec-kitty.accept - Validate Mission Readiness
Version: 0.12.0+
Purpose
Validate that every work package is complete and the mission is ready to consolidate. This step runs the acceptance gate, surfaces any blocking diagnostics, and only clears the path to consolidate once the gate passes.
📍 WORKING DIRECTORY: Run from the repository root checkout
IMPORTANT: Acceptance runs from the repository root checkout, NOT from a work-package worktree.
# If you are inside a worktree, return to the repository root checkout first.
# `--show-toplevel` returns the *worktree* root inside a worktree, so resolve
# the repository root checkout from the shared git common directory instead:
cd "$(dirname "$(git rev-parse --path-format=absolute --git-common-dir)")"
In repos with multiple missions, pass --mission <handle> to every command that accepts --mission. The <handle> can be the mission's mission_id (ULID), mid8 (first 8 chars of the ULID), or mission_slug. The resolver disambiguates by mission_id and returns a structured MISSION_AMBIGUOUS_SELECTOR error on ambiguity — there is no silent fallback.
User Input
The content of the user's message that invoked this skill (everything after the skill invocation token, e.g. after /spec-kitty.<command> or $spec-kitty.<command>) is the User Input referenced elsewhere in these instructions.
You MUST consider this user input before proceeding (if not empty).
Steps
1. Record Acceptance Evidence (Zero Hand-Edited JSON)
Before running the gate, record every acceptance-criterion verdict — and
register/execute any negative invariant — through the deterministic
acceptance-verdict command. Never hand-edit acceptance-matrix.json.
# Record one criterion's verdict:
spec-kitty agent mission acceptance-verdict --mission <handle> \
--criterion <criterion-id> --result pass \
--verification-method automated_test --actor <you> --evidence <ref>
# Register AND execute a negative invariant (something that must NOT hold),
# when the mission's acceptance-matrix.json declares one:
spec-kitty agent mission acceptance-verdict --mission <handle> \
--negative-invariant <invariant-id> \
--description "<what must NOT hold>" \
--verification-method grep_absence \
--verification-command "<pattern that must be absent>"
Repeat the criterion form for every row in acceptance-matrix.json until
each one is pass or fail (no pending rows left unintentionally). Each
invocation reports the recomputed overall_verdict — use it to confirm the
matrix is converging before moving on.
2. Run the Acceptance Gate
Run the acceptance command from the repository root:
spec-kitty accept --mission <handle>
This validates that all work packages are approved or done, checks the
readiness gates (including the acceptance matrix recorded in step 1), and
reports what (if anything) still blocks merge.
3. Inspect Acceptance Diagnostics
Read the command output carefully:
- If the gate passes, the output confirms the mission is ready to consolidate and prints the consolidate instructions.
- If the gate fails, the output lists each outstanding category (for
example: WPs not yet approved, failing checks, or unresolved review
feedback — including any malformed acceptance-matrix entry, named by item
and reason). Treat every outstanding item as a blocker. Use
spec-kitty accept --mission <handle> --diagnosefor a read-only diagnostic pass that reports blockers without writing anything.
4. Resolve Any Gate Failures
For each blocker reported:
- Route the affected work package back through implement/review as needed.
- Re-run the relevant tests or checks until they pass.
- If a criterion or negative invariant still needs recording, go back to
step 1 — through
acceptance-verdict, never by hand-editing the JSON. - Re-run
spec-kitty accept --mission <handle>and confirm the gate is now clean. Do not force acceptance past an unresolved blocker.
5. Proceed to Consolidate
Only after the acceptance gate passes:
spec-kitty consolidate --mission <handle>
Follow the consolidate instructions printed by the acceptance command (and any cleanup steps it lists).
Output
After completing this step:
- The acceptance gate has passed for
<handle>. - All blocking diagnostics have been resolved (or none were present).
- Consolidate instructions have been surfaced to the operator.
Next step: run spec-kitty consolidate --mission <handle> to consolidate
the accepted mission. spec-kitty next does not issue a consolidate step —
consolidation is the operator-run step after acceptance passes.
04 同仓库更多 Skills
kitty-semi-auto
Use to take a tracker issue or a coherent issue-set through a governed delivery run that works autonomously but pauses to escalate the operator's decisions. Runs BOTH ways — in this session (local) or handed to a fresh cloud runner (cloud) — from one set of standing orders covering orientation, code grounding first, Mission-vs-Ops, the pause-and-escalate contract, brownfield discipline, and the canonical closeout to a draft PR the operator merges. Triggers: semi-auto, semi-auto dispatch, run this semi-automatically, deliver these issues semi-auto, hand this to a cloud runner, dispatch semi-auto.
kitty-report-debrief
Use when a maintainer asks what happened or what is open ("what landed since Friday", "WTF happened with X", a milestone overview). Collects the facts from GitHub, writes a short branded debrief for named readers, and hands the PDF back without committing it. Triggers: what landed since, WTF happened, debrief the weekend, milestone overview, exec overview of open issues, write up what shipped.
kitty-mission-from-issue
Use to take one or more GitHub issues through a full governed Mission (spec, plan, tasks, implementation, review) to a green pull request flipped to ready for review, which a maintainer then merges. Triggers: mission from issue, run a mission for this issue, drive issue to PR.
kitty-land-pr
Use when a ready-for-review pull request needs a maintainer to get it ready to merge. Rebases it, fixes and reviews it, updates its description, changelog and docs, and hands it back without merging by hand. Triggers: land this PR, landing pass, land PR.
kitty-issue-triage
Use to triage a batch of open GitHub issues on spec-kitty/spec-kitty (default, those opened in the last 7 days). Sets type, priority, domain, parent and milestone, and reports stale, duplicate or clustered issues for an operator decision. Triggers: triage issues, triage the tracker, triage new issues.
spk-team-tracker
暂无简介