@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.
- package/README.md +77 -847
- package/dist/scripts/phase-runner.js +1 -1
- package/dist/scripts/phase-runner.js.map +1 -1
- package/dist/scripts/utils/multi-repo-validator.d.ts +18 -0
- package/dist/scripts/utils/multi-repo-validator.d.ts.map +1 -1
- package/dist/scripts/utils/multi-repo-validator.js +42 -0
- package/dist/scripts/utils/multi-repo-validator.js.map +1 -1
- package/dist/scripts/utils/tasks-format-validator.js +3 -3
- package/dist/scripts/utils/tasks-format-validator.js.map +1 -1
- package/docs/README.md +20 -83
- package/docs/getting-started/configuration.md +379 -0
- package/docs/getting-started/installation.md +59 -0
- package/docs/getting-started/quick-start.md +76 -0
- package/docs/guides/ai-tools.md +311 -0
- package/docs/guides/atlassian-integration.md +116 -0
- package/docs/guides/claude-code.md +155 -0
- package/docs/guides/multi-repo.md +117 -0
- package/docs/guides/workflow.md +382 -0
- package/docs/reference/ai-commands.md +92 -0
- package/docs/reference/cli.md +756 -0
- package/docs/reference/environment-variables.md +192 -0
- package/docs/troubleshooting.md +543 -0
- package/package.json +1 -1
- package/scripts/phase-runner.ts +1 -1
- package/scripts/utils/__tests__/multi-repo-validator.test.ts +159 -1
- package/scripts/utils/multi-repo-validator.ts +50 -0
- package/scripts/utils/tasks-format-validator.ts +3 -3
- package/templates/claude/agents/e2e-first-planner/AGENT.md +1 -1
- package/templates/claude/agents/pr-resolver/AGENT.md +15 -3
- package/templates/claude/commands/michi/e2e-plan.md +1 -1
- package/templates/claude/commands/michi/spec-design.md +2 -2
- package/templates/claude/commands/michi/spec-tasks.md +156 -0
- package/templates/claude/commands/michi/test-planning.md +1 -1
- package/templates/claude/commands/michi/validate-design.md +3 -3
- package/templates/claude/commands/michi-multi-repo/impl-all.md +30 -1
- package/templates/claude/commands/michi-multi-repo/propagate-specs.md +14 -1
- package/templates/claude/commands/michi-multi-repo/spec-review.md +16 -2
- package/templates/claude-agent/agents/repo-spec-executor.md +1 -1
- package/templates/claude-agent/commands/michi/spec-tasks.md +117 -0
- package/templates/claude-agent/rules/code-size-monitor.md +26 -0
- package/templates/claude-agent/rules/code-size-rules.md +32 -0
- package/templates/codex/AGENTS.override.md +1 -1
- package/templates/codex/rules/README.md +2 -2
- package/templates/cursor/commands/michi/spec-tasks.md +117 -0
- package/templates/michi/cc-sdd-overrides/settings/rules/design-review-michi.md +1 -1
- package/docs/context.md +0 -59
- package/docs/michi-development/contributing/development.md +0 -341
- package/docs/michi-development/contributing/release.md +0 -365
- package/docs/michi-development/design/config-unification.md +0 -733
- package/docs/michi-development/design/design-config-current-state.md +0 -330
- package/docs/michi-development/design/design-config-implementation.md +0 -628
- package/docs/michi-development/design/design-config-migration.md +0 -952
- package/docs/michi-development/design/design-config-security.md +0 -771
- package/docs/michi-development/design/design-config-solution.md +0 -583
- package/docs/michi-development/design/design-config-testing.md +0 -892
- package/docs/michi-development/testing/manual-verification-flow.md +0 -871
- package/docs/michi-development/testing/manual-verification-other-tools.md +0 -1279
- package/docs/michi-development/testing/manual-verification-troubleshooting.md +0 -122
- package/docs/michi-development/testing/pre-publish-checklist.md +0 -560
- package/docs/michi-development/testing-strategy.md +0 -87
- package/docs/plan.md +0 -275
- package/docs/user-guide/getting-started/github-token-setup.md +0 -510
- package/docs/user-guide/getting-started/new-repository-setup.md +0 -704
- package/docs/user-guide/getting-started/quick-start.md +0 -212
- package/docs/user-guide/getting-started/setup.md +0 -819
- package/docs/user-guide/guides/agent-skills-integration.md +0 -222
- package/docs/user-guide/guides/customization.md +0 -537
- package/docs/user-guide/guides/internationalization.md +0 -540
- package/docs/user-guide/guides/migration-guide.md +0 -138
- package/docs/user-guide/guides/multi-project.md +0 -368
- package/docs/user-guide/guides/multi-repo-guide.md +0 -1590
- package/docs/user-guide/guides/phase-automation.md +0 -419
- package/docs/user-guide/guides/workflow.md +0 -574
- package/docs/user-guide/hands-on/README.md +0 -142
- package/docs/user-guide/hands-on/claude-agent-setup.md +0 -597
- package/docs/user-guide/hands-on/claude-setup.md +0 -452
- package/docs/user-guide/hands-on/cursor-setup.md +0 -353
- package/docs/user-guide/hands-on/troubleshooting.md +0 -964
- package/docs/user-guide/hands-on/verification-checklist.md +0 -439
- package/docs/user-guide/hands-on/workflow-walkthrough.md +0 -1078
- package/docs/user-guide/reference/config.md +0 -589
- package/docs/user-guide/reference/multi-repo-api.md +0 -771
- package/docs/user-guide/reference/quick-reference.md +0 -297
- package/docs/user-guide/reference/security-test-payloads.md +0 -50
- package/docs/user-guide/reference/tasks-template.md +0 -550
- package/docs/user-guide/release/ci-setup-java.md +0 -114
- package/docs/user-guide/release/ci-setup-nodejs.md +0 -94
- package/docs/user-guide/release/ci-setup-php.md +0 -102
- package/docs/user-guide/release/ci-setup-troubleshooting.md +0 -94
- package/docs/user-guide/release/ci-setup.md +0 -188
- package/docs/user-guide/release/release-flow.md +0 -476
- package/docs/user-guide/templates/test-specs/README.md +0 -173
- package/docs/user-guide/templates/test-specs/e2e-test-spec-template.md +0 -553
- package/docs/user-guide/templates/test-specs/integration-test-spec-template.md +0 -435
- package/docs/user-guide/templates/test-specs/performance-test-spec-template.md +0 -454
- package/docs/user-guide/templates/test-specs/security-test-spec-template.md +0 -625
- package/docs/user-guide/templates/test-specs/unit-test-spec-template.md +0 -328
- package/docs/user-guide/testing/integration-tests.md +0 -312
- package/docs/user-guide/testing/tdd-cycle.md +0 -349
- package/docs/user-guide/testing/test-execution-flow.md +0 -396
- package/docs/user-guide/testing/test-failure-handling.md +0 -521
- package/docs/user-guide/testing/test-planning-flow.md +0 -185
- package/docs/user-guide/testing-strategy.md +0 -185
- package/docs/verification-guide.md +0 -518
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
# 環境変数リファレンス
|
|
2
|
+
|
|
3
|
+
このドキュメントでは、Michiで使用するすべての環境変数を説明します。
|
|
4
|
+
|
|
5
|
+
## 環境変数の読み込み順序
|
|
6
|
+
|
|
7
|
+
Michiは以下の順序で環境変数を読み込みます。後から読み込まれた値が優先されます。
|
|
8
|
+
|
|
9
|
+
1. **システム環境変数**
|
|
10
|
+
2. **グローバル設定**(`~/.michi/.env`)
|
|
11
|
+
3. **プロジェクト設定**(`.env`)← 最優先
|
|
12
|
+
|
|
13
|
+
## 環境変数一覧
|
|
14
|
+
|
|
15
|
+
### Atlassian認証(必須)
|
|
16
|
+
|
|
17
|
+
| 変数名 | 必須/オプション | デフォルト値 | 説明 |
|
|
18
|
+
|--------|----------------|--------------|------|
|
|
19
|
+
| `ATLASSIAN_URL` | 必須 | - | AtlassianサイトのベースURL(例: `https://your-domain.atlassian.net`) |
|
|
20
|
+
| `ATLASSIAN_EMAIL` | 必須 | - | Atlassianアカウントのメールアドレス |
|
|
21
|
+
| `ATLASSIAN_API_TOKEN` | 必須 | - | Atlassian API トークン([取得方法](https://id.atlassian.com/manage-profile/security/api-tokens)) |
|
|
22
|
+
| `ATLASSIAN_REQUEST_DELAY` | オプション | `500` | APIリクエスト間隔(ミリ秒)。レートリミット対策 |
|
|
23
|
+
|
|
24
|
+
### JIRA設定(必須)
|
|
25
|
+
|
|
26
|
+
| 変数名 | 必須/オプション | デフォルト値 | 説明 |
|
|
27
|
+
|--------|----------------|--------------|------|
|
|
28
|
+
| `JIRA_PROJECT_KEYS` | 必須 | - | JIRAプロジェクトキー(カンマ区切りで複数指定可能、例: `PROJECT1,PROJECT2`) |
|
|
29
|
+
| `JIRA_ISSUE_TYPE_STORY` | 必須 | - | Story Issue Type ID(JIRAインスタンス固有、例: `10036`)。[確認方法](#jira-issue-type-id確認方法) |
|
|
30
|
+
| `JIRA_ISSUE_TYPE_SUBTASK` | 必須 | - | Subtask Issue Type ID(JIRAインスタンス固有、例: `10037`)。[確認方法](#jira-issue-type-id確認方法) |
|
|
31
|
+
| `JIRA_STORY_POINTS_FIELD` | オプション | `customfield_100` | Story Pointsのカスタムフィールド ID。[確認方法](#カスタムフィールド確認方法) |
|
|
32
|
+
| `JIRA_EPIC_LINK_FIELD` | オプション | `customfield_10014` | Epic Linkのカスタムフィールド ID。[確認方法](#カスタムフィールド確認方法) |
|
|
33
|
+
|
|
34
|
+
#### JIRA Issue Type ID確認方法
|
|
35
|
+
|
|
36
|
+
**方法1: REST API(推奨)**
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
curl -u your-email@company.com:your-token \
|
|
40
|
+
https://your-domain.atlassian.net/rest/api/3/issuetype
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
レスポンスから `"id"` フィールドを確認してください。
|
|
44
|
+
|
|
45
|
+
**方法2: JIRA管理画面**
|
|
46
|
+
|
|
47
|
+
1. JIRA設定 > Issues > Issue types を開く
|
|
48
|
+
2. StoryとSub-taskのIssue Type IDを確認
|
|
49
|
+
|
|
50
|
+
#### カスタムフィールド確認方法
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
curl -u your-email@company.com:your-token \
|
|
54
|
+
https://your-domain.atlassian.net/rest/api/3/field
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
レスポンスから該当フィールドの `"id"` を確認してください。
|
|
58
|
+
|
|
59
|
+
### Confluence設定(オプション)
|
|
60
|
+
|
|
61
|
+
| 変数名 | 必須/オプション | デフォルト値 | 説明 |
|
|
62
|
+
|--------|----------------|--------------|------|
|
|
63
|
+
| `CONFLUENCE_PRD_SPACE` | オプション | `PRD` | 要件定義書・設計書を保存するスペースキー |
|
|
64
|
+
| `CONFLUENCE_QA_SPACE` | オプション | `QA` | テスト関連ドキュメントを保存するスペースキー |
|
|
65
|
+
| `CONFLUENCE_RELEASE_SPACE` | オプション | `RELEASE` | リリースノートを保存するスペースキー |
|
|
66
|
+
| `CONFLUENCE_AUTO_POLL` | オプション | `false` | 承認ゲートで自動ポーリングを有効にする(`true` or `false`) |
|
|
67
|
+
| `CONFLUENCE_APPROVAL_PAGE_ID` | オプション | - | 承認ゲート用のページID(自動ポーリング有効時に必要) |
|
|
68
|
+
|
|
69
|
+
### GitHub設定(オプション)
|
|
70
|
+
|
|
71
|
+
| 変数名 | 必須/オプション | デフォルト値 | 説明 |
|
|
72
|
+
|--------|----------------|--------------|------|
|
|
73
|
+
| `GITHUB_ORG` | オプション | - | GitHub組織名(例: `your-github-org`) |
|
|
74
|
+
| `GITHUB_TOKEN` | オプション | - | GitHub Personal Access Token([取得方法](https://github.com/settings/tokens)) |
|
|
75
|
+
|
|
76
|
+
**注意**: `GITHUB_REPO` は非推奨です。リポジトリ情報は `.kiro/project.json` の `repository` フィールドで管理してください。
|
|
77
|
+
|
|
78
|
+
### Slack通知(オプション)
|
|
79
|
+
|
|
80
|
+
| 変数名 | 必須/オプション | デフォルト値 | 説明 |
|
|
81
|
+
|--------|----------------|--------------|------|
|
|
82
|
+
| `SLACK_WEBHOOK_URL` | オプション | - | Slack Incoming Webhook URL([取得方法](https://api.slack.com/messaging/webhooks)) |
|
|
83
|
+
|
|
84
|
+
### ワークフロー承認ゲート(オプション)
|
|
85
|
+
|
|
86
|
+
| 変数名 | 必須/オプション | デフォルト値 | 説明 |
|
|
87
|
+
|--------|----------------|--------------|------|
|
|
88
|
+
| `APPROVAL_GATES_REQUIREMENTS` | オプション | `pm,director` | 要件定義後の承認者(カンマ区切り) |
|
|
89
|
+
| `APPROVAL_GATES_DESIGN` | オプション | `architect,director` | 設計後の承認者(カンマ区切り) |
|
|
90
|
+
| `APPROVAL_GATES_RELEASE` | オプション | `sm,director` | リリース前の承認者(カンマ区切り) |
|
|
91
|
+
|
|
92
|
+
### リリース設定(オプション)
|
|
93
|
+
|
|
94
|
+
| 変数名 | 必須/オプション | デフォルト値 | 説明 |
|
|
95
|
+
|--------|----------------|--------------|------|
|
|
96
|
+
| `RELEASE_VERSION` | オプション | `v1.0.0` | リリースバージョン(例: `v1.2.3`) |
|
|
97
|
+
|
|
98
|
+
## 設定ファイル構成
|
|
99
|
+
|
|
100
|
+
### グローバル設定(~/.michi/.env)
|
|
101
|
+
|
|
102
|
+
すべてのプロジェクトで共通する認証情報を設定します。
|
|
103
|
+
|
|
104
|
+
**セットアップ**:
|
|
105
|
+
```bash
|
|
106
|
+
mkdir -p ~/.michi
|
|
107
|
+
touch ~/.michi/.env
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
**設定例**:
|
|
111
|
+
```bash
|
|
112
|
+
# Atlassian認証(組織共通)
|
|
113
|
+
ATLASSIAN_URL=https://your-domain.atlassian.net
|
|
114
|
+
ATLASSIAN_EMAIL=your-email@company.com
|
|
115
|
+
ATLASSIAN_API_TOKEN=your-token-here
|
|
116
|
+
|
|
117
|
+
# GitHub設定(組織共通)
|
|
118
|
+
GITHUB_ORG=your-github-org
|
|
119
|
+
GITHUB_TOKEN=ghp_xxxxxxxxxxxxx
|
|
120
|
+
|
|
121
|
+
# Confluenceスペース(組織共通)
|
|
122
|
+
CONFLUENCE_PRD_SPACE=PRD
|
|
123
|
+
CONFLUENCE_QA_SPACE=QA
|
|
124
|
+
CONFLUENCE_RELEASE_SPACE=RELEASE
|
|
125
|
+
|
|
126
|
+
# JIRA設定(組織共通)
|
|
127
|
+
JIRA_PROJECT_KEYS=PROJECT
|
|
128
|
+
JIRA_ISSUE_TYPE_STORY=10036
|
|
129
|
+
JIRA_ISSUE_TYPE_SUBTASK=10037
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
**メリット**:
|
|
133
|
+
- すべてのプロジェクトで共通の認証情報を一度だけ定義
|
|
134
|
+
- 新しいプロジェクトでも認証情報の再入力が不要
|
|
135
|
+
|
|
136
|
+
**セキュリティ上の注意**:
|
|
137
|
+
- 単一組織の場合: グローバル設定を推奨
|
|
138
|
+
- 複数組織の場合: プロジェクトごとに `.env` を設定することを推奨
|
|
139
|
+
|
|
140
|
+
### プロジェクト設定(.env)
|
|
141
|
+
|
|
142
|
+
プロジェクト固有の設定や、グローバル設定を上書きする場合に使用します。
|
|
143
|
+
|
|
144
|
+
**セットアップ**:
|
|
145
|
+
```bash
|
|
146
|
+
cp env.example .env
|
|
147
|
+
# その後、.envを編集
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
**設定例**:
|
|
151
|
+
```bash
|
|
152
|
+
# プロジェクト固有のJIRA設定
|
|
153
|
+
JIRA_PROJECT_KEYS=MY_PROJECT
|
|
154
|
+
|
|
155
|
+
# プロジェクト固有のConfluenceスペース
|
|
156
|
+
CONFLUENCE_PRD_SPACE=MY_PROJECT_PRD
|
|
157
|
+
|
|
158
|
+
# その他の設定はグローバル設定を使用
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
## 環境変数の検証
|
|
162
|
+
|
|
163
|
+
設定した環境変数が正しいことを確認します。
|
|
164
|
+
|
|
165
|
+
### すべての設定を検証
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
michi preflight
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### JIRA接続確認
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
michi preflight jira
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### Confluence接続確認
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
michi preflight confluence
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
### セキュリティチェック
|
|
184
|
+
|
|
185
|
+
```bash
|
|
186
|
+
michi config:check-security
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
## 次のステップ
|
|
190
|
+
|
|
191
|
+
- [トラブルシューティング](../troubleshooting.md) - よくある問題と解決策
|
|
192
|
+
- [環境設定ガイド](../getting-started/configuration.md) - 詳細な設定手順
|