design-driven-dev
БесплатноБез исполняемых скриптовНе проверенGuide for design-driven development. Consult for ALL code changes. New features use full workflow (HLD → LLD → EARS → Plan). Bug fixes skip doc creation but…
от zph★ 20 звёзд на GitHubОб этом скилле
Design-Driven Development
This skill guides a structured design-driven development workflow. The goal is to get alignment on what you're building before writing code, which dramatically reduces rework and misunderstandings.
Critical Rule: Stop and Iterate
STOP after completing each phase. Present the document to the user for review. Incorporate their numbered feedback. Only proceed to the next phase when explicitly approved.
This is the most important part of the workflow. Don't rush through design to get to code.
Workflow Overview
- High-Level Design (HLD) - Project vision and architecture
- Low-Level Design (LLD) - Component-specific technical design
- EARS Specifications - Requirements with semantic IDs
- Implementation Plan - Phases, checkboxes, Definition of Done
When to Use This Workflow
Consult this skill for ALL code changes.
Full workflow (create new docs) for:
- New features
- Major refactors
- Significant behavior changes
Coherence check only (skip doc creation) for:
- Bug fixes
- Quick changes (<30 minutes)
- Debugging sessions
Even when skipping doc creation, verify intent coherence: do existing specs, tests, and code align? If not, fix the docs before changing the code.
If unsure, use the full workflow. Over-designing is safer than under-designing.
Phase 1: High-Level Design
Check if a project HLD exists first: /docs/high-level-design.md
For new projects or major features, create an HLD covering:
- Problem statement and goals
- Target users and personas
- System architecture overview
- Key design decisions and trade-offs
- Non-goals (what's explicitly out of scope)
Stop and get user approval before proceeding.
Phase 2: Low-Level Design
Create component-specific LLDs in /docs/llds/ for each major component.
See lld-templates.md for structure guidance.
Key principles:
- Narrative format for complex constraint interactions
- Structured format for API contracts and interfaces
- Include data models, error handling, edge cases
- Reference the HLD for context
- LLDs are pure design documents — they describe how things work but do not track implementation status
Stop and get user approval before proceeding.
Phase 3: EARS Specifications
Generate requirements using EARS (Easy Approach to Requirements Syntax).
See ears-syntax.md for full syntax reference.
Key principles:
- Semantic spec IDs:
{FEATURE}-{TYPE}-{NNN}(e.g.,AUTH-UI-001,CART-API-003) - Create in
/docs/specs/(e.g.,user-authentication-specs.md) - Each requirement is testable and traceable
- Spec files carry status markers:
[x]implemented,[ ]active gap,[D]deferred - Delete specs that are no longer wanted — git preserves history
Stop and get user approval before proceeding.
Phase 4: Implementation Plan
Create execution plan in /docs/planning/ with date suffix.
See plan-templates.md for structure guidance.
Key elements:
- Phases with clear deliverables
- Checkboxes for tracking progress
- Spec ID references tying to EARS requirements
- Definition of Done with verification criteria
- Testing requirements with spec annotations
Stop and get user approval before proceeding.
Maintaining Intent Coherence
The Arrow of Intent
There's a chain of documents that translates intent from vision to working code:
HLD → LLDs → EARS → Tests → Code
Each level translates the previous into more specific terms:
- HLD says what and why
- LLDs say how at a component level
- EARS says exactly what must be true in testable terms
- Tests verify those truths
- Code makes them real
These aren't independent documents—they're a single expression of intent at different levels of specificity.
The Problem: Intent Drift
Intent drifts over time. User clarifies something and the LLD gets updated but not the EARS. A test gets fixed but the spec still says the old thing. The HLD evolves but nobody touches downstream docs.
Eventually the levels disagree. The code works, but doesn't match the specs. The specs pass review, but don't match the design. The chain breaks.
The Principle: Coherence Over History
The arrow of intent must stay coherent. When one level changes, downstream levels must be reviewed and updated to match.
Mutation, not accumulation. Update docs in place. Delete what's wrong. The documentation should always reflect current intent—not the history of how intent evolved.
The Practice: Cascade Changes Downward
When requirements or understanding change:
- Identify the entry point - Where in the chain does this change originate?
- Update at that level - Mutate the doc directly
- Cascade downward - Review and update each subsequent level:
- HLD change → review LLDs → review EARS → review tests → review code
- L
Установить design-driven-dev в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл design-driven-dev?
Guide for design-driven development. Consult for ALL code changes. New features use full workflow (HLD → LLD → EARS → Plan). Bug fixes skip doc creation but still verify intent coherence—check that existing specs, tests, and code align before changing anything.
Как установить скилл design-driven-dev?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл design-driven-dev запускает скрипты?
Нет, скилл состоит только из инструкций (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