spec-modelisted
Install: claude install-skill sdwurg180507280211/my-skills
# Spec Mode - Structured Development
This skill creates structured specification documents following the `.kiro/specs/` format used in the project.
## When to Use
Trigger this skill when:
- User mentions "spec", "specification", "规范"
- Complex features spanning multiple files
- Architectural changes requiring design approval
- Requirements need clarification before coding
- User asks to "plan" or "design" before implementing
## Spec Directory Structure
Each spec is a directory under `.kiro/specs/<feature-name>/` containing:
```
.kiro/specs/<feature-name>/
├── requirements.md # 需求文档(用户故事 + 验收标准)
├── design.md # 设计文档(架构、技术选型、字段设计)
├── tasks.md # 任务清单(checkbox 格式)
└── *.md # 其他实现文档(可选)
```
## Three-Phase Workflow
### Phase 1: Requirements Gathering
**Goal**: Create `requirements.md`
1. Ask clarifying questions about the feature
2. Write user stories in format: "作为[角色],我希望[功能],以便[价值]"
3. Define acceptance criteria using WHEN/THEN/SHALL format
4. Identify edge cases and constraints
5. Create terminology glossary if needed
**Output Template**:
```markdown
# 需求文档
## 简介
[功能概述,1-2段]
## 术语表
- **Term**: Definition
## 需求
### 需求 1: [功能名称]
**用户故事:** 作为[角色],我希望[功能],以便[价值]。
#### 验收标准
1. WHEN [条件] THEN System SHALL [行为]
2. THE System SHALL [要求]
3. IF [条件] THEN System SHALL [行为]
```
---
### Phase 2: Design & Planning
**Goal**: Create `design.md` and `tasks.md`
1. Propose technical approach and architecture
2. Define data models and API con