en un clic
speckit-summary-run
// Produce a flow-level summary of the current Claude Code session — executive summary, chronological timeline, and outcomes — written into the active feature directory next to spec.md / plan.md.
// Produce a flow-level summary of the current Claude Code session — executive summary, chronological timeline, and outcomes — written into the active feature directory next to spec.md / plan.md.
Archive a feature specification into main project memory after merge, resolving gaps and conflicts
Run the full speckit workflow end-to-end — specify, plan, critique, tasks, implement, review, extract — making all decisions autonomously.
Perform a dual-lens critical review of the specification and plan from both product strategy and engineering risk perspectives before implementation.
Extract knowledge, guidelines, and ADRs from one or more completed spec directories into the project documentation system.
Run a session retrospective that surfaces context-management gaps and routes them to approved follow-up actions.
| name | speckit-summary-run |
| description | Produce a flow-level summary of the current Claude Code session — executive summary, chronological timeline, and outcomes — written into the active feature directory next to spec.md / plan.md. |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"summary:commands/run.md"} |
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Supported argument: --since <commit|time> to bound the summary window.
Examples:
--since HEAD~10 — limit the timeline to phases that began after the
10th-most-recent commit on this branch.--since 14:00 — only include phases that occurred after 2 PM local time
in the active session.If no argument is given, summarize the entire live session.
Produce a single markdown document that lets a teammate (or future-you)
understand the flow of the session in under 60 seconds. The unit of
output is the working session, not any one artifact. Different
granularity from speckit.archive (per-feature, permanent) and
speckit.reconcile.run (drift-fixing).
STAY AT THE FLOW LEVEL. This summary is a narrative, not a transcript. Do NOT include any of the following:
git log)STRICTLY ADDITIVE. Do not modify spec.md, plan.md, tasks.md,
or any source files. The only file this command writes is the session
summary itself.
IDEMPOTENT IN SPIRIT. A second invocation in the same session must produce a comparable summary, not a summary of summaries. Ignore previously generated session files when composing the new one.
Run .specify/scripts/bash/check-prerequisites.sh --json --paths-only from repo root and parse FEATURE_DIR from the JSON
output. All paths must be absolute.
FEATURE_DIR is missing, empty, or the resolved directory does
not exist, fail fast with a clear error such as:
No feature directory resolved from current branch — /speckit.summary.run requires an active feature branch.
Suggest the user switch to a feature branch and re-run.Parse $ARGUMENTS for an optional --since <value>. Treat the
value as opaque — pass it through to git log --since=<value> if it
parses as a date/time, otherwise treat it as a git revision and use
git log <value>..HEAD. Do not attempt to interpret it any further.
Gather context for the summary, in this order of preference:
a. The live conversation context (primary source — the actual
session is what is being summarized).
b. git log on the current branch, optionally bounded by --since,
for outcomes that already landed as commits.
c. FEATURE_DIR/spec.md, plan.md, tasks.md if they exist — only
to anchor terminology, not to copy content.
Do not read every changed file. Do not generate diffs. Stay at the level of "what phase of work was happening, and what did it produce".
Compose the summary with exactly these three sections, in this order:
One paragraph (2–4 sentences). What was this session about? What was the working theme? Reading just this paragraph should answer "what did they spend their time on today?".
A chronological bullet list. Each entry is a single short line in
the form HH:MM — <human-readable phase>, e.g.:
10:42 — investigated failing E2E test in deployments_create.py11:05 — narrowed cause to driver init order11:30 — applied fix and re-ran suiteAim for 5–15 entries. Collapse near-duplicate phases (e.g. three
consecutive "ran tests" lines into one). If exact timestamps are not
recoverable, use relative ordering with no HH:MM prefix and a
leading dash only.
A short bullet list of concrete results from the session. Reference paths and PRs only — no diffs. Examples:
.specify/extensions/auto/, tinyspec/.Write the file.
FEATURE_DIR/sessions/session-YYYY-MM-DD-HHMM.md, where
YYYY-MM-DD-HHMM is the local time at invocation.FEATURE_DIR/sessions/ if it does not exist.HHMM already exists, append a numeric
suffix (-2, -3, …) rather than overwriting.Print the resolved path back to the user as the final message,
plus a one-line reminder that the summary is intentionally
high-level and the conversation transcript / git log remain the
sources of truth for detail.
A reader who was not in the session should, after under 60 seconds with the document, be able to answer:
If the draft cannot pass that bar, tighten it before writing. If it exceeds ~80 lines of markdown, you are too detailed — cut.