@hiroshi.inoue/agent-spectrum-kernel 1.0.1 → 1.1.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.
Files changed (84) hide show
  1. package/README.ja.md +3 -1
  2. package/README.md +3 -1
  3. package/dist/AGENTS.md +1 -1
  4. package/dist/CUSTOM_INSTRUCTIONS.md +3 -2
  5. package/dist/README.md +3 -1
  6. package/dist/adapters/claude-code/plugin/skills/handoff/SKILL.md +1 -1
  7. package/dist/adapters/claude-code/plugin/skills/implement/SKILL.md +1 -1
  8. package/dist/adapters/claude-code/plugin/skills/investigate/SKILL.md +1 -1
  9. package/dist/adapters/claude-code/plugin/skills/review-pr/SKILL.md +1 -1
  10. package/dist/adapters/claude-code/plugin/skills/verify/SKILL.md +1 -1
  11. package/dist/docs/architecture/README.md +54 -0
  12. package/dist/docs/architecture/model.json +318 -0
  13. package/dist/docs/architecture/views/skill-assets.md +109 -0
  14. package/dist/docs/fixtures/adapter-runtime-bundle.json +85 -69
  15. package/dist/docs/fixtures/adapter-runtime-evidence.json +4 -4
  16. package/dist/docs/fixtures/adapter-runtime-profiles.json +97 -61
  17. package/dist/docs/fixtures/verification-proof-policy-cases.json +1 -1
  18. package/dist/docs/npm-distribution-ja.md +2 -2
  19. package/dist/docs/npm-distribution.md +3 -3
  20. package/dist/docs/routing-model.md +15 -0
  21. package/dist/docs/skill-matrix.md +4 -0
  22. package/dist/docs/validation-report.md +36 -30
  23. package/dist/manifest.json +36 -1
  24. package/dist/npm-runtime-inventory.json +212 -117
  25. package/dist/package.json +2 -2
  26. package/dist/schemas/adoption-plan.schema.json +5 -1
  27. package/dist/schemas/architecture-model.schema.json +619 -0
  28. package/dist/scripts/ask-primary-runtime-lineage.mjs +2 -1
  29. package/dist/scripts/ask-setup-apply-state.mjs +2 -2
  30. package/dist/scripts/ask-setup-apply.mjs +3 -3
  31. package/dist/scripts/ask-setup.mjs +37 -18
  32. package/dist/scripts/codex-exec-runner.mjs +7 -2
  33. package/dist/scripts/install-claude-adapter.mjs +14 -1
  34. package/dist/scripts/install-codex-adapter.mjs +17 -1
  35. package/dist/scripts/install-kernel.mjs +8 -4
  36. package/dist/scripts/installer-lifecycle.mjs +41 -0
  37. package/dist/scripts/kernel-principles.mjs +4 -2
  38. package/dist/skills/adr-review/SKILL.md +1 -0
  39. package/dist/skills/application-boundary-architecture/SKILL.md +1 -0
  40. package/dist/skills/architecture-decision-memory/SKILL.md +1 -0
  41. package/dist/skills/architecture-modeling/SKILL.md +22 -0
  42. package/dist/skills/architecture-modeling/references/architecture-model.mjs +441 -0
  43. package/dist/skills/architecture-modeling/references/last-seat.json +37 -0
  44. package/dist/skills/architecture-modeling/references/model.md +42 -0
  45. package/dist/skills/architecture-modeling/references/views.md +18 -0
  46. package/dist/skills/architecture-modeling/references/views.mjs +370 -0
  47. package/dist/skills/code-visualization/SKILL.md +8 -4
  48. package/dist/skills/code-visualization/references/design-preview.mjs +74 -0
  49. package/dist/skills/code-visualization/references/examples/last-seat.json +42 -0
  50. package/dist/skills/code-visualization/references/guide-input.md +30 -0
  51. package/dist/skills/code-visualization/references/render-guide.mjs +53 -11
  52. package/dist/skills/code-visualization/references/structure-index.mjs +41 -0
  53. package/dist/skills/code-visualization/references/visual-player.js +34 -3
  54. package/dist/skills/code-visualization/references/visual-surface.css +3 -0
  55. package/dist/skills/controlled-implementation/SKILL.md +4 -0
  56. package/dist/skills/documentation-knowledge-compiler/SKILL.md +2 -1
  57. package/dist/skills/doubt-driven-development/SKILL.md +2 -0
  58. package/dist/skills/engineering-documentation-generation/SKILL.md +27 -0
  59. package/dist/skills/engineering-documentation-generation/references/diagram-selection.md +25 -0
  60. package/dist/skills/engineering-documentation-generation/references/document-types.md +16 -0
  61. package/dist/skills/engineering-documentation-generation/references/reservation.md +61 -0
  62. package/dist/skills/engineering-documentation-generation/references/update-and-check.md +24 -0
  63. package/dist/skills/grill-design/SKILL.md +6 -2
  64. package/dist/skills/grill-with-docs/SKILL.md +4 -2
  65. package/dist/skills/handoff-generation/SKILL.md +1 -0
  66. package/dist/skills/implementation-context-generation/SKILL.md +1 -0
  67. package/dist/skills/mr-readme-generation/SKILL.md +2 -0
  68. package/dist/skills/operating-mode-router/SKILL.md +1 -0
  69. package/dist/skills/project-adoption-pack-generation/SKILL.md +1 -0
  70. package/dist/skills/refactor-implementation/SKILL.md +1 -0
  71. package/dist/skills/repository-orientation/SKILL.md +2 -0
  72. package/dist/skills/requirement-grill/SKILL.md +2 -0
  73. package/dist/skills/review-architecture-impact/SKILL.md +2 -0
  74. package/dist/skills/review-context-generation/SKILL.md +1 -0
  75. package/dist/skills/review-domain-impact/SKILL.md +2 -0
  76. package/dist/skills/skill-router/SKILL.md +5 -1
  77. package/dist/skills/spec-driven-development/SKILL.md +4 -0
  78. package/dist/skills/spec-driven-development/references/examples/javascript/candidate-preview.mjs +44 -0
  79. package/dist/skills/spec-driven-development/references/examples/javascript/scenario-review.mjs +10 -1
  80. package/dist/skills/spec-driven-development/references/scenario-visual-review.md +16 -0
  81. package/dist/skills/spec-driven-development/references/spec-index.md +8 -0
  82. package/dist/skills/test-first-verification/SKILL.md +2 -0
  83. package/dist/skills/work-package-compiler/SKILL.md +2 -0
  84. package/package.json +2 -2
package/README.ja.md CHANGED
@@ -11,7 +11,7 @@
11
11
  Node.js 24.x の環境で次の2行を実行します。
12
12
 
13
13
  ```sh
14
- npm install @hiroshi.inoue/agent-spectrum-kernel@1.0.1
14
+ npm install @hiroshi.inoue/agent-spectrum-kernel@1.1.0
15
15
  npx --no-install ask init --workspace ./my-ask
16
16
  ```
17
17
 
@@ -37,6 +37,8 @@ ASKは、共通の判断原則、必要時に使う工程、プロジェクト
37
37
 
38
38
  これは依頼と出力の使い方であり、モデルが毎回正しく手順を適用するという実測結果ではありません。利用できる工程は、導入したprofileとツールに依存します。例文は [依頼レシピ](docs/prompt-recipes-ja.md)、工程の選び方は [利用ガイド](docs/usage-ja.md) を参照してください。
39
39
 
40
+ npm 1.1.0 で、システムの構造を整理し、技術文書を作成するスキルが加わりました。[スキル配布の仕組みをコードとテストまで辿る例](docs/architecture/README.md) では、設計案の比較も試せます。実例の再生成には、参照先の履歴を含む Git チェックアウトが必要です。
41
+
40
42
  ## 二つのループ
41
43
 
42
44
  ### 1. 開発を進める
package/README.md CHANGED
@@ -11,9 +11,11 @@ Run the current and revised prompts on the same task with the same scoring crite
11
11
  With Node.js 24.x, run these commands in your project:
12
12
 
13
13
  ```sh
14
- npm install @hiroshi.inoue/agent-spectrum-kernel@1.0.1
14
+ npm install @hiroshi.inoue/agent-spectrum-kernel@1.1.0
15
15
  npx --no-install ask init --workspace ./my-ask
16
16
  npx --no-install ask --workspace ./my-ask evaluate task-list
17
17
  ```
18
18
 
19
19
  [Set up your coding agent](https://github.com/ist-h-i/agent-spectrum-kernel/blob/main/docs/npm-distribution.md#plan-and-apply-installation) · [Run an improvement cycle](https://github.com/ist-h-i/agent-spectrum-kernel/blob/main/docs/supervised-instruction-loop.md) · [Example reports](https://github.com/ist-h-i/agent-spectrum-kernel/tree/main/docs/ai/reports/examples/) · [Japanese guide](https://github.com/ist-h-i/agent-spectrum-kernel/blob/main/README.ja.md)
20
+
21
+ Version 1.1.0 adds skills for mapping architecture and writing technical guides. The [worked example](https://github.com/ist-h-i/agent-spectrum-kernel/blob/main/docs/architecture/README.md) traces skill selection to the installation plan, source and tests. To regenerate the example, use a Git checkout with the referenced history.
package/dist/AGENTS.md CHANGED
@@ -49,7 +49,7 @@ Rules:
49
49
 
50
50
  ## 2. Repository first
51
51
 
52
- Before changing code, inspect the repository context relevant to the task.
52
+ Before changing code, inspect the repository context relevant to the task. For material decisions, trace the relevant promise through its owner and implementation to the checks actually run. Inspect primary sources and withhold claims affected by gaps. A map is optional.
53
53
 
54
54
  Start with the request and the nearest relevant behavior, consumers, and evidence. Expand inspection when an unresolved requirement, risk, dependency, or required gate could change the decision. Use repository entry points, build/test configuration, implementations, tests, and contracts as relevant; do not require a fixed reading tour for every non-trivial task. When observed constraints interact and plausible implementations differ, check the most consequential incompatible outcome against an observable contract at the first useful boundary; do not invent failure modes or extra work for a direct, simple change. Stop expanding when the authorized outcome and necessary verification are sufficiently understood.
55
55
 
@@ -9,7 +9,7 @@ Act as a repository-aware engineering agent. Optimize for correct, reviewable, v
9
9
  Core rules:
10
10
 
11
11
  1. If the request may be project adoption, skill effectiveness evaluation, adoption metrics, or weekly/monthly operation reporting, use `operating-mode-router` first. For delivery/quality work, classify the task as trivial, implementation, design, investigation, review, handoff, or risk-gated.
12
- 2. Start with the request and nearest relevant behavior, consumers, and evidence; expand inspection only when unresolved requirements, risks, dependencies, or required gates could change the decision. For interacting observed constraints, check the most consequential incompatible outcome at the first useful boundary; do not invent failures or extra steps for a direct, simple change.
12
+ 2. Start with the request and nearest relevant behavior, consumers, and evidence; expand inspection only when unresolved requirements, risks, dependencies, or required gates could change the decision. For interacting observed constraints, check the most consequential incompatible outcome at the first useful boundary; do not invent failures or extra steps for a direct, simple change. For material decisions, trace the relevant promise through its owner and implementation to the checks actually run. Inspect primary sources and withhold claims affected by gaps. A map is optional.
13
13
  3. Deliver the requested change and preserve unaffected behavior. Re-plan within existing authority; do not skip required work to shrink the diff. Do not opportunistically refactor, reformat, rename public APIs, alter dependencies, or fix adjacent issues.
14
14
  4. Prefer the smallest adequate, reversible change. Continue independent authorized outcomes when a blocker affects only part of the work; stop the dependent action or claim without bypassing required gates or approval.
15
15
  5. Apply `ask.claim-evidence-status@1.0.0` inline: Verified, Supported, Hypothesis, Unknown, Falsified.
@@ -31,6 +31,7 @@ Core rules:
31
31
  - Skill effectiveness retrospective: `operating-mode-router` -> `skill-effectiveness-evaluation`.
32
32
  - Adoption maturity or multi-task adoption metrics: `operating-mode-router` -> `skill-adoption-metrics`.
33
33
  - Weekly/monthly reporting or scheduling: `operation_automation` layer; use report templates or external operations, not a delivery skill.
34
+ - Explicit system understanding or structural views: `architecture-modeling`. Technical guides or functional documentation: `engineering-documentation-generation`. Use selected capabilities only.
34
35
  - Unfamiliar repo: `repository-orientation`; add `scope-control` if target boundary is unclear, or `planning-with-files` only if the task spans sessions/agents or durable state is needed.
35
36
  - Design / “grill me”: `grill-design`.
36
37
  - Docs/domain/ADR fit: `grill-with-docs`.
@@ -42,7 +43,7 @@ Core rules:
42
43
  - Diff/PR/generated code review: `review-router` -> exactly one signal-independent `review-ai-quality` baseline -> exact-signal additional gates, including `review-architecture-impact` for structural or boundary impact, `review-output-quality` for consumer-facing or machine-consumed output, and `review-adversarial-risk` for severe failure paths -> `review-final-merge-gate` last only when a final decision is requested.
43
44
  - Repeated implementation context: `implementation-context-generation` creates or updates `docs/ai/implementation-context.md` for stack inventory, commands, implementation/test patterns, boundaries, overlay hooks, stop conditions, and update triggers.
44
45
  - Repeated review context: `review-context-generation` creates or updates `docs/ai/review-context.md` for personas, output contracts, critical workflows, accepted risks, known issues, and noise-control rules.
45
- - MR/PR README, PR explanation, or durable change-context documentation: `mr-readme-generation`.
46
+ - MR/PR README or PR change explanation: `mr-readme-generation`.
46
47
  - Handoff: `handoff-generation`.
47
48
 
48
49
  Project overlay: after generic workflow selection, consider framework/domain-specific project overlay skills when the overlay signal applies.
package/dist/README.md CHANGED
@@ -11,9 +11,11 @@ Run the current and revised prompts on the same task with the same scoring crite
11
11
  With Node.js 24.x, run these commands in your project:
12
12
 
13
13
  ```sh
14
- npm install @hiroshi.inoue/agent-spectrum-kernel@1.0.1
14
+ npm install @hiroshi.inoue/agent-spectrum-kernel@1.1.0
15
15
  npx --no-install ask init --workspace ./my-ask
16
16
  npx --no-install ask --workspace ./my-ask evaluate task-list
17
17
  ```
18
18
 
19
19
  [Set up your coding agent](https://github.com/ist-h-i/agent-spectrum-kernel/blob/main/docs/npm-distribution.md#plan-and-apply-installation) · [Run an improvement cycle](https://github.com/ist-h-i/agent-spectrum-kernel/blob/main/docs/supervised-instruction-loop.md) · [Example reports](https://github.com/ist-h-i/agent-spectrum-kernel/tree/main/docs/ai/reports/examples/) · [Japanese guide](https://github.com/ist-h-i/agent-spectrum-kernel/blob/main/README.ja.md)
20
+
21
+ Version 1.1.0 adds skills for mapping architecture and writing technical guides. The [worked example](https://github.com/ist-h-i/agent-spectrum-kernel/blob/main/docs/architecture/README.md) traces skill selection to the installation plan, source and tests. To regenerate the example, use a Git checkout with the referenced history.
@@ -2,7 +2,7 @@
2
2
  name: handoff
3
3
  description: Produce a precise next-task handoff through the fixed-entry Agent Spectrum Kernel profile.
4
4
  ---
5
- <!-- ASK_CLAUDE_FIXED_ENTRY_PROFILE {"v":"1.2","m":"handoff","k":"p","r":"ask-fixed-entry-assets-v1","p":"446b9b9bcef746e527b58c0f39eaecfbf2bf2a8292b2a70291a0702390f8b17c","a":"834446dc55f4a4925ec80f948304e067cac1556b03a4bc38b096098569451932"} -->
5
+ <!-- ASK_CLAUDE_FIXED_ENTRY_PROFILE {"v":"1.2","m":"handoff","k":"p","r":"ask-fixed-entry-assets-v1","p":"b4eda13517173e63906b173297cc1ff2038a5172cff2ac5e8c72968da453913c","a":"834446dc55f4a4925ec80f948304e067cac1556b03a4bc38b096098569451932"} -->
6
6
 
7
7
  # Handoff
8
8
 
@@ -2,7 +2,7 @@
2
2
  name: implement
3
3
  description: Implement one bounded change through the fixed-entry Agent Spectrum Kernel profile.
4
4
  ---
5
- <!-- ASK_CLAUDE_FIXED_ENTRY_PROFILE {"v":"1.2","m":"implementation","k":"p","r":"ask-fixed-entry-assets-v1","p":"446b9b9bcef746e527b58c0f39eaecfbf2bf2a8292b2a70291a0702390f8b17c","a":"834446dc55f4a4925ec80f948304e067cac1556b03a4bc38b096098569451932"} -->
5
+ <!-- ASK_CLAUDE_FIXED_ENTRY_PROFILE {"v":"1.2","m":"implementation","k":"p","r":"ask-fixed-entry-assets-v1","p":"b4eda13517173e63906b173297cc1ff2038a5172cff2ac5e8c72968da453913c","a":"834446dc55f4a4925ec80f948304e067cac1556b03a4bc38b096098569451932"} -->
6
6
 
7
7
  # Implement
8
8
 
@@ -2,7 +2,7 @@
2
2
  name: investigate
3
3
  description: Investigate an unknown cause through the fixed-entry Agent Spectrum Kernel profile.
4
4
  ---
5
- <!-- ASK_CLAUDE_FIXED_ENTRY_PROFILE {"v":"1.2","m":"investigation","k":"p","r":"ask-fixed-entry-assets-v1","p":"446b9b9bcef746e527b58c0f39eaecfbf2bf2a8292b2a70291a0702390f8b17c","a":"834446dc55f4a4925ec80f948304e067cac1556b03a4bc38b096098569451932"} -->
5
+ <!-- ASK_CLAUDE_FIXED_ENTRY_PROFILE {"v":"1.2","m":"investigation","k":"p","r":"ask-fixed-entry-assets-v1","p":"b4eda13517173e63906b173297cc1ff2038a5172cff2ac5e8c72968da453913c","a":"834446dc55f4a4925ec80f948304e067cac1556b03a4bc38b096098569451932"} -->
6
6
 
7
7
  # Investigate
8
8
 
@@ -2,7 +2,7 @@
2
2
  name: review-pr
3
3
  description: Review a target through the fixed-entry Agent Spectrum Kernel profile.
4
4
  ---
5
- <!-- ASK_CLAUDE_FIXED_ENTRY_PROFILE {"v":"1.2","m":"review","k":"p","r":"ask-fixed-entry-assets-v1","p":"446b9b9bcef746e527b58c0f39eaecfbf2bf2a8292b2a70291a0702390f8b17c","a":"834446dc55f4a4925ec80f948304e067cac1556b03a4bc38b096098569451932"} -->
5
+ <!-- ASK_CLAUDE_FIXED_ENTRY_PROFILE {"v":"1.2","m":"review","k":"p","r":"ask-fixed-entry-assets-v1","p":"b4eda13517173e63906b173297cc1ff2038a5172cff2ac5e8c72968da453913c","a":"834446dc55f4a4925ec80f948304e067cac1556b03a4bc38b096098569451932"} -->
6
6
 
7
7
  # Review PR
8
8
 
@@ -2,7 +2,7 @@
2
2
  name: verify
3
3
  description: Verify behavior through the fixed-entry Agent Spectrum Kernel profile.
4
4
  ---
5
- <!-- ASK_CLAUDE_FIXED_ENTRY_PROFILE {"v":"1.2","m":"verification","k":"p","r":"ask-fixed-entry-assets-v1","p":"446b9b9bcef746e527b58c0f39eaecfbf2bf2a8292b2a70291a0702390f8b17c","a":"834446dc55f4a4925ec80f948304e067cac1556b03a4bc38b096098569451932"} -->
5
+ <!-- ASK_CLAUDE_FIXED_ENTRY_PROFILE {"v":"1.2","m":"verification","k":"p","r":"ask-fixed-entry-assets-v1","p":"b4eda13517173e63906b173297cc1ff2038a5172cff2ac5e8c72968da453913c","a":"834446dc55f4a4925ec80f948304e067cac1556b03a4bc38b096098569451932"} -->
6
6
 
7
7
  # Verify
8
8
 
@@ -0,0 +1,54 @@
1
+ # スキルを導入するとき、どのファイルが配られるか
2
+
3
+ プロジェクトに使うスキルを選ぶと、ASK は各スキルの入口 `SKILL.md` と `references/` 以下のファイルを集めます。**スキル直下の個人メモは配布されません。** 参照資料にシンボリックリンクや不正な UTF-8 があると、ファイルの一覧を返す前に収集を中断します。
4
+
5
+ [役割から処理、ソース、テストへ進む](views/skill-assets.md) · [導入計画の使い方](../adoption-setup.md) · [適用と復旧](../adoption-apply.md)
6
+
7
+ ## 変更を判断するための読み方
8
+
9
+ 1. **どこまで含めるか** [収集処理](../../scripts/skill-assets.mjs) は名前の重複を除き、参照資料を再帰的に調べ、名前と相対パスの一覧を返します。ここではファイルをコピーしません。
10
+ 2. **どこに影響するか** [計画を立てる処理](../../scripts/ask-setup.mjs) は一覧から対象パスを求め、一時コピーで導入を試します。収集対象を広げると、導入先にある同名のファイルと衝突する可能性があります。
11
+ 3. **何を守るか** [選別と中断のテスト](../../scripts/test-skill-assets.mjs) に加え、[既存ファイルと衝突するテスト](../../scripts/test-ask-setup-apply-integration.mjs) で元のプロジェクトが変わらないことを確認します。テストの存在だけでは実行結果は分かりません。
12
+
13
+ | 入力 | 収集結果 | 次の判断 |
14
+ | --- | --- | --- |
15
+ | 入口、参照資料2件、直下の個人メモ | 入口と参照資料の3件 | 計画の変更先と所有者を確かめる |
16
+ | 同じスキルを2回選択 | 1回分 | 二重に導入しない |
17
+ | 参照資料にシンボリックリンクや不正な UTF-8 がある | 収集を中断 | 対象を見直し、部分的な一覧は使わない |
18
+ | 配布予定のパスに管理外の手書きファイルがある | 収集後、計画の作成時に競合を検出 | 手書き部分を保ち、解消方法を決める |
19
+
20
+ この例は `ac9d9f32` の選別と導入計画に範囲を絞っています。適用後にエージェントが実際に読み込んだかは別の確認が必要です。設計を決めた個別の ADR や仕様項目 ID は、この範囲では確認できませんでした。
21
+
22
+ ## ローカルで開く
23
+
24
+ Node.js 24、Git、対象コミットと既存の表示例の履歴がある ASK のチェックアウトで実行します。新しい一時ディレクトリに、配布の例、設計案の比較、仕様候補の比較を作ります。
25
+
26
+ ```sh
27
+ out=$(mktemp -d)
28
+ model=skills/architecture-modeling/references/architecture-model.mjs
29
+ visual=skills/code-visualization/references
30
+ node "$model" check docs/architecture/model.json
31
+ node "$model" render docs/architecture/model.json > "$out/skill-assets.md"
32
+ node scripts/render-architecture-pilot.mjs "$out/guide.html"
33
+ node "$visual/render-guide.mjs" "$visual/examples/last-seat.json" "$out/design.html"
34
+ node skills/spec-driven-development/references/examples/javascript/scenario-review.mjs candidates --input "$visual/examples/last-seat.json" --out "$out/spec.html"
35
+ echo "$out"
36
+ ```
37
+
38
+ `guide.html` で「ファイル収集」から「中断」を選ぶと、該当するコードとテストが開きます。「導入計画」の「根拠」では、計画時の書き込みに関する契約、一時コピーを作る処理、競合時のテストを確認できます。過去の表示例の参照行が変わった場合は再利用を中止します。コミットが未公開でも、HTML 内で根拠の抜粋を開けます。履歴が手元にない場合は [Markdown 版](views/skill-assets.md) を参照してください。
39
+
40
+ `design.html` と `spec.html` は、最後の1枠に2人が同時に申し込む架空の例です。画面ごとに確定すると両方が成功し得ます。1人だけに確定を約束するなら、共有する在庫を予約サービスがまとめて検査・更新する案を推奨します。実際に二重予約を防げるかは、共有ストアに対する並行実行で確認します。どちらの案も未承認・未実行です。[判断を変更したときの文書更新例](../../skills/engineering-documentation-generation/references/reservation.md) も参照してください。
41
+
42
+ ## 自分のプロジェクトで使う
43
+
44
+ [npm 1.1.0 の新しいワークスペース](../npm-distribution-ja.md) またはソース版を使います。[導入計画](../adoption-setup.md) の対象に Codex または Claude Code と `daily` を明示し、差分を確認して適用します。既存アダプターの直接更新では、選択を指定しなければ以前の構成を維持します。導入計画でも目的とプロファイルの両方を省略すると、コアとアダプターそれぞれの選択を維持します。新しい構成に切り替えるときは `--profile daily` などを明示します。カスタム構成は従来どおり必要な依存を含む `--skills` で選択します。
45
+
46
+ スキルを追加しても、以前に `--skip-runtime` などで無効にした機能は停止したままです。再び有効にする場合は、変更予定と手元の設定を確認してから、対象アダプターを解除して必要な機能を選んで再導入します。
47
+
48
+ - 「この機能の利用者と責務を説明し、失敗時の経路をテストまで辿って」 — “Trace the failure path from the user action to the owning component and its tests.”
49
+ - 「この仕様書の状態遷移だけを、既存の用語に合わせて更新して」 — “Update only the state transitions in the feature guide.”
50
+ - 「同じ予約要求を2案で比較し、判断に必要な点を一つ聞いて」 — “Compare both designs with the same booking request and ask the deciding question.”
51
+
52
+ 説明だけならファイル作成は不要です。継続利用する場合は既存の文書を優先し、[モデル](model.json) とその生成部分を分けます。この README は手書きです。[モデルの作成・部分更新](../../skills/architecture-modeling/references/model.md) と [文書・図表の選択](../../skills/engineering-documentation-generation/references/diagram-selection.md) を参照してください。未導入、範囲外、古い資料の場合は現行コードの確認に戻ります。
53
+
54
+ 利用をやめる場合は参照設定を外し、[アダプターの復旧・解除手順](../adapter-runtime-migration.md) に従います。復旧可能な直前の変更には `--rollback`、アダプター全体の解除には `--detach` を使います。プロジェクトの設計書・仕様書は個別に管理してください。
@@ -0,0 +1,318 @@
1
+ {
2
+ "contract": "ask.architecture-model@1.0.0",
3
+ "project": "ask-install",
4
+ "title": "選んだスキルのどのファイルが導入計画に入るか",
5
+ "purpose": "開発者が選んだスキルについて、ASKは配布するファイルと変更先を確かめます。対象を読み取れなければ、途中までの一覧を使って導入を進めることはありません。",
6
+ "profile": "skill-selection/1",
7
+ "language": "ja",
8
+ "scopes": [
9
+ {
10
+ "id": "inventory",
11
+ "include": [
12
+ "scripts/skill-assets.mjs",
13
+ "scripts/test-skill-assets.mjs"
14
+ ],
15
+ "exclude": [],
16
+ "boundary": "配布ファイルの選別とそのテスト",
17
+ "snapshot": {
18
+ "commit": "ac9d9f32ee1ec6a7c31c2aee2d2ddb733168b132",
19
+ "tree": "0e2aa3435ce7ed0b273dd09df3440402ac631481",
20
+ "mode": "commit",
21
+ "generator": "ask.architecture-model/1@37a14b0a22c819118bc2ead1d88574eae604612e5c2b793200b84deee2ce71bf",
22
+ "generated_at": "2026-12-03T11:40:53.480Z",
23
+ "files": [
24
+ {
25
+ "path": "scripts/skill-assets.mjs",
26
+ "sha256": "ff4dc939bfbc714ccd83677510c81c8daffb30bf113394600314ec24ec23283e"
27
+ },
28
+ {
29
+ "path": "scripts/test-skill-assets.mjs",
30
+ "sha256": "d50cef3756e9da9e7c98e95f5da72d1124614890848f351a33b0ee1d3e804767"
31
+ }
32
+ ],
33
+ "fingerprint": "7a2e22e9dbb53e8077d02d76cbb2c7c0c8635526501255e2c2db15bf56fb3e7b"
34
+ }
35
+ },
36
+ {
37
+ "id": "planning",
38
+ "include": [
39
+ "docs/adoption-setup.md",
40
+ "scripts/ask-setup.mjs",
41
+ "scripts/test-ask-setup-apply-integration.mjs"
42
+ ],
43
+ "exclude": [],
44
+ "boundary": "導入計画の作成と、既存ファイルがある場合の扱い",
45
+ "snapshot": {
46
+ "commit": "ac9d9f32ee1ec6a7c31c2aee2d2ddb733168b132",
47
+ "tree": "0e2aa3435ce7ed0b273dd09df3440402ac631481",
48
+ "mode": "commit",
49
+ "generator": "ask.architecture-model/1@37a14b0a22c819118bc2ead1d88574eae604612e5c2b793200b84deee2ce71bf",
50
+ "generated_at": "2026-12-03T11:40:53.593Z",
51
+ "files": [
52
+ {
53
+ "path": "docs/adoption-setup.md",
54
+ "sha256": "b88782d244e00c0d1718928c4e8cedf609a57ebf72227be586a2de91f7d7b857"
55
+ },
56
+ {
57
+ "path": "scripts/ask-setup.mjs",
58
+ "sha256": "9362c1dccaa0985314dfe77355f2c53d85a95f0962980ea48e70ac1679839a33"
59
+ },
60
+ {
61
+ "path": "scripts/test-ask-setup-apply-integration.mjs",
62
+ "sha256": "d4aa70a15f8cb84a354e40016ec559825a901ca38c454704414a5b2c85c0a3d3"
63
+ }
64
+ ],
65
+ "fingerprint": "0096e3bc48fb934f5e7c75312c6b320eb204b741428f8f2fb260e78bc62a363e"
66
+ }
67
+ }
68
+ ],
69
+ "claims": [
70
+ {
71
+ "id": "plan",
72
+ "scope": "planning",
73
+ "kind": "actual",
74
+ "status": "Verified",
75
+ "authority": "導入計画の作成処理",
76
+ "summary": "対象と選択内容を調べ、計画に含めるパスを求めます。",
77
+ "sources": [
78
+ {
79
+ "role": "code",
80
+ "path": "scripts/ask-setup.mjs",
81
+ "line": 445,
82
+ "end": 469,
83
+ "anchor": "skillAssets(REPO_ROOT, kernelSkills)"
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "id": "safe",
89
+ "scope": "planning",
90
+ "kind": "intended",
91
+ "status": "Verified",
92
+ "authority": "導入手順の公開契約",
93
+ "summary": "計画を立てるときは導入先に書き込みません。",
94
+ "outcome": "unchanged",
95
+ "sources": [
96
+ {
97
+ "role": "contract",
98
+ "path": "docs/adoption-setup.md",
99
+ "line": 9,
100
+ "end": 18,
101
+ "anchor": "対象リポジトリへ書き込みません"
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "id": "stage",
107
+ "scope": "planning",
108
+ "kind": "actual",
109
+ "status": "Supported",
110
+ "authority": "作業用コピーを準備する処理",
111
+ "summary": "計画では一時コピーで導入処理を試します。",
112
+ "outcome": "unchanged",
113
+ "sources": [
114
+ {
115
+ "role": "code",
116
+ "path": "scripts/ask-setup.mjs",
117
+ "line": 471,
118
+ "end": 493,
119
+ "anchor": "copyTargetForSimulation"
120
+ },
121
+ {
122
+ "role": "test",
123
+ "path": "scripts/test-ask-setup-apply-integration.mjs",
124
+ "line": 159,
125
+ "end": 166,
126
+ "anchor": "conflictBefore"
127
+ }
128
+ ]
129
+ },
130
+ {
131
+ "id": "list",
132
+ "scope": "inventory",
133
+ "kind": "actual",
134
+ "status": "Verified",
135
+ "authority": "ファイル一覧の作成処理",
136
+ "summary": "重複するスキル名をまとめ、入口と参照資料の相対パスを返します。",
137
+ "sources": [
138
+ {
139
+ "role": "code",
140
+ "path": "scripts/skill-assets.mjs",
141
+ "line": 8,
142
+ "end": 47,
143
+ "anchor": "collect(\"SKILL.md\")"
144
+ },
145
+ {
146
+ "role": "test",
147
+ "path": "scripts/test-skill-assets.mjs",
148
+ "line": 21,
149
+ "end": 31,
150
+ "anchor": "private-notes.md"
151
+ }
152
+ ]
153
+ },
154
+ {
155
+ "id": "reject",
156
+ "scope": "inventory",
157
+ "kind": "actual",
158
+ "status": "Verified",
159
+ "authority": "収集時の入力検査",
160
+ "summary": "シンボリックリンクや不正なUTF-8を検出すると、一覧を返す前に例外が発生します。",
161
+ "sources": [
162
+ {
163
+ "role": "code",
164
+ "path": "scripts/skill-assets.mjs",
165
+ "line": 20,
166
+ "end": 36,
167
+ "anchor": "fatal: true"
168
+ },
169
+ {
170
+ "role": "test",
171
+ "path": "scripts/test-skill-assets.mjs",
172
+ "line": 62,
173
+ "end": 78,
174
+ "anchor": "assert.throws"
175
+ }
176
+ ]
177
+ }
178
+ ],
179
+ "elements": [
180
+ {
181
+ "id": "developer",
182
+ "type": "person",
183
+ "name": "導入担当者",
184
+ "responsibility": "対象プロジェクトと構成を選びます。",
185
+ "claim": "plan"
186
+ },
187
+ {
188
+ "id": "ask",
189
+ "type": "system",
190
+ "name": "ASK",
191
+ "responsibility": "導入予定の変更を人が確かめられるようにします。",
192
+ "claim": "plan"
193
+ },
194
+ {
195
+ "id": "setup",
196
+ "type": "container",
197
+ "name": "セットアップCLI",
198
+ "parent": "ask",
199
+ "technology": "Node.js",
200
+ "responsibility": "プロジェクトを読み、変更先を計画します。",
201
+ "claim": "plan"
202
+ },
203
+ {
204
+ "id": "planner",
205
+ "type": "component",
206
+ "name": "導入計画",
207
+ "parent": "setup",
208
+ "responsibility": "必要なパスを集め、作業用コピーで適用結果を調べます。",
209
+ "claim": "stage"
210
+ },
211
+ {
212
+ "id": "collector",
213
+ "type": "component",
214
+ "name": "ファイル収集",
215
+ "parent": "setup",
216
+ "responsibility": "対象を選別し、読み取れるファイルだけで一覧を作ります。",
217
+ "claim": "list",
218
+ "links": [
219
+ {
220
+ "flow": 0,
221
+ "node": "shelf"
222
+ },
223
+ {
224
+ "flow": 0,
225
+ "node": "select"
226
+ },
227
+ {
228
+ "flow": 0,
229
+ "node": "decode"
230
+ },
231
+ {
232
+ "flow": 0,
233
+ "node": "catalog"
234
+ },
235
+ {
236
+ "flow": 0,
237
+ "node": "stop"
238
+ }
239
+ ]
240
+ }
241
+ ],
242
+ "relationships": [
243
+ {
244
+ "id": "choose",
245
+ "from": "developer",
246
+ "to": "setup",
247
+ "kind": "uses",
248
+ "meaning": "構成と対象を指定する",
249
+ "claim": "plan"
250
+ },
251
+ {
252
+ "id": "plan-input",
253
+ "from": "setup",
254
+ "to": "planner",
255
+ "kind": "call",
256
+ "meaning": "導入計画の作成を依頼する",
257
+ "claim": "plan"
258
+ },
259
+ {
260
+ "id": "collect",
261
+ "from": "planner",
262
+ "to": "collector",
263
+ "kind": "call",
264
+ "meaning": "選んだスキルを渡す",
265
+ "claim": "plan"
266
+ },
267
+ {
268
+ "id": "paths",
269
+ "from": "collector",
270
+ "to": "planner",
271
+ "kind": "data",
272
+ "meaning": "ファイル名と相対パスの一覧を返す",
273
+ "claim": "list"
274
+ }
275
+ ],
276
+ "scenarios": [
277
+ {
278
+ "id": "valid",
279
+ "title": "手元のメモも配布されるか",
280
+ "input": "入口、参照資料2件、スキル直下の個人メモ1件",
281
+ "path": [
282
+ "choose",
283
+ "plan-input",
284
+ "collect",
285
+ "paths"
286
+ ],
287
+ "result": "入口と参照資料の計3件を計画に使います。個人メモは対象外です。",
288
+ "claim": "list"
289
+ },
290
+ {
291
+ "id": "invalid",
292
+ "title": "参照資料を読み取れない場合",
293
+ "input": "参照資料にシンボリックリンクまたは不正なUTF-8が含まれる",
294
+ "path": [
295
+ "choose",
296
+ "plan-input",
297
+ "collect"
298
+ ],
299
+ "result": "収集時点で中断し、部分的な一覧を渡しません。",
300
+ "claim": "reject"
301
+ }
302
+ ],
303
+ "comparisons": [
304
+ {
305
+ "id": "read-only",
306
+ "scenario": "valid",
307
+ "intended": "safe",
308
+ "actual": "stage",
309
+ "owner": "導入処理の保守担当者",
310
+ "next": "元のプロジェクトが変わらないことを、競合するファイルを置いた隔離環境で確認します。"
311
+ }
312
+ ],
313
+ "unknowns": [
314
+ "この例では個別のADRと合意済みの仕様項目IDを特定していません。",
315
+ "テストの定義を示しています。実際の適用、外部エージェントによる読込み、実行結果はこの図から判断できません。"
316
+ ],
317
+ "repository": "github.com/ist-h-i/agent-spectrum-kernel"
318
+ }
@@ -0,0 +1,109 @@
1
+ # 選んだスキルのどのファイルが導入計画に入るか
2
+
3
+ 開発者が選んだスキルについて、ASKは配布するファイルと変更先を確かめます。対象を読み取れなければ、途中までの一覧を使って導入を進めることはありません。
4
+
5
+ 対象 · ask-install / skill-selection/1
6
+ - 配布ファイルの選別とそのテスト — current · commit `ac9d9f32ee1ec6a7c31c2aee2d2ddb733168b132`
7
+ - 導入計画の作成と、既存ファイルがある場合の扱い — current · commit `ac9d9f32ee1ec6a7c31c2aee2d2ddb733168b132`
8
+
9
+ ## 誰が何を担うか
10
+
11
+ ### 利用者とシステム
12
+
13
+ - **導入担当者** — 対象プロジェクトと構成を選びます。 [actual · Verified](#claim-plan)
14
+ - **ASK** — 導入予定の変更を人が確かめられるようにします。 [actual · Verified](#claim-plan)
15
+
16
+ ### アプリケーションとデータストア
17
+
18
+ - **セットアップCLI** (ASK) — プロジェクトを読み、変更先を計画します。 [actual · Verified](#claim-plan)
19
+ - Node.js
20
+
21
+ ### 内部の役割
22
+
23
+ - **導入計画** (セットアップCLI) — 必要なパスを集め、作業用コピーで適用結果を調べます。 [actual · Supported](#claim-stage)
24
+ - **ファイル収集** (セットアップCLI) — 対象を選別し、読み取れるファイルだけで一覧を作ります。 [actual · Verified](#claim-list)
25
+
26
+
27
+ ## 関係と処理の向き
28
+
29
+ 矢印は左から右への利用、呼び出し、依存、データの移動を示します。
30
+
31
+ - 導入担当者 → セットアップCLI — 構成と対象を指定する (uses) [actual · Verified](#claim-plan)
32
+ - セットアップCLI → 導入計画 — 導入計画の作成を依頼する (call) [actual · Verified](#claim-plan)
33
+ - 導入計画 → ファイル収集 — 選んだスキルを渡す (call) [actual · Verified](#claim-plan)
34
+ - ファイル収集 → 導入計画 — ファイル名と相対パスの一覧を返す (data) [actual · Verified](#claim-list)
35
+
36
+ ## 手元のメモも配布されるか
37
+
38
+ 入口、参照資料2件、スキル直下の個人メモ1件
39
+
40
+ 導入担当者 → セットアップCLI → 導入計画 → ファイル収集 → 導入計画
41
+
42
+ 入口と参照資料の計3件を計画に使います。個人メモは対象外です。 [actual · Verified](#claim-list)
43
+
44
+ - 仕様・要求 — 計画を立てるときは導入先に書き込みません。 [intended · Verified](#claim-safe)
45
+ - コードから読める動作 — 計画では一時コピーで導入処理を試します。 [actual · Supported](#claim-stage)
46
+
47
+ **実行による確認が不足**
48
+
49
+ 導入処理の保守担当者 → 元のプロジェクトが変わらないことを、競合するファイルを置いた隔離環境で確認します。
50
+
51
+
52
+ ## 参照資料を読み取れない場合
53
+
54
+ 参照資料にシンボリックリンクまたは不正なUTF-8が含まれる
55
+
56
+ 導入担当者 → セットアップCLI → 導入計画 → ファイル収集
57
+
58
+ 収集時点で中断し、部分的な一覧を渡しません。 [actual · Verified](#claim-reject)
59
+
60
+
61
+ ## 分かっていないこと
62
+
63
+ - この例では個別のADRと合意済みの仕様項目IDを特定していません。
64
+ - テストの定義を示しています。実際の適用、外部エージェントによる読込み、実行結果はこの図から判断できません。
65
+
66
+ ## どこで確かめるか
67
+
68
+ <a id="claim-plan"></a>
69
+
70
+ **対象と選択内容を調べ、計画に含めるパスを求めます。** · 導入計画の作成処理 · コードから読める動作 / Verified
71
+
72
+ 導入担当者 · ASK · セットアップCLI · 構成と対象を指定する · 導入計画の作成を依頼する · 選んだスキルを渡す
73
+
74
+ - [code · scripts/ask-setup.mjs#L445-L469](https://github.com/ist-h-i/agent-spectrum-kernel/blob/ac9d9f32ee1ec6a7c31c2aee2d2ddb733168b132/scripts/ask-setup.mjs#L445-L469)
75
+
76
+ <a id="claim-safe"></a>
77
+
78
+ **計画を立てるときは導入先に書き込みません。** · 導入手順の公開契約 · 仕様・要求 / Verified
79
+
80
+ 手元のメモも配布されるか
81
+
82
+ - [contract · docs/adoption-setup.md#L9-L18](https://github.com/ist-h-i/agent-spectrum-kernel/blob/ac9d9f32ee1ec6a7c31c2aee2d2ddb733168b132/docs/adoption-setup.md#L9-L18)
83
+
84
+ <a id="claim-stage"></a>
85
+
86
+ **計画では一時コピーで導入処理を試します。** · 作業用コピーを準備する処理 · コードから読める動作 / Supported
87
+
88
+ 導入計画 · 手元のメモも配布されるか
89
+
90
+ - [code · scripts/ask-setup.mjs#L471-L493](https://github.com/ist-h-i/agent-spectrum-kernel/blob/ac9d9f32ee1ec6a7c31c2aee2d2ddb733168b132/scripts/ask-setup.mjs#L471-L493)
91
+ - [test · scripts/test-ask-setup-apply-integration.mjs#L159-L166](https://github.com/ist-h-i/agent-spectrum-kernel/blob/ac9d9f32ee1ec6a7c31c2aee2d2ddb733168b132/scripts/test-ask-setup-apply-integration.mjs#L159-L166)
92
+
93
+ <a id="claim-list"></a>
94
+
95
+ **重複するスキル名をまとめ、入口と参照資料の相対パスを返します。** · ファイル一覧の作成処理 · コードから読める動作 / Verified
96
+
97
+ ファイル収集 · ファイル名と相対パスの一覧を返す · 手元のメモも配布されるか
98
+
99
+ - [code · scripts/skill-assets.mjs#L8-L47](https://github.com/ist-h-i/agent-spectrum-kernel/blob/ac9d9f32ee1ec6a7c31c2aee2d2ddb733168b132/scripts/skill-assets.mjs#L8-L47)
100
+ - [test · scripts/test-skill-assets.mjs#L21-L31](https://github.com/ist-h-i/agent-spectrum-kernel/blob/ac9d9f32ee1ec6a7c31c2aee2d2ddb733168b132/scripts/test-skill-assets.mjs#L21-L31)
101
+
102
+ <a id="claim-reject"></a>
103
+
104
+ **シンボリックリンクや不正なUTF-8を検出すると、一覧を返す前に例外が発生します。** · 収集時の入力検査 · コードから読める動作 / Verified
105
+
106
+ 参照資料を読み取れない場合
107
+
108
+ - [code · scripts/skill-assets.mjs#L20-L36](https://github.com/ist-h-i/agent-spectrum-kernel/blob/ac9d9f32ee1ec6a7c31c2aee2d2ddb733168b132/scripts/skill-assets.mjs#L20-L36)
109
+ - [test · scripts/test-skill-assets.mjs#L62-L78](https://github.com/ist-h-i/agent-spectrum-kernel/blob/ac9d9f32ee1ec6a7c31c2aee2d2ddb733168b132/scripts/test-skill-assets.mjs#L62-L78)