ai-prompting
Effective communication strategies for AI-assisted development. Learn context-first prompting, phased interactions, iterative…
Transform approved requirements into comprehensive technical designs. Define system architecture, component interactions, data models, and interfaces to create a blueprint for implementation.
Claude Code
$ npx -y skills add jasonkneen/kiro --skill design-documentation --agent claude-code
Codex
$ npx skills add jasonkneen/kiro --skill design-documentation -a codex -y
Cursor
$ npx skills add jasonkneen/kiro --skill design-documentation -a cursor -y
Gemini CLI
$ npx skills add jasonkneen/kiro --skill design-documentation -a gemini-cli -y
GitHub Copilot
$ npx skills add jasonkneen/kiro --skill design-documentation -a github-copilot -y
OpenCode
$ npx skills add jasonkneen/kiro --skill design-documentation -a opencode -y
Windsurf
$ npx skills add jasonkneen/kiro --skill design-documentation -a windsurf -y
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.
Effective communication strategies for AI-assisted development. Learn context-first prompting, phased interactions, iterative…
Create comprehensive steering documents for development projects. Generates project-specific standards, git workflows, and…
Comprehensive testing and validation strategies for spec-driven development. Learn phase-specific validation techniques, quality…
Transform vague feature ideas into clear, testable requirements using EARS format. Capture user stories, define acceptance…
Systematic three-phase approach to feature development using Requirements, Design, and Tasks phases. Transforms vague feature…
Convert technical designs into actionable, sequenced implementation tasks. Create clear coding tasks that enable incremental…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.