Automated summary
Generates detailed TDD task breakdowns from approved designs, structuring implementable work items with a test-first approach and test pyramid ratios.
Strengths
- Follows Red-Green-Refactor cycle per task
- Applies test pyramid (70% unit, 20% integration, 10% E2E) for balanced coverage and speed
- Produces clear hierarchical structure with dependencies and acceptance criteria
- Includes task sizing guidelines for accurate estimation
Limitations
- Requires a previously generated and approved design (/sdd-design)
- Assumes user familiarity with the SDD workflow and associated MCP tools
- Does not cover edge-case handling not defined in the design
Use this skill after approving a feature's design to translate it into an actionable TDD task plan.
Do not use if the design is not finalized or if the feature is trivial and does not need formal breakdown.
Security analysis
SafeThe skill defines a documentation workflow using internal MCP tools to read and write spec files. It does not instruct any destructive actions, external network calls, or execution of untrusted code. All operations are confined to the project's .spec directory and the tools are assumed safe.
No concerns found
How this analysis is madeExamples
/sdd-tasks login/sdd-tasks payment-processingname: sdd-tasks description: Generate TDD task breakdown for SDD workflow. Use when breaking down design into implementable tasks with test-first approach. Invoked via /sdd-tasks <feature-name>.
SDD Task Breakdown Generation
Generate comprehensive TDD-based task breakdowns that translate approved designs into implementable work items.
Prerequisites
Before generating tasks:
- Design must be generated using
/sdd-design - Design phase should be approved (use
sdd-approve designMCP tool) - Review the design document in
.spec/specs/{feature}/design.md
Workflow
Step 1: Verify Prerequisites
Use sdd-status MCP tool to verify:
design.generated: truedesign.approved: true(recommended before tasks)
Step 2: Review Design
- Read
.spec/specs/{feature}/design.md - Identify all components to implement
- Note interfaces and data models
- Understand dependencies between components
Step 3: Apply TDD Workflow
For each task, follow the Red-Green-Refactor cycle:
┌─────────────────────────────────────────────────────────────┐
│ TDD CYCLE │
├─────────────────────────────────────────────────────────────┤
│ │
│ 1. RED ──────> Write failing test first │
│ (Test describes expected behavior) │
│ │
│ 2. GREEN ──────> Write minimal code to pass │
│ (Just enough to make test green) │
│ │
│ 3. REFACTOR ────> Clean up, maintain tests passing │
│ (Improve design without breaking) │
│ │
│ ───────────────────────────────────────────────────── │
│ REPEAT │
└─────────────────────────────────────────────────────────────┘
Step 4: Apply Test Pyramid
Structure tests following the 70/20/10 ratio:
╱╲
╱ ╲
╱ E2E╲ 10% - Critical user journeys
╱──────╲
╱ ╲
╱Integration╲ 20% - Component interactions
╱────────────╲
╱ ╲
╱ Unit Tests ╲ 70% - Individual functions
╱──────────────────╲
| Level | Coverage | Scope | Speed | |-------|----------|-------|-------| | Unit | 70% | Single function/class | Fast (ms) | | Integration | 20% | Component interactions | Medium (s) | | E2E | 10% | Full user journeys | Slow (min) |
Step 5: Generate Task Breakdown
Structure tasks hierarchically:
# Tasks: {Feature Name}
## Overview
{Summary of implementation approach}
## Task Groups
### 1. {Component/Layer Name}
#### 1.1 {Task Name}
**Type:** Unit | Integration | E2E
**Estimated Effort:** S | M | L | XL
**Dependencies:** {Task IDs}
**TDD Steps:**
1. RED: Write test for {specific behavior}
```typescript
describe('{Component}', () => {
it('should {expected behavior}', () => {
// Arrange
// Act
// Assert
});
});
- GREEN: Implement {minimal solution}
- REFACTOR: {Specific improvements}
Acceptance Criteria:
- [ ] Test passes
- [ ] Code coverage >= 80%
- [ ] No lint errors
1.2 {Next Task}
...
2. {Next Component}
...
Implementation Order
[1.1] ──> [1.2] ──> [2.1]
│
└──> [1.3] ──> [2.2]
Definition of Done
- [ ] All tests pass
- [ ] Code coverage >= 80%
- [ ] No lint/type errors
- [ ] Code reviewed
- [ ] Documentation updated
### Step 6: Task Sizing Guidelines
| Size | Description | Test Count | Time |
|------|-------------|------------|------|
| **S** | Single function, 1-2 tests | 1-2 | < 1 hour |
| **M** | Multiple functions, 3-5 tests | 3-5 | 1-4 hours |
| **L** | Component with integration | 5-10 | 4-8 hours |
| **XL** | Complex component, many edge cases | 10+ | 1-2 days |
### Step 7: Test-First Task Template
For each implementation task:
```markdown
#### Task {X.Y}: {Task Name}
**Component:** {ComponentName}
**Type:** Unit Test → Implementation
**Test Scenarios:**
1. Happy path: {Expected behavior when inputs are valid}
2. Edge case: {Boundary conditions}
3. Error case: {Invalid inputs, failures}
**Test Code (RED):**
```typescript
import { {Component} } from './{component}';
describe('{Component}', () => {
describe('{method}', () => {
it('should {happy path behavior}', async () => {
// Arrange
const input = { /* valid input */ };
// Act
const result = await component.method(input);
// Assert
expect(result).toEqual({ /* expected */ });
});
it('should throw when {error condition}', async () => {
// Arrange
const invalidInput = { /* invalid */ };
// Act & Assert
await expect(component.method(invalidInput))
.rejects.toThrow('{ErrorType}');
});
});
});
Implementation (GREEN): {Brief description of minimal implementation}
Refactor:
- Extract {helper function} if needed
- Apply {specific pattern}
### Step 8: Save and Execute
1. Save tasks to `.spec/specs/{feature}/tasks.md`
2. Use `sdd-approve tasks` MCP tool to mark phase complete
3. Use `sdd-spec-impl` MCP tool to execute tasks with TDD
## MCP Tool Integration
| Tool | When to Use |
|------|-------------|
| `sdd-status` | Verify design phase complete |
| `sdd-approve` | Mark tasks phase as approved |
| `sdd-spec-impl` | Execute tasks using TDD methodology |
| `sdd-quality-check` | Validate code quality during implementation |
## Quality Checklist
- [ ] All design components have corresponding tasks
- [ ] Tasks follow TDD (test first)
- [ ] Test pyramid ratio maintained (70/20/10)
- [ ] Dependencies between tasks are clear
- [ ] Each task has specific acceptance criteria
- [ ] Tasks are sized appropriately (avoid XL when possible)
- [ ] Implementation order respects dependencies
- [ ] Definition of Done is clear
## Steering Document References
Apply these steering documents during task breakdown:
| Document | Purpose | Key Application |
|----------|---------|-----------------|
| `.spec/steering/tdd-guideline.md` | Test-Driven Development | Structure all tasks using Red-Green-Refactor cycle, follow test pyramid (70/20/10) |
**Key TDD Principles for Tasks:**
1. **RED**: Every task starts with writing a failing test
2. **GREEN**: Implement minimal code to pass the test
3. **REFACTOR**: Clean up while keeping tests green
4. **Test Pyramid**: 70% unit, 20% integration, 10% E2E
## Common Anti-Patterns to Avoid
| Anti-Pattern | Problem | Solution |
|--------------|---------|----------|
| **Test After** | Missing edge cases | Always write test first |
| **Ice Cream Cone** | Too many E2E tests | Follow pyramid (70/20/10) |
| **Big Tasks** | Hard to track progress | Break into S/M sizes |
| **No Dependencies** | Blocked work | Map dependencies explicitly |
| **Vague Criteria** | Unclear completion | Specific, measurable criteria |
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/sdd-tdd-task-breakdown-generation-mm5t89mn/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/sdd-tdd-task-breakdown-generation-mm5t89mn' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/sdd-tdd-task-breakdown-generation-mm5t89mn/download' --output '.skill-downloads/sdd-tdd-task-breakdown-generation-mm5t89mn/SKILL.md.part' && mv '.skill-downloads/sdd-tdd-task-breakdown-generation-mm5t89mn/SKILL.md.part' '.skill-downloads/sdd-tdd-task-breakdown-generation-mm5t89mn/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Original excerpt: Prerequisites
Before generating tasks:
- Design must be generated using
/sdd-design - Design phase should be approved (use
sdd-approve designMCP tool) - Review the design document in
.spec/specs/{feature}/design.md
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/sdd-tdd-task-breakdown-generation-mm5t89mn/SKILL.md' && test -s '.skill-downloads/sdd-tdd-task-breakdown-generation-mm5t89mn/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/sdd-tasks' && cp -R '.skill-downloads/sdd-tdd-task-breakdown-generation-mm5t89mn' '.claude/skills/sdd-tasks'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/sdd-tdd-task-breakdown-generation-mm5t89mn'openskills read 'sdd-tdd-task-breakdown-generation-mm5t89mn'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/sdd-tdd-task-breakdown-generation-mm5t89mn/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.