/common:feature-tdd-dev Optional feature descriptionfrom common
Guides feature development using TDD with architecture focus. Accepts optional feature description, then discovers requirements, explores codebase, and implements iteratively with tests first.
Ships in common. Installing the plugin adds it to Claude Code.
You are helping a developer implement a new feature using Test-Driven Development. Follow a systematic approach: understand the codebase deeply, identify and ask about all underspecified details, design TDD-based architectures, then implement iteratively with tests first.
CRITICAL: Before starting any phase, load and apply these skills:
tdd-workflow - Defines the iterative TDD process (Red-Green-Refactor)test-conventions - Test writing conventions (if available)Goal: Understand what needs to be built
Initial request: $ARGUMENTS
Actions:
Goal: Understand relevant existing code, patterns, AND test patterns
Actions:
Launch 2-3 code-explorer agents in parallel. Each agent should:
Example agent prompts:
Once the agents return, read all files identified by agents to build deep understanding
Present comprehensive summary of findings and patterns discovered, including test patterns
Goal: Fill in gaps and resolve all ambiguities before designing
CRITICAL: This is one of the most important phases. DO NOT SKIP.
Actions:
If the user says "whatever you think is best", provide your recommendation and get explicit confirmation.
Goal: Design implementation as TDD iterations, not as a sequential build list
CRITICAL: The plan MUST be structured as TDD iterations following the tdd-workflow skill.
Actions:
Launch 2-3 code-architect agents in parallel with different focuses: minimal changes, clean architecture, or pragmatic balance
Transform the architecture into TDD iterations:
Present to user a plan structured as:
## Iteration 1: [Entry point exists]
- **Test (RED)**: Functional test - route returns 200
- **Implementation (GREEN)**: Empty controller with route annotation
- **Files**: Controller.php, ControllerTest.php
## Iteration 2: [First behavior]
- **Test (RED)**: Functional test - [specific behavior]
- **Implementation (GREEN)**: [minimal code to pass]
- **Files**: ...
## Iteration 3: [Domain logic]
- **Test (RED)**: Unit test - [domain rule]
- **Implementation (GREEN)**: [domain class]
- **Files**: ...
... continue with all iterations
| Element | Description |
|---|---|
| Test type | Unit, Functional, or Integration for each iteration |
| Test location | tests/Unit/, tests/Functional/, or tests/Integration/ |
| Test file name | Exact path and class name |
| What to assert | Specific assertion for RED phase |
| Implementation | Minimal code for GREEN phase |
Goal: Build the feature following Red-Green-Refactor
DO NOT START WITHOUT USER APPROVAL
Actions:
# After writing test (RED) - must FAIL
docker compose exec php ./vendor/bin/phpunit path/to/Test.php
# After implementation (GREEN) - must PASS
docker compose exec php ./vendor/bin/phpunit path/to/Test.php
# Full test suite periodically
make php/tests
Goal: Ensure code is simple, DRY, elegant, easy to read, and functionally correct
Actions:
Goal: Document what was accomplished
Actions:
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub fabiensalles/claude-marketplace --plugin common5 commands in this plugin
/deep-reviewDeep Review — Adversarial Code ReviewAdversarial 3-agent code review — produces ~2 high-impact comments per PR/install-global-claude-md/common:install-global-claude-mdInstall or refresh ~/.claude/CLAUDE.md with the canonical universal rules (verification, anti-over-engineering, git discipline) bundled with this plugin/researchObjective ResearchObjective technical research — investigate a codebase or technical question separately from implementation, to avoid confirmation bias. For market / competitive / product research, see the product-research skill./spec-first-devSpec-First Feature DevelopmentSpec-first feature development — 5-phase workflow that produces a validated specification before code, then implements against it with iterative checkpoints. Use when the requirement is fuzzy or the business domain is unfamiliar.