patterns-vertical-tdd
БесплатноБез исполняемых скриптовНе проверенThis skill MUST be invoked when the user says "create task mapping", "structure implementation", "define cycles", "vertical slice", "TDD", "test first"…
Об этом скилле
Vertical Slicing with TDD
Violating the letter of the rules is violating the spirit of the rules.
Overview
Transform requirements into implementation tasks organized as vertical slices with strict TDD discipline. Each slice (called a "cycle") delivers observable, testable value and follows test-first principles.
This is a discipline-enforcing skill. The test-first structure exists because tests written after code verify implementation, not requirements. Skipping or reordering undermines the entire purpose.
When to Use
- Transforming user stories into implementation tasks
- Creating task-mapping.md from a specification
- Structuring tasks.md with proper TDD ordering
- When implementation approach needs vertical slice organization
- Breaking down large features into testable increments
- When the task architect agent generates implementation artifacts
When NOT to Use
- Bug fixes - Single-task fixes don't need cycle structure
- Documentation-only tasks - No TDD needed for docs
- Spike/research tasks - Exploration doesn't follow TDD
- Refactoring without behavior change - Existing tests suffice
- When tests already exist - Don't duplicate test-first for covered code
Core Principles
1. Vertical Over Horizontal
Wrong (horizontal slicing):
Phase 1: All models
Phase 2: All services
Phase 3: All endpoints
Phase 4: All tests
Right (vertical slicing):
Cycle 1: User creation (model + service + endpoint + test)
Cycle 2: User authentication (model + service + endpoint + test)
Cycle 3: User profile management (model + service + endpoint + test)
2. Test-First at Task Level
Every cycle structures tasks so tests come before implementation:
Cycle N: [Feature]
├── Task N.1: Write failing test
├── Task N.2: Implement to pass
├── Task N.3: Refactor and verify
└── Task N.4: Demo and validate
3. Foundation + Parallel
Foundation Cycles (sequential)
├── C0: Platform infrastructure (compute, CI/CD, monitoring)
├── C1: Core data model + basic CRUD
├── C2: Authentication framework
└── C3: API infrastructure
Feature Cycles (parallel-eligible)
├── C4: [P] Search functionality
├── C5: [P] Filtering
├── C6: [P] Export feature
└── C7: Notifications (depends on C4)
4. Layered Testability
Each cycle must be testable at multiple levels:
- Automated tests: Unit, integration, and/or E2E tests
- Demonstrable behavior: Observable by stakeholders
- Contract verification: Meets acceptance criteria from spec
Identifying Vertical Slices
See SLICE-IDENTIFICATION.md for detailed heuristics on identifying good vertical slices from requirements.
Quick Heuristics
A good vertical slice:
- Delivers user value: Something a user could observe or use
- Touches all layers: Model, service, API, UI (as applicable)
- Is independently testable: Can verify it works without other slices
- Is sized appropriately: Completable in 1-3 implementation sessions
Slice Boundaries
| Boundary Signal | Action |
|---|---|
| Distinct user action | New cycle |
| Different acceptance scenario | May be new cycle or same cycle |
| Shared infrastructure need | Foundation cycle |
| Optional enhancement | Feature cycle (can parallelize) |
Cycle Structure
See CYCLE-STRUCTURE.md for detailed cycle formatting and examples.
Standard Cycle Format
### Cycle N: [Vertical slice description]
> Stories: US-X, US-Y
> Dependencies: C1, C2 (or "None")
> Type: Foundation | Feature [P]
- [ ] **TN.1**: Write failing E2E test for [behavior] in tests/e2e/test_[name].py
- [ ] **TN.2**: Implement [component] to pass test in src/[path]/[file].py
- [ ] **TN.3**: Refactor and verify tests pass
- [ ] **TN.4**: Demo [behavior], verify acceptance criteria
**Checkpoint**: [What should be observable/testable after this cycle]
Task Numbering
- Cycle 1 tasks: T1.1, T1.2, T1.3, T1.4
- Cycle 2 tasks: T2.1, T2.2, T2.3, T2.4
- etc.
Markers
| Marker | Meaning |
|---|---|
[P] |
Parallel-eligible (no dependencies blocking) |
[US#] |
Maps to user story number |
[EXTEND] |
Extends existing file (brownfield) |
[MODIFY] |
Modifies existing code (brownfield) |
Foundation vs Feature Cycles
Foundation Cycles
Purpose: Establish infrastructure that ALL features depend on.
Characteristics:
- Must complete before any feature cycle
- Sequential (C1 before C2 before C3)
- Typically includes: platform infrastructure (IP-XXX items from constraints-and-decisions.md), data models, auth, API framework, error handling
Identification: Ask "Could ANY user story work in production without this?" If no, it's foundation.
Feature Cycles
Purpose: Deliver user value incrementally.
Characteristics:
- Can start once foundation is complete
- Often parallel-eligible
- Map directly to user stories
Установить patterns-vertical-tdd в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл patterns-vertical-tdd?
This skill MUST be invoked when the user says "create task mapping", "structure implementation", "define cycles", "vertical slice", "TDD", "test first", "cycle structure", or "testable increment". SHOULD also invoke when user mentions "red green refactor" or "implementation tasks".
Как установить скилл patterns-vertical-tdd?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл patterns-vertical-tdd запускает скрипты?
Нет, скилл состоит только из инструкций (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