spec-runner 1.0.5 → 1.0.7

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 (98) hide show
  1. package/README.md +33 -190
  2. package/bin/spec-runner.js +192 -706
  3. package/install.sh +6 -12
  4. package/package.json +3 -2
  5. package/templates/.spec-runner/hooks/pre-commit +33 -0
  6. package/templates/.spec-runner/hooks/pre-push +9 -0
  7. package/templates/.spec-runner/project.json.example +25 -0
  8. package/templates/.spec-runner/scripts/branch/create-uc-branch.sh +105 -0
  9. package/templates/.spec-runner/scripts/branch/uc-next-id.sh +17 -0
  10. package/templates/.spec-runner/scripts/branch/uc-next-start.sh +81 -0
  11. package/templates/.spec-runner/scripts/check/drift.sh +66 -0
  12. package/templates/.spec-runner/scripts/check/health.sh +103 -0
  13. package/templates/.spec-runner/scripts/check/naming.sh +51 -0
  14. package/templates/.spec-runner/scripts/check/schema-drift.sh +74 -0
  15. package/templates/.spec-runner/scripts/check/schema-sync.sh +153 -0
  16. package/templates/.spec-runner/scripts/check.sh +20 -0
  17. package/templates/.spec-runner/scripts/lib/uc-context.sh +75 -0
  18. package/templates/.spec-runner/scripts/openapi/openapi-generate.sh +207 -0
  19. package/templates/.spec-runner/scripts/setup/init-project.sh +152 -0
  20. package/templates/.spec-runner/scripts/spec-runner-core.sh +282 -0
  21. package/templates/.spec-runner/scripts/test/require-tests-green.sh +83 -0
  22. package/templates/.spec-runner/spec-runner.sh +30 -0
  23. package/templates/.spec-runner/steps//343/201/235/343/201/256/344/273/226/344/275/234/346/245/255.md +22 -0
  24. package/templates/.spec-runner/steps//343/202/277/343/202/271/343/202/257/344/270/200/350/246/247.md +132 -0
  25. package/templates/.spec-runner/steps//343/203/201/343/202/247/343/203/203/343/202/257/343/203/252/343/202/271/343/203/210.md +106 -0
  26. package/templates/.spec-runner/steps//343/203/206/343/202/271/343/203/210/350/250/255/350/250/210.md +50 -0
  27. package/templates/.spec-runner/steps//343/203/211/343/203/241/343/202/244/343/203/263/350/250/255/350/250/210.md +32 -0
  28. package/templates/.spec-runner/steps//344/273/225/346/247/230/347/255/226/345/256/232.md +219 -0
  29. package/templates/.spec-runner/steps//345/210/206/346/236/220.md +167 -0
  30. package/templates/.spec-runner/steps//345/256/237/350/243/205.md +91 -0
  31. package/templates/.spec-runner/steps//345/256/237/350/243/205/350/250/210/347/224/273.md +96 -0
  32. package/templates/.spec-runner/steps//346/206/262/347/253/240.md +74 -0
  33. package/templates/.spec-runner/steps//346/233/226/346/230/247/343/201/225/350/247/243/346/266/210.md +159 -0
  34. package/templates/.spec-runner/templates/UC-NNN-/343/203/246/343/203/274/343/202/271/343/202/261/343/203/274/343/202/271/345/220/215.md +22 -0
  35. package/templates/spec-runner-command.md +42 -0
  36. package/templates/base/.github/PULL_REQUEST_TEMPLATE.md +0 -43
  37. package/templates/base/.github/workflows/phase-gate-check.yml +0 -216
  38. package/templates/base/scripts/spec-runner.sh +0 -1177
  39. package/templates/base/templates/01_/350/246/201/344/273/266/345/256/232/347/276/251//343/201/262/343/201/252/345/275/242.md +0 -40
  40. package/templates/base/templates/03_/350/251/263/347/264/260/350/250/255/350/250/210//343/202/244/343/203/263/343/203/225/343/203/251.md +0 -14
  41. package/templates/base/templates/03_/350/251/263/347/264/260/350/250/255/350/250/210//343/203/206/343/203/274/343/203/226/343/203/253.md +0 -17
  42. package/templates/base/templates/03_/350/251/263/347/264/260/350/250/255/350/250/210//343/203/211/343/203/241/343/202/244/343/203/263.md +0 -18
  43. package/templates/base/templates/03_/350/251/263/347/264/260/350/250/255/350/250/210//343/203/246/343/203/274/343/202/271/343/202/261/343/203/274/343/202/271.md +0 -12
  44. package/templates/base/templates/99_/350/250/255/350/250/210/345/210/244/346/226/255/350/250/230/351/214/262//343/201/262/343/201/252/345/275/242.md +0 -46
  45. package/templates/base/templates/README.md +0 -32
  46. package/templates/base/templates//345/210/235/346/234/237/343/203/211/343/202/255/343/203/245/343/203/241/343/203/263/343/203/210/01_/346/206/262/347/253/240.md +0 -48
  47. package/templates/base/templates//345/210/235/346/234/237/343/203/211/343/202/255/343/203/245/343/203/241/343/203/263/343/203/210/02_/344/273/225/346/247/230.md +0 -39
  48. package/templates/base/templates//345/210/235/346/234/237/343/203/211/343/202/255/343/203/245/343/203/241/343/203/263/343/203/210/03_/347/224/250/350/252/236/351/233/206.md +0 -51
  49. package/templates/base/templates//345/210/235/346/234/237/343/203/211/343/202/255/343/203/245/343/203/241/343/203/263/343/203/210/99_/350/250/255/350/250/210/345/210/244/346/226/255/350/250/230/351/214/262/.gitkeep +0 -0
  50. package/templates/base/templates//345/210/235/346/234/237/343/203/211/343/202/255/343/203/245/343/203/241/343/203/263/343/203/210//343/203/206/343/203/263/343/203/227/343/203/254/343/203/274/343/203/210/344/270/200/350/246/247.md +0 -14
  51. package/templates/base/templates//345/210/235/346/234/237/343/203/211/343/202/255/343/203/245/343/203/241/343/203/263/343/203/210//346/214/257/343/202/212/350/277/224/343/202/212//350/262/240/345/202/265.md +0 -8
  52. package/templates/claude/.claude/commands/sr-/343/202/262/343/203/274/343/203/210/350/250/255/345/256/232.md +0 -9
  53. package/templates/claude/.claude/commands/sr-/343/203/206/343/202/271/343/203/210/350/250/255/350/250/210.md +0 -9
  54. package/templates/claude/.claude/commands/sr-/343/203/254/343/203/223/343/203/245/343/203/274.md +0 -9
  55. package/templates/claude/.claude/commands/sr-/344/273/225/346/247/230.md +0 -9
  56. package/templates/claude/.claude/commands/sr-/344/277/256/346/255/243.md +0 -9
  57. package/templates/claude/.claude/commands/sr-/345/210/235/346/234/237/345/214/226.md +0 -10
  58. package/templates/claude/.claude/commands/sr-/345/256/214/344/272/206.md +0 -9
  59. package/templates/claude/.claude/commands/sr-/345/256/237/350/243/205.md +0 -9
  60. package/templates/claude/.claude/commands/sr-/346/206/262/347/253/240.md +0 -9
  61. package/templates/claude/.claude/commands/sr-/346/246/202/350/246/201/350/250/255/350/250/210.md +0 -9
  62. package/templates/claude/.claude/commands/sr-/347/212/266/346/205/213.md +0 -9
  63. package/templates/claude/.claude/commands/sr-/347/267/212/346/200/245/344/277/256/346/255/243.md +0 -9
  64. package/templates/claude/.claude/commands/sr-/350/250/255/345/256/232.md +0 -11
  65. package/templates/claude/.claude/commands/sr-/350/251/263/347/264/260/350/250/255/350/250/210.md +0 -9
  66. package/templates/claude/.claude/hooks/pre-tool-use.sh +0 -79
  67. package/templates/claude/.claude/settings.json +0 -29
  68. package/templates/claude/CLAUDE.md +0 -141
  69. package/templates/copilot/.github/copilot-instructions.md +0 -25
  70. package/templates/copilot/.github/prompts/sr-/343/202/262/343/203/274/343/203/210/350/250/255/345/256/232.prompt.md +0 -14
  71. package/templates/copilot/.github/prompts/sr-/343/203/206/343/202/271/343/203/210/350/250/255/350/250/210.prompt.md +0 -13
  72. package/templates/copilot/.github/prompts/sr-/343/203/254/343/203/223/343/203/245/343/203/274.prompt.md +0 -14
  73. package/templates/copilot/.github/prompts/sr-/344/273/225/346/247/230.prompt.md +0 -13
  74. package/templates/copilot/.github/prompts/sr-/344/277/256/346/255/243.prompt.md +0 -14
  75. package/templates/copilot/.github/prompts/sr-/345/210/235/346/234/237/345/214/226.prompt.md +0 -15
  76. package/templates/copilot/.github/prompts/sr-/345/256/214/344/272/206.prompt.md +0 -13
  77. package/templates/copilot/.github/prompts/sr-/345/256/237/350/243/205.prompt.md +0 -13
  78. package/templates/copilot/.github/prompts/sr-/346/206/262/347/253/240.prompt.md +0 -13
  79. package/templates/copilot/.github/prompts/sr-/346/246/202/350/246/201/350/250/255/350/250/210.prompt.md +0 -13
  80. package/templates/copilot/.github/prompts/sr-/347/212/266/346/205/213.prompt.md +0 -13
  81. package/templates/copilot/.github/prompts/sr-/347/267/212/346/200/245/344/277/256/346/255/243.prompt.md +0 -14
  82. package/templates/copilot/.github/prompts/sr-/350/250/255/345/256/232.prompt.md +0 -13
  83. package/templates/copilot/.github/prompts/sr-/350/251/263/347/264/260/350/250/255/350/250/210.prompt.md +0 -14
  84. package/templates/cursor/.cursor/commands/sr-/343/202/262/343/203/274/343/203/210/350/250/255/345/256/232.md +0 -9
  85. package/templates/cursor/.cursor/commands/sr-/343/203/206/343/202/271/343/203/210/350/250/255/350/250/210.md +0 -9
  86. package/templates/cursor/.cursor/commands/sr-/343/203/254/343/203/223/343/203/245/343/203/274.md +0 -9
  87. package/templates/cursor/.cursor/commands/sr-/344/273/225/346/247/230.md +0 -9
  88. package/templates/cursor/.cursor/commands/sr-/344/277/256/346/255/243.md +0 -9
  89. package/templates/cursor/.cursor/commands/sr-/345/210/235/346/234/237/345/214/226.md +0 -10
  90. package/templates/cursor/.cursor/commands/sr-/345/256/214/344/272/206.md +0 -9
  91. package/templates/cursor/.cursor/commands/sr-/345/256/237/350/243/205.md +0 -9
  92. package/templates/cursor/.cursor/commands/sr-/346/206/262/347/253/240.md +0 -9
  93. package/templates/cursor/.cursor/commands/sr-/346/246/202/350/246/201/350/250/255/350/250/210.md +0 -9
  94. package/templates/cursor/.cursor/commands/sr-/347/212/266/346/205/213.md +0 -9
  95. package/templates/cursor/.cursor/commands/sr-/347/267/212/346/200/245/344/277/256/346/255/243.md +0 -9
  96. package/templates/cursor/.cursor/commands/sr-/350/250/255/345/256/232.md +0 -11
  97. package/templates/cursor/.cursor/commands/sr-/350/251/263/347/264/260/350/250/255/350/250/210.md +0 -9
  98. package/templates/cursor/.cursorrules +0 -25
package/README.md CHANGED
@@ -1,108 +1,10 @@
1
- # spec-runner — AI-driven DDD Phase Gate System
1
+ # spec-runner
2
2
 
3
- AI が設計を飛ばして実装に入るのを、**シェルとゲートで防ぐ**フェーズゲート。Claude Code / Cursor / GitHub Copilot 対応。
3
+ フェーズ駆動で設計を飛ばさないようにする仕組み。`npx spec-runner` でプロジェクトに `.spec-runner/` を入れ、**次のステップ** 1 本だけ返すコマンドに従って進める。
4
4
 
5
5
  ---
6
6
 
7
- ## 新規開発の流れ(最初から)
8
-
9
- ### 1. やりたいことを AI に相談する
10
-
11
- Cursor や Claude で「〇〇がしたい」と話す。
12
-
13
- ### 2. AI がフォルダ構造を提案し、人が OK する
14
-
15
- AI が次のような案を出す:
16
-
17
- - 使用フレームワーク・言語
18
- - 拡張子
19
- - 各レイヤーの**ルートパス**(Domain / UseCase / Infrastructure)
20
- - マイグレーションのディレクトリ
21
- - テストのディレクトリ
22
- - 必要ならサブフォルダ案(例: UseCase を `会員登録/` `注文/` で分ける)
23
-
24
- 人が「それで」と OK した時点で、**パスが決まった**状態になる。
25
-
26
- ### 3. spec-runner を入れる
27
-
28
- ```bash
29
- npx spec-runner
30
- ```
31
-
32
- 対話では**どの開発環境か**だけ聞かれる(AI ツール・CI・ドキュメント言語)。
33
- ここまでで、`.spec-runner/config.sh`(既定値)と `.spec-runner/scripts`・`.spec-runner/templates`・`docs/` ができる。CI で github-actions などを選んだ場合は `.github/` もできる。
34
-
35
- ### 3.5 プロジェクトの土台を書く(推奨・init の前)
36
-
37
- - **`docs/01_憲章.md`** … プロジェクト憲章(不変原則・品質ルール・フォルダ構成の考え方)。技術に依存しない。
38
- - **`docs/02_仕様.md`** … 何を作るか・なぜか・スコープ・想定ユーザー。
39
-
40
- チャットで `/sr-憲章` または `/sr-仕様` と入力すると編集を案内できる。
41
- ([Spec Kit](https://github.com/tessl-labs/spec-kit) の constitution / specify に相当。)
42
-
43
- ### 4. init で詳細設定と最初のユースケースを開始する
44
-
45
- ```bash
46
- ./.spec-runner/scripts/spec-runner.sh init "会員登録" "会員"
47
- ```
48
-
49
- **init を実行すると対話が始まる**(初回のみ)。AI と相談して決めた次の内容を入力する:
50
-
51
- - 使用フレームワーク・言語(メモ用・任意)
52
- - Domain / UseCase / Infrastructure のパス
53
- - マイグレーション・テストディレクトリ、ソース拡張子
54
- - Domain が import してはいけないパターン(正規表現)
55
- - DDD を使うか / TDD を必須にするか / CI / ドキュメントの言語
56
-
57
- 設定後、`docs/01_要件/会員登録.md` ができ、ブランチ `feature/uc-会員登録` が作られる。
58
-
59
- - 引数なしで `./.spec-runner/scripts/spec-runner.sh init` だけ実行すると、**設定対話のみ**(ユースケースは作らない)。
60
- - すでに設定済みの場合は対話をスキップし、そのままユースケース作成に進む。
61
-
62
- ### 5. 開発フロー(この順で進める)
63
-
64
- ```
65
- ① 要件定義
66
- docs/01_要件/会員登録.md を書く
67
-
68
- ② 要件レビュー通過
69
- ./.spec-runner/scripts/spec-runner.sh review-pass docs/01_要件/会員登録.md
70
- ./.spec-runner/scripts/spec-runner.sh set-gate glossary_checked
71
-
72
- ③ 概要設計
73
- ./.spec-runner/scripts/spec-runner.sh design-high
74
- docs/02_概要設計/会員登録.md を書く → review-pass
75
-
76
- ④ 詳細設計(この順)
77
- ./.spec-runner/scripts/spec-runner.sh design-detail domain → ドメイン.md を書く → review-pass
78
- ./.spec-runner/scripts/spec-runner.sh design-detail usecase → ユースケース.md を書く → review-pass
79
- ./.spec-runner/scripts/spec-runner.sh design-detail table → テーブル.md を書く → review-pass
80
- ./.spec-runner/scripts/spec-runner.sh design-detail infra → インフラ.md を書く → review-pass
81
-
82
- ⑤ テスト設計
83
- ./.spec-runner/scripts/spec-runner.sh test-design
84
- docs/04_テスト設計/会員登録.md を書く
85
- テストコードを先に書く(Red)→ コミット
86
- ./.spec-runner/scripts/spec-runner.sh set-gate test_code_committed
87
- ./.spec-runner/scripts/spec-runner.sh review-pass docs/04_テスト設計/会員登録.md
88
-
89
- ⑥ 実装
90
- ./.spec-runner/scripts/spec-runner.sh implement
91
- テストを Green にする実装を書く
92
-
93
- ⑦ 完了
94
- ./.spec-runner/scripts/spec-runner.sh complete
95
- ```
96
-
97
- TDD はデフォルトで有効。実装に進むには「テスト設計ドキュメント」と「テストコードのコミット」が必須。無効にしたいときは `.spec-runner/config.sh` で `export TDD_ENABLED="false"`。
98
-
99
- ### 6. PR とマージ
100
-
101
- `git push` して PR。`.github/workflows/phase-gate-check.yml` がドキュメントとパスの整合をチェックする。
102
-
103
- ---
104
-
105
- ## インストール方法
7
+ ## インストール
106
8
 
107
9
  ```bash
108
10
  npx spec-runner
@@ -111,113 +13,44 @@ npx spec-runner
111
13
  または:
112
14
 
113
15
  ```bash
114
- curl -sSL https://raw.githubusercontent.com/spec-runner/spec-runner/main/install.sh | bash
16
+ curl -sSL https://raw.githubusercontent.com/TEEE88/spec-runner/main/install.sh | bash
115
17
  ```
116
18
 
117
- [Use this template](https://github.com/spec-runner/spec-runner/generate) からリポジトリを作る方法もある。
118
-
119
- ---
120
-
121
- ## 強制の仕組み(3層)
122
-
123
- | 層 | 内容 |
124
- |----|------|
125
- | **1. spec-runner.sh** | 各コマンドで「必要なドキュメント・ゲート」をチェック。足りないと先に進めない。 |
126
- | **2. 実装前ブロック** | Claude Code は `.claude/hooks` で implement 以外のコード出力をブロック。Cursor / Copilot は `.cursorrules` 等で「status で phase を確認し、implement でないときはコードを書かない」とルール指定。 |
127
- | **3. CI** | `.github/workflows/phase-gate-check.yml` が PR 時にドキュメント鮮度・DDD 依存方向などをチェック。 |
19
+ いずれも、プロジェクト直下に `.spec-runner/` ができる。
128
20
 
129
21
  ---
130
22
 
131
- ## Spec Kit との対応
23
+ ## 使い方
132
24
 
133
- [Spec Kit](https://github.com/tessl-labs/spec-kit) 風の「憲章 → 仕様 → 計画 → 実装」を取り入れている。
25
+ 1. プロジェクトルートで次を実行する。
134
26
 
135
- | Spec Kit | spec-runner での対応 |
136
- |----------|----------------------|
137
- | ① constitution(憲章) | `docs/01_憲章.md`。不変原則・品質ルール。`/sr-憲章` |
138
- | ② specify(仕様) | `docs/02_仕様.md`(プロジェクト全体)+ `docs/01_要件/<UC>.md`(機能単位)。`/sr-仕様` |
139
- | ③ clarify(曖昧さ解消) | 各フェーズのレビュー・`docs/03_用語集.md` での用語統一 |
140
- | ④ plan(技術計画) | `design-high` → `design-detail`(domain / usecase / table / infra) |
141
- | ⑤ analyze(整合性) | `review-pass` と CI の phase-gate-check |
142
- | ⑥ tasks(タスク分割) | テスト設計・実装フェーズでのタスク単位の進め方 |
143
- | ⑦ implement | `implement` → `complete` |
144
-
145
- ---
27
+ ```bash
28
+ ./.spec-runner/spec-runner.sh 次のステップ --json
29
+ ```
146
30
 
147
- ## 設定
31
+ 2. 出力の `command_file` に書いてある `.spec-runner/steps/*.md` を開き、その指示に従って作業する。
148
32
 
149
- `.spec-runner/config.sh` でパスやコマンドを変えられる。CI とゲートはこの設定を参照する。
33
+ 3. 作業が終わったら、再度 1 を実行する。次のステップが返る。
150
34
 
151
- - `DOMAIN_PATH` / `USECASE_PATH` / `INFRA_PATH` … 各レイヤーの**ルート**。その下のサブフォルダ(UseCase 内の `会員登録/` など)は自由。強制したいルールは `.cursorrules` や `CLAUDE.md` に書く。
152
- - `TEST_DIR` … テストの置き場所。TDD 時の「未コミット検出」に使う。
153
- - `TDD_ENABLED` … `false` にすると、テストなしでも implement に進める。
35
+ AI から使う場合は、`/spec-runner` のように「spec-runner を実行する」と伝えればよい。フェーズやコマンド名を覚える必要はない。
154
36
 
155
37
  ---
156
38
 
157
- ## 導入後に増えるもの
39
+ ## 導入後にできるもの
158
40
 
159
41
  ```
160
42
  <プロジェクトルート>/
161
- ├── .spec-runner/ # npx で入れたスクリプト・テンプレートをここに集約
162
- ├── config.sh # パス・拡張子・TDD
163
- ├── state.json # 現在のフェーズ(gitignore 推奨)
164
- ├── scripts/
165
- │ │ └── spec-runner.sh
166
- │ └── templates/ # 生成用+初期ドキュメント(DDD用語・付番は日本語)
167
- ├── 01_要件定義/ひな形.md # init docs/01_要件/<UC>.md を生成
168
- ├── 03_詳細設計/ # design-detail で docs/03_詳細設計/<UC>/*.md を生成
169
- │ │ ├── ドメイン.md
170
- │ │ ├── ユースケース.md
171
- │ │ ├── テーブル.md
172
- │ │ └── インフラ.md
173
- │ ├── 99_設計判断記録/ひな形.md # ADR ひな形(docs/99_設計判断記録/ にもコピー)
174
- │ └── 初期ドキュメント/ # deploy 時に docs/ に展開
175
- │ ├── 01_憲章.md
176
- │ ├── 02_仕様.md
177
- │ ├── 03_用語集.md
178
- │ ├── テンプレート一覧.md
179
- │ ├── 振り返り/負債.md
180
- │ └── 99_設計判断記録/.gitkeep
181
- ├── .github/ # CI で github-actions を選択した場合のみ
182
- │ ├── workflows/phase-gate-check.yml
183
- │ └── PULL_REQUEST_TEMPLATE.md
184
- └── docs/ # 付番済み(01_〜04_、99_)要件・概要・詳細設計・テスト設計・設計判断記録
185
- ```
186
-
187
- 選択した AI ツールに応じて `.claude/` や `.cursorrules` や `.github/copilot-instructions.md` などが追加される。
188
-
189
- ---
190
-
191
- ## アップデート
192
-
193
- ```bash
194
- npx spec-runner --update
43
+ └── .spec-runner/
44
+ ├── spec-runner.sh # 入口(次のステップ --json)
45
+ ├── project.json # 設定(ブランチ命名・必須ドキュメント・テストコマンド等)
46
+ ├── phase-locks.json # フェーズの通過状態
47
+ ├── grade-history.json # グレード(LOOP1 / A / B / C)
48
+ ├── scripts/ # spec-runner-core.sh, check, branch, test 等
49
+ ├── steps/ # 憲章・ドメイン設計・仕様策定・曖昧さ解消・テスト設計・実装 等の .md
50
+ ├── templates/ # UC 仕様書ひな形
51
+ └── docs/ # フロー全体・振る舞い仕様などの説明
195
52
  ```
196
53
 
197
- `.spec-runner/scripts/spec-runner.sh` と `.claude/hooks/` が更新される。ドキュメントや config は上書きしない。
198
-
199
- ---
200
-
201
- ## スラッシュコマンド
202
-
203
- **`/sr-状態` を実行すると、現在のフェーズと「次にやるべきこと」(次に打つコマンド)が動的に表示される。** フェーズ移行(概要設計〜実装完了)はこの案内に従えばよい。
204
-
205
- | コマンド | 説明 |
206
- |----------|------|
207
- | `/sr-設定` | 詳細設定の対話のみ |
208
- | `/sr-憲章` | プロジェクト憲章(`docs/01_憲章.md`)を編集(init 前推奨) |
209
- | `/sr-仕様` | プロジェクト仕様(`docs/02_仕様.md`)を編集(init 前推奨) |
210
- | `/sr-初期化` [ユースケース名] [集約名] | ユースケース開始(未設定時は対話から) |
211
- | `/sr-状態` | フェーズ・ゲート+**次にやるべきこと**を表示 |
212
- | `/sr-レビュー` ファイル | レビュー通過 |
213
- | `/sr-ゲート設定` ゲート名 | ゲート手動通過 |
214
- | `/sr-修正` 内容 | 修正 |
215
- | `/sr-緊急修正` 内容 | 緊急修正 |
216
-
217
- 概要設計・詳細設計・テスト設計・実装・完了は、`/sr-状態` の案内に表示されるので個別に指定不要。
218
-
219
- 定義: Claude `.claude/commands/` / Cursor `.cursor/commands/` / Copilot `.github/prompts/*.prompt.md`(いずれもファイル名・コマンド名は日本語)
220
-
221
54
  ---
222
55
 
223
56
  ## 必要環境
@@ -229,6 +62,16 @@ npx spec-runner --update
229
62
 
230
63
  ---
231
64
 
65
+ ## 上書きインストール
66
+
67
+ すでに `.spec-runner/` があるときは上書きしない。上書きしたい場合:
68
+
69
+ ```bash
70
+ SPEC_RUNNER_FORCE=1 npx spec-runner
71
+ ```
72
+
73
+ ---
74
+
232
75
  ## ライセンス
233
76
 
234
77
  MIT