@sk8metal/michi-cli 0.10.1 → 0.11.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 (104) hide show
  1. package/README.md +77 -847
  2. package/dist/scripts/phase-runner.js +1 -1
  3. package/dist/scripts/phase-runner.js.map +1 -1
  4. package/dist/scripts/utils/multi-repo-validator.d.ts +18 -0
  5. package/dist/scripts/utils/multi-repo-validator.d.ts.map +1 -1
  6. package/dist/scripts/utils/multi-repo-validator.js +42 -0
  7. package/dist/scripts/utils/multi-repo-validator.js.map +1 -1
  8. package/dist/scripts/utils/tasks-format-validator.js +3 -3
  9. package/dist/scripts/utils/tasks-format-validator.js.map +1 -1
  10. package/docs/README.md +20 -83
  11. package/docs/getting-started/configuration.md +379 -0
  12. package/docs/getting-started/installation.md +59 -0
  13. package/docs/getting-started/quick-start.md +76 -0
  14. package/docs/guides/ai-tools.md +311 -0
  15. package/docs/guides/atlassian-integration.md +116 -0
  16. package/docs/guides/claude-code.md +155 -0
  17. package/docs/guides/multi-repo.md +117 -0
  18. package/docs/guides/workflow.md +382 -0
  19. package/docs/reference/ai-commands.md +92 -0
  20. package/docs/reference/cli.md +756 -0
  21. package/docs/reference/environment-variables.md +192 -0
  22. package/docs/troubleshooting.md +543 -0
  23. package/package.json +1 -1
  24. package/scripts/phase-runner.ts +1 -1
  25. package/scripts/utils/__tests__/multi-repo-validator.test.ts +159 -1
  26. package/scripts/utils/multi-repo-validator.ts +50 -0
  27. package/scripts/utils/tasks-format-validator.ts +3 -3
  28. package/templates/claude/agents/e2e-first-planner/AGENT.md +1 -1
  29. package/templates/claude/agents/pr-resolver/AGENT.md +15 -3
  30. package/templates/claude/commands/michi/e2e-plan.md +1 -1
  31. package/templates/claude/commands/michi/spec-design.md +2 -2
  32. package/templates/claude/commands/michi/spec-tasks.md +156 -0
  33. package/templates/claude/commands/michi/test-planning.md +1 -1
  34. package/templates/claude/commands/michi/validate-design.md +3 -3
  35. package/templates/claude/commands/michi-multi-repo/impl-all.md +30 -1
  36. package/templates/claude/commands/michi-multi-repo/propagate-specs.md +14 -1
  37. package/templates/claude/commands/michi-multi-repo/spec-review.md +16 -2
  38. package/templates/claude-agent/agents/repo-spec-executor.md +1 -1
  39. package/templates/claude-agent/commands/michi/spec-tasks.md +117 -0
  40. package/templates/claude-agent/rules/code-size-monitor.md +26 -0
  41. package/templates/claude-agent/rules/code-size-rules.md +32 -0
  42. package/templates/codex/AGENTS.override.md +1 -1
  43. package/templates/codex/rules/README.md +2 -2
  44. package/templates/cursor/commands/michi/spec-tasks.md +117 -0
  45. package/templates/michi/cc-sdd-overrides/settings/rules/design-review-michi.md +1 -1
  46. package/docs/context.md +0 -59
  47. package/docs/michi-development/contributing/development.md +0 -341
  48. package/docs/michi-development/contributing/release.md +0 -365
  49. package/docs/michi-development/design/config-unification.md +0 -733
  50. package/docs/michi-development/design/design-config-current-state.md +0 -330
  51. package/docs/michi-development/design/design-config-implementation.md +0 -628
  52. package/docs/michi-development/design/design-config-migration.md +0 -952
  53. package/docs/michi-development/design/design-config-security.md +0 -771
  54. package/docs/michi-development/design/design-config-solution.md +0 -583
  55. package/docs/michi-development/design/design-config-testing.md +0 -892
  56. package/docs/michi-development/testing/manual-verification-flow.md +0 -871
  57. package/docs/michi-development/testing/manual-verification-other-tools.md +0 -1279
  58. package/docs/michi-development/testing/manual-verification-troubleshooting.md +0 -122
  59. package/docs/michi-development/testing/pre-publish-checklist.md +0 -560
  60. package/docs/michi-development/testing-strategy.md +0 -87
  61. package/docs/plan.md +0 -275
  62. package/docs/user-guide/getting-started/github-token-setup.md +0 -510
  63. package/docs/user-guide/getting-started/new-repository-setup.md +0 -704
  64. package/docs/user-guide/getting-started/quick-start.md +0 -212
  65. package/docs/user-guide/getting-started/setup.md +0 -819
  66. package/docs/user-guide/guides/agent-skills-integration.md +0 -222
  67. package/docs/user-guide/guides/customization.md +0 -537
  68. package/docs/user-guide/guides/internationalization.md +0 -540
  69. package/docs/user-guide/guides/migration-guide.md +0 -138
  70. package/docs/user-guide/guides/multi-project.md +0 -368
  71. package/docs/user-guide/guides/multi-repo-guide.md +0 -1590
  72. package/docs/user-guide/guides/phase-automation.md +0 -419
  73. package/docs/user-guide/guides/workflow.md +0 -574
  74. package/docs/user-guide/hands-on/README.md +0 -142
  75. package/docs/user-guide/hands-on/claude-agent-setup.md +0 -597
  76. package/docs/user-guide/hands-on/claude-setup.md +0 -452
  77. package/docs/user-guide/hands-on/cursor-setup.md +0 -353
  78. package/docs/user-guide/hands-on/troubleshooting.md +0 -964
  79. package/docs/user-guide/hands-on/verification-checklist.md +0 -439
  80. package/docs/user-guide/hands-on/workflow-walkthrough.md +0 -1078
  81. package/docs/user-guide/reference/config.md +0 -589
  82. package/docs/user-guide/reference/multi-repo-api.md +0 -771
  83. package/docs/user-guide/reference/quick-reference.md +0 -297
  84. package/docs/user-guide/reference/security-test-payloads.md +0 -50
  85. package/docs/user-guide/reference/tasks-template.md +0 -550
  86. package/docs/user-guide/release/ci-setup-java.md +0 -114
  87. package/docs/user-guide/release/ci-setup-nodejs.md +0 -94
  88. package/docs/user-guide/release/ci-setup-php.md +0 -102
  89. package/docs/user-guide/release/ci-setup-troubleshooting.md +0 -94
  90. package/docs/user-guide/release/ci-setup.md +0 -188
  91. package/docs/user-guide/release/release-flow.md +0 -476
  92. package/docs/user-guide/templates/test-specs/README.md +0 -173
  93. package/docs/user-guide/templates/test-specs/e2e-test-spec-template.md +0 -553
  94. package/docs/user-guide/templates/test-specs/integration-test-spec-template.md +0 -435
  95. package/docs/user-guide/templates/test-specs/performance-test-spec-template.md +0 -454
  96. package/docs/user-guide/templates/test-specs/security-test-spec-template.md +0 -625
  97. package/docs/user-guide/templates/test-specs/unit-test-spec-template.md +0 -328
  98. package/docs/user-guide/testing/integration-tests.md +0 -312
  99. package/docs/user-guide/testing/tdd-cycle.md +0 -349
  100. package/docs/user-guide/testing/test-execution-flow.md +0 -396
  101. package/docs/user-guide/testing/test-failure-handling.md +0 -521
  102. package/docs/user-guide/testing/test-planning-flow.md +0 -185
  103. package/docs/user-guide/testing-strategy.md +0 -185
  104. package/docs/verification-guide.md +0 -518
@@ -1,353 +0,0 @@
1
- # Cursor IDEセットアップガイド
2
-
3
- このガイドでは、Cursor IDEでMichiを使用するためのセットアップ手順を説明します。
4
-
5
- ## 📋 前提条件
6
-
7
- 以下がインストール済みであることを確認してください:
8
-
9
- - **Node.js**: 20.x以上
10
- - **npm**: 10.x以上
11
- - **Git**: 最新版(または Jujutsu (jj))
12
- - **GitHub CLI (gh)**: 最新版
13
- - **Cursor IDE**: 最新版
14
-
15
- ### インストール確認
16
-
17
- ```bash
18
- # バージョン確認
19
- node --version # v20.0.0以上
20
- npm --version # 10.0.0以上
21
- git --version # または jj --version
22
- gh --version
23
-
24
- # Cursor IDEがインストールされているか確認
25
- cursor --version
26
- ```
27
-
28
- ## 🚀 セットアップ手順
29
-
30
- ### Step 1: Michiのインストール
31
-
32
- #### 方法A: NPMパッケージからインストール(推奨)
33
-
34
- ```bash
35
- # グローバルインストール
36
- npm install -g @sk8metal/michi-cli
37
-
38
- # インストール確認
39
- michi --version
40
- michi --help
41
- ```
42
-
43
- #### 方法B: リポジトリからクローン(開発者向け)
44
-
45
- ```bash
46
- # リポジトリをクローン
47
- git clone https://github.com/sk8metalme/michi
48
- cd michi
49
-
50
- # 依存関係のインストール
51
- npm install
52
-
53
- # ビルド
54
- npm run build
55
-
56
- # グローバルコマンドとしてリンク
57
- npm link
58
- ```
59
-
60
- ### Step 2: 既存プロジェクトへのMichi導入
61
-
62
- 既存のプロジェクトディレクトリに移動します:
63
-
64
- ```bash
65
- # プロジェクトディレクトリに移動
66
- cd /path/to/your-project
67
- ```
68
-
69
- ### Step 3: cc-sddのインストール
70
-
71
- MichiはAI駆動開発ワークフローのコアフレームワークとして[cc-sdd](https://github.com/gotalab/cc-sdd)を使用します。
72
-
73
- ```bash
74
- # cc-sddをインストール(Cursor IDE向け、日本語)
75
- npx cc-sdd@latest --cursor --lang ja
76
- ```
77
-
78
- **実行結果の確認**:
79
-
80
- ```
81
- ✅ .kiro/settings/rules/ - Spec-Driven Development用のルールファイル
82
- ✅ .kiro/settings/templates/ - Spec用テンプレート(requirements.md, design.md等)
83
- ✅ CLAUDE.md - プロジェクトルートへのメインルールファイル
84
- ```
85
-
86
- ### Step 4: Michi固有ファイルの追加
87
-
88
- ```bash
89
- # Michi専用のファイルを追加
90
- npx @sk8metal/michi-cli setup-existing --cursor --lang ja
91
- ```
92
-
93
- **対話的プロンプト**:
94
-
95
- セットアップコマンドを実行すると、以下の情報を対話的に入力するよう求められます:
96
-
97
- ```
98
- 環境を選択してください:
99
- 1) Cursor IDE (推奨)
100
- 2) Claude Code
101
- 3) Claude Code Subagents
102
-
103
- 選択 [1-3] (デフォルト: 1): 1
104
-
105
- プロジェクト名(例: プロジェクトA): サンプルプロジェクト
106
-
107
- JIRAプロジェクトキー(例: PRJA): DEMO
108
-
109
- ✅ 設定:
110
- プロジェクト名: サンプルプロジェクト
111
- JIRA: DEMO
112
- 環境: cursor
113
- 言語: ja
114
-
115
- この設定で続行しますか? [Y/n]: Y
116
- ```
117
-
118
- **実行結果の確認**:
119
-
120
- ```
121
- ✅ .kiro/settings/templates/ - Specテンプレート
122
- ✅ .kiro/steering/ - Steeringテンプレート
123
- ✅ .kiro/project.json - プロジェクトメタデータ
124
- ✅ .cursor/commands/michi/ - Michi専用コマンド
125
- ✅ .env - 環境変数テンプレート(権限: 600)
126
- ```
127
-
128
- ### Step 5: 環境変数の設定
129
-
130
- `.env`ファイルが自動生成されているので、認証情報を設定します:
131
-
132
- ```bash
133
- # .envファイルを編集
134
- vim .env
135
- ```
136
-
137
- **最小限の設定(GitHub連携のみ)**:
138
-
139
- ```bash
140
- # GitHub設定(必須)
141
- GITHUB_TOKEN=ghp_your_token_here
142
- GITHUB_ORG=your-org
143
- ```
144
-
145
- > **Note (v0.5.0以降)**: `GITHUB_REPO` 環境変数は廃止されました。リポジトリ情報は `.kiro/project.json` の `repository` フィールドから自動的に取得されます。
146
-
147
- **完全な設定(Confluence/JIRA連携も使用)**:
148
-
149
- ```bash
150
- # Atlassian設定
151
- ATLASSIAN_URL=https://your-domain.atlassian.net
152
- ATLASSIAN_EMAIL=your-email@company.com
153
- ATLASSIAN_API_TOKEN=your-token-here
154
-
155
- # GitHub設定
156
- GITHUB_ORG=your-org
157
- GITHUB_TOKEN=ghp_xxx
158
-
159
- # Confluence共有スペース
160
- CONFLUENCE_PRD_SPACE=PRD
161
- CONFLUENCE_QA_SPACE=QA
162
- CONFLUENCE_RELEASE_SPACE=RELEASE
163
-
164
- # JIRAプロジェクトキー
165
- JIRA_PROJECT_KEYS=DEMO
166
-
167
- # JIRA Issue Type IDs(JIRAインスタンス固有 - 必須)
168
- JIRA_ISSUE_TYPE_STORY=10036
169
- JIRA_ISSUE_TYPE_SUBTASK=10037
170
- ```
171
-
172
- #### JIRA Issue Type IDの取得方法
173
-
174
- JIRA Issue Type IDは、JIRAインスタンスごとに異なるため、以下の方法で確認してください:
175
-
176
- **方法1: JIRA管理画面で確認**
177
-
178
- 1. JIRA管理画面にログイン
179
- 2. Settings > Issues > Issue types
180
- 3. 「Story」と「Subtask」のIDを確認
181
-
182
- **方法2: REST APIで確認**
183
-
184
- ```bash
185
- curl -u your-email@company.com:your-token \
186
- https://your-domain.atlassian.net/rest/api/3/issuetype
187
- ```
188
-
189
- レスポンスから「Story」と「Subtask」の`id`フィールドを取得します。
190
-
191
- ### Step 6: MCP設定(オプション)
192
-
193
- Cursor IDEでAtlassian MCPを使用する場合、MCP設定を行います。
194
-
195
- ```bash
196
- # MCPテンプレートをコピー(Michiリポジトリから)
197
- cp /path/to/michi/mcp.json.example ~/.cursor/mcp.json
198
-
199
- # 設定ファイルを編集
200
- vim ~/.cursor/mcp.json
201
- ```
202
-
203
- **mcp.json設定例**:
204
-
205
- ```json
206
- {
207
- "mcpServers": {
208
- "atlassian": {
209
- "command": "npx",
210
- "args": [
211
- "-y",
212
- "@atlassian/mcp-server-atlassian@latest"
213
- ],
214
- "env": {
215
- "ATLASSIAN_URL": "https://your-domain.atlassian.net",
216
- "ATLASSIAN_EMAIL": "your-email@company.com",
217
- "ATLASSIAN_API_TOKEN": "your-token-here"
218
- }
219
- }
220
- }
221
- }
222
- ```
223
-
224
- **注意**: MCP設定後、Cursor IDEを再起動してください。
225
-
226
- ### Step 7: 依存関係のインストール
227
-
228
- プロジェクトルートで依存関係をインストールします:
229
-
230
- ```bash
231
- npm install
232
- ```
233
-
234
- ### Step 8: GitHub認証の確認
235
-
236
- GitHub CLIが正しく認証されているか確認します:
237
-
238
- ```bash
239
- # 認証状態を確認
240
- gh auth status
241
-
242
- # 認証が必要な場合
243
- gh auth login
244
- gh auth setup-git
245
- ```
246
-
247
- ### Step 9: セットアップの確認
248
-
249
- すべてのファイルが正しく生成されているか確認します:
250
-
251
- ```bash
252
- # ディレクトリ構造を確認
253
- tree -L 3 .kiro .cursor
254
-
255
- # 期待される構造:
256
- # .kiro/
257
- # ├── project.json # Michiで管理(Gitにコミット)
258
- # ├── settings/ # cc-sddで生成(Git管理外)
259
- # │ ├── rules/ # Spec-Driven Development用ルール
260
- # │ └── templates/ # Spec用テンプレート
261
- # │ ├── design.md
262
- # │ ├── requirements.md
263
- # │ └── tasks.md
264
- # ├── steering/ # /kiro:steeringコマンドで作成(Git管理)
265
- # │ ├── product.md
266
- # │ ├── structure.md
267
- # │ └── tech.md
268
- # └── specs/ # /kiro:spec-initで作成(Git管理)
269
- #
270
- # .cursor/
271
- # ├── commands/
272
- # │ └── michi/
273
- # │ ├── confluence-sync.md
274
- # │ └── project-switch.md
275
- # └── rules/
276
- # ├── atlassian-mcp.mdc
277
- # ├── github-ssot.mdc
278
- # └── multi-project.mdc
279
- ```
280
-
281
- ### Step 10: Cursor IDEで開く
282
-
283
- ```bash
284
- # Cursor IDEでプロジェクトを開く
285
- cursor .
286
- ```
287
-
288
- ## ✅ セットアップ完了の確認
289
-
290
- 以下のチェックリストを確認してください:
291
-
292
- - [ ] `michi --version` が正常に動作する
293
- - [ ] `.kiro/project.json` が存在し、正しい内容が含まれている
294
- - [ ] `.env` ファイルが存在し、認証情報が設定されている
295
- - [ ] `.cursor/rules/` ディレクトリにルールファイルが存在する
296
- - [ ] `.cursor/commands/michi/` ディレクトリにコマンドファイルが存在する
297
- - [ ] `gh auth status` が成功する
298
- - [ ] Cursor IDEでプロジェクトが開ける
299
-
300
- ## 🎯 次のステップ
301
-
302
- セットアップが完了したら、[ワークフロー体験ガイド](./workflow-walkthrough.md)に進んでください。
303
-
304
- 実際にサンプル機能(`health-check-endpoint`)を使って、Michiの全ワークフローを体験できます。
305
-
306
- ## 🆘 トラブルシューティング
307
-
308
- セットアップ中に問題が発生した場合は、[トラブルシューティングガイド](./troubleshooting.md)を参照してください。
309
-
310
- よくある問題:
311
-
312
- ### npm installがエラーになる
313
-
314
- ```bash
315
- # キャッシュをクリア
316
- npm cache clean --force
317
- rm -rf node_modules package-lock.json
318
- npm install
319
- ```
320
-
321
- ### GitHub認証エラー
322
-
323
- ```bash
324
- # 認証を再実行
325
- gh auth logout
326
- gh auth login
327
- gh auth setup-git
328
- ```
329
-
330
- ### Cursor IDEでコマンドが認識されない
331
-
332
- 1. Cursor IDEを再起動
333
- 2. `.cursor/commands/` ディレクトリが存在するか確認
334
- 3. コマンドファイル(`.md`)が存在するか確認
335
-
336
- ### .envファイルの権限エラー
337
-
338
- ```bash
339
- # 権限を600に設定(所有者のみ読み書き可能)
340
- chmod 600 .env
341
- ```
342
-
343
- ## 📚 関連ドキュメント
344
-
345
- - [ワークフロー体験ガイド](./workflow-walkthrough.md) - 次のステップ
346
- - [検証チェックリスト](./verification-checklist.md) - 動作確認
347
- - [セットアップガイド](../getting-started/setup.md) - 詳細な設定
348
- - [クイックリファレンス](../reference/quick-reference.md) - コマンド一覧
349
-
350
-
351
-
352
-
353
-