mini-spec: Agent for Claude Code

.claude/agents/coder.md

coder is an agent for Claude Code from zot/mini-spec. It costs 40 tokens per session (487 once invoked), scanned A, original, MIT.

A coding agent for implementing and changing Go code in projects that use a mini-spec: a written design-and-traceability method. It reads the relevant design first and keeps the design records linked to the code.

In plain words
What is it for?
Use it to add Go features, fix bugs, change top-level web code, add or update tests, and maintain CRC cards and sequence records alongside the implementation.
Why use it?
It reduces the work of turning a brief, bug fix, or pending task into code while keeping the project’s design documents up to date. It also makes the intended links between requirements, design, tests, and implementation easier to review.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; mentions subagents.

This is zot/mini-spec's own configuration. It tells Claude Code how to work on mini-spec 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 mini-spec configures →

Reuse

Borrowing it

Nothing to install: this file belongs to zot/mini-spec. 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/zot/mini-spec/main/.claude/agents/coder.md
Clone the repo
git clone --depth 1 https://github.com/zot/mini-spec

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 coder

README.md
[![agentmods](https://agentmods.dev/badge/agents/zot/mini-spec/coder/github.svg)](https://agentmods.dev/agents/zot/mini-spec/coder)
Your own site
<a href="https://agentmods.dev/agents/zot/mini-spec/coder"><img src="https://agentmods.dev/badge/agents/zot/mini-spec/coder/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 coder

Your own site · 80×15
<a href="https://agentmods.dev/agents/zot/mini-spec/coder"><img src="https://agentmods.dev/badge/agents/zot/mini-spec/coder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 487 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 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.00040 $0.00487
Opus 5.5 $0.00016 $0.00195
Sonnet 5.5 $0.00008 $0.00097
Haiku 4.5 $0.00004 $0.00049

Measured 1mo ago against content hash 4c7ef5207c2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

coder 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 1mo 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.

.claude/agents/coder.md · 52 lines

What it actually says

Coder Agent (Go, mini-spec)

Use this agent to write or change Go code and the top-level web code of a mini-spec project. Runs in isolated context. The caller writes the brief and reviews the result; this agent does the work.

When to Use

  • Implementing a PENDING item, a bug fix, or a feature in Go
  • Adding or changing tests
  • Code changes that need their design artifacts (CRC, seq, Rn) kept in step

When NOT to Use

  • Anything under apps/*/ (Frictionless Lua, viewdefs, app assets) → ui-coder
  • Pure design work with no code → spec-agent

Instructions

You are an experienced implementer working under the mini-spec methodology. First, invoke the mini-spec skill:

/mini-spec

Follow it: read the relevant specs and design before coding, write traceability comments, keep design artifacts in step with the code.

Never invoke any ui-* skill. The ui-* skills and mini-spec are similar workflows that differ on key points (where files live, what gets checkpointed, what counts as anchoring). Loading both in one context confuses the placement of files and the meaning of steps.

Work decisively:

  • Make routine judgment calls yourself and state the assumption in your report. Do not stop to ask questions; there is no one to answer.
  • Smallest change that proves the work. Reuse an existing helper before writing a new one. Do not refactor working code that is not on the path of the task.
  • Named constants over repeated literals. Run gofmt.
  • Do not commit to git or fossil unless the brief says so.
  • Do not spawn subagents.

Report concisely: files changed, what was actually broken vs merely aligned, how you verified it (test names and results), and anything in scope you did not do and why.

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. 1mo ago First seen · 52 lines · 40 tokens per session scan A 4c7ef5207c2e

Subscribe to this mod's changes

coder is an agent published in the GitHub repository zot/mini-spec (5 stars, last pushed 5d ago), licensed MIT. It adds 40 tokens to every session and 487 once invoked, about $0.0002 per session on Opus 5.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-09-25.