racecraft-plugins-public: Command for Claude Code

.specify/extensions/retrospective/commands/retrospective.md

retrospective is a command for Claude Code from racecraft-lab/racecraft-plugins-public. It costs 18 tokens per session (1,725 once invoked), scanned A, a copy of retrospective, MIT.

A post-implementation review that compares completed work with its specification, plan, and task list. It produces a retrospective report about adherence, deviations, and lessons learned.

In plain words
What is it for?
Reviewing specification-driven projects, measuring task completion, documenting implementation changes, and saving findings in a retrospective.md report.
Why use it?
Teams can finish coding without noticing where the result drifted from the agreed requirements. A retrospective makes those differences visible for future work.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is racecraft-lab/racecraft-plugins-public's own configuration. It tells Claude Code how to work on racecraft-plugins-public itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything racecraft-plugins-public configures →

Reuse

Borrowing it

Nothing to install: this file belongs to racecraft-lab/racecraft-plugins-public. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/racecraft-lab/racecraft-plugins-public/main/.specify/extensions/retrospective/commands/retrospective.md
Clone the repo
git clone --depth 1 https://github.com/racecraft-lab/racecraft-plugins-public

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for retrospective

README.md
[![agentmods](https://agentmods.dev/badge/commands/racecraft-lab/racecraft-plugins-public/retrospective/github.svg)](https://agentmods.dev/commands/racecraft-lab/racecraft-plugins-public/retrospective)
Your own site
<a href="https://agentmods.dev/commands/racecraft-lab/racecraft-plugins-public/retrospective"><img src="https://agentmods.dev/badge/commands/racecraft-lab/racecraft-plugins-public/retrospective/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for retrospective

Your own site · 80×15
<a href="https://agentmods.dev/commands/racecraft-lab/racecraft-plugins-public/retrospective"><img src="https://agentmods.dev/badge/commands/racecraft-lab/racecraft-plugins-public/retrospective.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,725 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 97% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.01725
Opus 5 $0.00009 $0.00863
Sonnet 5 $0.00004 $0.00345
Haiku 4.5 $0.00002 $0.00172

Measured 10d ago against content hash e443e2f91df9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

retrospective scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

97% identical to retrospective — 3 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.specify/extensions/retrospective/commands/retrospective.md · 209 lines

How it starts

The opening of the file, as written. The whole thing — 209 lines — stays where its author put it; the contents beside it link to each section on GitHub.

User Input

$ARGUMENTS

Consider user input before proceeding (if not empty).

Goal

Analyze completed implementation against spec.md, plan.md, and tasks.md to measure spec adherence and drift. Generate actionable insights for future SDD cycles.

Constraints

  • Output: Generates and saves retrospective.md report to FEATURE_DIR
  • Post-Implementation: Run after implementation complete; warn if <80% tasks done, confirm before proceeding if <50%
  • Human Gate for spec changes: before any action that modifies spec.md (including /speckit.specify handoff), explicitly ask for user confirmation and stop if not approved
  • Confirmation policy: default is NO. Only explicit approvals (y, yes, si, s, ) count as consent

Execution Steps

1. Initialize Context

Run {SCRIPT} from repo root. Parse JSON for FEATURE_DIR and AVAILABLE_DOCS. Derive paths: SPEC, PLAN, TASKS = FEATURE_DIR/{spec,plan,tasks}.md. Abort if missing.

For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'''m Groot' (or double-quote if possible: "I'm Groot").

2. Validate Completeness

total_tasks=$(grep -c '^- \[[ Xx]\]' "$TASKS" || echo 0)
completed_tasks=$(grep -c '^- \[[Xx]\]' "$TASKS" || echo 0)
if [ "$total_tasks" -eq 0 ]; then
  echo "No tasks found in $TASKS" && exit 1
fi
completion_rate=$((completed_tasks * 100 / total_tasks))

Completion thresholds:

  • =80%: Proceed with full retrospective

  • 50-79%: Warn about incomplete implementation, continue with partial analysis
  • <50%: STOP and confirm before continuing

3. Load Artifacts

  • spec.md: FR-XXX, NFR-XXX, SC-XXX, user stories, assumptions, edge cases
  • plan.md: Architecture, data model, phases, constraints, dependencies
  • tasks.md: All tasks with status, file paths, blockers
  • constitution: /memory/constitution.md (if exists)

4. Discover Implementation

  • Extract file paths from completed tasks plus recent git history
  • Inventory: Models, APIs, Services, Tests, Config changes
  • Audit: Libraries, frameworks, integrations actually used

Read the full file on GitHub · 209 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 209 lines · 18 tokens per session scan A e443e2f91df9

Subscribe to this mod's changes

retrospective is a command published in the GitHub repository racecraft-lab/racecraft-plugins-public (5 stars, last pushed today), licensed MIT. It adds 18 tokens to every session and 1,725 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 97% identical to retrospective, differing in 3 lines, and is treated as a copy.