spec-runner 1.1.9 → 1.1.10
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.
|
@@ -336,28 +336,20 @@ function printBanner() {
|
|
|
336
336
|
console.log("");
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
-
function printNextSteps(
|
|
339
|
+
function printNextSteps(archStatus) {
|
|
340
340
|
console.log("─────────────────────────────────────────");
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
if (mode === "existing") {
|
|
344
|
-
console.log(" 1. /existing-project-to-docs");
|
|
345
|
-
console.log(" 既存コードから docs の draft と architecture contract を生成してください。");
|
|
341
|
+
if (archStatus === "decided") {
|
|
342
|
+
console.log("次のステップ:");
|
|
346
343
|
console.log("");
|
|
347
|
-
console.log(" 2. /architecture-skill-development");
|
|
348
|
-
console.log(" architecture contract を元に、プロジェクト専用の skill を作成してください。");
|
|
349
|
-
} else if (archStatus === "decided") {
|
|
350
344
|
console.log(" 1. .spec-runner/architecture/architecture.yaml を用意してください。");
|
|
351
345
|
console.log(" (既に決まっているアーキテクチャを記述)");
|
|
352
346
|
console.log("");
|
|
353
|
-
console.log(" 2. /architecture-skill-development");
|
|
354
|
-
console.log(" architecture contract を元に、プロジェクト専用の skill を作成してください。");
|
|
347
|
+
console.log(" 2. Claude Code を開いて /architecture-skill-development を実行してください。");
|
|
355
348
|
} else {
|
|
356
|
-
console.log("
|
|
357
|
-
console.log(" 対話形式でアーキテクチャを決め、docs と architecture contract を生成してください。");
|
|
349
|
+
console.log("次のステップ:");
|
|
358
350
|
console.log("");
|
|
359
|
-
console.log("
|
|
360
|
-
console.log("
|
|
351
|
+
console.log(" Claude Code を開いて、作りたいものを伝えてください。");
|
|
352
|
+
console.log(" セットアップが自動で始まります。");
|
|
361
353
|
}
|
|
362
354
|
console.log("─────────────────────────────────────────");
|
|
363
355
|
}
|
|
@@ -383,6 +375,12 @@ function main() {
|
|
|
383
375
|
throw new Error(`Claude テンプレートが見つかりません: ${CLAUDE_TEMPLATE_DIR}`);
|
|
384
376
|
}
|
|
385
377
|
|
|
378
|
+
// CLAUDE.md をプロジェクトルートへインストール(target によらず常に配置)
|
|
379
|
+
const claudeMdSrc = path.join(TEMPLATE_ROOT, "CLAUDE.md");
|
|
380
|
+
if (exists(claudeMdSrc)) {
|
|
381
|
+
copyFileWithPolicy(claudeMdSrc, path.join(CWD, "CLAUDE.md"), archiveRoot);
|
|
382
|
+
}
|
|
383
|
+
|
|
386
384
|
console.log("");
|
|
387
385
|
if (target === "claude" || target === "both") {
|
|
388
386
|
mirrorTreeTo(DEST_CLAUDE_DIR, CLAUDE_TEMPLATE_DIR, archiveRoot);
|
|
@@ -405,7 +403,7 @@ function main() {
|
|
|
405
403
|
else if (target === "copilot") console.log("完了: .github/ を導入しました。");
|
|
406
404
|
else console.log("完了: .claude/ と .github/ を導入しました。");
|
|
407
405
|
console.log("");
|
|
408
|
-
printNextSteps(
|
|
406
|
+
printNextSteps(archStatus);
|
|
409
407
|
}
|
|
410
408
|
|
|
411
409
|
main();
|
package/package.json
CHANGED
|
@@ -48,10 +48,13 @@ Phase 5: 次の skill へ引き渡し
|
|
|
48
48
|
- testing_policy
|
|
49
49
|
3. ユーザーに確認・承認を得る
|
|
50
50
|
|
|
51
|
-
## Phase 5:
|
|
51
|
+
## Phase 5: architecture-skill-development へ自動移行
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
Phase 4 が承認されたら、**ユーザーにコマンドを打たせずに `architecture-skill-development` を続けて開始する**。
|
|
54
|
+
|
|
55
|
+
1. `architecture-skill-development` に渡す前提(docs と architecture.yaml の所在)を要約する
|
|
54
56
|
2. project 専用 skill に切り出すべき反復フローを列挙する
|
|
57
|
+
3. 確認なしに `architecture-skill-development` Phase 1 へ進む
|
|
55
58
|
|
|
56
59
|
## 原則
|
|
57
60
|
|
|
@@ -48,10 +48,13 @@ Phase 5: 次の skill へ引き渡し
|
|
|
48
48
|
- testing_policy
|
|
49
49
|
3. ユーザーに確認・承認を得る
|
|
50
50
|
|
|
51
|
-
## Phase 5:
|
|
51
|
+
## Phase 5: architecture-skill-development へ自動移行
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
Phase 4 が承認されたら、**ユーザーにコマンドを打たせずに `architecture-skill-development` を続けて開始する**。
|
|
54
|
+
|
|
55
|
+
1. `architecture-skill-development` に渡す前提(docs と architecture.yaml の所在)を要約する
|
|
54
56
|
2. project 専用 skill に切り出すべき反復フローを列挙する
|
|
57
|
+
3. 確認なしに `architecture-skill-development` Phase 1 へ進む
|
|
55
58
|
|
|
56
59
|
## 原則
|
|
57
60
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
## spec-runner セットアップ
|
|
2
|
+
|
|
3
|
+
### 初回自動起動
|
|
4
|
+
|
|
5
|
+
ユーザーが最初に話しかけてきたとき、以下の条件を確認して自動的にセットアップを開始する。**ユーザーにスラッシュコマンドを打たせない。**
|
|
6
|
+
|
|
7
|
+
| 状態 | 判定方法 | 自動起動するスキル |
|
|
8
|
+
|------|---------|-----------------|
|
|
9
|
+
| 新規プロジェクト | `docs/` が存在しないか空 | `architecture-definition` |
|
|
10
|
+
| 既存プロジェクト | `docs/` にファイルがある | `existing-project-to-docs` |
|
|
11
|
+
|
|
12
|
+
どちらの場合も、そのスキルが完了したら続けて `architecture-skill-development` を自動起動する。
|
|
13
|
+
|
|
14
|
+
### 判定の注意
|
|
15
|
+
|
|
16
|
+
- `docs/` の中身を確認してから判断する(ディレクトリ存在だけで判断しない)
|
|
17
|
+
- ユーザーが「〇〇を作りたい」「〇〇の開発を始めたい」のように要件・作業開始を示す発言をしたら起動する
|
|
18
|
+
- 雑談や質問など、明らかに要件でない場合は起動しない
|