/max:tddfrom max
Enforces red-green-refactor TDD for testable layers like parsers, formatters, services, and pure functions. Includes guidance on when NOT to TDD (SwiftUI views, animations, system frameworks).
Ships in max. 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.
None: SKILL.md is the whole skill.
Test-driven development, done right. One test, one implementation, repeat. Tests describe behavior through public interfaces, not implementation details.
Synthesis of Matt Pocock's tdd (vertical-slice tracer bullets) and the superpowers test-driven-development discipline (strict RED-GREEN-REFACTOR with enforcement). Plus a critical addition: when NOT to TDD, for codebases where not every layer is testable.
Core principle: Tests verify behavior through public interfaces, not implementation details. Code can change entirely; tests shouldn't.
Good tests are integration-style. They exercise real code paths through public APIs. They describe what the system does, not how. A good test reads like a specification: "parses a wikilink with an alias and produces the expected tokens". These tests survive refactors because they don't care about internal structure.
Bad tests are coupled to implementation. They mock internal collaborators, test private methods, or verify through external means (querying a database directly instead of using the interface). The warning sign: your test breaks when you refactor, but behavior hasn't changed. If you rename an internal function and tests fail, those tests were testing implementation, not behavior.
TDD is the right discipline when both conditions hold:
Good fits:
TranscriptProcessor that takes text and returns structured output)XCTAssertEqual(actual, expected) is the right shape of verificationTDD is the wrong discipline when the thing you care about isn't verifiable through an in-process assert. Writing tests anyway produces shallow coverage — the test passes but the real bug hides in the layer you couldn't test.
Don't TDD:
For these, use smoke tests (launch the app, do the thing, screenshot, compare) or computer-use verification (script the UI). Don't pretend TDD works here.
Swift-specific note: in a SwiftUI app, most view code is not TDD-friendly. Parsers, models, services, and pure logic are. When in doubt, ask: "if the test passes, is the behavior I care about actually verified?" If not, don't write the test.
DO NOT write all tests first, then all implementation. This is "horizontal slicing" — treating RED as "write all tests" and GREEN as "write all code."
This produces crap tests:
Correct approach: Vertical slices via tracer bullets. One test → one implementation → repeat. Each test responds to what you learned from the previous cycle. Because you just wrote the code, you know exactly what behavior matters and how to verify it.
WRONG (horizontal):
RED: test1, test2, test3, test4, test5
GREEN: impl1, impl2, impl3, impl4, impl5
RIGHT (vertical):
RED → GREEN: test1 → impl1
RED → GREEN: test2 → impl2
RED → GREEN: test3 → impl3
...
Ask: "What should the public interface look like? Which behaviors are most important to test first?"
You can't test everything. Focus on critical paths and complex logic, not every edge case. Let the user tell you what matters.
Write ONE test that confirms ONE thing end-to-end:
RED: Write test for the most important behavior → test fails (WATCH IT FAIL)
GREEN: Write minimal code to pass → test passes (WATCH IT PASS)
COMMIT
Watch the test fail, then watch it pass. Skipping the failure observation means you might be writing a test that always passes. Skipping the pass observation means you might be writing code that happens to work but doesn't actually exercise the test path.
The tracer bullet proves the path works end-to-end. It's allowed to be ugly — the point is to get a passing test before adding more.
For each remaining behavior:
RED: Write next test → fails (watch it fail)
GREEN: Minimal code to pass → passes (watch it pass)
COMMIT
Rules:
If you catch yourself writing code without a failing test first, stop. Back out the code, write the test, watch it fail, then write the code. The discipline is what makes TDD produce good tests — skipping the discipline produces bad tests.
After all tests pass, look for cleanup opportunities:
Never refactor while RED. Get to GREEN first, then refactor with tests as your safety net.
[ ] Test describes behavior, not implementation
[ ] Test uses public interface only
[ ] Test would survive internal refactor
[ ] I watched the test fail before writing code
[ ] I watched the test pass after writing code
[ ] Code is minimal for this test
[ ] No speculative features added
If any item is unchecked, the cycle is incomplete. Complete it or revert.
Watch for these and stop when you see them:
tdd skill — the vertical-slice framingtest-driven-development — the enforcement disciplineWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub max4c/skills --plugin max11 skills in this plugin
/cookoffAuto-grill a plan, spec, or ticket by running Claude and Codex as interrogator/answerer pairs instead of interviewing the user. Two modes — relay (iterative back-and-forth between Claude and Codex) and parallel (two swapped streams merged into one spec). Produces a pre-chewed artifact where the user only reviews the result, not sits through the interview. Use this skill whenever the user says "cookoff", "pre-grill this", "have codex grill it", "dual grill", "grill this without me", "run grill-me with codex", "cross-examine this plan", or wants the ambiguity-resolution work done autonomously before they review. Also use when the user has a plan/spec/PRD that would normally go through max:grill-me but explicitly wants to skip being interviewed themselves. Supports `--to-tickets` to emit the grilled spec as Dahso Agent Tickets ready for `/go`, and `--to-tickets --go` to chain straight to `dahso:go` without a review pause./design-interfaceExplore multiple radically different interface designs for a feature in parallel before committing to one. Uses parallel sub-agents to generate distinct approaches so you can compare tradeoffs rather than anchoring on the first idea. For UI/UX interface work specifically — not API interface design. Use when the user says "design-interface", "let's explore some designs for X", "what are the options for this screen", or before building any non-trivial UI./grill-meInterview the user relentlessly about a plan, spec, or ticket until every branch of the decision tree is resolved. Produces a per-dimension ambiguity report (Goals / Acceptance / Boundaries / Alternatives / Assumptions) and an aggregate gate. Use this skill whenever the user is drafting a spec, proposing a design, debating an approach, or describing work to hand off — even if they don't say "grill me". Explicit triggers include "grill me", "stress-test this", "am I missing anything", "what are the risks", or any time a non-trivial plan is being finalized. Also invoked as a subroutine by max:write-prd Phase 5, max:tech-spec Phase 6, max:improve-codebase Phase 5, bugbook:flow Phase 2d, bugbook:prep Phase 3, and bugbook:ticket Phase 2d./grill-with-docsA grilling session that stress-tests a plan against the project's documented domain model — sharpens fuzzy terminology, challenges it against the existing glossary, cross-references it with the code, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallize. The domain-aware variant of grill-me — use this instead when the repo has (or should have) a CONTEXT.md glossary or docs/adr/ decision records. Triggers include "grill with docs", "stress-test this against our domain model", "does this match our language", "check this against our glossary", "grill this and update the docs", or any time a non-trivial plan needs to be reconciled with the project's documented decisions./handoffCompact the current conversation into a handoff document so a fresh agent can pick up the work without re-deriving context. Writes a self-contained brief to the OS temp directory — what's been done, what's left, key decisions, gotchas, and which skills to invoke next. Use when the user says "handoff", "write a handoff", "hand this off", "compact this for a new session", "summarize this for another agent", "I'm running low on context", or is about to start a fresh session on the same work. Takes an optional argument describing what the next session will focus on./improve-codebaseArchitectural review and improvement proposals. Reads the codebase for structural opportunities — shallow modules that should be deepened, leaky abstractions, misplaced complexity — and proposes specific changes with tradeoffs. Uses a four-persona pass (Contrarian, Simplifier, Architect, Hacker) to stress-test proposals before presenting. Not a refactoring bot; it produces proposals, not commits. Use when the user says "improve-codebase", "architectural review", "where is this codebase weak", or before starting a big refactor.Other plugins' skills for the same job