Recap
Claude Code plugin: skills, commands, and tooling for SpecScore-driven specification authoring (specstudio:ideate, specstudio:specify, …)
npx -y skills add specscore/specstudio-skills --skill recapAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Consumes an approved SpecScore Feature plus the latest `specstudio:verify` report at HEAD and produces a per-AC drift report at spec/features/<feature-slug>/_recap/<sha>.md. For each AC, dispatches one built-in AI subagent (serial, not parallel) that classifies divergence between spec and code into the 4-bucket verdict set {no-drift, spec-tighter-than-code, code-tighter-than-spec, contradiction}. Aggregates verdicts into a Markdown report opened by a grep-friendly YAML summary block, emits `recap.completed`, and transitions only to `specstudio:review`. Applies publication policy to the report checkpoint. Trigger: "recap", "/recap", "specstudio:recap", or the explicit downstream transition from `specstudio:verify`.
SKILL.md
32.7 KB, ~8.0k tokens by cl100k_base, as published. Nobody here has run it
Recap
Turn an approved SpecScore Feature plus its latest verify report into a per-AC drift report. Close the SpecStudio pipeline's recap slot so review and ship have an honest drift gate to consume.
Hard Gate
<HARD-GATE> Do NOT invoke `specstudio:ideate`, `specstudio:specify`, `specstudio:plan`, `specstudio:implement`, `specstudio:verify`, `specstudio:ship`, `writing-plans`, `frontend-design`, `mcp-builder`, or ANY other skill until ALL of the following are true: 1. Pre-flight passed: the input slug resolves to `spec/features/<feature-slug>/README.md`, the Feature's `**Status:**` is in `{Approved, Implementing, Stable}`, the Feature exists at git HEAD (`git cat-file -e HEAD:spec/features/<feature-slug>/README.md` exits zero), AND `spec/features/<feature-slug>/_verify/` exists and contains at least one `<sha>.md` report file reachable at HEAD. 2. The Feature parsed cleanly via the `specscore` CLI's Feature parser; the ordered AC ID list is available. 3. The verify report has been resolved (preferring the report whose `<sha>` matches `git rev-parse --short HEAD`; otherwise the report whose embedded `revision:` YAML field is most recent in branch history) and its top-of-file YAML summary block has been parsed into a per-AC `{verify_verdict, verify_justification}` map. 4. The report has been written to `spec/features/<feature-slug>/_recap/<sha>.md` with a fenced ` ```yaml ` summary block (top-level `feature:`, `revision:`, `verify_revision:`, and `drift:` list with one entry per AC) followed by one `## AC: <ac-slug>` body section per AC. 5. The `_recap/README.md` index has been created (if absent) or updated with the current run's row (if present), per `## Report Format → Index README`. 6. Both the report and the `_recap/README.md` index are in the publication manifest and the `recap.completed` publication checkpoint has been resolved, disclosed, and applied. 7. The `recap.completed` event has been emitted exactly once.The only skill invoked after specstudio:recap is specstudio:review (or — while review is unshipped — a hand-back to the user with the report path and a recommendation to inspect drift items manually). The skill MUST NOT invoke ideate, specify, plan, implement, verify, ship, writing-plans, frontend-design, or mcp-builder on transition.
</HARD-GATE>
When to Use
- An approved Feature at
spec/features/<feature-slug>/README.mdexists in git HEAD,specstudio:verifyhas already produced at least one report atspec/features/<feature-slug>/_verify/<sha>.md, and the user wants a per-AC drift verdict comparing what the spec asks for against what the commits actually delivered. specstudio:verifyhas just transitioned via itstransition-to-recapREQ and the user wants to continue the pipeline.- The user wants to re-recap a Feature after additional
Verifies:-trailed commits and a fresh verify run have landed.
Refuse and redirect when:
- The Feature's
**Status:**isDraftorIn Review→ print the current Status and recommendspecstudio:specifyto re-approve. Write no report. Exit non-zero. (AC:refuses-draft-feature) - The Feature exists only in the working tree (uncommitted) → instruct the user to commit the Feature first. Write no report. Exit non-zero. (AC:
refuses-uncommitted-feature) - The Feature's
_verify/directory does not exist or contains zero<sha>.mdreport files reachable at HEAD → recommend runningspecstudio:verify <feature-slug>first. Write no report. Exit non-zero. Recap-without-verify is a category error: there is nothing to recap against. (AC:refuses-when-no-verify-report) - The user asks the skill to bypass publication policy, commit unrelated paths, or push without branch-policy approval → refuse.
- The user asks the skill to invoke
ship,review(when unshipped), or any non-reviewskill → refuse; the only permitted downstream transition isspecstudio:review.
Pre-Flight
- Resolve input. The skill MUST accept exactly one positional argument — the Feature slug — and resolve it to
spec/features/<feature-slug>/README.md. - Status guard. Read the Feature's body-metadata
**Status:**line. Refuse if it is outside{Approved, Implementing, Stable}. On refusal, print the current Status, recommendspecstudio:specifyto re-approve, write no report, and exit non-zero. - HEAD-existence guard. Run
git cat-file -e HEAD:spec/features/<feature-slug>/README.md. On non-zero exit, refuse with an instruction to commit the Feature first, write no report, and exit non-zero. TheVerifies:trailer convention requires the Feature to exist in git history. - Verify-report-presence guard. Check that
spec/features/<feature-slug>/_verify/exists AND contains at least one<sha>.mdfile reachable at HEAD. If the directory is absent, or it exists but contains zero<sha>.mdreports reachable at HEAD, refuse with a recommendation to runspecstudio:verify <feature-slug>first, write no report, and exit non-zero. - Resolve HEAD SHA. Capture
git rev-parse --short HEADonce. This SHA is the<sha>in the report path and therevisionin the YAML summary and the event payload.
Checklist
Create a task for each and complete in order:
-
Pre-flight (steps above). Refusals exit immediately; do not proceed.
-
Parse the Feature. Delegate to the
specscoreCLI's Feature parser. Surface the ordered list of AC IDs in the form<feature-slug>#ac:<ac-slug>paired with each AC's fullGiven / When / Thentext. Parse failures stop the skill with the CLI's lint-rule citation surfaced verbatim to the user. -
Resolve and parse the verify report. Auto-resolve the latest
_verify/<sha>.mdreport at HEAD:- First preference: the report file whose
<sha>matchesgit rev-parse --short HEADexactly. - Fallback: the report whose embedded top-of-file YAML
revision:field is most recent in the branch's git history (usegit logover_verify/paths to determine recency).
Parse the resolved report's top-of-file fenced YAML summary block and build a per-AC map keyed by
<feature-slug>#ac:<ac-slug>whose value is{verify_verdict, verify_justification}. Record the resolved report's path (e.g.,spec/features/<feature-slug>/_verify/<verify-sha>.md) and itsrevision:value — both flow into the recap report's YAML (verify_revision:) and the event payload (verify_report_path). Parse failures on the verify report's YAML block MUST stop the skill with a clear error identifying the unparseable file. The skill MUST NOT accept a--report <path>override in MVP. - First preference: the report file whose
-
Collect commits per AC. For each AC ID in Feature order, run:
git log --extended-regexp --grep='^Verifies:.*<feature-slug>#ac:<ac-slug>' --format='%H%n%s%n%b%x00'Collect the matching commit SHAs in chronological (oldest-first) order paired with their commit messages (subject + body). Do NOT pre-fetch commit diffs — the drift-narrator subagent fetches diffs on demand. An AC with zero matching commits is recorded as
unmapped(orchestrator-produced) and skipped for subagent dispatch. -
Dispatch drift-narrator subagents serially. For each mapped AC (commit count ≥ 1) in Feature AC order, dispatch one drift-narrator subagent via the Agent tool with
subagent_type: general-purpose. Construct the prompt per## Drift-Narrator Subagent Contractbelow. Wait for the subagent to return a parseable verdict before dispatching the next AC's subagent. At no point during the run MUST more than one narrator subagent be concurrently in flight. -
Parse the verdict. Validate per
## Drift-Narrator Subagent Contract. On a malformed first response, re-dispatch the same subagent exactly once with a corrective prompt that quotes the failure (verdict outside{no-drift, spec-tighter-than-code, code-tighter-than-spec, contradiction}, missing narrative, or narrative exceeding 500 characters) and reiterates the verdict contract. On a malformed second response, record the AC's drift verdict aserror(orchestrator-produced) and MUST NOT call the subagent a third time. -
Tally counts. Compute six non-negative integer counts over the full AC list:
no_drift_count,spec_tighter_count,code_tighter_count,contradiction_count,unmapped_count,errored_count. Their sum equals the Feature's total AC count. -
Write the report. Create
spec/features/<feature-slug>/_recap/if absent. Write the report file tospec/features/<feature-slug>/_recap/<sha>.mdper## Report Formatbelow. -
Write or update the
_recap/README.mdindex. Per## Report Format → Index READMEbelow. If absent, create it with one row in## Contents. If present, append one row (newest-last) for the current run, preserving prior rows. Without this step the project'sreadme-existslint rule will fail on the newly created_recap/directory. -
Publication checkpoint. Add
spec/features/<feature-slug>/_recap/<sha>.mdandspec/features/<feature-slug>/_recap/README.mdto the manifest. Apply publication-policy.md forrecap.completed, staging only manifest paths and committing/pushing only when policy and safety allow. -
Emit
recap.completed. Per## Event Emissionbelow, includingpublication_result. Exactly once per successful run. -
Transition. Per
## Promotion Boundarybelow. Onlyspecstudio:review(or hand-back whenreviewis unshipped). -
Determine exit code. Per
## Exit Semanticsbelow. Non-zero iffcontradiction_count + errored_count > 0. Otherwise zero. -
Throughout — watch for sidekick ideas (e.g., a flaky drift-narrator shape, a recurrent verify-vs-recap disagreement pattern, a deferred plan-completeness check). When an out-of-scope improvement surfaces, invoke
specstudio:sidekickwith a one-liner, acknowledge in one line, and return to the current checklist step immediately. Do not derail.
Drift-Narrator Subagent Contract
Each drift-narrator subagent is dispatched with an isolated prompt — it MUST NOT inherit the parent session's context. Construct the prompt freshly per AC.
Prompt shape (five required parts, in this order)
-
AC identification and full text. The AC ID (
<feature-slug>#ac:<ac-slug>) followed by its completeGiven / When / Thentext quoted verbatim from the source Feature. -
Verify verdict carry-over (verbatim). The AC's verify verdict and verify justification snippet copied verbatim from the resolved
_verify/<sha>.mdreport's YAML summary block for the same AC ID. Format:## Verify result for this AC - verdict: <pass | fail | error | unmapped> - justification: <one-line snippet as recorded in the verify report>The carry-over is verbatim by contract; it gives the drift-narrator the orienting baseline of what verify itself concluded.
-
Matching commits. The ordered list of commit SHAs (chronological, oldest-first) paired with each commit's full message (subject + body). Format:
## Matching commits - <sha-1> <commit message subject + body> - <sha-2> <commit message subject + body>The orchestrator MUST NOT include pre-fetched commit diffs in the prompt. The subagent fetches diffs and reads source files on demand via its own Bash tool.
-
Drift verdict contract (verbatim). Quote the following block into the prompt verbatim, so the subagent knows the required output shape:
Return exactly one drift verdict from the set: {no-drift, spec-tighter-than-code, code-tighter-than-spec, contradiction}. Required output shape: verdict: <no-drift | spec-tighter-than-code | code-tighter-than-spec | contradiction> narrative: <one-line snippet, MAXIMUM 500 characters> evidence: - <file path, commit SHA, or _tests/<ac-slug>.md reference> - ... Verdict semantics: - `no-drift` = the code matches what the AC requires. - `spec-tighter-than-code` = the spec requires more than the code delivers. - `code-tighter-than-spec` = the code enforces stricter behavior than the spec named. - `contradiction` = the code does something the spec actively disallows or does not name as a valid alternative. The values `unmapped` and `error` are produced only by the orchestrator (`unmapped` for ACs with zero matching commits; `error` for ACs whose subagent returned malformed responses twice) and MUST NOT appear in your response. Malformed responses (verdict outside the allowed set, missing narrative, or narrative exceeding 500 characters) will be re-dispatched exactly once with a corrective prompt; a second malformed response is recorded as `error`. -
Fetch-on-demand instruction. An explicit instruction that the subagent fetches commit diffs and reads source files on its own via Bash. Suggested commands to mention:
git show <sha> git show <sha> -- <path> git show <sha> --stat cat <path>Include the guidance: "Read at the depth required to reach a drift verdict; do not enumerate every file in every commit if the verdict is obvious from one diff."
Out of scope for the prompt
- No pre-fetched diffs. The orchestrator MUST NOT inline
git showoutput into the prompt. Diff fetching is the subagent's responsibility. - No
_tests/mandate. The subagent MAY reference_tests/<ac-slug>.mdscenarios in itsevidence:list when relevant, but the prompt MUST NOT mandate reading them — Rehearse-scenario authoring is deferred per the source Feature's## Rehearse Integration. - No
unmappedorerrorverdict. Both are orchestrator-produced. The allowed-verdict set named in the prompt is{no-drift, spec-tighter-than-code, code-tighter-than-spec, contradiction}ONLY.
Verdict parsing
A well-formed response contains:
- A
verdict:line whose value is exactly one ofno-drift,spec-tighter-than-code,code-tighter-than-spec,contradiction. - A
narrative:line whose value is non-empty and at most 500 characters. - An
evidence:list with zero or more entries (file paths, commit SHAs,_tests/scenario filenames, or other references).
Anything outside this shape is malformed. Apply the retry-once-then-error semantics per checklist step 6.
Report Format
Path
spec/features/<feature-slug>/_recap/<sha>.md
<sha> is the abbreviated git SHA of HEAD at run time (git rev-parse --short HEAD). Create the _recap/ directory if absent.
YAML summary block (grep target)
The report MUST open with a fenced YAML block (delimited by ```yaml and ```) listing every AC in Feature AC order. This block is the grep target downstream skills (review, eventually ship) consume. The block MUST include feature:, revision:, AND verify_revision: top-level fields; the per-AC drift: list entries MUST use ac, verdict, and narrative field names (note: narrative, not justification — the recap report's body section also carries verify's justification verbatim, so the two field names stay disambiguated).
feature: <feature-slug>
revision: <sha>
verify_revision: <verify-report-sha>
drift:
- ac: <feature-slug>#ac:<ac-slug-1>
verdict: no-drift
narrative: "<one-line snippet, ≤500 chars>"
- ac: <feature-slug>#ac:<ac-slug-2>
verdict: spec-tighter-than-code
narrative: "<one-line snippet>"
- ac: <feature-slug>#ac:<ac-slug-3>
verdict: unmapped
narrative: "no commits reference this AC"
- ac: <feature-slug>#ac:<ac-slug-4>
verdict: contradiction
narrative: "<one-line snippet>"
- ac: <feature-slug>#ac:<ac-slug-5>
verdict: error
narrative: "<one-line snippet>"
Every AC from the source Feature MUST appear exactly once, in Feature AC order. The six allowed verdict values are no-drift, spec-tighter-than-code, code-tighter-than-spec, contradiction, unmapped, and error. (Four are subagent-produced; unmapped and error are orchestrator-produced.)
Body (per-AC sections)
After the YAML block, the report MUST contain one ## AC: <ac-slug> section per AC, in Feature AC order. Each section contains:
## AC: <ac-slug>
**Drift verdict:** <no-drift | spec-tighter-than-code | code-tighter-than-spec | contradiction | unmapped | error>
**Narrative:** <full narrative text — same as the YAML one-liner if short, or
expanded for human readability if the subagent supplied a richer rationale>
**Verify verdict:** <pass | fail | error | unmapped> (carried verbatim from the resolved verify report)
**Verify justification:** <one-line snippet, carried verbatim from the resolved verify report>
**Commits:**
- <sha-1> — <commit subject>
- <sha-2> — <commit subject>
(Or: "No commits reference this AC." for `unmapped` ACs.)
**Evidence:**
- <file path, commit SHA, _tests/<ac-slug>.md reference, or other reference>
- ...
The YAML block is the machine-readable surface; the body is the human-readable surface. The body MUST carry the verify verdict and verify justification verbatim from the resolved verify report so a reviewer can see, side-by-side per AC, what verify concluded and what recap concluded.
Index README
The skill MUST create spec/features/<feature-slug>/_recap/README.md if absent and MUST append a row for the current run to its ## Contents table on every run. The README is the directory's index — without it, the project's readme-exists lint rule fails on the newly created _recap/ directory.
Row ordering (Approach decision): rows are appended newest-last, mirroring verify's index ordering. The most recent run is the last row in the table.
Shape (when creating from absent):
# Recap Reports — <feature-slug>
Per-run recap reports produced by `specstudio:recap`. Each report is named `<sha>.md` where `<sha>` is the abbreviated git SHA of `HEAD` at run time. Each row records which verify report the recap was compared against (`Verify revision`) so reviewers can trace the drift gate end-to-end.
## Contents
| Report | Run revision | Verify revision | Drift summary |
|---|---|---|---|
| [<sha>.md](<sha>.md) | <sha> | <verify-report-sha> | <one-line drift summary, e.g., "3 no-drift, 1 spec-tighter, 0 code-tighter, 0 contradiction, 1 unmapped, 0 errored"> |
## Open Questions
None at this time.
---
*This document follows the https://specscore.md/index-specification*
Append rule (when README already exists):
Locate the ## Contents table. Insert a new row at the bottom of the table (newest-last). Preserve every prior row in its existing order — never reorder, never delete. The new row's Report cell is a Markdown link [<sha>.md](<sha>.md); the Run revision cell is the abbreviated HEAD SHA; the Verify revision cell is the abbreviated SHA of the resolved verify report; the Drift summary cell is a one-line tally derived from the six flat counts.
If the table is missing entirely (e.g., README was hand-edited), the skill MUST refuse to write the row, surface the missing-table error to the user, and recommend manual repair before re-running.
Publication discipline
After writing the report and the index README, the skill MUST add both to the checkpoint manifest and apply publication-policy.md for recap.completed. If the allowed actions include stage, stage only those manifest paths. If they include commit or push, run the shared unrelated-index and branch-safety checks first. The disclosure must name the resolved policy, executed actions, skipped actions, and manifest paths.
No-mapped-commits edge case
When a Feature has at least one verify report at HEAD but zero Verifies: trailers for any AC in the entire branch history, the skill MUST still:
- Write the report at the canonical path.
- Mark every AC
unmappedin both the YAML block and the body sections. - Apply publication policy to the report and index manifest.
- Emit
recap.completedwithunmapped_countequal to the Feature's total AC count, the other five counts equal to zero, andpublication_result. - Exit zero.
The report itself communicates that nothing has been mapped yet; the absence of a report is not the right signal. (Note: this edge case requires a verify report to be present — recap's pre-flight refuses outright when _verify/ is empty.)
Exit Semantics
The skill MUST exit non-zero if and only if contradiction_count + errored_count > 0. Equivalently:
| Tally | Exit code |
|---|---|
Every AC no-drift, spec-tighter-than-code, code-tighter-than-spec, or unmapped (any mix) | 0 |
At least one AC contradiction | non-zero |
At least one AC error | non-zero |
At least one contradiction AND at least one error | non-zero |
Every AC unmapped (no-mapped-commits edge case) | 0 |
no-drift, spec-tighter-than-code, code-tighter-than-spec, and unmapped are informational at the recap layer. review and ship are the eventual gates that MAY escalate spec-tighter-than-code, code-tighter-than-spec, or unmapped to blocking based on their own policies; recap does not.
A pre-flight refusal (Draft Feature, uncommitted Feature, no verify report) exits non-zero without writing a report — those refusals are distinct from the verdict-tally exit code above.
Event Emission
After the report is written and publication policy has been applied (and only on a successful run — pre-flight refusals do NOT emit), the skill MUST emit exactly one recap.completed event via the convention in events.md. Use specscore event emit <event.yaml> when the CLI is available; fall back to appending the event JSONL line to .specscore/events.jsonl.
Payload shape (flat counts — NOT a nested drift_counts object):
event: recap.completed
version: 1
uuid: <generated>
timestamp: <ISO-8601>
actor:
kind: skill
id: skill:specstudio:recap
artifact:
type: feature
id: <feature-slug>
path: spec/features/<feature-slug>/README.md
revision: <sha>
payload:
feature_slug: <feature-slug>
revision: <sha>
report_path: spec/features/<feature-slug>/_recap/<sha>.md
verify_report_path: spec/features/<feature-slug>/_verify/<verify-sha>.md
no_drift_count: <int ≥ 0>
spec_tighter_count: <int ≥ 0>
code_tighter_count: <int ≥ 0>
contradiction_count: <int ≥ 0>
unmapped_count: <int ≥ 0>
errored_count: <int ≥ 0>
publication_result:
resolved_actions: [<stage | commit | push>, ...]
executed_actions: [<stage | commit | push>, ...]
skipped_actions: [{action: <stage | commit | push>, reason: <string>}]
commit_sha: <git SHA> | null
push_target: <remote>/<branch> | null
Invariants:
- All six count fields are non-negative integers.
no_drift_count + spec_tighter_count + code_tighter_count + contradiction_count + unmapped_count + errored_countequals the Feature's total AC count.- The payload MUST NOT include per-AC drift details. Consumers read those from the report file at
report_path. - The event MUST be emitted exactly once per successful run.
- Additional payload fields MAY be added in the future without breaking this contract; the six count fields plus the four identity fields (
feature_slug,revision,report_path,verify_report_path) are the minimum.
Promotion Boundary
The next skill is specstudio:review, and only specstudio:review.
Transition
After the report is written, publication policy is applied, and recap.completed is emitted:
-
If
specstudio:reviewis shipped: offer to transition the user tospecstudio:review, passing the recapreport_pathas input. -
If
specstudio:reviewis unshipped: hand back to the user with the report path and a recommendation to inspect drift items manually:"Recap complete. Report written at
spec/features/<feature-slug>/_recap/<sha>.mdand publication policy applied. Thespecstudio:reviewskill is not yet shipped — review the YAML summary block in the report for per-AC drift verdicts."
The skill MUST NOT invoke ideate, specify, plan, implement, verify, ship, writing-plans, frontend-design, or mcp-builder on transition. The hard gate above pins this; the transition step honors it.
Tone
The skill MUST NOT yes-machine soft drift verdicts. When a drift-narrator subagent returns no-drift on a commit set that obviously contradicts the AC, the skill MUST trust the subagent's verdict for THIS run (the orchestrator does not re-judge), but MUST surface the report honestly — the YAML block and the body section carry the verdict as returned. Re-judgment is review's job, not recap's.
When the skill detects a pre-flight refusal (Draft Feature, uncommitted Feature, missing verify report), it MUST say so with the specific cited cause (current Status value, missing-from-HEAD path, missing _verify/ directory) and propose the alternative (specstudio:specify, git commit, specstudio:verify). Honest specificity, not performative agreement.
When the subagent returns malformed responses twice in a row, the skill records error and moves on — it MUST NOT loop infinitely.
Verification
- Pre-flight checks passed: input slug resolves; Feature
**Status:**∈ {Approved, Implementing, Stable}; Feature exists at git HEAD;_verify/exists with at least one<sha>.mdreport reachable at HEAD - Feature parsed cleanly via
specscoreCLI; ordered AC list captured - Verify report resolved (HEAD-SHA exact match preferred; most-recent-by-revision fallback otherwise); its YAML summary parsed into a per-AC
{verify_verdict, verify_justification}map; resolved path + SHA captured for downstream use - For each AC:
git log --grep='^Verifies:.*<feature-slug>#ac:<ac-slug>'ran; matched SHAs + commit messages collected; NO diffs pre-fetched - Subagent dispatch was serial: at no point were two drift-narrator subagents concurrently in flight
- Each per-AC subagent prompt contained, in order: full G/W/T text, the AC's verify verdict + justification carried over verbatim, commit SHAs + messages, the verbatim drift verdict contract naming only
{no-drift, spec-tighter-than-code, code-tighter-than-spec, contradiction}, and the fetch-on-demand Bash instruction; no pre-fetched diffs;unmappedanderrorNEVER named to the subagent - Malformed drift verdicts were retried exactly once; second-time malformed verdicts were recorded as
error(orchestrator-produced) - Report written at
spec/features/<feature-slug>/_recap/<sha>.mdwith the fenced YAML block first (top-levelfeature:,revision:,verify_revision:; per-ACac+verdict+narrativeentries in Feature AC order), then## AC:body sections carrying drift verdict + narrative + verify verdict + verify justification + commits + evidence -
_recap/README.mdindex created (if absent) or row-appended (if present) with columnsReport | Run revision | Verify revision | Drift summary; table preserves prior rows in their existing order (newest-last) - Both report and
_recap/README.mdadded to the checkpoint manifest; publication policy applied with disclosure -
specscore spec lintexits zero after the run (noreadme-existsfailure on the_recap/directory) -
recap.completedevent emitted exactly once; payload contains the four identity fields (feature_slug,revision,report_path,verify_report_path), the six flat count fields summing to the Feature's total AC count, andpublication_result; no per-AC details in the payload - Exit code is non-zero iff
contradiction_count + errored_count > 0; otherwise zero (the four other verdicts are informational and never contribute to non-zero exit) - No-mapped-commits edge case (every AC
unmapped) still produced a complete report, applied publication policy, emitted the event, and exited zero - On transition: only
specstudio:reviewinvoked (or hand-back when unshipped); no other skill touched
Red Flags
- Pre-fetching commit diffs into the subagent prompt (the subagent fetches diffs on demand; the orchestrator does not)
- Naming
unmappedorerrorin the subagent's allowed-verdict set (both are orchestrator-produced; the prompt names{no-drift, spec-tighter-than-code, code-tighter-than-spec, contradiction}only) - Mandating the subagent read
_tests/<ac-slug>.mdfiles (the subagent MAY reference them in evidence; the orchestrator MUST NOT mandate it — Rehearse-scenario authoring is deferred) - Dispatching two drift-narrator subagents concurrently (serial only; parallelism is explicitly deferred per the source Idea's
## Not Doing) - Looping the malformed-verdict retry more than once (one retry; second malformed →
error; never a third call) - Allowing a narrative longer than 500 characters to pass the verdict-contract check
- Hard-coding stage-only report handoff instead of resolving publication policy for
recap.completed - Committing unrelated staged paths or pushing without branch-policy approval
- Writing the report to
docs/or to a path other thanspec/features/<feature-slug>/_recap/<sha>.md - Treating
spec-tighter-than-code,code-tighter-than-spec, orunmappedas a non-zero-exit signal (all three are informational at the recap layer;reviewandshipescalate them later) - Skipping the
recap.completedevent because "no contradictions" — the event fires on every successful run regardless of drift outcomes - Emitting
recap.completedwith per-AC drift details in the payload (per-AC data lives in the report file; the event payload carries flat counts only) - Nesting the six counts under a
drift_counts:key (the contract is flat:no_drift_count,spec_tighter_count,code_tighter_count,contradiction_count,unmapped_count,errored_count) - Omitting
verify_revision:from the recap report's YAML orverify_report_pathfrom the event payload (the verify gate is traceable end-to-end by contract) - Accepting a
--report <path>argument (MVP auto-resolves the latest verify report at HEAD; explicit overrides are deferred per## Not Doing) - Skipping the verify-report-presence pre-flight (recap-without-verify is a category error — there is nothing to recap against)
- Invoking any skill other than
specstudio:reviewon transition (noverify, noship, nowriting-plans, nofrontend-design, nomcp-builder) - Refusing to write a report when no commits map to any AC (the no-mapped-commits edge case still produces a complete
unmapped-only report — provided the pre-flight verify-report-presence guard passed) - Writing the per-run report but forgetting
_recap/README.md(thereadme-existslint rule will fail on the newly created_recap/directory) - Reordering or deleting prior rows in
_recap/README.md's## Contentstable (the skill only appends; prior runs' rows are preserved verbatim, newest-last) - Resolving the verify report by mtime or any signal other than HEAD-SHA-exact-match (preferred) or YAML
revision:recency (fallback)
References
- Feature: Recap Skill — the SpecScore Feature this skill implements.
- Feature: Verify Skill — the upstream Feature whose
_verify/<sha>.mdreport this skill consumes. - Feature: Implement Skill — the Feature whose
Verifies:commit-message trailer convention this skill (and verify) consumes. - Plan: Recap Skill MVP — the seven-task plan this skill realizes.
- Verify Skill — the architectural twin; recap mirrors verify's structure exactly with the documented deltas (verify-report pre-flight, verify-report resolution, 4-bucket drift verdict, 500-char narrative cap, 6-count tally, recap-only event name, transition to review).
- philosophy.md — shared tenets.
- publication-policy.md — checkpoint resolution, manifest safety, first-run preference prompt, and publication disclosure.
- events.md — event-envelope contract and emission transport for
recap.completed. - sidekick-capture.md — sidekick-idea handling during the skill's flow.
- PRINCIPLES.md — repo-level principles (user-attention economy, batched questions, parallel work while user is idle).
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.