ai-prompting
Effective communication strategies for AI-assisted development. Learn context-first prompting, phased interactions, iterative refinement, and validation…
Transform approved requirements into comprehensive technical designs. Define system architecture, component interactions, data models, and interfaces to create a blueprint for implementation.
$ npx -y skills add jasonkneen/kiro --skill design-documentation --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/design-documentationContext preview
The summary Claude sees to decide when to auto-load this skill.
Transform approved requirements into comprehensive technical designs. Define system architecture, component interactions, data models, and interfaces to create a blueprint for implementation.
name: design-documentation description: Transform approved requirements into comprehensive technical designs. Define system architecture, component interactions, data models, and interfaces to create a blueprint for implementation. license: MIT compatibility: Claude Code, Cursor, VS Code, Windsurf metadata: category: methodology complexity: intermediate author: Kiro Team version: "1.0.0"
Create technical blueprints that bridge requirements and implementation. This skill teaches how to document architecture decisions, component design, and system interactions.
Use design documentation when:
# Design Document: [Feature Name] ## Overview [High-level summary of the feature and approach] ## Architecture [System architecture and component overview] ## Components and Interfaces [Detailed component descriptions and interactions] ## Data Models [Data structures and relationships] ## Error Handling [Error scenarios and response strategies] ## Testing Strategy [Testing approach and quality assurance]
Before designing, ensure you understand:
**Analysis Questions:**
Identify areas needing research:
**Research Documentation:**
## Research Findings ### [Topic] **Sources:** [Links/references] **Key Insights:** - [Finding 1] - [Finding 2] **Impact on Design:** [How this affects our approach]
Document the high-level structure:
## Architecture ### System Overview [How the overall system works] ### Component Architecture [Major components and their responsibilities] ### Data Flow [How information moves through the system] ### Technology Decisions [Key technology choices and rationale]
**Architecture Diagram (Mermaid):**
graph TD
A[Client] --> B[API Gateway]
B --> C[Auth Service]
B --> D[Feature Service]
D --> E[Database]
D --> F[Cache]For each major component:
## Components and Interfaces
### [Component Name]
**Purpose:** [What this component does]
**Responsibilities:**
- [Responsibility 1]
- [Responsibility 2]
**Interfaces:**
- Input: [What it receives]
- Output: [What it produces]
- Dependencies: [What it requires]
**API Definition:**
```typescript
interface ComponentName {
method(input: InputType): Promise<OutputType>;
}
### Step 5: Define Data Models
Document all data structures:
```markdown
## Data Models
### [Entity Name]
**Purpose:** [What this entity represents]
**Properties:**
| Field | Type | Required | Description |
|-------|------|----------|-------------|
| id | string | Yes | Unique identifier |
| name | string | Yes | Display name |
| createdAt | Date | Yes | Creation timestamp |
**Validation Rules:**
- [Rule 1]
- [Rule 2]
**Relationships:**
- [Relationship to other entities]
**Example:**
```json
{
"id": "abc123",
"name": "Example",
"createdAt": "2024-01-15T10:30:00Z"
}### Step 6: Plan Error Handling Document error scenarios: ```markdown ## Error Handling ### Error Categories 1. **Validation Errors:** Invalid user input 2. **Authentication Errors:** Unauthorized access 3. **External Service Errors:** Third-party failures 4. **System Errors:** Internal failures ### Error Response Strategy | Error Type | HTTP Code | User Message | System Action | |------------|-----------|--------------|---------------| | Validation | 400 | Specific field error | Log, return details | | Auth | 401 | "Please log in" | Redirect to login | | Not Found | 404 | "Resource not found" | Log, return error | | Server | 500 | "Something went wrong" | Log, alert, retry | ### Recovery Mechanisms - [Retry strategies] - [Fallback behaviors] - [Circuit breaker patterns]
## Testing Strategy ### Unit Testing - **Coverage Target:** 80%+ - **Focus Areas:** [Critical business logic] - **Mocking Strategy:** [What to mock] ### Integration Testing - **Scope:** [Component interactions to test] - **Environment:** [Test environment setup] - **Data Strategy:** [Test data approach] ### End-to-End Testing - **Critical Paths:** [User journeys to test] - **Tools:** [Testing tools] ### Performance Testing - **Load Targets:** [Expected load] - **Benchmarks:** [Performance requirements]
Document key decisions using this template:
### Decision: [Brief Title] **Context:** [Situation requiring a decision] **Options Considered:** **Option 1: [Name]** - Pros: [Benefits] - Cons: [Drawbacks] - Effort: [Low/Medium/High] **Option 2: [Name]** - Pros: [Benefits] - Cons: [Drawbacks] - Effort: [Low/Medium/High] **Decision:** [Chosen option] **Rationale:** [Why this option was selected] **Implications:** [What this means for implementation]
### Decision: API Architecture **Options:** 1. **REST API** - Standard HTTP methods, well-understood 2. **GraphQL** - Flexible queries, single endpoint
A comprehensive guide to systematic feature development using the three-phase spec process: Requirements → Design → Tasks.
Repo: jasonkneen/kiro
Effective communication strategies for AI-assisted development. Learn context-first prompting, phased interactions, iterative refinement, and validation…
Create comprehensive steering documents for development projects. Generates project-specific standards, git workflows, and technology guidelines in…
Comprehensive testing and validation strategies for spec-driven development. Learn phase-specific validation techniques, quality gates, and testing approaches…
Transform vague feature ideas into clear, testable requirements using EARS format. Capture user stories, define acceptance criteria, identify edge cases, and…
Systematic three-phase approach to feature development using Requirements, Design, and Tasks phases. Transforms vague feature ideas into well-defined,…
Convert technical designs into actionable, sequenced implementation tasks. Create clear coding tasks that enable incremental progress, respect dependencies,…