symfony-tdd-coach

symfony-tdd-coach is an agent for Claude Code from dev-toolings/superpowers-symfony. It costs 58 tokens per session (694 once invoked), scanned A, original, MIT.

A testing coach for Symfony, a PHP web framework, using Pest or PHPUnit, which are tools for running PHP tests. It teaches TDD, or test-driven development: write a failing test, make it pass, then improve the code.

In plain words
What is it for?
Use it when adding tests, increasing coverage, or developing Symfony features with TDD. It helps identify the test setup, choose the test runner, create test data, and follow the RED-GREEN-REFACTOR cycle.
Why use it?
It prevents tests from being written after the implementation with unclear coverage. It also helps keep tests isolated and protects against regressions, where a later change breaks existing behavior.

Agent for Claude Code

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

Part of the superpowers-symfony plugin — 44 skills, 13 commands, 7 agents, 1 hook shipped together

Good fit Use it when adding tests, increasing coverage, or developing Symfony features with TDD. It helps identify the test setup, choose the test runner, create test data, and follow the RED-GREEN-REFACTOR cycle.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/dev-toolings/superpowers-symfony/symfony-tdd-coach
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.

Clone the repo
git clone --depth 1 https://github.com/dev-toolings/superpowers-symfony

Made for: Claude Code.

Or install superpowers-symfony, the plugin that ships this one along with the rest of its 44 skills, 13 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/dev-toolings/superpowers-symfony/symfony-tdd-coach/github.svg)](https://agentmods.dev/agents/dev-toolings/superpowers-symfony/symfony-tdd-coach)
Your own site
<a href="https://agentmods.dev/agents/dev-toolings/superpowers-symfony/symfony-tdd-coach"><img src="https://agentmods.dev/badge/agents/dev-toolings/superpowers-symfony/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/dev-toolings/superpowers-symfony/symfony-tdd-coach"><img src="https://agentmods.dev/badge/agents/dev-toolings/superpowers-symfony/symfony-tdd-coach.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 694 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.00058 $0.00694
Opus 5 $0.00029 $0.00347
Sonnet 5 $0.00012 $0.00139
Haiku 4.5 $0.00006 $0.00069

Measured 9d ago against content hash ce17a637ffc5, 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 9d 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 · 67 lines

How it starts

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

You are a TDD coach for Symfony projects. You enforce strict RED-GREEN-REFACTOR discipline.

First steps

  1. Detect the test framework: check composer.lock for pestphp/pest (→ Pest) or default to PHPUnit.
  2. Detect the test runner command: check for Docker (compose exec), DDEV, or local ./vendor/bin/pest / ./vendor/bin/phpunit.
  3. Check if zenstruck/foundry is installed for test factories. Foundry v2 factories extends PersistentObjectFactory with class()/defaults() and return real objects (no Proxy); createOne()/createMany() still apply. Use #[ResetDatabase] (PHPUnit 10+) for DB isolation.
  4. Note framework versions: Pest v4 (PHP 8.3+) integrates with Symfony via the PHPUnit bridge (no official Symfony Pest plugin); PHPUnit 10/11 uses attributes (#[Test], #[DataProvider]), not annotations.

Workflow — RED-GREEN-REFACTOR

RED — Write the failing test first

  • Create the test file in the correct directory (tests/Unit/, tests/Functional/, tests/Integration/).
  • Write a single focused test that describes the expected behavior.
  • Run the test. Confirm it fails. If it passes, the test is wrong.

GREEN — Write minimal code to pass

  • Implement only what is needed to make the failing test pass.
  • No extra features, no premature abstractions.
  • Run the test. Confirm it passes.

REFACTOR — Clean up while green

  • Improve naming, extract methods, reduce duplication.
  • Run tests after each change. They must stay green.

Rules

  • Never write implementation code before the test.
  • One test at a time. Do not batch.
  • Use Foundry factories (XxxFactory::createOne()) instead of manual entity creation when available (Foundry v2 returns real objects).
  • For functional tests, use WebTestCase and test HTTP responses, not internal state.
  • Mock only external dependencies (HTTP clients, mailers). Never mock the repository or entity manager in integration tests.
  • Name tests descriptively: test('calculates price with percentage discount', ...) or test_calculates_price_with_percentage_discount.

Read the full file on GitHub · 67 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. 9d ago First seen · 67 lines · 58 tokens per session scan A ce17a637ffc5

Subscribe to this mod's changes

symfony-tdd-coach is an agent published in the GitHub repository dev-toolings/superpowers-symfony (209 stars, last pushed 8d ago), licensed MIT. It adds 58 tokens to every session and 694 once invoked, about $0.0003 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.

Related

Other agents, from other repositories

builder

Implements features, fixes bugs, and creates projects from specs. Follows TDD, uses conventional commits, and prefers boring solutions. Delegated from /ccc-build after…

KevinZai/commander · 37 tokens

developer

TDD-first implementation worker dispatched by /magi:go. Receives a complete task brief (PLAN/SPEC excerpt, file context, interface contracts, conventions) and executes one task or one parallel lane. Writes code + tests; does not make architecture decisions; reports DONE / BLOCKED back to coordinator. Default model is…

howar31/magi-workflow · 83 tokens

dnp-tdd-developer-hard

🔬 Deep TDD for complex .NET tasks: architectural decisions, ambiguous edge cases, high-risk refactoring. Writes both tests and production code with rigorous RED-GREEN-REFACTOR.

zdanovichnick/dotnet-pilot · 47 tokens

dnp-tdd-developer-easy

⚡ Fast TDD for routine .NET tasks: clear requirements, low-risk changes, well-defined scope. Writes both tests and production code following RED-GREEN-REFACTOR.

zdanovichnick/dotnet-pilot · 46 tokens

ccf-implementer

Implements EXACTLY ONE task from .claude/plan/task-NNN-.md — reads the relevant spec + rules, writes a failing test first then code to meet the acceptance criteria, uses MCP to look up DB schema/docs when needed. Does no other task, no out-of-scope refactor.

naniiluja/ccf · 69 tokens

tdd-runner

Runs Kent Beck's red → green → refactor loop end-to-end for a single behavior change and returns one green-with-evidence verdict. Writes the failing test FIRST, runs it to confirm red, implements the minimum to go green, then refactors. Use when the user wants a behavior built/fixed test-first hands-off, or says "TDD…

jhlee0409/omni-harness-kit · 126 tokens