@sk8metal/michi-cli 0.13.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +86 -0
- package/README.md +27 -8
- package/dist/src/commands/setup-existing.d.ts.map +1 -1
- package/dist/src/commands/setup-existing.js +19 -74
- package/dist/src/commands/setup-existing.js.map +1 -1
- package/package.json +1 -1
- package/templates/claude/agents/design-reviewer/AGENT.md +0 -497
- package/templates/claude/agents/e2e-first-planner/AGENT.md +0 -410
- package/templates/claude/agents/mermaid-validator/AGENT.md +0 -257
- package/templates/claude/agents/oss-license-checker/AGENT.md +0 -265
- package/templates/claude/agents/pr-resolver/AGENT.md +0 -208
- package/templates/claude/agents/pr-size-monitor/AGENT.md +0 -330
- package/templates/claude/agents/stable-version-auditor/AGENT.md +0 -279
- package/templates/claude/commands/kiro/kiro-spec-impl.md +0 -257
- package/templates/claude/commands/kiro/kiro-spec-tasks.md +0 -370
- package/templates/claude/commands/michi/confluence-sync.md +0 -44
- package/templates/claude/commands/michi/design-review.md +0 -70
- package/templates/claude/commands/michi/e2e-plan.md +0 -117
- package/templates/claude/commands/michi/license-check.md +0 -84
- package/templates/claude/commands/michi/pr-resolve.md +0 -157
- package/templates/claude/commands/michi/project-switch.md +0 -42
- package/templates/claude/commands/michi/spec-design.md +0 -78
- package/templates/claude/commands/michi/spec-impl.md +0 -889
- package/templates/claude/commands/michi/spec-tasks.md +0 -156
- package/templates/claude/commands/michi/test-planning.md +0 -174
- package/templates/claude/commands/michi/validate-design.md +0 -58
- package/templates/claude/commands/michi/version-audit.md +0 -95
- package/templates/claude/commands/michi-multi-repo/impl-all.md +0 -293
- package/templates/claude/commands/michi-multi-repo/propagate-specs.md +0 -284
- package/templates/claude/commands/michi-multi-repo/spec-design.md +0 -359
- package/templates/claude/commands/michi-multi-repo/spec-init.md +0 -228
- package/templates/claude/commands/michi-multi-repo/spec-requirements.md +0 -198
- package/templates/claude/commands/michi-multi-repo/spec-review.md +0 -261
- package/templates/claude/rules/atlassian-integration.md +0 -35
- package/templates/claude/rules/michi-core.md +0 -54
- package/templates/claude/skills/design-review/SKILL.md +0 -648
- package/templates/claude/skills/e2e-first-planning/SKILL.md +0 -360
- package/templates/claude/skills/mermaid-validator/SKILL.md +0 -261
- package/templates/claude/skills/oss-license/SKILL.md +0 -232
- package/templates/claude/skills/stable-version/SKILL.md +0 -252
- package/templates/claude-agent/rules/code-size-monitor.md +0 -26
- package/templates/claude-agent/rules/code-size-rules.md +0 -32
- package/templates/michi/cc-sdd-overrides/README.md +0 -58
- package/templates/michi/cc-sdd-overrides/settings/rules/design-review-michi.md +0 -53
- package/templates/michi/cc-sdd-overrides/settings/templates/specs/init.json +0 -24
- package/templates/michi/cc-sdd-overrides/settings/templates/specs/tasks.md +0 -446
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
# kiro:spec-impl - Spec Implementation Command
|
|
2
|
-
|
|
3
|
-
## Development Guidelines
|
|
4
|
-
|
|
5
|
-
{{DEV_GUIDELINES}}
|
|
6
|
-
|
|
7
|
-
## Overview
|
|
8
|
-
|
|
9
|
-
This command implements the specifications defined in `tasks.md` following TDD (Test-Driven Development) practices with automatic JIRA integration.
|
|
10
|
-
|
|
11
|
-
**Key Features:**
|
|
12
|
-
|
|
13
|
-
- Automatic JIRA info detection from `spec.json`
|
|
14
|
-
- Updates both Epic AND first Story status
|
|
15
|
-
- Creates PR and adds JIRA comments automatically
|
|
16
|
-
|
|
17
|
-
## Arguments
|
|
18
|
-
|
|
19
|
-
- `$ARGUMENTS`: Feature name (e.g., "user-auth")
|
|
20
|
-
|
|
21
|
-
**Note:** JIRA ticket keys are automatically detected from `.kiro/specs/{feature}/spec.json`. No need to specify them manually.
|
|
22
|
-
|
|
23
|
-
## Pre-requisites
|
|
24
|
-
|
|
25
|
-
1. `.kiro/specs/{feature}/tasks.md` must exist
|
|
26
|
-
2. `.kiro/specs/{feature}/spec.json` must contain JIRA info (run `michi jira:sync` first)
|
|
27
|
-
3. Environment variables must be configured:
|
|
28
|
-
- `ATLASSIAN_URL`: JIRA instance URL
|
|
29
|
-
- `ATLASSIAN_EMAIL`: JIRA user email
|
|
30
|
-
- `ATLASSIAN_API_TOKEN`: JIRA API token
|
|
31
|
-
- `GITHUB_TOKEN`: GitHub API token
|
|
32
|
-
- ~~`GITHUB_REPO`: GitHub repository (owner/repo format)~~ **Deprecated (v0.5.0+)**: Repository info is now automatically loaded from `.kiro/project.json`
|
|
33
|
-
|
|
34
|
-
## Execution Flow
|
|
35
|
-
|
|
36
|
-
### 1. Parse Arguments
|
|
37
|
-
|
|
38
|
-
```
|
|
39
|
-
Input: $ARGUMENTS
|
|
40
|
-
Expected format: "<feature-name>"
|
|
41
|
-
Example: "user-auth"
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
Extract:
|
|
45
|
-
|
|
46
|
-
- `FEATURE_NAME`: Feature name from arguments
|
|
47
|
-
|
|
48
|
-
### 2. JIRA Info Detection (Automatic)
|
|
49
|
-
|
|
50
|
-
Read JIRA information from `.kiro/specs/$FEATURE_NAME/spec.json`:
|
|
51
|
-
|
|
52
|
-
```json
|
|
53
|
-
{
|
|
54
|
-
"jira": {
|
|
55
|
-
"epicKey": "PROJ-123",
|
|
56
|
-
"storyKeys": ["PROJ-124", "PROJ-125"],
|
|
57
|
-
"epicUrl": "https://..."
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
**If JIRA info is missing:**
|
|
63
|
-
|
|
64
|
-
- Ask user: "JIRA info not found. Skip JIRA integration? (y/n)"
|
|
65
|
-
- If yes: Continue without JIRA integration
|
|
66
|
-
- If no: Stop and suggest running `michi jira:sync $FEATURE_NAME` first
|
|
67
|
-
|
|
68
|
-
### 3. Start Processing (JIRA Status Update)
|
|
69
|
-
|
|
70
|
-
**Automatically move Epic AND first Story to "In Progress":**
|
|
71
|
-
|
|
72
|
-
This is handled internally. The workflow will:
|
|
73
|
-
|
|
74
|
-
1. Transition Epic to "In Progress"
|
|
75
|
-
2. Transition first Story to "In Progress"
|
|
76
|
-
|
|
77
|
-
### 4. Implementation Phase (TDD)
|
|
78
|
-
|
|
79
|
-
Read the tasks from `.kiro/specs/$FEATURE_NAME/tasks.md` and implement each Story following TDD:
|
|
80
|
-
|
|
81
|
-
For each Story in tasks.md:
|
|
82
|
-
|
|
83
|
-
1. **Read Story Requirements**
|
|
84
|
-
- Parse the Story section from tasks.md
|
|
85
|
-
- Identify acceptance criteria and subtasks
|
|
86
|
-
|
|
87
|
-
2. **Write Tests First (Red)**
|
|
88
|
-
- Create test files based on acceptance criteria
|
|
89
|
-
- Run tests to verify they fail
|
|
90
|
-
|
|
91
|
-
3. **Implement Code (Green)**
|
|
92
|
-
- Write minimal code to pass tests
|
|
93
|
-
- Follow the existing code patterns in the project
|
|
94
|
-
|
|
95
|
-
4. **Refactor (Blue)**
|
|
96
|
-
- Clean up code while keeping tests green
|
|
97
|
-
- Apply project coding standards
|
|
98
|
-
|
|
99
|
-
5. **Commit Changes**
|
|
100
|
-
- Create atomic commits for each Story
|
|
101
|
-
- Use conventional commit format: `feat($FEATURE_NAME): Story title`
|
|
102
|
-
|
|
103
|
-
### 5. Code Review Phase (Automatic)
|
|
104
|
-
|
|
105
|
-
**Automatically review the implemented code:**
|
|
106
|
-
|
|
107
|
-
For each Story implementation:
|
|
108
|
-
|
|
109
|
-
1. **Design Review (/michi:design-review)** - **Recommended for UI Components**
|
|
110
|
-
- **推奨**: UI/フロントエンドコードを実装した場合、`/michi:design-review` コマンドの使用を検討してください
|
|
111
|
-
- デザイン品質のレビュー(アクセシビリティ、レスポンシブ、UX)
|
|
112
|
-
- CSS、React、Vue、HTML、Tailwind の変更時に実行
|
|
113
|
-
|
|
114
|
-
```bash
|
|
115
|
-
/michi:design-review
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
2. **Code Review (/review)**
|
|
119
|
-
- Execute `/review` command automatically
|
|
120
|
-
- Analyze the implementation for code quality issues
|
|
121
|
-
- Check for best practices and potential bugs
|
|
122
|
-
|
|
123
|
-
3. **Fix Issues if Found**
|
|
124
|
-
- If review identifies issues, automatically fix them
|
|
125
|
-
- Commit the fixes
|
|
126
|
-
- Re-run `/review` to verify fixes
|
|
127
|
-
- Repeat until `/review` passes without critical issues
|
|
128
|
-
|
|
129
|
-
4. **Security Review (/security-review)**
|
|
130
|
-
- Execute `/security-review` command automatically
|
|
131
|
-
- Scan for security vulnerabilities
|
|
132
|
-
- Check for common security issues (SQL injection, XSS, etc.)
|
|
133
|
-
|
|
134
|
-
5. **Fix Security Issues if Found**
|
|
135
|
-
- If security issues are identified, automatically fix them
|
|
136
|
-
- Commit the security fixes
|
|
137
|
-
- Re-run `/security-review` to verify fixes
|
|
138
|
-
- Repeat until `/security-review` passes without critical issues
|
|
139
|
-
|
|
140
|
-
**Review Loop:**
|
|
141
|
-
- Maximum iterations: 3 per review type
|
|
142
|
-
- If issues persist after 3 iterations, report to user and ask for manual intervention
|
|
143
|
-
|
|
144
|
-
### 6. PR Creation Confirmation
|
|
145
|
-
|
|
146
|
-
**Ask user before creating PR:**
|
|
147
|
-
|
|
148
|
-
After all reviews pass successfully, ask the user:
|
|
149
|
-
|
|
150
|
-
```
|
|
151
|
-
✅ All reviews completed successfully!
|
|
152
|
-
- Code Review: PASSED
|
|
153
|
-
- Security Review: PASSED
|
|
154
|
-
|
|
155
|
-
Would you like to create a Pull Request now? (y/n)
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
- **If yes**: Proceed to End Processing (Step 7)
|
|
159
|
-
- **If no**: Stop workflow, save current state
|
|
160
|
-
- User can manually create PR later using:
|
|
161
|
-
- `jj git push --bookmark <branch-name>`
|
|
162
|
-
- `gh pr create --head <branch-name> --base main`
|
|
163
|
-
|
|
164
|
-
### 7. End Processing (PR Creation & JIRA Update)
|
|
165
|
-
|
|
166
|
-
**Automatically complete the workflow:**
|
|
167
|
-
|
|
168
|
-
This is handled internally. The workflow will:
|
|
169
|
-
|
|
170
|
-
1. Push the branch to remote
|
|
171
|
-
2. Create a Pull Request on GitHub
|
|
172
|
-
3. Move Epic AND first Story to "Ready for Review"
|
|
173
|
-
4. Add PR link as a comment on the Epic
|
|
174
|
-
|
|
175
|
-
## Usage Examples
|
|
176
|
-
|
|
177
|
-
```
|
|
178
|
-
/kiro:spec-impl user-auth
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
```
|
|
182
|
-
/kiro:spec-impl payment-gateway
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
## Workflow Comparison
|
|
186
|
-
|
|
187
|
-
### Before (3 steps with manual JIRA keys)
|
|
188
|
-
|
|
189
|
-
```bash
|
|
190
|
-
michi spec-impl:start user-auth PROJ-123
|
|
191
|
-
/kiro:spec-impl user-auth PROJ-123
|
|
192
|
-
michi spec-impl:complete user-auth PROJ-123
|
|
193
|
-
```
|
|
194
|
-
|
|
195
|
-
### After (1 command with auto-detection)
|
|
196
|
-
|
|
197
|
-
```
|
|
198
|
-
/kiro:spec-impl user-auth
|
|
199
|
-
# JIRA info auto-detected from spec.json
|
|
200
|
-
# Epic + first Story -> "In Progress"
|
|
201
|
-
# TDD implementation
|
|
202
|
-
# Automatic code review (/review)
|
|
203
|
-
# - Fix issues if found
|
|
204
|
-
# - Re-review until passed
|
|
205
|
-
# Automatic security review (/security-review)
|
|
206
|
-
# - Fix security issues if found
|
|
207
|
-
# - Re-review until passed
|
|
208
|
-
# Ask user: "Create PR now? (y/n)"
|
|
209
|
-
# - If yes:
|
|
210
|
-
# - PR creation
|
|
211
|
-
# - Epic + first Story -> "Ready for Review"
|
|
212
|
-
# - PR link commented on JIRA
|
|
213
|
-
# - If no:
|
|
214
|
-
# - Save state, exit workflow
|
|
215
|
-
```
|
|
216
|
-
|
|
217
|
-
## JIRA Status Mapping
|
|
218
|
-
|
|
219
|
-
Default status names (customizable in `.michi/config.json`):
|
|
220
|
-
|
|
221
|
-
| Phase | Default Status | Targets |
|
|
222
|
-
| ----- | ---------------- | ------------------ |
|
|
223
|
-
| Start | In Progress | Epic + First Story |
|
|
224
|
-
| End | Ready for Review | Epic + First Story |
|
|
225
|
-
|
|
226
|
-
To customize, add to `.michi/config.json`:
|
|
227
|
-
|
|
228
|
-
```json
|
|
229
|
-
{
|
|
230
|
-
"jira": {
|
|
231
|
-
"statusMapping": {
|
|
232
|
-
"inProgress": "In Progress",
|
|
233
|
-
"readyForReview": "Ready for Review"
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
```
|
|
238
|
-
|
|
239
|
-
## Error Handling
|
|
240
|
-
|
|
241
|
-
- **JIRA info not found**: Interactive prompt to skip JIRA integration
|
|
242
|
-
- **JIRA transition fails**: Check available transitions for the current status
|
|
243
|
-
- **Review fails (max iterations exceeded)**: Report issues to user and ask for manual intervention
|
|
244
|
-
- **Security review fails (max iterations exceeded)**: Report vulnerabilities to user and ask for manual intervention
|
|
245
|
-
- **User declines PR creation**: Save current state, workflow stops (user can create PR manually later)
|
|
246
|
-
- **PR creation fails**: Ensure the branch is pushed to remote
|
|
247
|
-
- **JIRA comment fails**: The PR URL is still returned for manual update
|
|
248
|
-
|
|
249
|
-
## Notes
|
|
250
|
-
|
|
251
|
-
- JIRA info is automatically detected from `spec.json` (populated by `michi jira:sync`)
|
|
252
|
-
- Both Epic AND first Story are updated together
|
|
253
|
-
- The branch name defaults to `feature/{feature-name}`
|
|
254
|
-
- Individual JIRA operations can still be done via `michi jira:transition` and `michi jira:comment`
|
|
255
|
-
- Code reviews (`/review` and `/security-review`) are executed automatically after implementation
|
|
256
|
-
- Review loop has a maximum of 3 iterations per review type to prevent infinite loops
|
|
257
|
-
- User can decline PR creation and manually create it later if needed
|
|
@@ -1,370 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: /kiro:spec-tasks
|
|
3
|
-
description: Generate tasks.md from design specification in Michi workflow format
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Generate Tasks from Design Specification
|
|
7
|
-
|
|
8
|
-
## Development Guidelines
|
|
9
|
-
|
|
10
|
-
{{DEV_GUIDELINES}}
|
|
11
|
-
|
|
12
|
-
## Overview
|
|
13
|
-
|
|
14
|
-
This command generates a detailed task breakdown (`tasks.md`) from the design specification (`design.md`) following the **Michi Workflow Format**.
|
|
15
|
-
|
|
16
|
-
**Critical**: The generated tasks.md MUST follow the Michi Phase structure (Phase 0.1-5, A, B) with Story headers. DO NOT generate AI-DLC checkbox format (`- [ ] 1.`, `- [ ] 1.1`).
|
|
17
|
-
|
|
18
|
-
## Usage
|
|
19
|
-
|
|
20
|
-
```
|
|
21
|
-
/kiro:spec-tasks
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## Input Files
|
|
25
|
-
|
|
26
|
-
1. `{{KIRO_DIR}}/specs/{{FEATURE_NAME}}/design.md` - Design specification
|
|
27
|
-
2. `{{KIRO_DIR}}/specs/{{FEATURE_NAME}}/requirements.md` - Requirements specification
|
|
28
|
-
3. `{{KIRO_DIR}}/project.json` - Project metadata
|
|
29
|
-
|
|
30
|
-
## Output File
|
|
31
|
-
|
|
32
|
-
`{{KIRO_DIR}}/specs/{{FEATURE_NAME}}/tasks.md`
|
|
33
|
-
|
|
34
|
-
## Required Format: Michi Workflow Structure
|
|
35
|
-
|
|
36
|
-
### Header Section
|
|
37
|
-
|
|
38
|
-
```markdown
|
|
39
|
-
# Task Breakdown: {{FEATURE_NAME}}
|
|
40
|
-
|
|
41
|
-
## Project Information
|
|
42
|
-
|
|
43
|
-
- **Feature Name**: {{FEATURE_NAME}}
|
|
44
|
-
- **Start Date**: YYYY-MM-DD (Day of week) Day 1
|
|
45
|
-
- **End Date**: YYYY-MM-DD (Day of week)
|
|
46
|
-
- **Total Business Days**: X business days (excluding weekends)
|
|
47
|
-
- **Total Effort Estimate**: X person-days
|
|
48
|
-
- **Holidays**: Excludes Saturdays and Sundays
|
|
49
|
-
- **Note**: This task breakdown is calculated in business days (excluding weekends and holidays)
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
### Phase Structure (Required)
|
|
53
|
-
|
|
54
|
-
The tasks.md MUST include these phases in order:
|
|
55
|
-
|
|
56
|
-
1. **Phase 0.1: Requirements**
|
|
57
|
-
2. **Phase 0.2: Design**
|
|
58
|
-
3. **Phase 0.3: Test Type Selection** (optional)
|
|
59
|
-
4. **Phase 0.4: Test Specification** (optional)
|
|
60
|
-
5. **Phase 1: Environment Setup** (optional)
|
|
61
|
-
6. **Phase 2: TDD Implementation** (required - main development phase)
|
|
62
|
-
7. **Phase A: PR Pre-merge Tests** (optional - CI/CD automated)
|
|
63
|
-
8. **Phase 3: Additional QA** (optional)
|
|
64
|
-
9. **Phase B: Release Preparation Tests** (optional)
|
|
65
|
-
10. **Phase 4: Release Preparation**
|
|
66
|
-
11. **Phase 5: Release**
|
|
67
|
-
|
|
68
|
-
### Phase Header Format
|
|
69
|
-
|
|
70
|
-
Each phase MUST use this header format:
|
|
71
|
-
|
|
72
|
-
```markdown
|
|
73
|
-
## Phase X.Y: Phase Name (Label)
|
|
74
|
-
|
|
75
|
-
**Period**: Day X-Y
|
|
76
|
-
**Effort**: X person-days
|
|
77
|
-
**Status**: Not Started
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
### Story Header Format
|
|
81
|
-
|
|
82
|
-
Each story within a phase MUST use this format:
|
|
83
|
-
|
|
84
|
-
```markdown
|
|
85
|
-
### Story X.Y.Z: Story Title
|
|
86
|
-
|
|
87
|
-
- **Assignee**: @Role
|
|
88
|
-
- **Effort**: X person-days
|
|
89
|
-
- **Description**: What this story accomplishes
|
|
90
|
-
- **Deliverables**:
|
|
91
|
-
- Deliverable 1
|
|
92
|
-
- Deliverable 2
|
|
93
|
-
- **Acceptance Criteria**:
|
|
94
|
-
- [ ] Criterion 1
|
|
95
|
-
- [ ] Criterion 2
|
|
96
|
-
- **Tasks**:
|
|
97
|
-
- [ ] Task X.Y.Z.1: Task description
|
|
98
|
-
- [ ] Task X.Y.Z.2: Task description
|
|
99
|
-
- **Dependencies**: Story X.Y.W (if applicable)
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
## Detailed Phase Guidelines
|
|
103
|
-
|
|
104
|
-
### Phase 0.1: Requirements
|
|
105
|
-
|
|
106
|
-
```markdown
|
|
107
|
-
## Phase 0.1: Requirements (Requirements)
|
|
108
|
-
|
|
109
|
-
**Period**: Day 1
|
|
110
|
-
**Effort**: 0.5 person-days
|
|
111
|
-
**Status**: Not Started
|
|
112
|
-
|
|
113
|
-
### Story 0.1.1: Requirements Document Creation
|
|
114
|
-
|
|
115
|
-
- **Assignee**: @PM
|
|
116
|
-
- **Effort**: 0.5 person-days
|
|
117
|
-
- **Description**: Create feature requirements document
|
|
118
|
-
- **Deliverables**:
|
|
119
|
-
- `.kiro/specs/{{FEATURE_NAME}}/requirements.md`
|
|
120
|
-
- Confluence page (Requirements)
|
|
121
|
-
- **Acceptance Criteria**:
|
|
122
|
-
- [ ] Functional requirements defined
|
|
123
|
-
- [ ] Non-functional requirements defined
|
|
124
|
-
- [ ] Use cases documented
|
|
125
|
-
- [ ] PM approved
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
### Phase 0.2: Design
|
|
129
|
-
|
|
130
|
-
```markdown
|
|
131
|
-
## Phase 0.2: Design (Design)
|
|
132
|
-
|
|
133
|
-
**Period**: Day 1-2
|
|
134
|
-
**Effort**: 0.5-1.0 person-days
|
|
135
|
-
**Status**: Not Started
|
|
136
|
-
|
|
137
|
-
### Story 0.2.1: Basic Design
|
|
138
|
-
|
|
139
|
-
- **Assignee**: @Architect
|
|
140
|
-
- **Effort**: 0.5-1.0 person-days
|
|
141
|
-
- **Description**: Architecture design, API design, class design
|
|
142
|
-
- **Deliverables**:
|
|
143
|
-
- `.kiro/specs/{{FEATURE_NAME}}/design.md`
|
|
144
|
-
- Confluence page (Design Document)
|
|
145
|
-
- **Acceptance Criteria**:
|
|
146
|
-
- [ ] System architecture diagram created
|
|
147
|
-
- [ ] Layer structure defined
|
|
148
|
-
- [ ] API specifications detailed
|
|
149
|
-
- [ ] Class design completed
|
|
150
|
-
- [ ] Architect approved
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
### Phase 2: TDD Implementation (Main Development)
|
|
154
|
-
|
|
155
|
-
This is the most detailed phase. Break down into multiple stories based on the design.md:
|
|
156
|
-
|
|
157
|
-
```markdown
|
|
158
|
-
## Phase 2: TDD Implementation (Implementation)
|
|
159
|
-
|
|
160
|
-
**Period**: Day X-Y
|
|
161
|
-
**Effort**: X person-days
|
|
162
|
-
**Status**: Not Started
|
|
163
|
-
|
|
164
|
-
### Story 2.1: Project Setup
|
|
165
|
-
|
|
166
|
-
- **Assignee**: @Developer
|
|
167
|
-
- **Effort**: 0.5 person-days
|
|
168
|
-
- **Description**: Project setup and dependency configuration
|
|
169
|
-
- **Tasks**:
|
|
170
|
-
- [ ] Task 2.1.1: Create project
|
|
171
|
-
- [ ] Task 2.1.2: Add dependencies
|
|
172
|
-
- [ ] Task 2.1.3: Create configuration files
|
|
173
|
-
- [ ] Task 2.1.4: Create package structure
|
|
174
|
-
- [ ] Task 2.1.5: Verify build
|
|
175
|
-
- **Deliverables**:
|
|
176
|
-
- Project configuration files
|
|
177
|
-
- Package structure
|
|
178
|
-
- **Acceptance Criteria**:
|
|
179
|
-
- [ ] Project builds successfully
|
|
180
|
-
- [ ] Application starts
|
|
181
|
-
- [ ] Package structure matches design
|
|
182
|
-
|
|
183
|
-
### Story 2.2: [Feature Component] Implementation
|
|
184
|
-
|
|
185
|
-
- **Assignee**: @Developer
|
|
186
|
-
- **Effort**: X person-days
|
|
187
|
-
- **Description**: Implement [component] with TDD approach
|
|
188
|
-
- **Tasks**:
|
|
189
|
-
- [ ] Task 2.2.1: Write failing tests (RED)
|
|
190
|
-
- [ ] Task 2.2.2: Implement minimum code (GREEN)
|
|
191
|
-
- [ ] Task 2.2.3: Refactor (REFACTOR)
|
|
192
|
-
- [ ] Task 2.2.4: Integration tests
|
|
193
|
-
- **Acceptance Criteria**:
|
|
194
|
-
- [ ] All unit tests pass
|
|
195
|
-
- [ ] Code coverage >= 95%
|
|
196
|
-
- [ ] Design patterns followed
|
|
197
|
-
|
|
198
|
-
(Continue with Story 2.3, 2.4, etc. based on design.md components)
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
### Phase 4: Release Preparation
|
|
202
|
-
|
|
203
|
-
```markdown
|
|
204
|
-
## Phase 4: Release Preparation (Release Preparation)
|
|
205
|
-
|
|
206
|
-
**Period**: Day Y-Z
|
|
207
|
-
**Effort**: X person-days
|
|
208
|
-
**Status**: Not Started
|
|
209
|
-
|
|
210
|
-
### Story 4.1: Production Environment Setup
|
|
211
|
-
|
|
212
|
-
- **Assignee**: @InfraEngineer
|
|
213
|
-
- **Effort**: X person-days
|
|
214
|
-
- **Description**: Production infrastructure setup and configuration
|
|
215
|
-
- **Acceptance Criteria**:
|
|
216
|
-
- [ ] Server provisioned
|
|
217
|
-
- [ ] Database configured
|
|
218
|
-
- [ ] SSL certificate configured
|
|
219
|
-
- [ ] Monitoring configured
|
|
220
|
-
|
|
221
|
-
### Story 4.2: Release Documentation
|
|
222
|
-
|
|
223
|
-
- **Assignee**: @PM
|
|
224
|
-
- **Effort**: X person-days
|
|
225
|
-
- **Description**: Release notes, manual, operation procedures
|
|
226
|
-
- **Acceptance Criteria**:
|
|
227
|
-
- [ ] Release notes created
|
|
228
|
-
- [ ] User manual created
|
|
229
|
-
- [ ] Operation procedures created
|
|
230
|
-
```
|
|
231
|
-
|
|
232
|
-
### Phase 5: Release
|
|
233
|
-
|
|
234
|
-
```markdown
|
|
235
|
-
## Phase 5: Release (Release)
|
|
236
|
-
|
|
237
|
-
**Period**: Day Z
|
|
238
|
-
**Effort**: X person-days
|
|
239
|
-
**Status**: Not Started
|
|
240
|
-
|
|
241
|
-
### Story 5.1: Staging Deployment
|
|
242
|
-
|
|
243
|
-
- **Assignee**: @InfraEngineer
|
|
244
|
-
- **Effort**: X person-days
|
|
245
|
-
- **Description**: Deploy to staging and final verification
|
|
246
|
-
- **Acceptance Criteria**:
|
|
247
|
-
- [ ] Staging deployment successful
|
|
248
|
-
- [ ] Smoke tests pass
|
|
249
|
-
- [ ] Final verification completed
|
|
250
|
-
|
|
251
|
-
### Story 5.2: Production Release
|
|
252
|
-
|
|
253
|
-
- **Assignee**: @InfraEngineer, @PM
|
|
254
|
-
- **Effort**: X person-days
|
|
255
|
-
- **Description**: Production release execution
|
|
256
|
-
- **Acceptance Criteria**:
|
|
257
|
-
- [ ] Production deployment successful
|
|
258
|
-
- [ ] Smoke tests pass
|
|
259
|
-
- [ ] Monitoring verified
|
|
260
|
-
- [ ] Stakeholders notified
|
|
261
|
-
```
|
|
262
|
-
|
|
263
|
-
## Timeline Section
|
|
264
|
-
|
|
265
|
-
Include a timeline at the end:
|
|
266
|
-
|
|
267
|
-
```markdown
|
|
268
|
-
## Timeline (Business Days)
|
|
269
|
-
|
|
270
|
-
**Assumption**: Calculated in business days (excluding weekends)
|
|
271
|
-
|
|
272
|
-
### Week 1: Specification Phase
|
|
273
|
-
|
|
274
|
-
Day 1 (Mon):
|
|
275
|
-
|
|
276
|
-
- Story 0.1.1: Requirements Document Creation
|
|
277
|
-
- Story 0.2.1: Basic Design (start)
|
|
278
|
-
|
|
279
|
-
Day 2-3 (Tue-Wed):
|
|
280
|
-
|
|
281
|
-
- Story 0.2.1: Basic Design (complete)
|
|
282
|
-
- Technical review and PM approval
|
|
283
|
-
|
|
284
|
-
### Week 2-N: Implementation Phase
|
|
285
|
-
|
|
286
|
-
(Continue based on project scope)
|
|
287
|
-
```
|
|
288
|
-
|
|
289
|
-
## Estimate Summary Section
|
|
290
|
-
|
|
291
|
-
```markdown
|
|
292
|
-
## Estimate Summary
|
|
293
|
-
|
|
294
|
-
| Phase | Story Points | Effort (days) | Stories |
|
|
295
|
-
| ---------------------------- | ------------ | ------------- | ------- |
|
|
296
|
-
| Phase 0.1: Requirements | X SP | X days | X |
|
|
297
|
-
| Phase 0.2: Design | X SP | X days | X |
|
|
298
|
-
| Phase 2: TDD Implementation | X SP | X days | X |
|
|
299
|
-
| Phase 4: Release Preparation | X SP | X days | X |
|
|
300
|
-
| Phase 5: Release | X SP | X days | X |
|
|
301
|
-
| **Total** | **X SP** | **X days** | **X** |
|
|
302
|
-
|
|
303
|
-
**Conversion Rate**: 1 SP ≈ 0.5 person-days
|
|
304
|
-
```
|
|
305
|
-
|
|
306
|
-
## JIRA Labels Section
|
|
307
|
-
|
|
308
|
-
```markdown
|
|
309
|
-
## JIRA Labels
|
|
310
|
-
|
|
311
|
-
Each story is automatically assigned the following labels:
|
|
312
|
-
|
|
313
|
-
- `requirements` - Phase 0.1: Requirements
|
|
314
|
-
- `design` - Phase 0.2: Design
|
|
315
|
-
- `test-type-selection` - Phase 0.3: Test Type Selection
|
|
316
|
-
- `test-spec` - Phase 0.4: Test Specification
|
|
317
|
-
- `environment-setup` - Phase 1: Environment Setup
|
|
318
|
-
- `implementation` / `tdd-implementation` - Phase 2: TDD Implementation
|
|
319
|
-
- `phase-a` / `pr-tests` - Phase A: PR Pre-merge Tests
|
|
320
|
-
- `additional-qa` / `testing` - Phase 3: Additional QA
|
|
321
|
-
- `phase-b` / `release-tests` - Phase B: Release Preparation Tests
|
|
322
|
-
- `release-prep` / `release-preparation` - Phase 4: Release Preparation
|
|
323
|
-
- `release` - Phase 5: Release
|
|
324
|
-
```
|
|
325
|
-
|
|
326
|
-
## Important Notes
|
|
327
|
-
|
|
328
|
-
1. **DO NOT** use AI-DLC checkbox format (`- [ ] 1.`, `- [ ] 1.1`)
|
|
329
|
-
2. **MUST** use Phase headers (`## Phase X.Y:`)
|
|
330
|
-
3. **MUST** use Story headers (`### Story X.Y.Z:`)
|
|
331
|
-
4. **MUST** include day numbering (Day 1, Day 2, etc.)
|
|
332
|
-
5. **MUST** include effort estimates in person-days
|
|
333
|
-
6. **MUST** include acceptance criteria with checkboxes
|
|
334
|
-
7. Break down Phase 2 stories based on the components in design.md
|
|
335
|
-
8. Ensure each Story has clear dependencies documented
|
|
336
|
-
|
|
337
|
-
## Recommended: E2E-First Planning
|
|
338
|
-
|
|
339
|
-
**推奨**: タスク分割を行う前に、`/michi:e2e-plan` コマンドの使用を検討してください。
|
|
340
|
-
|
|
341
|
-
E2Eファースト方式でタスクを計画することで、以下のメリットがあります:
|
|
342
|
-
- ミニマム動作確認可能な単位を優先
|
|
343
|
-
- 早期フィードバックの獲得
|
|
344
|
-
- リスクの早期発見
|
|
345
|
-
|
|
346
|
-
```bash
|
|
347
|
-
/michi:e2e-plan
|
|
348
|
-
```
|
|
349
|
-
|
|
350
|
-
## Execution Steps
|
|
351
|
-
|
|
352
|
-
1. Read `{{KIRO_DIR}}/specs/{{FEATURE_NAME}}/design.md`
|
|
353
|
-
2. Read `{{KIRO_DIR}}/specs/{{FEATURE_NAME}}/requirements.md`
|
|
354
|
-
3. **(推奨)** `/michi:e2e-plan` コマンドでE2Eファースト計画を作成
|
|
355
|
-
4. Analyze design components and create Story breakdown
|
|
356
|
-
5. Generate `tasks.md` following the Michi Workflow Format above
|
|
357
|
-
6. Save to `{{KIRO_DIR}}/specs/{{FEATURE_NAME}}/tasks.md`
|
|
358
|
-
|
|
359
|
-
## Validation Checklist
|
|
360
|
-
|
|
361
|
-
Before finalizing, verify:
|
|
362
|
-
|
|
363
|
-
- [ ] Phase headers exist (Phase 0.1, 0.2, 2, 4, 5 at minimum)
|
|
364
|
-
- [ ] Story headers follow format (`### Story X.Y.Z:`)
|
|
365
|
-
- [ ] Day numbering is present
|
|
366
|
-
- [ ] Effort estimates are included
|
|
367
|
-
- [ ] Acceptance criteria use checkboxes `- [ ]`
|
|
368
|
-
- [ ] No AI-DLC format (`- [ ] 1.`, `- [ ] 1.1`) is used
|
|
369
|
-
- [ ] Timeline section is included
|
|
370
|
-
- [ ] Estimate summary table is included
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: /michi:confluence-sync
|
|
3
|
-
description: Sync specifications to Confluence (Michi-specific feature)
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Confluence Sync Command
|
|
7
|
-
|
|
8
|
-
> **Michi 固有機能**: このコマンドは Michi 独自の機能です。cc-sdd 標準には含まれません。
|
|
9
|
-
>
|
|
10
|
-
> 仕様書(requirements.md, design.md)を Confluence に同期し、承認ワークフローを実現します。
|
|
11
|
-
|
|
12
|
-
## Development Guidelines
|
|
13
|
-
|
|
14
|
-
{{DEV_GUIDELINES}}
|
|
15
|
-
|
|
16
|
-
## Usage
|
|
17
|
-
|
|
18
|
-
```
|
|
19
|
-
/michi:confluence-sync <feature_name>
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
**Parameters**:
|
|
23
|
-
- `feature_name`: Feature name (e.g., user-auth, payment-api)
|
|
24
|
-
|
|
25
|
-
## Execution Steps
|
|
26
|
-
|
|
27
|
-
1. Read specifications from {{KIRO_DIR}}/specs/{{FEATURE_NAME}}/
|
|
28
|
-
2. Load project metadata from {{KIRO_DIR}}/project.json
|
|
29
|
-
3. Sync requirements.md to Confluence
|
|
30
|
-
4. Sync design.md to Confluence
|
|
31
|
-
5. Create/update Confluence pages with proper labels
|
|
32
|
-
6. Link pages to JIRA Epic (if exists)
|
|
33
|
-
|
|
34
|
-
## Language Handling
|
|
35
|
-
|
|
36
|
-
- Read language from {{KIRO_DIR}}/project.json
|
|
37
|
-
- Generate all output in the specified language
|
|
38
|
-
- Use Confluence labels from project.json for page organization
|
|
39
|
-
|
|
40
|
-
## Project Metadata
|
|
41
|
-
|
|
42
|
-
- Project ID: {{PROJECT_ID}}
|
|
43
|
-
- Kiro directory: {{KIRO_DIR}}
|
|
44
|
-
- Agent directory: {{AGENT_DIR}}
|