speckit.polish

speckit.polish is a command for Claude Code from jjmartres/ai-coding-agents. It costs 18 tokens per session (563 once invoked), scanned A, original, MIT.

A command for completing a Speckit development workflow through testing, documentation, changelog updates, and a merge request. It follows the project’s constitution, meaning its repository-specific rules.

In plain words
What is it for?
Running the test suite, diagnosing failures, checking code documentation, regenerating project docs, refreshing architecture diagrams, and preparing a merge request.
Why use it?
It puts quality checks and project documentation into one repeatable process, while stopping for human input when tests fail or the intended behavior is unclear.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: model in frontmatter; mentions AGENTS.md; mentions Codex.

Install

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.

agentmods
npx agentmods add commands/jjmartres/ai-coding-agents/speckit.polish
Clone the repo
git clone --depth 1 https://github.com/jjmartres/ai-coding-agents

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 speckit.polish

README.md
[![agentmods](https://agentmods.dev/badge/commands/jjmartres/ai-coding-agents/speckit.polish.svg)](https://agentmods.dev/commands/jjmartres/ai-coding-agents/speckit.polish)
Your own site
<a href="https://agentmods.dev/commands/jjmartres/ai-coding-agents/speckit.polish"><img src="https://agentmods.dev/badge/commands/jjmartres/ai-coding-agents/speckit.polish.svg" alt="Measured on agentmods" 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 563 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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.00563
Opus 5 $0.00009 $0.00282
Sonnet 5 $0.00004 $0.00113
Haiku 4.5 $0.00002 $0.00056

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

Security

Grade A, and why

speckit.polish 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 6d 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.

shared/.ai-agents/commands/speckit.polish.md · 76 lines

How it starts

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

Strictly follow the project constitution.

Apply the following skills where relevant:

  • document-code
  • document-project
  • glab
  • humanizer
  • karpathy-guidelines
  • mermaid-diagrams
  • writing-clearly-and-concisely

Steps

1. Load project context

  • Read .specify/memory/constitution.md if it exists
  • Let the constitution override any defaults below

2. @debugger run the test suite

  • Execute make test-in-ci with coverage report
  • Surface all failures with file, line, and error message
  • For each failure: diagnose root cause and propose a concrete fix
  • Do NOT proceed to step 3 until the human confirms or fixes are applied
  • Report coverage percentage and any skipped tests

3. @code-reviewer audit code documentation

  • Identify undocumented or poorly documented public interfaces, functions, and modules
  • Apply document-code skill to fill gaps
  • Flag anything that requires human input (ambiguous intent, missing domain context)

4. @documentation-engineer regenerate project documentation

  • Apply document-project skill to update or generate the full documentation structure
  • Refresh architecture diagrams with mermaid-diagrams skill where relevant
  • Ensure prose is clear and concise per writing-clearly-and-concisely skill

5. @documentation-engineer update CHANGELOG.md

  • Follow Keep a Changelog format
  • Add an entry under [Unreleased] summarising changes since the last release
  • Group by: Added / Changed / Fixed / Removed

6. @ai-engineer update AGENTS.md

  • Reflect any new agents, skills, tools, or behavioural constraints introduced in this iteration

7. Update Graphify knowledge graph (if applicable)

  • Check whether a graphify-out/ directory exists at the project root
  • If it exists, run: graphify update . --out ./graphify-out
  • If not, skip silently

8. Sync memory bank

  • Run /memory-bank to persist updated project state

9. Commit

  • Run /commit with a conventional commit message scoped to this workflow

Read the full file on GitHub · 76 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. 6d ago First seen · 76 lines · 18 tokens per session scan A fcea4eda3288

Subscribe to this mod's changes

speckit.polish is a command published in the GitHub repository jjmartres/ai-coding-agents (45 stars, last pushed 2mo ago), licensed MIT. It adds 18 tokens to every session and 563 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.