my_tdd

my_tdd is a command for coding agents from anilcancakir/claude-code-plugins. It costs 25 tokens per session (1,007 once invoked), scanned A, original, MIT.

A command for Test-Driven Development (TDD), a way of building software by writing a failing test first, making it pass with the smallest code change, and then cleaning up the code.

In plain words
What is it for?
Use it to build features such as login, shopping carts, password resets, or calculations through a repeated red-green-refactor cycle.
Why use it?
It keeps each behavior tied to a test and helps reveal incorrect assumptions before implementation grows. Tests are checks that confirm code behaves as expected.

Command

Part of the implementation-planner plugin — 3 skills, 3 commands, 3 agents, 1 hook 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 commands/anilcancakir/claude-code-plugins/my_tdd
Clone the repo
git clone --depth 1 https://github.com/anilcancakir/claude-code-plugins

Or install implementation-planner, the plugin that ships this one along with the rest of its 3 skills, 3 commands, 3 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 my_tdd

README.md
[![agentmods](https://agentmods.dev/badge/commands/anilcancakir/claude-code-plugins/my_tdd.svg)](https://agentmods.dev/commands/anilcancakir/claude-code-plugins/my_tdd)
Your own site
<a href="https://agentmods.dev/commands/anilcancakir/claude-code-plugins/my_tdd"><img src="https://agentmods.dev/badge/commands/anilcancakir/claude-code-plugins/my_tdd.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 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,007 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.00025 $0.01007
Opus 5 $0.00013 $0.00504
Sonnet 5 $0.00005 $0.00201
Haiku 4.5 $0.00003 $0.00101

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

Security

Grade A, and why

my_tdd 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 5d 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.

implementation-planner/commands/my_tdd.md · 181 lines

How it starts

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

/my_tdd - Test-Driven Development

Direct TDD workflow for immediate implementation. Enforces strict RED-GREEN-REFACTOR discipline.

Usage

/my_tdd [feature description]

Examples

/my_tdd user login endpoint
/my_tdd shopping cart add item functionality
/my_tdd password reset email service
/my_tdd order total calculation with discounts

What Happens

  1. Detect Test Framework

    • Identifies project stack (Laravel, Flutter, Vue)
    • Selects appropriate test framework
    • Locates test directories
  2. Spawn TDD Enforcer Agent

    • Uses Sonnet model for efficient test/code writing
    • Strict RED-GREEN-REFACTOR enforcement
  3. TDD Cycle (Repeats for Each Behavior)

    RED Phase:

    • Write a failing test
    • Run test - MUST FAIL
    • If passes, investigate (code may already exist)

    GREEN Phase:

    • Write minimal implementation
    • Just enough to pass the test
    • Run test - MUST PASS

    REFACTOR Phase:

    • Improve code quality
    • Run tests after each change
    • Tests MUST stay green
  4. Iterate

    • Identify next behavior to test
    • Repeat cycle until feature complete

Framework Detection

Stack Test Framework Test Directory
Laravel PHPUnit/Pest tests/
Flutter flutter_test test/
Vue (Vitest) Vitest src/**/__tests__/
Vue (Jest) Jest tests/ or __tests__/
Nuxt Vitest tests/

Test Types

Laravel

  • Feature Tests (tests/Feature/): HTTP requests, full request lifecycle
  • Unit Tests (tests/Unit/): Isolated class testing, services

Flutter

  • Unit Tests (test/unit/): Business logic, services, models
  • Widget Tests (test/widget/): UI components, interactions
  • Integration Tests (test/integration/): Full app flows

Vue

  • Unit Tests: Composables, utilities, stores
  • Component Tests: Vue components with Vue Test Utils

Example Workflow

/my_tdd user registration

## RED Phase
Writing test: test_user_can_register_with_valid_data
File: tests/Feature/Auth/RegistrationTest.php

Running test...
FAILED (expected - RegisterController does not exist)

## GREEN Phase
Creating: app/Http/Controllers/RegisterController.php

Running test...
PASSED

## REFACTOR Phase
- Extracted validation to FormRequest
- Added PHPDoc comments

Running tests...
PASSED

## Cycle 2: RED Phase
Writing test: test_registration_fails_with_invalid_email
...

Read the full file on GitHub · 181 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. 5d ago First seen · 181 lines · 25 tokens per session scan A a855df14214c

Subscribe to this mod's changes

my_tdd is a command published in the GitHub repository anilcancakir/claude-code-plugins (6 stars, last pushed 7mo ago), licensed MIT. It adds 25 tokens to every session and 1,007 once invoked, about $0.0001 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.