spec-runner 1.0.6 → 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.
- package/README.md +33 -188
- package/bin/spec-runner.js +192 -706
- package/install.sh +6 -12
- package/package.json +3 -2
- package/templates/.spec-runner/hooks/pre-commit +33 -0
- package/templates/.spec-runner/hooks/pre-push +9 -0
- package/templates/.spec-runner/project.json.example +25 -0
- package/templates/.spec-runner/scripts/branch/create-uc-branch.sh +105 -0
- package/templates/.spec-runner/scripts/branch/uc-next-id.sh +17 -0
- package/templates/.spec-runner/scripts/branch/uc-next-start.sh +81 -0
- package/templates/.spec-runner/scripts/check/drift.sh +66 -0
- package/templates/.spec-runner/scripts/check/health.sh +103 -0
- package/templates/.spec-runner/scripts/check/naming.sh +51 -0
- package/templates/.spec-runner/scripts/check/schema-drift.sh +74 -0
- package/templates/.spec-runner/scripts/check/schema-sync.sh +153 -0
- package/templates/.spec-runner/scripts/check.sh +20 -0
- package/templates/.spec-runner/scripts/lib/uc-context.sh +75 -0
- package/templates/.spec-runner/scripts/openapi/openapi-generate.sh +207 -0
- package/templates/.spec-runner/scripts/setup/init-project.sh +152 -0
- package/templates/.spec-runner/scripts/spec-runner-core.sh +282 -0
- package/templates/.spec-runner/scripts/test/require-tests-green.sh +83 -0
- package/templates/.spec-runner/spec-runner.sh +30 -0
- package/templates/.spec-runner/steps//343/201/235/343/201/256/344/273/226/344/275/234/346/245/255.md +22 -0
- package/templates/.spec-runner/steps//343/202/277/343/202/271/343/202/257/344/270/200/350/246/247.md +132 -0
- 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
- package/templates/.spec-runner/steps//343/203/206/343/202/271/343/203/210/350/250/255/350/250/210.md +50 -0
- 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
- package/templates/.spec-runner/steps//344/273/225/346/247/230/347/255/226/345/256/232.md +219 -0
- package/templates/.spec-runner/steps//345/210/206/346/236/220.md +167 -0
- package/templates/.spec-runner/steps//345/256/237/350/243/205.md +91 -0
- package/templates/.spec-runner/steps//345/256/237/350/243/205/350/250/210/347/224/273.md +96 -0
- package/templates/.spec-runner/steps//346/206/262/347/253/240.md +74 -0
- package/templates/.spec-runner/steps//346/233/226/346/230/247/343/201/225/350/247/243/346/266/210.md +159 -0
- 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
- package/templates/spec-runner-command.md +42 -0
- package/templates/base/.github/PULL_REQUEST_TEMPLATE.md +0 -43
- package/templates/base/.github/workflows/phase-gate-check.yml +0 -216
- package/templates/base/scripts/spec-runner.sh +0 -1144
- 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
- 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
- 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
- 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
- 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
- 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
- package/templates/base/templates/README.md +0 -32
- 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
- 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
- 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
- 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
- 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
- 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
- package/templates/claude/.claude/commands/sr-/343/202/262/343/203/274/343/203/210/350/250/255/345/256/232.md +0 -9
- package/templates/claude/.claude/commands/sr-/343/203/206/343/202/271/343/203/210/350/250/255/350/250/210.md +0 -9
- package/templates/claude/.claude/commands/sr-/343/203/254/343/203/223/343/203/245/343/203/274.md +0 -9
- package/templates/claude/.claude/commands/sr-/344/273/225/346/247/230.md +0 -9
- package/templates/claude/.claude/commands/sr-/344/277/256/346/255/243.md +0 -9
- package/templates/claude/.claude/commands/sr-/345/210/235/346/234/237/345/214/226.md +0 -10
- package/templates/claude/.claude/commands/sr-/345/256/237/350/243/205.md +0 -9
- package/templates/claude/.claude/commands/sr-/346/206/262/347/253/240.md +0 -9
- package/templates/claude/.claude/commands/sr-/346/246/202/350/246/201/350/250/255/350/250/210.md +0 -9
- package/templates/claude/.claude/commands/sr-/347/212/266/346/205/213.md +0 -9
- package/templates/claude/.claude/commands/sr-/347/267/212/346/200/245/344/277/256/346/255/243.md +0 -9
- package/templates/claude/.claude/commands/sr-/350/250/255/345/256/232.md +0 -11
- package/templates/claude/.claude/commands/sr-/350/251/263/347/264/260/350/250/255/350/250/210.md +0 -9
- package/templates/claude/.claude/hooks/pre-tool-use.sh +0 -79
- package/templates/claude/.claude/settings.json +0 -29
- package/templates/claude/CLAUDE.md +0 -141
- package/templates/copilot/.github/copilot-instructions.md +0 -25
- 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
- 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
- package/templates/copilot/.github/prompts/sr-/343/203/254/343/203/223/343/203/245/343/203/274.prompt.md +0 -14
- package/templates/copilot/.github/prompts/sr-/344/273/225/346/247/230.prompt.md +0 -13
- package/templates/copilot/.github/prompts/sr-/344/277/256/346/255/243.prompt.md +0 -14
- package/templates/copilot/.github/prompts/sr-/345/210/235/346/234/237/345/214/226.prompt.md +0 -15
- package/templates/copilot/.github/prompts/sr-/345/256/237/350/243/205.prompt.md +0 -13
- package/templates/copilot/.github/prompts/sr-/346/206/262/347/253/240.prompt.md +0 -13
- package/templates/copilot/.github/prompts/sr-/346/246/202/350/246/201/350/250/255/350/250/210.prompt.md +0 -13
- package/templates/copilot/.github/prompts/sr-/347/212/266/346/205/213.prompt.md +0 -13
- package/templates/copilot/.github/prompts/sr-/347/267/212/346/200/245/344/277/256/346/255/243.prompt.md +0 -14
- package/templates/copilot/.github/prompts/sr-/350/250/255/345/256/232.prompt.md +0 -13
- package/templates/copilot/.github/prompts/sr-/350/251/263/347/264/260/350/250/255/350/250/210.prompt.md +0 -14
- package/templates/cursor/.cursor/commands/sr-/343/202/262/343/203/274/343/203/210/350/250/255/345/256/232.md +0 -11
- package/templates/cursor/.cursor/commands/sr-/343/203/206/343/202/271/343/203/210/350/250/255/350/250/210.md +0 -9
- package/templates/cursor/.cursor/commands/sr-/343/203/254/343/203/223/343/203/245/343/203/274.md +0 -9
- package/templates/cursor/.cursor/commands/sr-/344/273/225/346/247/230.md +0 -9
- package/templates/cursor/.cursor/commands/sr-/344/277/256/346/255/243.md +0 -9
- package/templates/cursor/.cursor/commands/sr-/345/210/235/346/234/237/345/214/226.md +0 -35
- package/templates/cursor/.cursor/commands/sr-/345/256/237/350/243/205.md +0 -9
- package/templates/cursor/.cursor/commands/sr-/346/206/262/347/253/240.md +0 -9
- package/templates/cursor/.cursor/commands/sr-/346/246/202/350/246/201/350/250/255/350/250/210.md +0 -9
- package/templates/cursor/.cursor/commands/sr-/347/212/266/346/205/213.md +0 -9
- package/templates/cursor/.cursor/commands/sr-/347/267/212/346/200/245/344/277/256/346/255/243.md +0 -9
- package/templates/cursor/.cursor/commands/sr-/350/250/255/345/256/232.md +0 -20
- package/templates/cursor/.cursor/commands/sr-/350/251/263/347/264/260/350/250/255/350/250/210.md +0 -9
- package/templates/cursor/.cursorrules +0 -26
package/README.md
CHANGED
|
@@ -1,106 +1,10 @@
|
|
|
1
|
-
# spec-runner
|
|
1
|
+
# spec-runner
|
|
2
2
|
|
|
3
|
-
|
|
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,44 @@ npx spec-runner
|
|
|
109
13
|
または:
|
|
110
14
|
|
|
111
15
|
```bash
|
|
112
|
-
curl -sSL https://raw.githubusercontent.com/
|
|
16
|
+
curl -sSL https://raw.githubusercontent.com/TEEE88/spec-runner/main/install.sh | bash
|
|
113
17
|
```
|
|
114
18
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
---
|
|
118
|
-
|
|
119
|
-
## 強制の仕組み(3層)
|
|
120
|
-
|
|
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 依存方向などをチェック。 |
|
|
19
|
+
いずれも、プロジェクト直下に `.spec-runner/` ができる。
|
|
126
20
|
|
|
127
21
|
---
|
|
128
22
|
|
|
129
|
-
##
|
|
23
|
+
## 使い方
|
|
130
24
|
|
|
131
|
-
|
|
25
|
+
1. プロジェクトルートで次を実行する。
|
|
132
26
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
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` で開始 |
|
|
142
|
-
|
|
143
|
-
---
|
|
27
|
+
```bash
|
|
28
|
+
./.spec-runner/spec-runner.sh 次のステップ --json
|
|
29
|
+
```
|
|
144
30
|
|
|
145
|
-
|
|
31
|
+
2. 出力の `command_file` に書いてある `.spec-runner/steps/*.md` を開き、その指示に従って作業する。
|
|
146
32
|
|
|
147
|
-
|
|
33
|
+
3. 作業が終わったら、再度 1 を実行する。次のステップが返る。
|
|
148
34
|
|
|
149
|
-
-
|
|
150
|
-
- `TEST_DIR` … テストの置き場所。TDD 時の「未コミット検出」に使う。
|
|
151
|
-
- `TDD_ENABLED` … `false` にすると、テストなしでも implement に進める。
|
|
35
|
+
AI から使う場合は、`/spec-runner` のように「spec-runner を実行する」と伝えればよい。フェーズやコマンド名を覚える必要はない。
|
|
152
36
|
|
|
153
37
|
---
|
|
154
38
|
|
|
155
|
-
##
|
|
39
|
+
## 導入後にできるもの
|
|
156
40
|
|
|
157
41
|
```
|
|
158
42
|
<プロジェクトルート>/
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
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
|
|
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/ # フロー全体・振る舞い仕様などの説明
|
|
193
52
|
```
|
|
194
53
|
|
|
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
54
|
---
|
|
220
55
|
|
|
221
56
|
## 必要環境
|
|
@@ -227,6 +62,16 @@ npx spec-runner --update
|
|
|
227
62
|
|
|
228
63
|
---
|
|
229
64
|
|
|
65
|
+
## 上書きインストール
|
|
66
|
+
|
|
67
|
+
すでに `.spec-runner/` があるときは上書きしない。上書きしたい場合:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
SPEC_RUNNER_FORCE=1 npx spec-runner
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
230
75
|
## ライセンス
|
|
231
76
|
|
|
232
77
|
MIT
|