@sk8metal/michi-cli 0.11.0 → 0.13.0

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.
Files changed (54) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +3 -10
  3. package/dist/scripts/constants/environments.d.ts +1 -1
  4. package/dist/scripts/constants/environments.d.ts.map +1 -1
  5. package/dist/scripts/constants/environments.js +0 -20
  6. package/dist/scripts/constants/environments.js.map +1 -1
  7. package/dist/scripts/jira-sync.d.ts.map +1 -1
  8. package/dist/scripts/jira-sync.js +32 -2
  9. package/dist/scripts/jira-sync.js.map +1 -1
  10. package/dist/scripts/utils/template-finder.d.ts +2 -2
  11. package/dist/scripts/utils/template-finder.d.ts.map +1 -1
  12. package/dist/scripts/utils/template-finder.js +3 -8
  13. package/dist/scripts/utils/template-finder.js.map +1 -1
  14. package/dist/src/cli.d.ts.map +1 -1
  15. package/dist/src/cli.js +0 -8
  16. package/dist/src/cli.js.map +1 -1
  17. package/dist/src/commands/init.d.ts +0 -4
  18. package/dist/src/commands/init.d.ts.map +1 -1
  19. package/dist/src/commands/init.js +6 -30
  20. package/dist/src/commands/init.js.map +1 -1
  21. package/dist/src/commands/setup-existing.d.ts +2 -6
  22. package/dist/src/commands/setup-existing.d.ts.map +1 -1
  23. package/dist/src/commands/setup-existing.js +8 -142
  24. package/dist/src/commands/setup-existing.js.map +1 -1
  25. package/docs/getting-started/configuration.md +0 -29
  26. package/docs/getting-started/quick-start.md +2 -2
  27. package/docs/guides/atlassian-integration.md +27 -0
  28. package/docs/guides/workflow.md +1 -1
  29. package/docs/reference/cli.md +0 -4
  30. package/docs/troubleshooting.md +0 -45
  31. package/package.json +1 -3
  32. package/scripts/__tests__/create-project.test.ts +12 -12
  33. package/scripts/__tests__/setup-existing-project.test.ts +22 -22
  34. package/scripts/constants/__tests__/environments.test.ts +7 -50
  35. package/scripts/constants/environments.ts +1 -27
  36. package/scripts/jira-sync.ts +36 -2
  37. package/scripts/template/__tests__/renderer.test.ts +21 -21
  38. package/scripts/utils/template-finder.ts +5 -11
  39. package/docs/guides/ai-tools.md +0 -311
  40. package/templates/cline/rules/atlassian-integration.md +0 -36
  41. package/templates/cline/rules/michi-core.md +0 -56
  42. package/templates/codex/AGENTS.override.md +0 -277
  43. package/templates/codex/prompts/confluence-sync.md +0 -177
  44. package/templates/codex/rules/README.md +0 -210
  45. package/templates/cursor/commands/kiro/kiro-spec-impl.md +0 -244
  46. package/templates/cursor/commands/kiro/kiro-spec-tasks.md +0 -354
  47. package/templates/cursor/commands/michi/confluence-sync.md +0 -76
  48. package/templates/cursor/commands/michi/project-switch.md +0 -69
  49. package/templates/cursor/commands/michi/spec-tasks.md +0 -117
  50. package/templates/cursor/rules/atlassian-mcp.mdc +0 -188
  51. package/templates/cursor/rules/github-ssot.mdc +0 -151
  52. package/templates/cursor/rules/multi-project.mdc +0 -81
  53. package/templates/gemini/commands/README.md +0 -41
  54. package/templates/gemini/rules/GEMINI.md +0 -80
@@ -1,354 +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
- **Important**: Generate output in the language specified in `{{KIRO_DIR}}/project.json`.
9
-
10
- ## Overview
11
-
12
- This command generates a detailed task breakdown (`tasks.md`) from the design specification (`design.md`) following the **Michi Workflow Format**.
13
-
14
- **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`).
15
-
16
- ## Usage
17
-
18
- ```
19
- /kiro:spec-tasks
20
- ```
21
-
22
- ## Input Files
23
-
24
- 1. `{{KIRO_DIR}}/specs/{{FEATURE_NAME}}/design.md` - Design specification
25
- 2. `{{KIRO_DIR}}/specs/{{FEATURE_NAME}}/requirements.md` - Requirements specification
26
- 3. `{{KIRO_DIR}}/project.json` - Project metadata
27
-
28
- ## Output File
29
-
30
- `{{KIRO_DIR}}/specs/{{FEATURE_NAME}}/tasks.md`
31
-
32
- ## Required Format: Michi Workflow Structure
33
-
34
- ### Header Section
35
-
36
- ```markdown
37
- # Task Breakdown: {{FEATURE_NAME}}
38
-
39
- ## Project Information
40
-
41
- - **Feature Name**: {{FEATURE_NAME}}
42
- - **Start Date**: YYYY-MM-DD (Day of week) Day 1
43
- - **End Date**: YYYY-MM-DD (Day of week)
44
- - **Total Business Days**: X business days (excluding weekends)
45
- - **Total Effort Estimate**: X person-days
46
- - **Holidays**: Excludes Saturdays and Sundays
47
- - **Note**: This task breakdown is calculated in business days (excluding weekends and holidays)
48
- ```
49
-
50
- ### Phase Structure (Required)
51
-
52
- The tasks.md MUST include these phases in order:
53
-
54
- 1. **Phase 0.1: Requirements**
55
- 2. **Phase 0.2: Design**
56
- 3. **Phase 0.3: Test Type Selection** (optional)
57
- 4. **Phase 0.4: Test Specification** (optional)
58
- 5. **Phase 1: Environment Setup** (optional)
59
- 6. **Phase 2: TDD Implementation** (required - main development phase)
60
- 7. **Phase A: PR Pre-merge Tests** (optional - CI/CD automated)
61
- 8. **Phase 3: Additional QA** (optional)
62
- 9. **Phase B: Release Preparation Tests** (optional)
63
- 10. **Phase 4: Release Preparation**
64
- 11. **Phase 5: Release**
65
-
66
- ### Phase Header Format
67
-
68
- Each phase MUST use this header format:
69
-
70
- ```markdown
71
- ## Phase X.Y: Phase Name (Label)
72
-
73
- **Period**: Day X-Y
74
- **Effort**: X person-days
75
- **Status**: Not Started
76
- ```
77
-
78
- ### Story Header Format
79
-
80
- Each story within a phase MUST use this format:
81
-
82
- ```markdown
83
- ### Story X.Y.Z: Story Title
84
-
85
- - **Assignee**: @Role
86
- - **Effort**: X person-days
87
- - **Description**: What this story accomplishes
88
- - **Deliverables**:
89
- - Deliverable 1
90
- - Deliverable 2
91
- - **Acceptance Criteria**:
92
- - [ ] Criterion 1
93
- - [ ] Criterion 2
94
- - **Tasks**:
95
- - [ ] Task X.Y.Z.1: Task description
96
- - [ ] Task X.Y.Z.2: Task description
97
- - **Dependencies**: Story X.Y.W (if applicable)
98
- ```
99
-
100
- ## Detailed Phase Guidelines
101
-
102
- ### Phase 0.1: Requirements
103
-
104
- ```markdown
105
- ## Phase 0.1: Requirements (Requirements)
106
-
107
- **Period**: Day 1
108
- **Effort**: 0.5 person-days
109
- **Status**: Not Started
110
-
111
- ### Story 0.1.1: Requirements Document Creation
112
-
113
- - **Assignee**: @PM
114
- - **Effort**: 0.5 person-days
115
- - **Description**: Create feature requirements document
116
- - **Deliverables**:
117
- - `.kiro/specs/{{FEATURE_NAME}}/requirements.md`
118
- - Confluence page (Requirements)
119
- - **Acceptance Criteria**:
120
- - [ ] Functional requirements defined
121
- - [ ] Non-functional requirements defined
122
- - [ ] Use cases documented
123
- - [ ] PM approved
124
- ```
125
-
126
- ### Phase 0.2: Design
127
-
128
- ```markdown
129
- ## Phase 0.2: Design (Design)
130
-
131
- **Period**: Day 1-2
132
- **Effort**: 0.5-1.0 person-days
133
- **Status**: Not Started
134
-
135
- ### Story 0.2.1: Basic Design
136
-
137
- - **Assignee**: @Architect
138
- - **Effort**: 0.5-1.0 person-days
139
- - **Description**: Architecture design, API design, class design
140
- - **Deliverables**:
141
- - `.kiro/specs/{{FEATURE_NAME}}/design.md`
142
- - Confluence page (Design Document)
143
- - **Acceptance Criteria**:
144
- - [ ] System architecture diagram created
145
- - [ ] Layer structure defined
146
- - [ ] API specifications detailed
147
- - [ ] Class design completed
148
- - [ ] Architect approved
149
- ```
150
-
151
- ### Phase 2: TDD Implementation (Main Development)
152
-
153
- This is the most detailed phase. Break down into multiple stories based on the design.md:
154
-
155
- ```markdown
156
- ## Phase 2: TDD Implementation (Implementation)
157
-
158
- **Period**: Day X-Y
159
- **Effort**: X person-days
160
- **Status**: Not Started
161
-
162
- ### Story 2.1: Project Setup
163
-
164
- - **Assignee**: @Developer
165
- - **Effort**: 0.5 person-days
166
- - **Description**: Project setup and dependency configuration
167
- - **Tasks**:
168
- - [ ] Task 2.1.1: Create project
169
- - [ ] Task 2.1.2: Add dependencies
170
- - [ ] Task 2.1.3: Create configuration files
171
- - [ ] Task 2.1.4: Create package structure
172
- - [ ] Task 2.1.5: Verify build
173
- - **Deliverables**:
174
- - Project configuration files
175
- - Package structure
176
- - **Acceptance Criteria**:
177
- - [ ] Project builds successfully
178
- - [ ] Application starts
179
- - [ ] Package structure matches design
180
-
181
- ### Story 2.2: [Feature Component] Implementation
182
-
183
- - **Assignee**: @Developer
184
- - **Effort**: X person-days
185
- - **Description**: Implement [component] with TDD approach
186
- - **Tasks**:
187
- - [ ] Task 2.2.1: Write failing tests (RED)
188
- - [ ] Task 2.2.2: Implement minimum code (GREEN)
189
- - [ ] Task 2.2.3: Refactor (REFACTOR)
190
- - [ ] Task 2.2.4: Integration tests
191
- - **Acceptance Criteria**:
192
- - [ ] All unit tests pass
193
- - [ ] Code coverage >= 95%
194
- - [ ] Design patterns followed
195
-
196
- (Continue with Story 2.3, 2.4, etc. based on design.md components)
197
- ```
198
-
199
- ### Phase 4: Release Preparation
200
-
201
- ```markdown
202
- ## Phase 4: Release Preparation (Release Preparation)
203
-
204
- **Period**: Day Y-Z
205
- **Effort**: X person-days
206
- **Status**: Not Started
207
-
208
- ### Story 4.1: Production Environment Setup
209
-
210
- - **Assignee**: @InfraEngineer
211
- - **Effort**: X person-days
212
- - **Description**: Production infrastructure setup and configuration
213
- - **Acceptance Criteria**:
214
- - [ ] Server provisioned
215
- - [ ] Database configured
216
- - [ ] SSL certificate configured
217
- - [ ] Monitoring configured
218
-
219
- ### Story 4.2: Release Documentation
220
-
221
- - **Assignee**: @PM
222
- - **Effort**: X person-days
223
- - **Description**: Release notes, manual, operation procedures
224
- - **Acceptance Criteria**:
225
- - [ ] Release notes created
226
- - [ ] User manual created
227
- - [ ] Operation procedures created
228
- ```
229
-
230
- ### Phase 5: Release
231
-
232
- ```markdown
233
- ## Phase 5: Release (Release)
234
-
235
- **Period**: Day Z
236
- **Effort**: X person-days
237
- **Status**: Not Started
238
-
239
- ### Story 5.1: Staging Deployment
240
-
241
- - **Assignee**: @InfraEngineer
242
- - **Effort**: X person-days
243
- - **Description**: Deploy to staging and final verification
244
- - **Acceptance Criteria**:
245
- - [ ] Staging deployment successful
246
- - [ ] Smoke tests pass
247
- - [ ] Final verification completed
248
-
249
- ### Story 5.2: Production Release
250
-
251
- - **Assignee**: @InfraEngineer, @PM
252
- - **Effort**: X person-days
253
- - **Description**: Production release execution
254
- - **Acceptance Criteria**:
255
- - [ ] Production deployment successful
256
- - [ ] Smoke tests pass
257
- - [ ] Monitoring verified
258
- - [ ] Stakeholders notified
259
- ```
260
-
261
- ## Timeline Section
262
-
263
- Include a timeline at the end:
264
-
265
- ```markdown
266
- ## Timeline (Business Days)
267
-
268
- **Assumption**: Calculated in business days (excluding weekends)
269
-
270
- ### Week 1: Specification Phase
271
-
272
- Day 1 (Mon):
273
-
274
- - Story 0.1.1: Requirements Document Creation
275
- - Story 0.2.1: Basic Design (start)
276
-
277
- Day 2-3 (Tue-Wed):
278
-
279
- - Story 0.2.1: Basic Design (complete)
280
- - Technical review and PM approval
281
-
282
- ### Week 2-N: Implementation Phase
283
-
284
- (Continue based on project scope)
285
- ```
286
-
287
- ## Estimate Summary Section
288
-
289
- ```markdown
290
- ## Estimate Summary
291
-
292
- | Phase | Story Points | Effort (days) | Stories |
293
- | ---------------------------- | ------------ | ------------- | ------- |
294
- | Phase 0.1: Requirements | X SP | X days | X |
295
- | Phase 0.2: Design | X SP | X days | X |
296
- | Phase 2: TDD Implementation | X SP | X days | X |
297
- | Phase 4: Release Preparation | X SP | X days | X |
298
- | Phase 5: Release | X SP | X days | X |
299
- | **Total** | **X SP** | **X days** | **X** |
300
-
301
- **Conversion Rate**: 1 SP ≈ 0.5 person-days
302
- ```
303
-
304
- ## JIRA Labels Section
305
-
306
- ```markdown
307
- ## JIRA Labels
308
-
309
- Each story is automatically assigned the following labels:
310
-
311
- - `requirements` - Phase 0.1: Requirements
312
- - `design` - Phase 0.2: Design
313
- - `test-type-selection` - Phase 0.3: Test Type Selection
314
- - `test-spec` - Phase 0.4: Test Specification
315
- - `environment-setup` - Phase 1: Environment Setup
316
- - `implementation` / `tdd-implementation` - Phase 2: TDD Implementation
317
- - `phase-a` / `pr-tests` - Phase A: PR Pre-merge Tests
318
- - `additional-qa` / `testing` - Phase 3: Additional QA
319
- - `phase-b` / `release-tests` - Phase B: Release Preparation Tests
320
- - `release-prep` / `release-preparation` - Phase 4: Release Preparation
321
- - `release` - Phase 5: Release
322
- ```
323
-
324
- ## Important Notes
325
-
326
- 1. **DO NOT** use AI-DLC checkbox format (`- [ ] 1.`, `- [ ] 1.1`)
327
- 2. **MUST** use Phase headers (`## Phase X.Y:`)
328
- 3. **MUST** use Story headers (`### Story X.Y.Z:`)
329
- 4. **MUST** include day numbering (Day 1, Day 2, etc.)
330
- 5. **MUST** include effort estimates in person-days
331
- 6. **MUST** include acceptance criteria with checkboxes
332
- 7. Break down Phase 2 stories based on the components in design.md
333
- 8. Ensure each Story has clear dependencies documented
334
-
335
- ## Execution Steps
336
-
337
- 1. Read `{{KIRO_DIR}}/specs/{{FEATURE_NAME}}/design.md`
338
- 2. Read `{{KIRO_DIR}}/specs/{{FEATURE_NAME}}/requirements.md`
339
- 3. Analyze design components and create Story breakdown
340
- 4. Generate `tasks.md` following the Michi Workflow Format above
341
- 5. Save to `{{KIRO_DIR}}/specs/{{FEATURE_NAME}}/tasks.md`
342
-
343
- ## Validation Checklist
344
-
345
- Before finalizing, verify:
346
-
347
- - [ ] Phase headers exist (Phase 0.1, 0.2, 2, 4, 5 at minimum)
348
- - [ ] Story headers follow format (`### Story X.Y.Z:`)
349
- - [ ] Day numbering is present
350
- - [ ] Effort estimates are included
351
- - [ ] Acceptance criteria use checkboxes `- [ ]`
352
- - [ ] No AI-DLC format (`- [ ] 1.`, `- [ ] 1.1`) is used
353
- - [ ] Timeline section is included
354
- - [ ] Estimate summary table is included
@@ -1,76 +0,0 @@
1
- ---
2
- name: /michi:confluence-sync
3
- description: GitHub の Markdown を Confluence に同期
4
- ---
5
-
6
- # Confluence同期コマンド
7
-
8
- {{DEV_GUIDELINES}}
9
-
10
- このコマンドは、GitHubで管理されている仕様書(requirements, design, tasks)をConfluenceに同期します。
11
-
12
- ## 使い方
13
-
14
- ```
15
- /michi:confluence-sync <feature_name> [doc_type]
16
- ```
17
-
18
- **パラメータ**:
19
- - `feature_name`: 機能名(例: user-auth)
20
- - `doc_type`: ドキュメントタイプ(requirements / design / tasks)省略時は requirements
21
-
22
- **例**:
23
- ```
24
- /michi:confluence-sync user-auth
25
- /michi:confluence-sync user-auth design
26
- /michi:confluence-sync user-auth tasks
27
- ```
28
-
29
- ## 実行内容
30
-
31
- 1. `{{KIRO_DIR}}/project.json` からプロジェクトメタデータを読み込み
32
- 2. `{{KIRO_DIR}}/specs/<feature>/<doc_type>.md` を読み込み
33
- 3. Markdown → Confluence Storage Format に変換
34
- 4. GitHub URLを埋め込み
35
- 5. Confluenceページを作成または更新
36
- 6. ラベル付与(プロジェクトラベル + doc_type)
37
- 7. ステークホルダーにメンション通知
38
-
39
- ## 生成されるConfluenceページ
40
-
41
- **タイトル**: `[プロジェクト名] <feature> <doc_type>`
42
- **スペース**: PRD(要件・設計)/ QA(テスト)
43
- **ラベル**: project:<project_id>, <doc_type>, <feature_name>, github-sync
44
-
45
- **ページ構成**:
46
- - GitHub連携情報(最新版へのリンク)
47
- - 変換されたMarkdownコンテンツ
48
- - 承認マクロ(企画・部長への承認依頼)
49
-
50
- ## 実装
51
-
52
- スクリプトを直接実行:
53
-
54
- ```bash
55
- npm run confluence:sync <feature_name> [doc_type]
56
- ```
57
-
58
- 内部的に `scripts/confluence-sync.ts` を実行します。
59
-
60
- ## 前提条件
61
-
62
- - `.env` ファイルに Atlassian 認証情報が設定されている
63
- - `{{KIRO_DIR}}/project.json` が存在する
64
- - 同期する Markdown ファイルが存在する
65
-
66
- ## トラブルシューティング
67
-
68
- ### 認証エラー
69
- `.env` の `ATLASSIAN_API_TOKEN` を確認してください。
70
-
71
- ### ページが見つからない
72
- Confluence スペースキー(PRD)が正しいか確認してください。
73
-
74
- ### Markdown変換エラー
75
- Markdown形式が正しいか確認してください。
76
-
@@ -1,69 +0,0 @@
1
- ---
2
- name: /michi:project-switch
3
- description: プロジェクトを切り替える
4
- ---
5
-
6
- # プロジェクト切り替えコマンド
7
-
8
- {{DEV_GUIDELINES}}
9
-
10
- 複数プロジェクトを管理している場合、プロジェクトを切り替えるコマンドです。
11
-
12
- ## 使い方
13
-
14
- ```
15
- /michi:project-switch <project_id>
16
- ```
17
-
18
- **パラメータ**:
19
- - `project_id`: プロジェクトID(例: customer-a-service-1, michi)
20
-
21
- **例**:
22
- ```
23
- /michi:project-switch michi
24
- /michi:project-switch customer-a-service-1
25
- ```
26
-
27
- ## 実行内容
28
-
29
- 1. プロジェクトIDに対応するGitHubリポジトリを特定
30
- 2. ローカルにクローン(未クローンの場合)またはチェックアウト
31
- 3. `{{KIRO_DIR}}/project.json` を読み込んで表示
32
- 4. 対応するConfluenceプロジェクトページのURLを表示
33
- 5. JIRAプロジェクトダッシュボードのURLを表示
34
-
35
- ## 出力例
36
-
37
- ```
38
- ✅ プロジェクト切り替え: michi
39
-
40
- プロジェクト情報:
41
- 名前: Michi - Managed Intelligent Comprehensive Hub for Integration
42
- JIRA: MICHI
43
- Confluence Labels: project:michi, service:hub
44
- ステータス: active
45
- チーム: @arigatatsuya
46
-
47
- リンク:
48
- 📄 Confluence: https://your-domain.atlassian.net/wiki/spaces/PRD/pages/
49
- 🎯 JIRA Dashboard: https://your-domain.atlassian.net/jira/projects/MICHI
50
- 🐙 GitHub: https://github.com/sk8metalme/michi
51
- ```
52
-
53
- ## ターミナル実行
54
-
55
- ```bash
56
- # リポジトリをクローン/チェックアウト
57
- cd ~/work/projects
58
- jj git clone https://github.com/org/<project_id>
59
- cd <project_id>
60
-
61
- # プロジェクト情報を表示
62
- cat {{KIRO_DIR}}/project.json
63
- ```
64
-
65
- ## 関連コマンド
66
-
67
- - `/michi:project-list`: すべてのプロジェクトを一覧表示
68
- - `/kiro:spec-status`: 現在のプロジェクトの仕様ステータスを表示(cc-sdd標準コマンド)
69
-
@@ -1,117 +0,0 @@
1
- ---
2
- name: /michi:spec-tasks
3
- description: Generate implementation tasks with JIRA sync option (Michi version)
4
- allowed-tools: Read, Write, Edit, MultiEdit, Glob, Grep, Bash
5
- argument-hint: <feature-name> [-y] [--sequential]
6
- ---
7
-
8
- # Michi: Spec Tasks with JIRA Sync Option
9
-
10
- ## Base Command Reference
11
- @.claude/commands/kiro/spec-tasks.md
12
-
13
- ## Development Guidelines
14
- {{DEV_GUIDELINES}}
15
-
16
- ---
17
-
18
- ## Michi Extension: JIRA Sync Prompt
19
-
20
- このコマンドは cc-sdd 標準の `/kiro:spec-tasks` を拡張し、タスク生成完了後にJIRA同期オプションを提示します。
21
-
22
- ### 機能追加内容
23
-
24
- 1. **タスク生成完了後の次ステップ案内**:
25
- - JIRA連携が設定されている場合: JIRA同期の選択肢(A/B/C形式)を表示
26
- - JIRA連携が未設定の場合: 実装フェーズへの案内 + JIRA設定ヒントを表示
27
-
28
- 2. **環境変数による条件分岐**:
29
- - 以下の環境変数がすべて設定されている場合のみ、JIRA同期の選択肢を表示
30
- - `ATLASSIAN_URL`
31
- - `ATLASSIAN_EMAIL`
32
- - `ATLASSIAN_API_TOKEN`
33
-
34
- ---
35
-
36
- ## タスク生成完了後のフロー
37
-
38
- 基底コマンド `/kiro:spec-tasks` によるタスク生成が完了した後、以下のフローを実行してください:
39
-
40
- ### Step 1: 環境変数チェック
41
-
42
- ```bash
43
- # JIRA連携の環境変数をチェック
44
- if [ -n "$ATLASSIAN_URL" ] && [ -n "$ATLASSIAN_EMAIL" ] && [ -n "$ATLASSIAN_API_TOKEN" ]; then
45
- JIRA_CONFIGURED=true
46
- else
47
- JIRA_CONFIGURED=false
48
- fi
49
- ```
50
-
51
- ### Step 2a: JIRA連携が設定されている場合の表示
52
-
53
- `JIRA_CONFIGURED=true` の場合、以下のメッセージと選択肢を表示:
54
-
55
- ```
56
- ============================================
57
- タスク生成完了 - JIRA同期オプション
58
- ============================================
59
-
60
- 次のアクション:
61
- A) JIRAにタスクを同期する(推奨: タスク管理を一元化)
62
- → `michi jira:sync {{FEATURE_NAME}}` を実行
63
-
64
- B) JIRAへの同期をスキップして実装に進む
65
- → `/michi:spec-impl {{FEATURE_NAME}}` を実行
66
-
67
- C) 何もせずにこのまま終了する
68
-
69
- 選択 (A/B/C): _
70
- ```
71
-
72
- **選択肢の説明**:
73
- - **A**: Epic/Story/Subtaskを自動作成し、タスクをJIRAに同期します
74
- - **B**: JIRA同期をスキップして直接TDD実装フェーズに進みます
75
- - **C**: タスク生成のみで終了し、ユーザーが手動で次のステップを選択します
76
-
77
- ### Step 2b: JIRA連携が未設定の場合の表示
78
-
79
- `JIRA_CONFIGURED=false` の場合、以下のメッセージを表示:
80
-
81
- ```
82
- ============================================
83
- タスク生成完了
84
- ============================================
85
-
86
- 次のステップ:
87
- → `/michi:spec-impl {{FEATURE_NAME}}` で実装を開始
88
-
89
- ---
90
- ℹ️ ヒント: JIRA連携を使用すると、タスクを自動的にJIRAに同期できます。
91
-
92
- 設定方法: 以下の環境変数を .env に追加してください:
93
- - ATLASSIAN_URL=https://your-domain.atlassian.net
94
- - ATLASSIAN_EMAIL=your-email@company.com
95
- - ATLASSIAN_API_TOKEN=your-api-token
96
-
97
- 詳細はドキュメントを参照: docs/guides/atlassian-integration.md
98
- ```
99
-
100
- ---
101
-
102
- ## 実装上の注意点
103
-
104
- 1. **基底コマンドの実行結果を維持**:
105
- - `/kiro:spec-tasks` の「Output Description」セクションで出力されるタスクサマリーは維持してください
106
- - Michi Extensionの選択肢はその**後**に追加で表示します
107
-
108
- 2. **言語設定の考慮**:
109
- - メッセージは日本語固定(将来的にspec.jsonの言語設定に対応する可能性あり)
110
-
111
- 3. **ユーザーインタラクション**:
112
- - 選択肢を表示した後、ユーザーの入力を待ちます
113
- - 選択に応じて適切なコマンド/処理を案内または実行してください
114
-
115
- ---
116
-
117
- **Michi 固有機能**: このコマンドは cc-sdd 標準の `/kiro:spec-tasks` を拡張し、Phase 0.6(JIRA同期)への誘導を Next Phase として案内します。これにより、タスク分割からJIRA連携へのスムーズな移行を実現します。