tdd-planning
БесплатноБез исполняемых скриптовНе проверенTDD-focused implementation planning. Creates plans with strict Red-Green-Commit/Rollback cycles for each step.
от desplega-ai★ 38 звёзд на GitHubОб этом скилле
TDD Planning
You are creating implementation plans that follow a strict Test-Driven Development approach. Every implementation step follows the TDD cycle: RED → GREEN → COMMIT/ROLLBACK.
Core TDD Principles
This skill enforces a disciplined TDD workflow:
- RED: Write a failing test first (test must fail for the right reason)
- GREEN: Write minimal code to make the test pass (nothing more)
- COMMIT/ROLLBACK: If green, commit. If stuck, rollback to last green state.
No implementation code is written without a failing test first. This is non-negotiable.
Working Agreement
These instructions establish a working agreement between you and the user. The key principles are:
AskUserQuestion is your primary communication tool - Whenever you need to ask the user anything (clarifications, design decisions, preferences, approvals), use the AskUserQuestion tool. Don't output questions as plain text - always use the structured tool so the user can respond efficiently.
Establish preferences upfront - Ask about user preferences at the start of the workflow, not at the end when they may want to move on.
Autonomy mode guides interaction level - The user's chosen autonomy level determines how often you check in, but AskUserQuestion remains the mechanism for all questions.
User Preferences
Before starting planning (unless autonomy is Autopilot), establish these preferences:
Commit Granularity - Use AskUserQuestion with:
| Question | Options |
|---|---|
| "How granular should commits be?" | 1. Commit after each GREEN (Recommended for strict TDD), 2. Commit after each feature/phase completes, 3. I'll handle commits manually |
Rollback Strategy - Use AskUserQuestion with:
| Question | Options |
|---|---|
| "When a test can't be made green after reasonable effort, what's the rollback strategy?" | 1. git checkout . to last commit (Recommended), 2. git stash changes for later analysis, 3. Keep failing code, ask for guidance |
File Review Preference - Check if the file-review plugin is available (look for file-review:file-review in available commands).
If file-review plugin is installed, use AskUserQuestion with:
| Question | Options |
|---|---|
| "Would you like to use file-review for inline feedback on the plan when it's ready?" | 1. Yes, open file-review when plan is ready (Recommended), 2. No, just show me the plan |
Store these preferences and act on them during implementation.
When to Use
This skill activates when:
- User invokes a TDD-planning command
- Another skill references
**REQUIRED SUB-SKILL:** Use desplega:tdd-planning - User explicitly asks for TDD-based planning
- The feature being implemented is test-critical or safety-critical
Autonomy Mode
At the start of planning, adapt your interaction level based on the autonomy mode:
| Mode | Behavior |
|---|---|
| Autopilot | Research independently, create complete TDD plan, present for final review only |
| Critical (Default) | Get buy-in at major decision points, validate test strategy |
| Verbose | Check in at each step, confirm test approach before each cycle |
The autonomy mode is passed by the invoking command. If not specified, default to Critical.
Process Steps
Step 1: Context Gathering & Test Infrastructure Analysis
Read all mentioned files immediately and FULLY:
- Research documents, related plans, JSON/data files
- IMPORTANT: Use Read tool WITHOUT limit/offset parameters
- CRITICAL: Read files yourself before spawning sub-tasks
Analyze test infrastructure:
- What testing framework is used? (Jest, pytest, Go testing, etc.)
- Where do tests live? (co-located,
__tests__/,tests/, etc.) - What's the test command? (
npm test,make test,pytest, etc.) - Are there existing test patterns to follow?
Spawn initial research tasks:
- Use codebase-locator agent to find test files and test utilities
- Use codebase-analyzer agent to understand current test patterns
- Use codebase-pattern-finder agent to find similar test implementations
- Use context7 MCP for testing library insights
Present understanding and questions (if not Autopilot):
First, present your findings as text:
Based on the research of the codebase, I understand we need to [summary]. Test Infrastructure: - Framework: [testing framework] - Test location: [where tests live] - Test command: `[command]` - Existing patterns: [relevant patterns found]Then, if there are questions, use AskUserQuestion.
Step 2: Test Strategy Design
Identify testable units:
- What are the smallest testable pieces?
- What inputs/outputs can be verified?
- What edge cases matter?
Design test progression:
- Start with simplest case (happy path)
- Progress to edge cases
- End
Установить tdd-planning в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл tdd-planning?
TDD-focused implementation planning. Creates plans with strict Red-Green-Commit/Rollback cycles for each step.
Как установить скилл tdd-planning?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tdd-planning запускает скрипты?
Нет, скилл состоит только из инструкций (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