/toolkit:test-driven-developmentfrom Toolkit
(TDD) Use when implementing any feature or bugfix. Apply the Logic Gate to identify what needs tests, then use the Iron Rule for strict test-first development on logic.
Ships in Toolkit. 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.
Before writing any code, pass it through two gates:
flowchart TD
A[New code to write] --> B[Decompose into pieces]
B --> C{{"Logic Gate: Does this piece contain logic?"}}
C -->|"Conditionals, transformations, validation, state changes, error handling"| D["Iron Rule: TDD"]
C -->|"Dataclasses, config, thin wrappers, type aliases, formatting"| E[Write directly]
D --> F["RED: Write failing test"]
F --> G["GREEN: Minimal implementation"]
G --> H["REFACTOR: Clean up"]
H --> I{More pieces?}
E --> I
I -->|Yes| C
I -->|No| J[Done]
Decompose the work into its constituent pieces. For each piece, ask: does this contain logic?
Passes the Logic Gate (requires TDD):
Does NOT pass the Logic Gate (write directly):
__init__.py, module-level setup)When in doubt: If you can't point to a conditional, transformation, or state change, it probably doesn't pass the Logic Gate.
Before writing code, briefly identify what passes and what doesn't:
For code that passes the Logic Gate: never write logic without a preceding failing test.
If logic is written before its test:
Write a single minimal test demonstrating intended behavior:
Run tests and confirm:
Write the simplest possible code satisfying the test:
Confirm:
Improve code quality while maintaining green status:
Minimal: Single responsibility per test Clear: Descriptive name revealing behavior Realistic: Demonstrate intended API usage Focused: One assertion per test (generally)
"I'll test afterward"
"Manual testing covered edge cases"
"Tests-after achieve identical goals"
Before considering work complete:
Bug found? Write failing test reproducing it. Follow TDD cycle. Test proves fix and prevents regression.
Never fix bugs without a test.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub miguelaguiardev/skills --plugin toolkit4 skills in this plugin
/grill-meInterview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me"./how-to-chromeUse the user's REAL Google Chrome (their actual profile, cookies, and logged-in sessions) from the terminal via the Chrome DevTools Protocol (CDP), no extension and no npm dependencies. Navigate, capture (incl. full page and per breakpoint), read console/DOM, fill forms and do QA; export to PDF; annotate page elements to paste into an AI; and group tabs into a dedicated Chrome tab group. Use this instead of generic browser-automation MCP tools (e.g. Playwright/Puppeteer) whenever the request is about opening a website, capturing it, visual QA, or the user's own browser/session: 'open this in my browser', 'show me this page', 'what does this site look like', 'screenshot what I'm looking at', verifying a design, debugging with the console, exporting screenshots/PDF, annotating changes, or managing tabs. Do not use Playwright for those tasks. Only use a generic browser-automation MCP when the task explicitly requires a disposable, isolated browser (e.g. an automated test suite) rather than the user's own./i-have-adhdShape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress tangents, give specific time estimates, make wins visible. Invoke with /i-have-adhd; stays on until "stop adhd mode".