spec-runner 1.0.6 → 1.0.8

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