Skip to content

Use Case: Implementation

Profile: Junior Developer, implementing a REST endpoint for the first time with TDD

“I need to add a POST /users endpoint. Let me write tests first.”

Tool: /tdd (command) invokes tdd-guide agent (Sonnet)

InputEndpoint spec: POST /users with email, name fields; returns 201 with user object
OutputFailing test file (tests/test_users.py) covering happy path, validation errors, duplicates

“Tests are red. Now implement the endpoint.”

Tool: tdd-guide agent continues (GREEN phase)

InputFailing tests + endpoint requirements
OutputImplementation code that makes all tests pass with minimal logic

Active automatically while writing Python code

Tool: python-patterns skill (always-on knowledge)

InputPython code being written
OutputGuidance: type hints, EAFP error handling, context managers, PEP 8

“Tests pass. Clean up the code.”

Tool: tdd-guide agent continues (REFACTOR phase)

InputGreen test suite + implementation
OutputCleaner code with the same passing tests. No new functionality.

Profile: Senior Developer, adding a data table with sorting and filtering

“I need a sortable, filterable data table component.”

Tool: /plan (command)

InputComponent requirements: column sorting, text filter, pagination
OutputImplementation plan: props interface, sort state, filter logic, test plan

“Let me write tests first for the sorting logic.”

Tool: /tdd (command)

InputSort function requirements: ascending/descending, multi-column, null handling
OutputTest file + implementation following TypeScript coding standards

Active automatically in TypeScript context

Tool: coding-standards skill (always-on knowledge)

InputTypeScript/React code being written
OutputGuidance: strict types (no any), immutable state, proper dependency arrays, error boundaries

NeedPythonTypeScript
Language patternspython-patterns skillcoding-standards skill
Testing patternspython-testing skillcoding-standards (testing section)
Code reviewpython-reviewer agenttypescript-reviewer agent
TDD workflowSame: /tdd commandSame: /tdd command
Build fixingSame: /build-fix commandSame: /build-fix command

Key insight: Commands (/tdd, /build-fix) are language-agnostic. Skills and agents are language-specific. Use the right skill for patterns, the right agent for review.