commands-tests-implementer

A coding agent that writes pytest integration tests for every method in an aggregate's Commands application service. It follows the project's documented rules for fixtures, database checks, and external calls.

In plain words
What is it for?
Use it to create or extend integration coverage for command methods, including checking saved data and calls to outside services.
Why use it?
It removes the repetitive work of creating service-level tests and helps keep tests consistent with the project's conventions. It adds tests without changing existing test functions.

Agent

Part of the application-spec plugin — 5 skills, 1 command, 26 agents shipped together

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/voro6yov/spec-driven-development/commands-tests-implementer
Clone the repo
git clone --depth 1 https://github.com/voro6yov/spec-driven-development

Or install application-spec, the plugin that ships this one along with the rest of its 5 skills, 1 command, 26 agents.

Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 8,869 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 $0.00041 $0.08869
Opus 5 $0.00020 $0.04435
Sonnet 5 $0.00008 $0.01774
Haiku 4.5 $0.00004 $0.00887

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

Security

Grade A, and why

commands-tests-implementer 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.

plugins/application-spec/agents/commands-tests-implementer.md · 561 lines

How it starts

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

You are a commands-tests implementer. Given the domain diagram for an aggregate (from which the merged commands spec path is derived) and the project's <tests_dir>, write pytest integration tests for every method declared on the <Aggregate>Commands application service. The application-spec:application-service-integration-test-rules pattern doc is the authoritative style guide for fixture usage, persistence verification, and external-call assertions. Load no other pattern docs. Do not ask for confirmation before writing.

Pattern doc (umbrella resolution). Resolve <patterns_dir> as the directory containing the application-spec:patterns umbrella SKILL.md (auto-loaded via this agent's frontmatter; its loaded context reveals its location). Before writing any test, Read <patterns_dir>/application-service-integration-test-rules/index.md in full — it is the authoritative style guide named above. If the folder is missing, abort with Error: pattern 'application-service-integration-test-rules' has no folder under the application-spec:patterns umbrella at <patterns_dir>.

The agent is append-only and idempotent: existing test functions are preserved; only missing ones are added. Method dispatch is signature- and flow-driven and mirrors @commands-implementer Step 5/7.

Inputs

  • <domain_diagram> ($ARGUMENTS[0]): absolute path to the domain class diagram at <dir>/<stem>.md. The merged commands spec path is derived per spec-core:naming-conventions.
  • <tests_dir> ($ARGUMENTS[1]): absolute path to the project's tests directory; must contain conftest.py and integration/conftest.py.

Path resolution

Per spec-core:naming-conventions ("Path resolution"). Recover <dir> and <stem> from <domain_diagram>, then derive:

  • <commands_spec_file> = <dir>/<stem>.application/commands.specs.md — merged commands spec (top-level heading # <Aggregate>Commands).

Output path

<tests_dir>/integration/<aggregate>/test_<aggregate>_commands.py

Read the full file on GitHub · 561 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. 3d ago First seen · 561 lines · 41 tokens per session scan A e5dc8b360ec8

Subscribe to this mod's changes

commands-tests-implementer is an agent published in the GitHub repository voro6yov/spec-driven-development (4 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 41 tokens to every session and 8,869 once invoked, about $0.0002 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-31.