symfony-tdd-coach

symfony-tdd-coach is an agent for Claude Code from gerard-labs/superpowers-api-platform. It costs 114 tokens per session (2,518 once invoked), scanned A, original, MIT.

A Symfony testing assistant that checks a planned test matrix against the code and uses mutation testing, which deliberately changes code to see whether tests catch the changes.

In plain words
What is it for?
Use it to design and write Symfony tests, check controllers, forms, pages, and API endpoints, and strengthen coverage with mutation testing.
Why use it?
It exposes weak or missing tests on important application paths instead of treating a passing test run as sufficient proof.

Agent for Claude Code

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is 3. Bash: ./vendor/bin/phpunit --filter=Api 2>&1 | tee /tmp/phpunit.log | tail -100.

Part of the gerard plugin — 53 skills, 25 commands, 7 agents, 1 hook shipped together

Good fit Use it to design and write Symfony tests, check controllers, forms, pages, and API endpoints, and strengthen coverage with mutation testing.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/gerard-labs/superpowers-api-platform
agentmods
npx agentmods add agents/gerard-labs/superpowers-api-platform/symfony-tdd-coach

Made for: Claude Code.

Or install gerard, the plugin that ships this one along with the rest of its 53 skills, 25 commands, 7 agents, 1 hook.

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 symfony-tdd-coach

README.md
[![agentmods](https://agentmods.dev/badge/agents/gerard-labs/superpowers-api-platform/symfony-tdd-coach/github.svg)](https://agentmods.dev/agents/gerard-labs/superpowers-api-platform/symfony-tdd-coach)
Your own site
<a href="https://agentmods.dev/agents/gerard-labs/superpowers-api-platform/symfony-tdd-coach"><img src="https://agentmods.dev/badge/agents/gerard-labs/superpowers-api-platform/symfony-tdd-coach/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 symfony-tdd-coach

Your own site · 80×15
<a href="https://agentmods.dev/agents/gerard-labs/superpowers-api-platform/symfony-tdd-coach"><img src="https://agentmods.dev/badge/agents/gerard-labs/superpowers-api-platform/symfony-tdd-coach.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 114 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,518 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.00114 $0.02518
Opus 5 $0.00057 $0.01259
Sonnet 5 $0.00023 $0.00504
Haiku 4.5 $0.00011 $0.00252

Measured 8d ago against content hash 7b79412ecce0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

symfony-tdd-coach 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 8d 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.

agents/symfony-tdd-coach.md · 233 lines

How it starts

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

Symfony TDD Coach Agent

The previous-version of this persona prescribed ratification ("run the test suite"). This version pushes explicitly toward test authoring + mutation testing. If you only run make ci and emit a report, you haven't done your job.

You are responsible for the test strategy, the test infrastructure, and the confidence the team has in each deployment. The plugin canon (gerard:api-platform-tests) imposes nominal 100% on testable code, mandatory functional tests on every controller / form / page, mandatory API tests on every API Platform endpoint, test architecture mirroring src/. This persona adds the strategy + the step-by-step workflow on top.

⛔ First action — Read the state files

If the pipeline is in progress, these files exist:

Read .claude/last-api-plan.md       # ← contains the test matrix you'll validate against
Read .claude/last-api-dev-report.md # ← lists files touched, classes critical to mutate

Without last-api-plan.md, you have no test matrix. You fall back to ratification — the V1 bug. Always Read first.

Authority order — local skill overrides

Before dispatching gerard:X, check via Glob for <project-name>:X overrides. If yes, prefer.

⛔ Workflow gold-standard

1. Read .claude/last-api-plan.md → extract test matrix (Criterion | Layer | BDD test name | Mutation focus)
2. Read .claude/last-api-dev-report.md → identify classes touched
3. Bash: ./vendor/bin/phpunit --filter=Api 2>&1 | tee /tmp/phpunit.log | tail -100
   → If red: analyze, fix in same session, re-run
   → If green: continue
4. Bash: ./vendor/bin/infection --filter=<critical-classes> 2>&1 | tee /tmp/infection.log | tail -200
   → Note MSI per target. Identify escapees on critical paths.
5. For each escaped mutant on a critical path:
   a. Read the mutant (file:line, operator, diff)
   b. Decide: killable / equivalent / peripheral
   c. If killable: Write a test that forces the invariant (NOT the implementation)
   d. Re-run mutation on the diff to confirm kill
6. Output checklist `AC → test path → status` (present / missing / tautological) — covers THE WHOLE matrix
7. Final quality gate: ./vendor/bin/phpunit --filter=Api (verify nothing regressed)
8. Emit report between ===API-TEST-BEGIN=== / ===API-TEST-END===

Read the full file on GitHub · 233 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. 8d ago First seen · 233 lines · 114 tokens per session scan A 7b79412ecce0

Subscribe to this mod's changes

symfony-tdd-coach is an agent published in the GitHub repository gerard-labs/superpowers-api-platform (2 stars, last pushed 3mo ago), licensed MIT. It adds 114 tokens to every session and 2,518 once invoked, about $0.0006 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.

Related

Other agents, from other repositories

symfony-tdd-coach

Guides TDD workflow for Symfony projects using Pest PHP or PHPUnit. Drives strict RED-GREEN-REFACTOR cycles with proper test isolation, Foundry factories, and regression protection. Use when writing tests, adding test coverage, or practicing TDD.

dev-toolings/superpowers-symfony · 58 tokens

tdd-orchestrator

TDD orchestrator. Delegate only when the user explicitly starts an Octopus workflow.

nyldn/claude-octopus · 23 tokens

senior-dev

Usar para implementación de código con TDD estricto, refactoring guiado y respuesta a code reviews. Se activa en la fase 3 (desarrollo) de /alfred-dev:feature y en la fase de diagnóstico y corrección de /alfred-dev:fix. También se puede invocar directamente para tareas de implementación, refactoring o consultas sobre…

686f6c61/alfred-dev · 263 tokens

kwb

You are inspired by Kent Beck — creator of Extreme Programming and Test-Driven Development, co-author of JUnit, and author of Smalltalk Best Practice Patterns (1997), Test-Driven Development: By Example (2002), and Implementation Patterns (2007).

punt-labs/prfaq · 62 tokens

failing-test-writer

Test-first coding agent. Use in Step 2 of the development workflow after the plan file is ready. Receives the plan file path, implements test code from the Test Cases table (including any updates to existing tests indicated in the table), runs the tests to confirm they fail (production code does not yet exist).…

nowsprinting/unity-coding-skills · 85 tokens

harness-generator

Harness Generator — implements checkpoint code with TDD and atomic commits. Use when harness orchestrator needs code generation for a checkpoint.

stone16/harness-engineering-skills · 29 tokens