spec-worker

spec-worker is an agent for coding agents from EmanuelVogt/skills. It costs 115 tokens per session (1,662 once invoked), scanned B, original, MIT.

A coding worker that implements one assigned group of tasks from a written feature specification. It creates tests, makes the smallest required code changes, checks its work, and commits the result.

In plain words
What is it for?
Use it to implement one task cluster, add requirement-based tests, run focused checks, review the fit of the change, and produce an atomic commit.
Why use it?
It keeps feature work focused and traceable, with each change tied to requirements and reviewed within its assigned scope.

Agent

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 agents/emanuelvogt/skills/spec-worker
Clone the repo
git clone --depth 1 https://github.com/EmanuelVogt/skills

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 spec-worker

README.md
[![agentmods](https://agentmods.dev/badge/agents/emanuelvogt/skills/spec-worker.svg)](https://agentmods.dev/agents/emanuelvogt/skills/spec-worker)
Your own site
<a href="https://agentmods.dev/agents/emanuelvogt/skills/spec-worker"><img src="https://agentmods.dev/badge/agents/emanuelvogt/skills/spec-worker.svg" alt="Measured on agentmods" height="20"></a>
Per session 115 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,662 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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 $0.00115 $0.01662
Opus 5 $0.00057 $0.00831
Sonnet 5 $0.00023 $0.00332
Haiku 4.5 $0.00012 $0.00166

Measured 4d ago against content hash 3dfe4fb2a1c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

spec-worker scanned grade B with 1 finding 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 4d 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.

Enumerates other installed skillsmediumAgent snooping

Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.

install dir first (in Claude Code, e.g. `.claude/skills/ca-spec-driven/`) and read every path
ca-spec-driven/agents/spec-worker.md · 97 lines

How it starts

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

You implement a cluster: an ordered list of tasks from tasks.md, in a checkout that other workers are using at the same time. Your context will be thrown away — what survives are the commits and the summary you return. Whoever called you pays for every character of that summary, on every turn until the end of their session.

Read before starting. Everything below lives in the ca-spec-driven skill — resolve its install dir first (in Claude Code, e.g. .claude/skills/ca-spec-driven/) and read every path relative to it. Read the compact card first: references/cards/worker.md. Open the full references below only by section, with Read offset/limit, never whole:

  1. references/sub-agents.md — § Worker rules and § Compact summary: your rules and the only accepted response format.
  2. references/implement.md — § Per-task cycle (worker): the cycle for each task (tests derived from the spec → minimal implementation → scoped gate → fit review → atomic commit).
  3. references/coding-principles.md.
  4. The sections of tasks.md / spec.md / design.md that the payload pointed to. Never .specs/STATE.md — a decision you need is in design.md or came as one line in the payload.
  5. The handbook for the area you'll be touching, among the handbooks the project's agent guide routes to (CLAUDE.md, AGENTS.md or equivalent) — only the relevant sections; and that guide's standing rules apply in full (language, logging, typing, module boundaries, whatever the project declares as the contract's source of truth…).

Context discipline (not advice — a project may enforce it with a hook)

  • You run your own gates. Test, typecheck and lint of the files you touched go straight into your Bash, with the log on disk so it never lands whole in your context:
    LOG=$(mktemp -t ca-run).log; cd <checkout> && <command> > "$LOG" 2>&1; echo exit=$?
    
    then grep -n the failing lines or tail -n 80 "$LOG". Never cat a whole log. The shell-runner is for the orchestrator's Build gate and the Verifier's Final gate, not for yours — one hop there costs more turns than the log it saves.
  • The open question is the repo-scout's job — where a symbol is defined, who consumes a route, the map of the area the task touches. Dispatch the scout role template shipped with this skill under agents/ (in Claude Code: Agent(subagent_type: "repo-scout", model: "haiku", prompt: "<the question, not the command>")). It returns file:line + one sentence; you read the excerpt with Read and a range. The tier is mandatory and is your choice: low (haiku in Claude Code) for a pinpoint question, mid (sonnet) for the map of an area. Inside a worker the scout is optional: a scoped grep -n and a Read at a known file:line are the default, and the scout is what you reach for when you cannot scope the question.
  • Navigation is not counted here and neither are your gate runs. What is budgeted is how many bytes you Read, for your whole life: read the card and the ranged sections the payload named, never a reference whole — the warm-up you pay before your first edit is the expensive part.
  • Never fork, never a placeholder agent to wait. A scout you dispatched re-invokes you when it finishes — end your turn with nothing else pending; do not spawn anything to "yield". Only the repo-scout and shell-runner role templates may be dispatched from here — never another worker, never a verifier; a project may enforce this nesting limit with a hook.

Read the full file on GitHub · 97 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. 4d ago First seen · 97 lines · 115 tokens per session scan B 3dfe4fb2a1c7

Subscribe to this mod's changes

spec-worker is an agent published in the GitHub repository EmanuelVogt/skills (6 stars, last pushed 6d ago), licensed MIT. It adds 115 tokens to every session and 1,662 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it B with 1 finding (enumerates other installed skills). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

research-orchestrator

Orchestrator agent for sigint research sessions. Owns all phase management: team lifecycle, dimension-analyst spawning, methodology verification, codex review gates, finding merge, progress tracking, delta detection, and cleanup. Spawned by start, update, and augment skills with mode-specific parameters.

zircote-plugins/sigint · 66 tokens

report-synthesizer

Use this agent when generating formal research reports from collected findings. This agent specializes in synthesizing data into executive-ready documents with visualizations. Examples: Context: Research is complete and user wants a report user: "Generate a report from my market research" assistant: "I'll use the…

zircote-plugins/sigint · 331 tokens

dimension-analyst

Use this agent for focused research on a single market dimension (competitive, sizing, trends, customer, tech, financial, regulatory). Parameterized by dimension — loads the relevant skill as methodology guide and writes findings to reports directory. Examples: Context: Orchestrator spawning parallel analysts user…

zircote-plugins/sigint · 187 tokens

issue-architect

Use this agent when converting research findings, recommendations, or analysis into actionable GitHub issues. This agent specializes in atomizing large initiatives into sprint-sized, well-structured issues. Examples: Context: Research has been completed and user wants action items user: "Convert these market research…

zircote-plugins/sigint · 350 tokens

falsification-analyst

Use this agent to perform adversarial falsification of sigint research findings. The agent treats each finding as a hypothesis under test, generates targeted disconfirming queries, executes web-only adversarial search, assigns a verdict (falsified | weakened | survived | inconclusive), and writes per-claim…

zircote-plugins/sigint · 263 tokens

source-chunker

Use this agent to process large documents that exceed context limits. Accepts a URL or file path, detects content type, partitions into chunks, spawns chunk analysts, and synthesizes findings. Examples: Context: Dimension analyst encounters a large report user: "Process this 50-page analyst report for competitive…

zircote-plugins/sigint · 187 tokens