Interactive feature development workflow from idea to implementation. Creates requirements (EARS format), design documents, and task lists. Triggers: "kiro", ".kiro/specs/", "feature spec", "需求文档", "设计文档", "实现计划".
An interactive workflow that transforms ideas into comprehensive feature specifications, design documents, and actionable implementation plans.
When you mention creating a feature spec, design document, or implementation plan, this skill helps guide you through:
Storage: Creates files in .kiro/specs/{feature-name}/ directory (kebab-case naming)
Kiro is your coding partner - knowledgeable but not instructive, supportive not authoritative.
Tone:
Code Philosophy:
Language: Reply in user's preferred language when possible
Transform a rough idea into structured requirements with user stories and EARS acceptance criteria.
Generate Initial Requirements
.kiro/specs/{feature-name}/requirements.mdRequirements Structure
# Requirements Document
## Introduction
[Feature summary - what problem does this solve?]
## Requirements
### Requirement 1
**User Story:** As a [role], I want [feature], so that [benefit]
#### Acceptance Criteria
1. WHEN [event] THEN [system] SHALL [response]
2. IF [precondition] THEN [system] SHALL [response]
3. WHEN [event] AND [condition] THEN [system] SHALL [response]
### Requirement 2
**User Story:** As a [role], I want [feature], so that [benefit]
#### Acceptance Criteria
1. WHEN [event] THEN [system] SHALL [response]
Easy Approach to Requirements Syntax - structured acceptance criteria:
WHEN [event] THEN [system] SHALL [response] - Event-drivenIF [condition] THEN [system] SHALL [response] - ConditionalWHILE [state] [system] SHALL [response] - State-drivenWHERE [feature] [system] SHALL [response] - Ubiquitous[system] SHALL [response] - UnconditionalIf clarification stalls:
Create comprehensive design document based on approved requirements, conducting research during the design process.
.kiro/specs/{feature-name}/requirements.mdIdentify Research Needs
Conduct Research
Create .kiro/specs/{feature-name}/design.md with:
Overview
Architecture
Components and Interfaces
Data Models
Error Handling
Testing Strategy
# Feature Design
## Overview
[High-level approach and key decisions]
## Architecture
```mermaid
graph TD
A[Component A] --> B[Component B]
B --> C[Component C]
interface UserModel {
id: string;
email: string;
role: UserRole;
}
[Continue with other sections...]
If design becomes too complex:
Convert approved design into actionable, test-driven implementation tasks.
Core Principle: Convert design into prompts for code-generation LLM to implement each step in test-driven manner.
Focus:
Exclude:
Create .kiro/specs/{feature-name}/tasks.md with:
# Implementation Plan
- [ ] 1. Set up project structure and core interfaces
- Create directory structure for models, services, repositories
- Define interfaces that establish system boundaries
- _Requirements: 1.1_
- [ ] 2. Implement data models and validation
- [ ] 2.1 Create core data model interfaces and types
- Write TypeScript interfaces for all data models
- Implement validation functions for data integrity
- _Requirements: 2.1, 3.3, 1.2_
- [ ] 2.2 Implement User model with validation
- Write User class with validation methods
- Create unit tests for User model validation
- _Requirements: 1.2_
- [ ] 3. Create storage mechanism
- [ ] 3.1 Implement database connection utilities
- Write connection management code
- Create error handling utilities
- _Requirements: 2.1, 3.3_
[Additional tasks...]
Structure:
Each Task Must Include:
Quality Standards:
Important: This workflow is ONLY for creating planning artifacts.
Implement specific tasks from the feature specification with precision and focus.
ALWAYS read spec files first:
.kiro/specs/{feature-name}/requirements.md.kiro/specs/{feature-name}/design.md.kiro/specs/{feature-name}/tasks.mdNever execute tasks without understanding full context.
Task Selection
Implementation
Completion Protocol
For implementation requests:
For information requests:
stateDiagram-v2
[*] --> Requirements
Requirements --> ReviewReq : Complete
ReviewReq --> Requirements : Changes
ReviewReq --> Design : Approved
Design --> ReviewDesign : Complete
ReviewDesign --> Design : Changes
ReviewDesign --> Tasks : Approved
Tasks --> ReviewTasks : Complete
ReviewTasks --> Tasks : Changes
ReviewTasks --> [*] : Approved
Execute : Execute Single Task
[*] --> Execute : Task Request
Execute --> [*] : Complete
Determine current state by checking:
# Check for .kiro directory
if [ -d ".kiro/specs" ]; then
# List features
ls .kiro/specs/
# For specific feature, check phase
FEATURE="$1"
if [ -f ".kiro/specs/$FEATURE/requirements.md" ]; then
echo "Requirements exists"
fi
if [ -f ".kiro/specs/$FEATURE/design.md" ]; then
echo "Design exists"
fi
if [ -f ".kiro/specs/$FEATURE/tasks.md" ]; then
echo "Tasks exists - ready for execution"
fi
fi
Kiro provides a structured, iterative approach to feature development:
Each phase requires explicit user approval before proceeding, ensuring alignment and quality throughout the development process.
For additional context and reference: