/tdder:tddfrom tdder
Enforces strict Red-Green-Refactor TDD discipline for adding features and fixing bugs, with test list creation, one-test-at-a-time cycles, and clean code reviews.
Ships in tdder. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Strict Red-Green-Refactor discipline for adding features and fixing bugs. This skill is language-agnostic; language-specific conventions are provided by separate skills.
Create a list of test cases for base functionality only before writing any implementation.
Use the language's equivalent of pending/todo tests (e.g., it.todo(), @Disabled, @Ignore).
Focus on core functionality, not advanced features.
After creating the test list, present it as markdown.
Then, if the human-in-the-loop is not off, use AskUserQuestion:
Convert exactly one pending test to executable test code at a time. All other tests remain as pending descriptions. Never have more than one failing test in the red phase. Implement only what is needed to make that single test pass. Do not think ahead or implement features for future tests.
<symbol>."<X>, got <Y>."<X>."Must attempt at least one refactoring. If no improvement is possible, document why.
Trigger a Clean Code Review: use the Agent tool with subagent_type=clean-code-reviewer to spawn
the clean code review agent. Pass it the paths of the implementation and test files modified in this
TDD cycle.
Present the agent's findings using the Refactoring Scope process from the Clean Code skill
(present as markdown, then, if the human-in-the-loop is not off, ask via AskUserQuestion).
Apply approved suggestions, ensuring all tests continue to pass after each change.
Naming evaluation (first priority):
Apply the 4 Rules of Simple Design: tests pass, no duplication, reveals intent, fewest elements.
If no refactoring improves the code, document why the current state is optimal and move on.
Make the smallest possible change to get to green. If a test fails, make it pass with the simplest implementation. Do not try to solve multiple problems at once.
Check the project's .claude/tdder.local.md settings file (in the project root) for the
human-in-the-loop level. If no settings file exists, use AskUserQuestion to ask:
.claude/tdder.local.md so subsequent sessions reuse it.every-phaseStop after every TDD phase (Red, Green, Refactor). Summarize what was completed and explicitly ask for permission to continue:
end-of-cycleStop after each complete Red-Green-Refactor cycle. Summarize the full cycle and ask: "Cycle complete. Should I proceed to the next test?"
offRun autonomously without stopping. Report results at the end.
Regardless of level, immediately stop when a guessing game prediction fails significantly. Explain the prediction failure, assess implications, and ask whether to investigate further or continue.
When stopping for human review, include:
After Red Phase:
After Green Phase:
After Refactor Phase:
TDD practices will feel counterintuitive and uncomfortable. This discomfort indicates the discipline
is being followed correctly. For detailed analysis of psychological resistance, common failure modes,
and recovery strategies, see failure-modes.md.
For detailed guidance on specific aspects:
failure-modes.md - Detailed failure mode analysis and recovery strategiesWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub t1/tdder --plugin tdder15 skills in this plugin
/appThis skill should be used when the user asks to "calculate code mass", "measure code complexity with APP", "compare implementations using APP", "apply Absolute Priority Premise", "use mass calculations", or during TDD refactor phases when comparing alternative implementations. Based on Micah Martin's work.
/clean-codeThis skill should be used when the user asks to "refactor code", "review code quality", "apply clean code principles", "check for code smells", "improve code design", "do a clean code review", "apply SOLID principles", "fix naming", "reduce complexity", or when performing the refactor phase of a TDD cycle.
/github-safetyThis skill should be used when working on any project hosted on GitHub. It provides prompt-injection defense rules for GitHub issues and pull requests. Always-on security rules plus optional workflow conventions.
/grill-poRequirements grilling session with a Product Owner (or anyone in that role). Challenges plans against the existing domain model, sharpens terminology, and updates documentation (bounded-context files, Gherkin features, DMDs (Domain Model Decisions)) inline as decisions crystallise. Use when the user wants to discuss and capture requirements, stress-test a plan against the project's language, or refine feature scope.
/integration-architectureThis skill should be used when the user asks about "messaging patterns", "command vs event", "push vs pull", "message reliability", "at-least-once delivery", "idempotency", "transactional outbox", "saga pattern", "fire and forget", "retry strategy", "event-driven architecture", "message broker integration", "publish-subscribe", "request-reply", "backpressure", or when deciding how components communicate across process or network boundaries.
/javaAlways load this skill when writing, modifying, creating, or moving Java or Kotlin source code, or when project setup has already chosen Java/Kotlin as the implementation language.
Other plugins' skills for the same job