Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/marcusgoll/spec-flow/finalizegit clone --depth 1 https://github.com/marcusgoll/Spec-FlowWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00023 | $0.03183 |
| Opus 5 | $0.00012 | $0.01591 |
| Sonnet 5 | $0.00005 | $0.00637 |
| Haiku 4.5 | $0.00002 | $0.00318 |
Grade A, and why
finalize 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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 337 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/finalize — Post-Deployment Finalization (Thin Wrapper)
v11.0 Architecture: This command spawns the isolated
finalize-phase-agentvia Task(). Documentation and archival runs in isolated context.
Interaction State: !cat specs/*/interaction-state.yaml 2>/dev/null | head -10 || echo "none"
Architecture (v11.0 - Phase Isolation):
/finalize → Task(finalize-phase-agent) → CHANGELOG, walkthrough, archive
Agent responsibilities:
- Generate CHANGELOG.md entry
- Update README.md if user-facing changes
- Create walkthrough.md (comprehensive for epics)
- Create GitHub release
- Archive feature to completed/
- Clean up feature branch
Execution model:
- Idempotent: Safe to re-run; completed tasks are skipped
- Deterministic: No prompts, no editors
- Tracked: Every step logged with clear progress indicators
Workflow position: implement → optimize → validate → ship → finalize
Legacy Context (for agent reference)
<legacy_context>
Current workflow state: !cat specs/*/state.yaml 2>/dev/null | grep -E '(feature\.|deployment\.production\.|version:)' | head -20
Recent production deployment: !yq -r '.deployment.production | "URL: \(.url // "N/A"), Date: \(.completed_at // "N/A"), Status: \(.status // "unknown")"' specs/*/state.yaml 2>/dev/null
Required tools check: !for c in gh jq yq git python; do command -v "$c" >/dev/null 2>&1 && echo "✅ $c" || echo "❌ $c"; done
</legacy_context>
-
Execute finalization workflow via spec-cli.py:
python .spec-flow/scripts/spec-cli.py finalizeThe finalize-workflow.sh script performs:
a. Epic workflows only (v5.0+):
- Generate walkthrough.md with velocity metrics
- Calculate sprint results and lessons learned
- Run pattern detection across completed epics (if 2+ completed)
- Auto-offer workflow healing (v10.14+):
- Check
.spec-flow/analytics/patterns.jsonfor recommendations - If
avg_blockers > 3oravg_duration > 14 days, prompt user:
- Check
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.
- 3d ago First seen · 337 lines · 23 tokens per session scan A e34478f7e75b
finalize is a command published in the GitHub repository marcusgoll/Spec-Flow (91 stars, last pushed 4mo ago), licensed MIT. It adds 23 tokens to every session and 3,183 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
release
Execute full version release — merge PRs, version bump, tag, GitHub Release, sync branches, cleanup.
release-notes
Generate release notes from git history — maintain a Keep a Changelog CHANGELOG.md entry and emit a user-facing release body, without deciding versions or mutating git state.
release
Cut a release for one plugin, or for every plugin with changes worth releasing.
sprint-close
Fecha a sprint ativa — atualiza changelog e session log, checa a DoD e prepara a tag. Use ao dizer "fecha a sprint" ou "terminei essa etapa".
OPSX: Archive
Archive a completed change in the experimental workflow.
r-ship
Use when a plan is built and verified and you want to cut a release: preflight, verification, release prep, and publish.