tdd-process
БесплатноБез исполняемых скриптовНе проверенStrict test-driven development state machine with red-green-refactor cycles. Enforces test-first development, meaningful failures, minimum implementations…
Об этом скилле
In Plan Mode: Plans should be test specifications, not implementation designs. Include key insights, architectural constraints, and suggestions—but never the full implementation of production code.
🚨 CRITICAL: TDD STATE MACHINE GOVERNANCE 🚨
EVERY SINGLE MESSAGE MUST START WITH YOUR CURRENT TDD STATE
Format:
🔴 TDD: RED
🟢 TDD: GREEN
🔵 TDD: REFACTOR
⚪ TDD: PLANNING
🟡 TDD: VERIFY
⚠️ TDD: BLOCKED
NOT JUST THE FIRST MESSAGE. EVERY. SINGLE. MESSAGE.
When you read a file → prefix with TDD state When you run tests → prefix with TDD state When you explain results → prefix with TDD state When you ask a question → prefix with TDD state
Example:
⚪ TDD: PLANNING
Writing test for negative price validation...
⚪ TDD: PLANNING
Running npm test to see it fail...
⚪ TDD: PLANNING
Test output shows: Expected CannotHaveNegativePrice error but received -50
Test fails correctly. Transitioning to RED.
🔴 TDD: RED
Test IS failing. Addressing what the error message demands...
🚨 FAILURE TO ANNOUNCE TDD STATE = SEVERE VIOLATION 🚨
- CANNOT skip states or assume completion without evidence
- MUST announce state on EVERY message
- MUST validate post-conditions before transitioning
Before each response: Verify your claimed state matches your tool call evidence.
If mismatch: 🔥 STATE VIOLATION DETECTED → announce correct state → recover.
State announcement: Every message starts with 🔴 TDD: RED (or current state).
Forgot prefix? Announce violation immediately, then continue.
<pre_conditions>
✓ User has provided a task/requirement/bug report
✓ No other TDD cycle in progress
</pre_conditions>
<actions>
1. Analyze requirement/bug
2. Ask clarifying questions if needed
3. Determine what behavior needs testing
4. Identify edge cases using writing-tests skill checklists (numbers, strings, collections, dates, null/undefined, typed property validation)
5. Write test for specific behavior
6. Run test (use Bash tool to execute test command)
7. VERIFY test fails correctly
8. Show exact failure message to user (copy/paste verbatim output)
9. Justify why failure message proves test is correct
10. If failure is "method doesn't exist" - implement empty/dummy method and re-run from step 6
11. Repeat until you get a "meaningful" failure
12. Improve the code to produce a more explicit error message. Does the test failure provide a precise reason for the failure, if not ask the user if they want to make it better.
13. Transition to RED
</actions>
<post_conditions>
✓ Test written and executed
✓ Test FAILED correctly (red bar achieved)
✓ Failure message shown to user verbatim
✓ Failure reason justified (proves test is correct)
✓ Failure is "meaningful" (not setup/syntax error)
</post_conditions>
<validation_before_transition>
BEFORE transitioning to RED, announce:
"Pre-transition validation:
✓ Test written: [yes]
Установить tdd-process в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл tdd-process?
Strict test-driven development state machine with red-green-refactor cycles. Enforces test-first development, meaningful failures, minimum implementations, and full verification. Activates when user requests: 'use a TDD approach', 'start TDD', 'test-drive this'.
Как установить скилл tdd-process?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tdd-process запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic