superpowers-mcp 6.3.6 → 6.3.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 (40) hide show
  1. package/README.ja.md +56 -62
  2. package/README.ko.md +56 -64
  3. package/README.md +58 -65
  4. package/README.zh-TW.md +56 -64
  5. package/docs/maintainers/upstream-sync.md +42 -0
  6. package/docs/skill-compositions.ja.md +194 -0
  7. package/docs/skill-compositions.ko.md +194 -0
  8. package/docs/skill-compositions.md +216 -0
  9. package/docs/skill-compositions.zh-TW.md +194 -0
  10. package/out/server.js +105 -146
  11. package/out/setup-runner.js +16 -16
  12. package/out/setup.js +17 -17
  13. package/package.json +12 -6
  14. package/scripts/upstream-drift.js +346 -0
  15. package/skills/brainstorming/SKILL.md +125 -25
  16. package/skills/brainstorming/scripts/helper.js +1 -1
  17. package/skills/brainstorming/scripts/server.cjs +61 -6
  18. package/skills/brainstorming/scripts/start-server.ps1 +20 -1
  19. package/skills/brainstorming/scripts/start-server.sh +2 -2
  20. package/skills/executing-plans/SKILL.md +7 -1
  21. package/skills/finishing-a-development-branch/SKILL.md +15 -0
  22. package/skills/subagent-driven-development/SKILL.md +121 -36
  23. package/skills/subagent-driven-development/implementer-prompt.md +19 -0
  24. package/skills/subagent-driven-development/re-review-prompt.md +10 -4
  25. package/skills/subagent-driven-development/scripts/review-package +6 -0
  26. package/skills/subagent-driven-development/scripts/review-package.ps1 +7 -0
  27. package/skills/subagent-driven-development/scripts/sdd-workspace +11 -4
  28. package/skills/subagent-driven-development/scripts/sdd-workspace.ps1 +28 -3
  29. package/skills/subagent-driven-development/task-reviewer-prompt.md +28 -10
  30. package/skills/systematic-debugging/SKILL.md +1 -1
  31. package/skills/systematic-debugging/find-polluter.ps1 +7 -5
  32. package/skills/systematic-debugging/find-polluter.sh +11 -9
  33. package/skills/systematic-debugging/root-cause-tracing.md +2 -2
  34. package/skills/test-driven-development/SKILL.md +27 -3
  35. package/skills/test-driven-development/writing-good-tests.md +7 -0
  36. package/skills/using-git-worktrees/SKILL.md +12 -0
  37. package/skills/using-superpowers/SKILL.md +1 -1
  38. package/skills/verification-before-completion/SKILL.md +54 -1
  39. package/skills/writing-plans/SKILL.md +20 -5
  40. package/skills/writing-skills/SKILL.md +30 -0
package/README.ja.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [English](README.md) | [繁體中文](README.zh-TW.md) | [日本語](README.ja.md) | [한국어](README.ko.md)
4
4
 
5
- [![バージョン](https://img.shields.io/badge/version-6.3.6-blue.svg)](https://github.com/Poseidoncode/superpowers-mcp)
5
+ [![バージョン](https://img.shields.io/badge/version-6.3.8-blue.svg)](https://github.com/Poseidoncode/superpowers-mcp)
6
6
  [![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
7
7
 
8
8
  このドキュメントは、Superpowers スキルライブラリと自律型ワークフローを、独立した高パフォーマンスかつ安全な **Model Context Protocol (MCP)** サーバーにパッケージ化した使用説明書です。
@@ -23,11 +23,11 @@
23
23
  | :--- | :--- | :--- |
24
24
  | **Tools** | `list_skills`, `read_skill` | 14 種類の Superpowers スキルをオンデマンドで検索・読み込み。 |
25
25
  | **Prompts** | 9 個のネイティブ Prompts | `session-start`, `feature-pipeline`, `structured-debug`, `skill-composition`, `sdd-implementer`, `sdd-task-reviewer`, `sdd-re-review`, `spec-reviewer`, `plan-reviewer` |
26
- | **Resources** | 14 個の Direct URI | `skill://superpowers/<skill-name>` (MCP 規格に準拠した直接アクセス) |
26
+ | **Resources** | 14 個の Skill URI + 1 ガイド | `skill://superpowers/<skill-name>` と `guide://superpowers/skill-compositions` |
27
27
 
28
28
  ### AI エージェントとの対話(基本操作)
29
29
 
30
- インストールまたは設定が完了すると、AI エージェントが自動的に `Superpowers Skills` および `Prompts` を認識して呼び出せるようになります。
30
+ インストールまたは設定後、MCP クライアントは Superpowers の tools、prompts、resources を検出できます。MCP prompt はユーザーが選択して起動し、その後エージェントが指示に従って `read_skill` を呼び出します。
31
31
 
32
32
  **基本的な対話例:**
33
33
  - **エンジニアリング規律の初期化**:「`session-start` プロンプトを適用して」(Superpowers のルールとコンテキストを注入)
@@ -125,24 +125,24 @@
125
125
 
126
126
  ## 🔄 スキル構成 & ワークフローパイプライン (Skill Compositions & Pipelines)
127
127
 
128
- 複数ステップの複雑なタスクを実行する際は、以下の**ワンクリック・エンドツーエンドパイプライン**を使用してください(詳細ガイド:[`docs/skill-compositions.ja.md`](docs/skill-compositions.ja.md)):
128
+ 複数ステップの複雑なタスクには、以下の**対話型ワークフローランチャー**を使用してください。設計、計画レビュー、ブランチ完了時にはユーザーの判断を待つため、サーバー側の無人自動化ではありません(詳細:[`docs/skill-compositions.ja.md`](docs/skill-compositions.ja.md))。
129
129
 
130
130
  ### 1. エンドツーエンド新機能開発パイプライン (Feature Development Pipeline)
131
131
  ```
132
132
  brainstorming ➔ writing-plans ➔ using-git-worktrees ➔ subagent-driven-development (TDD) ➔ verification-before-completion ➔ requesting-code-review ➔ finishing-a-development-branch
133
133
  ```
134
- - **ワンクリック指示:**「`feature-pipeline` を適用して、[機能名] の開発を進めてください」
134
+ - **起動方法:**MCP Prompts メニューから `feature-pipeline` を選択し、必須の `feature_name` と任意の `requirements` を入力します。
135
135
  - **特徴:** 要件明確化 (Spec) ➔ 計画分解 (Plan) ➔ Worktree 分離 ➔ 独立サブエージェント+TDD 実装 ➔ フルテスト検証 ➔ 敵対的コードレビュー ➔ ブランチ完了。
136
136
 
137
137
  ### 2. 構造化トラブルシューティングパイプライン (Structured Troubleshooting Pipeline)
138
138
  ```
139
139
  systematic-debugging ➔ using-git-worktrees ➔ dispatching-parallel-agents ➔ test-driven-development ➔ verification-before-completion ➔ requesting-code-review ➔ finishing-a-development-branch
140
140
  ```
141
- - **ワンクリック指示:**「`structured-debug` を適用して、次のエラーを調査・修正してください:[エラーログ]」
141
+ - **起動方法:**MCP Prompts メニューから `structured-debug` を選択し、問題または失敗テストを入力します。
142
142
  - **特徴:** 根本原因の仮説分解 ➔ Worktree 隔離並行調査 ➔ 複数エージェント検証 ➔ 失敗テスト作成・修正 ➔ 完全な回帰検証 ➔ レビュー指摘解決 ➔ ブランチ完了。
143
143
 
144
144
  ### 3. 動的ワークフローガイド (Dynamic Workflow Guide)
145
- - **ワンクリック指示:**「`skill-composition` を適用して、現在の状況 [リファクタリング/移行/レガシーコード保護] の手順を提示してください」
145
+ - **起動方法:**`skill-composition` を選択してリファクタリング、移行、レガシーコード向けの推奨手順を取得します。これらには現在、専用ランチャー prompt はありません。
146
146
  - **特徴:** 大規模リファクタリング、レガシーシステムの安全網構築、オンボーディングに最適なパイプラインを動的に提案:
147
147
  - **大規模リファクタリング&移行 (Pipeline 3):** `brainstorming` ➔ `writing-plans (skeleton-first)` ➔ `using-git-worktrees` ➔ `subagent-driven-development` ➔ `verification-before-completion` ➔ `requesting-code-review` ➔ `finishing-a-development-branch`
148
148
  - **レガシーコード安全網 (Pipeline 4):** `brainstorming` ➔ `writing-plans` ➔ `test-driven-development (characterization)` ➔ `systematic-debugging` ➔ `verification-before-completion`
@@ -175,7 +175,55 @@ systematic-debugging ➔ using-git-worktrees ➔ dispatching-parallel-agents ➔
175
175
 
176
176
  ## 🆕 最近の更新
177
177
 
178
- ### v6.3.6(最新)
178
+ ### v6.3.8(最新)
179
+
180
+ - **実行可能な対話型ワークフローランチャー**:
181
+ - `feature-pipeline` と `structured-debug` は、ステージごとに明示的な `read_skill` 呼び出しを示し、必要なユーザー承認ゲートを保持し、実行が MCP サーバー内ではなくクライアント Agent 側で行われることを明記します。
182
+ - マルチ Agent 対応 Host では Subagent を使い、非対応 Host では利用できない機能を称することなくインラインまたは逐次実行にフォールバックします。
183
+ - `read_skill` はスキル名単体と、文書化された `superpowers:` プレフィックスの両方を受け付けます。
184
+ - Skill Compositions ガイドを npm パッケージに含め、`guide://superpowers/skill-compositions` からも参照できます。
185
+ - **ユニバーサルセットアップエンジンの並行安全性・Inode 防御・シンボリックリンク脱出防止**:
186
+ - **Allowed Roots 境界隔離**:設定の書き込み先を明示的な許可ルート(`homeDir`、`appData`、`localAppData`)内に限定し、親ディレクトリシンボリックリンク経由の脱出攻撃を遮断。
187
+ - **楽観的並行競合検知**:アトミックな `fs.renameSync` の直前にディスク内容と `expectedContent` を照合し、マルチプロセス競合による新しい設定の上書きを防止。
188
+ - **ディレクトリ Inode & Dev TOCTOU 防御**:一時ファイル書き込み前後でディレクトリのデバイス ID と inode を検証し、ディレクトリ差し替え攻撃を無効化。
189
+ - **Fail-Closed 厳格構文検証**:JSON のルートまたはサーバー項目が Plain Object でない場合は即座に拒絶し、プロトタイプ汚染を防止。
190
+ - **コアスキルエンジンの確定性ソートと動的キャッシュ再検証**:
191
+ - **確定性ディレクトリ走査と衝突防止**:ディレクトリをアルファベット順に確定ソートし、競合キーを即座に検知して重複を安全にスキップ。
192
+ - **自動キャッシュ再検証 (`CACHE_REVALIDATE_MS = 1000`)**:ディスクの変更を 1 秒以内に自動検知・同期し、サーバー再起動なしで編集を反映。
193
+ - **大文字小文字フォールディングと正規パス防御**:`src/server.ts` が darwin/win32 で大文字小文字フォールディングと `fs.realpathSync` を実行し、システム保護ディレクトリを確実に遮断。
194
+ - **RFC 6455 WebSocket プロトコル強化と弾力性ログ圧縮**:
195
+ - `CONTINUATION` (0x00) 分割メッセージの再構築を完全サポートし、制御フレームの分割禁止(`opcode >= 0x8 && !fin`)と非標準 RSV 拡張の排除を徹底。
196
+ - 末尾弾力性ログ圧縮:イベントログが 1 MB 上限に達した際、改行区切りの直近レコードを保持したままローテーションし、履歴の全損を回避。
197
+ - 秘密ファイル記述子を `O_RDWR | O_APPEND | O_CREAT | O_NOFOLLOW` で安全にオープン。
198
+ - **Shell および PowerShell スクリプトのコマンドインジェクション防御**:
199
+ - `find-polluter.sh` および `find-polluter.ps1`:配列展開引数受け渡し (`"${TEST_COMMAND[@]}"`、`& $testCommand @testCommandArgs`) と空白セーフな読み込みループにより、シェルインジェクションを根絶。
200
+ - `sdd-workspace`:`cd` 実行前に `CDPATH=''` をリセットし、環境変数によるディレクトリハイジャックを防止。
201
+ - `sdd-workspace.ps1`:BOM なし UTF-8 (`[System.Text.UTF8Encoding]::new($false)`) でプランマーカーを保存し、Unicode パスの完全性を保護。
202
+ - **全自動回帰テストの基盤**:
203
+ - テストスイートを **274 の全自動アサーション**(Node.js: 145、Bash: 35、PowerShell: 94)に拡張し、100% の合格率を維持。
204
+
205
+ ### v6.3.7
206
+
207
+ - **上流同期 — バッチ 1〜3(obra/superpowers)**:
208
+ - **スキルの自動ルーティング**:`systematic-debugging` と `test-driven-development` の description にトリガーフレーズ(`"tdd"`、`"systematic debug"` など)と相互クロスルートを追加し、MCP クライアントでのスキル選択精度を向上。
209
+ - **テストコマンドがない場合のエビデンス律**:`verification-before-completion` に「When There Is No Test Command」を追加。レポート、調査、監査、書簡では成果物を再度開き、証明できる事項を証明し、未完了項目を明示。主張できるのは「完全」であり「正しい」ではない。
210
+ - **ブレインストーミングの意図ゲート**:「Establish Shared Understanding」(意図の探索 → 理解の書き戻し → 設計への引き継ぎ)を新設し、HARD-GATE をパスごとの前提条件を列挙する形に書き直し。一度の承認を残り工程の省略許可と見なすことを禁止。
211
+ - **プランニング・ハンドオフ・レビュー**:brainstorming の仕様セルフレビューを 0.0–9.9 の評価 + burden ledger + 単一の有界改善パス + 読み取り専用の再評価に昇格。失敗時は初稿へ復元する安全則付き。
212
+ - **保存済みプランのレビューと文脈的ハンドオフ**:`writing-plans` は実行前に人間が保存プランをレビューすることを必須化。実行方法が未指定の場合は、固定の既定値ではなくこのプラン固有の推奨を提示。
213
+ - **プランのチェックボックス簿記**:`executing-plans` と `subagent-driven-development` が完了メッセージと同時にプランファイルの手順をチェック。
214
+ - **リモート安全境界**:`using-git-worktrees` は共有 ref から分岐する際に `--no-track` を必須化し、`git branch -vv` による追跡確認(初回 commit 前に `--unset-upstream`)を求める。`executing-plans` は commit をローカルに留め、共有ブランチの書き換えを禁止。implementer はタスク中の push 要求を BLOCKED として controller に報告する。
215
+ - **Discoveries 台帳**:SDD の進捗台帳に `## Discoveries` セクションを追加し、タスク横断の知見が compaction を越えて次のディスパッチのインターフェース条項に引き継がれる。
216
+ - **保留所見のエクスポート**:プランワークスペース削除前に、`Ruling:`/`minor (deferred)`/`parked` 行を PR の「Deferred items」チェックリスト、またはコミット済み `docs/superpowers/follow-ups/<plan>.md` へ退避する。
217
+ - **Greenfield SDD スクリプト**:リポジトリ未作成時は `sdd-workspace` がカレントディレクトリへフォールバック(`.ps1` も同様)。`review-package` は非リポジトリ環境で実行可能なエラーを返す。
218
+ - **TDD 特性化ガード**:振る舞いを保つリファクタリング向けの 5 ステップ手順(変異→失敗確認→VCS 復元→グリーン維持)。境界とミューテーション検査の各節から参照。
219
+ - **上流コンテンツ同期 — バッチ 4**:brainstorm の起動スクリプトは `BRAINSTORM_HOST`/`BRAINSTORM_URL_HOST` からホスト既定値を取得(`--host`/`--url-host` が優先)。`writing-skills` にコンテンツ移動時のリンク再解決手順を追加し、SDD レビュアは完全なレポートを `…/task-N-review.md` に書いて 15 行未満の要約のみを返すようになり、MCP 側に `review_file` 引数(指定パスが正規化後にレポート/brief ファイルと一致する場合は導出した `-review.md` に置換)と、`[FIX_BASE_SHA]` を実際に展開する `fix_base_sha` 別名を追加。
220
+ - **上流ドリフトレポート**:`npm run drift` がコミット済みベースラインと `obra/superpowers` を比較し、採用済みファイルの変更・ローカルに無い取り込み・fork 独自追加を一覧表示。`npm run drift:record -- --ignore <skill>` でレビュー済み同期後に更新し、書き込み前に途中で切れた API tree を拒否。
221
+ - **MCP サーフェス網羅テスト**:ディスク上の各スキルは自身のコンテンツを返す MCP リソースとして公開され、プロンプト一覧は 4 つの README と完全一致すること。
222
+ - **MCP 説明文の忠実性**:上流のエスケープ引用形式を非引用の YAML plain scalar に適応し、`SkillsManager` が MCP 経由で余分なバックスラッシュを出力しないようにした。
223
+ - **回帰ガード**:`tests/upstream_sync_test.js` をバッチ 1〜4 を覆う 22 個のラベル付きチェックに拡張。全スイート合格(npm 8 スイート 139 チェック、PowerShell 90 アサーション、SDD 16 + ホスト既定 11 + render-graph 8 の bash アサーション)。
224
+ - **リリース準備の強化**:Bash/PowerShell の brainstorm host テストは background モードを明示的に強制し、264 アサーションの全マトリクスが `CODEX_CI=1` でも完了。`package-lock.json` を v6.3.7 と Node `>=18` に同期し、npm repository と CLI `bin` メタデータを正規化。`npm publish --dry-run` とパッケージのインストール smoke test で検証済み。
225
+
226
+ ### v6.3.6
179
227
 
180
228
  - **極限のパフォーマンス最適化(2倍〜8.1倍の高速化)**:
181
229
  - **スキルの並行インデックスと事前キャッシュ**:`SkillsManager.listSkills` を非同期並行ディレクトリ走査(`Promise.all`)とルートパス事前解決キャッシュにアップグレードし、コールドスタート時のインデックス遅延を 4.79ms から 2.35ms に短縮(**2.04倍の高速化**)。
@@ -195,60 +243,6 @@ systematic-debugging ➔ using-git-worktrees ➔ dispatching-parallel-agents ➔
195
243
  - **多言語ドキュメントの同期**:
196
244
  - 4 言語すべての README([`README.md`](README.md)、[`README.zh-TW.md`](README.zh-TW.md)、[`README.ja.md`](README.ja.md)、[`README.ko.md`](README.ko.md))でサポート環境一覧、パフォーマンス指標、ワンクリックコマンド表を同期。
197
245
 
198
- ### v6.3.5
199
-
200
- - **7 つの新しい AI エージェント・エディタ環境のワンクリックインストール対応 (`src/setup-runner.ts`, `scripts/install.sh`)**:
201
- - 構成エンジンを拡張し、合計 15 種類の AI 開発環境に対応:
202
- - **GitHub Copilot (VS Code Insiders)**:`Code - Insiders/User/mcp.json`(安定版 VS Code との競合を防ぐ物理パス完全分離、エイリアス: `copilot-insiders`, `vscode-insiders`, `code-insiders`, `insiders`, `insider`)
203
- - **QwenPaw (パーソナル AI アシスタントワークステーション)**:`~/.qwenpaw/config.json`(`copaw` 互換、エイリアス: `qwenpaw`, `copaw`)
204
- - **Cline (VS Code / CLI)**:`.../saoudrizwan.claude-dev/settings/cline_mcp_settings.json`(エイリアス: `cline`, `claude-dev`)
205
- - **Kilo Code**:`~/.config/kilo/kilo.jsonc`(自適応 `"mcp"` ルート仕様、エイリアス: `kilo`, `kilocode`)
206
- - **Qoder**:`~/.qoder/settings.json`(エイリアス: `qoder`)
207
- - **Kiro**:`~/.kiro/settings/mcp.json`(エイリアス: `kiro`, `kiro-code`)
208
- - **Trae**:`.../Trae/User/mcp.json`(macOS、Windows、Linux、Trae CN をクロスプラットフォームでサポート)
209
- - Kilo Code 固有の辞書形式を適応する `"json-mcp"` フォーマットタイプを追加。
210
- - `runSetup` を介して `harness.defaultConfig` からテンプレートを注入し、Single Source of Truth (SSOT) を確立。
211
- - **デュアル Subagent によるアーキテクチャおよびコード品質レビュー**:
212
- - 「アーキテクチャ・セキュリティレビュアー」と「品質・エッジケースレビュアー」の 2 人のエージェントによるレビューを実施。
213
- - アトミック書き込み(`crypto.randomBytes(8)` + `flag: "wx"`)、シンボリックリンク防御、最小権限(`0o700`/`0o600`)、デフォルトのゼロディスク汚染を完全検証。
214
- - プロジェクト全体のセキュリティ監査を完了し、[`SECURITY.md`](SECURITY.md) を更新(173 件の自動化アサーション 100% 合格)。
215
- - **テストスイートの大幅拡充 (`tests/setup_test.js`)**:
216
- - 単元テストを 21 件から 32 件に拡充(100% 合格)。Claude Desktop、Kimi Work、Hermes Desktop のエンドツーエンドサンドボックステストを追加。
217
-
218
- ### v6.3.4
219
-
220
- - **Universal One-Click グローバルセットアップエンジン (`src/setup-runner.ts`, `scripts/`)**:
221
- - 8 大主要 AI 環境(Antigravity、Pi Desktop / Pi Agent、Cursor、GitHub Copilot (VS Code)、Hermes Desktop / Agent、Kimi Work / Kimi Code、Claude Desktop、Devin Desktop)向けの依存関係ゼロのワンクリック自動構成。
222
- - CLI コマンド `superpowers-setup` および `superpowers-mcp setup` を提供し、クロスプラットフォームのインストーラスクリプト([`install.sh`](scripts/install.sh) および [`install.ps1`](scripts/install.ps1))を開発。
223
- - **明示的同意とアンチウイルス設計 (Explicit Consent & Anti-Virus Design)**:`--target <client>` を必須とし、未承認のディスク自動スキャンや全環境の一括変更を根絶(`--all` を削除)。
224
- - **アトミック書き込み防御 (`safeWriteConfig`)**:ランダム 8 バイト nonce 一時ファイル、`flag: "wx"`、`renameSync` によるアトミック操作で、ファイル競合や破損を防止。
225
- - **シンボリックリンク保護と最小特権権限**:`realpathSync` でリンク先を安全に解決。新規ディレクトリは `0o700`、設定ファイルは `0o600` に制限し、バックアップは元のパーミッションを継承。
226
- - **パラメータインジェクション防御と JSONC 解析**:`JSON.stringify` で安全にエスケープ。コメントや末尾カンマを許容し、`isPlainObject` でプロトタイプ汚染を防御。
227
- - **CLI Stdio 分離**:`src/server.ts` で setup 引数を事前インターセプトし、MCP プロトコルの stdio 汚染を防止。
228
- - **自動化テストスイート**:[`tests/setup_test.js`](tests/setup_test.js) を追加(21 テスト 100% 合格)。
229
- - **Skill Compositions スキル合成とエンドツーエンドパイプライン (`src/server.ts`, `docs/`)**:
230
- - 3 つの新しい MCP ワークフロープロンプトを追加:`feature-pipeline`、`structured-debug`、`skill-composition`。
231
- - 4 言語による包括的なドキュメント([`docs/skill-compositions.ja.md`](docs/skill-compositions.ja.md))と横型 Mermaid フローチャート、ASCII 図を追加。
232
- - [`skills/using-superpowers/SKILL.md`](skills/using-superpowers/SKILL.md) および [`skills/writing-plans/SKILL.md`](skills/writing-plans/SKILL.md) に `Recommended Skill` メタデータ標準とコントローラー・サブエージェント間プロトコルを追加。
233
- - [`tests/prompts_compositions_test.js`](tests/prompts_compositions_test.js) を追加(7 テスト 100% 合格)。
234
- - **プロンプトセキュリティ強化とライフサイクルの完結 (`src/server.ts`)**:
235
- - `interpolateTemplate` を 1 パス正規表現置換にアップグレードし、連鎖的なプレースホルダー展開攻撃を根絶。
236
- - 全 9 プロンプトに 32 KB 長さクランプと `hasOwnProperty` 検証を適用。
237
- - `structured-debug` に Stage 6(レビュー修正)と Stage 7(ブランチ整理・完了)を追加。
238
- - **包括的なセキュリティ監査と検証**:
239
- - `npm audit` で脆弱性 0 を確認。全 5 テストスイート(100+ アサーション)が 100% 合格。[`SECURITY.md`](SECURITY.md) を更新。
240
-
241
- ### v6.3.3
242
-
243
- - **MCP 標準プロンプトサポート (`src/server.ts`)**:
244
- - 標準プロンプトハンドラーを実装し、IDE プロンプトピッカーで利用可能な 6 つのプロンプト(`session-start`、`sdd-implementer`、`sdd-task-reviewer`、`sdd-re-review`、`spec-reviewer`、`plan-reviewer`)を登録。
245
- - **マルチハーネスリファレンスマッピング**:
246
- - Devin CLI([`references/devin-tools.md`](skills/using-superpowers/references/devin-tools.md))および OpenCode([`references/opencode-tools.md`](skills/using-superpowers/references/opencode-tools.md))向けのネイティブツールマッピングを追加。
247
- - **多言語ドキュメントの同期**:
248
- - 全言語の README で MCP 機能対応表(Tools / Prompts / Resources)およびマルチハーネス対応マトリックスを統一。
249
- - **テストスイートの拡張**:
250
- - `prompts/list` および `prompts/get` パラメータ注入の自動化テストアサーションを追加。
251
-
252
246
  👉 *これまでの詳細なリリース履歴については、完全な [CHANGELOG.md](CHANGELOG.md) を参照してください。*
253
247
 
254
248
  ---
package/README.ko.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [English](README.md) | [繁體中文](README.zh-TW.md) | [日本語](README.ja.md) | [한국어](README.ko.md)
4
4
 
5
- [![Version](https://img.shields.io/badge/version-6.3.6-blue.svg)](https://github.com/Poseidoncode/superpowers-mcp)
5
+ [![Version](https://img.shields.io/badge/version-6.3.8-blue.svg)](https://github.com/Poseidoncode/superpowers-mcp)
6
6
  [![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
7
7
 
8
8
  이 문서는 Superpowers 스킬 라이브러리와 자율 에이전트 워크플로우를 독립적이고 고성능이며 안전한 **Model Context Protocol (MCP)** 서버로 패키징한 사용 지침을 요약한 것입니다.
@@ -23,11 +23,11 @@
23
23
  | :--- | :--- | :--- |
24
24
  | **Tools** | `list_skills`, `read_skill` | 14개의 Superpowers 스킬을 온디맨드로 검색, 로드 및 확인합니다. |
25
25
  | **Prompts** | 9개의 네이티브 Prompts | `session-start`, `feature-pipeline`, `structured-debug`, `skill-composition`, `sdd-implementer`, `sdd-task-reviewer`, `sdd-re-review`, `spec-reviewer`, `plan-reviewer` |
26
- | **Resources** | 14개의 Direct Skill URIs | `skill://superpowers/<skill-name>` (MCP 표준 기반 직접 접근) |
26
+ | **Resources** | 14개 Skill URI + 1개 가이드 | `skill://superpowers/<skill-name>` 및 `guide://superpowers/skill-compositions` |
27
27
 
28
28
  ### AI 에이전트와 대화하기 (기본 사용법)
29
29
 
30
- 설치 또는 구성이 완료되면 AI 에이전트가 `Superpowers Skills` 및 `Prompts`를 자동으로 인식하고 호출할 수 있습니다.
30
+ 설치 또는 구성 후 MCP 클라이언트는 Superpowers tools, prompts, resources를 탐색할 수 있습니다. MCP prompt는 사용자가 선택하여 시작하며, 이후 에이전트가 지침에 따라 `read_skill`을 호출합니다.
31
31
 
32
32
  **기본 대화 예시:**
33
33
  - **엔지니어링 규율 초기화**: "`session-start` 프롬프트 적용해줘" (Superpowers 규칙 및 환경 주입)
@@ -125,24 +125,24 @@
125
125
 
126
126
  ## 🔄 스킬 조합 및 워크플로우 파이프라인 (Skill Compositions & Pipelines)
127
127
 
128
- 여러 단계의 복잡한 엔지니어링 작업을 수행할 때는 아래의 **원클릭 엔드투엔드 파이프라인**을 사용하세요(상세 가이드: [`docs/skill-compositions.ko.md`](docs/skill-compositions.ko.md)):
128
+ 여러 단계의 복잡한 작업에는 아래 **대화형 워크플로 런처**를 사용하세요. 설계, 계획 검토, 브랜치 마무리 단계에서 사용자 결정을 기다리므로 서버 측 무인 자동화가 아닙니다(상세: [`docs/skill-compositions.ko.md`](docs/skill-compositions.ko.md)).
129
129
 
130
130
  ### 1. 엔드투엔드 새 기능 개발 파이프라인 (Feature Development Pipeline)
131
131
  ```
132
132
  brainstorming ➔ writing-plans ➔ using-git-worktrees ➔ subagent-driven-development (TDD) ➔ verification-before-completion ➔ requesting-code-review ➔ finishing-a-development-branch
133
133
  ```
134
- - **원클릭 명령어:** "`feature-pipeline`을 적용하여 [기능 이름] 개발을 진행해줘"
134
+ - **시작 방법:** MCP Prompts 메뉴에서 `feature-pipeline`을 선택하고 필수 `feature_name`과 선택적 `requirements`를 입력합니다.
135
135
  - **특징:** 요구사항 확인 (Spec) ➔ 작업 분해 (Plan) ➔ Worktree 격리 ➔ 독립 서브에이전트 + TDD 구현 ➔ 전체 테스트 검증 ➔ 대립 코드 리뷰 ➔ 브랜치 마무리.
136
136
 
137
137
  ### 2. 구조화된 문제 해결 파이프라인 (Structured Troubleshooting Pipeline)
138
138
  ```
139
139
  systematic-debugging ➔ using-git-worktrees ➔ dispatching-parallel-agents ➔ test-driven-development ➔ verification-before-completion ➔ requesting-code-review ➔ finishing-a-development-branch
140
140
  ```
141
- - **원클릭 명령어:** "`structured-debug`를 적용하여 다음 오류를 분석하고 수정해줘: [오류 로그]"
141
+ - **시작 방법:** MCP Prompts 메뉴에서 `structured-debug`를 선택하고 문제 또는 실패 테스트를 입력합니다.
142
142
  - **특징:** 근본 원인 가설 분해 ➔ Worktree 격리 병렬 조사 ➔ 다중 에이전트 검증 ➔ 실패 테스트 작성 및 수정 ➔ 완전한 회귀 검증 ➔ 리뷰 지적 해결 ➔ 브랜치 마무리.
143
143
 
144
144
  ### 3. 동적 워크플로우 가이드 (Dynamic Workflow Guide)
145
- - **원클릭 명령어:** "`skill-composition`을 적용하여 현재 상황 [리팩토링/마이그레이션/레거시 코드 보호]에 맞는 절차를 안내해줘"
145
+ - **시작 방법:** `skill-composition`을 선택해 리팩터링, 마이그레이션, 레거시 코드용 권장 흐름을 확인합니다. 현재 이 시나리오에는 전용 런처 prompt가 없습니다.
146
146
  - **특징:** 대규모 리팩토링, 레거시 시스템 안전망 구축, 온보딩에 맞는 최적의 파이프라인을 동적으로 추천:
147
147
  - **대규모 리팩토링 및 마이그레이션 (Pipeline 3):** `brainstorming` ➔ `writing-plans (skeleton-first)` ➔ `using-git-worktrees` ➔ `subagent-driven-development` ➔ `verification-before-completion` ➔ `requesting-code-review` ➔ `finishing-a-development-branch`
148
148
  - **레거시 코드베이스 안전망 (Pipeline 4):** `brainstorming` ➔ `writing-plans` ➔ `test-driven-development (characterization)` ➔ `systematic-debugging` ➔ `verification-before-completion`
@@ -171,11 +171,57 @@ systematic-debugging ➔ using-git-worktrees ➔ dispatching-parallel-agents ➔
171
171
  | 13 | **🤖 고급 에이전트 제어** | **`using-superpowers`** | **기본 규율 및 스킬 로드**:작업 전 적절한 스킬을 탐색하고 적용하도록 안내하는 Superpowers 기본 규율. | 세션 시작 시 자동으로 로드되어 AI의 행동 규범을 설정. |
172
172
  | 14 | **🤖 고급 에이전트 제어** | **`writing-skills`** | **스킬 작성 및 관리**:새로운 Superpowers 스킬을 생성, 테스트 및 패키징하는 표준 가이드. | 팀 전용 새 스킬을 작성하거나 기존 스킬을 확장할 때. |
173
173
 
174
- ---
175
-
176
174
  ## 🆕 최근 업데이트
177
175
 
178
- ### v6.3.6 (최신)
176
+ ### v6.3.8 (최신)
177
+
178
+ - **실행 가능한 대화형 워크플로 런처**:
179
+ - `feature-pipeline`과 `structured-debug`는 단계별 명시적 `read_skill` 호출을 제공하고, 필수 사용자 승인 게이트를 유지하며, MCP 서버 내부가 아닌 클라이언트 Agent가 실행한다는 점을 명확히 밝힙니다.
180
+ - 멀티 Agent를 지원하는 Host에서는 Subagent를 사용하고, 그 외에는 없는 기능을 사용했다고 표현하지 않고 인라인 또는 순차 실행으로 폴백합니다.
181
+ - `read_skill`은 스킬 이름 단독 형식과 문서화된 `superpowers:` 접두사 형식을 모두 지원합니다.
182
+ - Skill Compositions 가이드가 npm 패키지에 포함되며 `guide://superpowers/skill-compositions`에서도 읽을 수 있습니다.
183
+ - **유니버설 글로벌 설정 엔진 동시성 안전, Inode 방어 및 심볼릭 링크 탈출 격리**:
184
+ - **Allowed Roots 경계 격리**: 설정 파일 대상을 사용자가 명시한 허용 루트(`homeDir`, `appData`, `localAppData`) 내부로 제한하여 상위 디렉터리 심볼릭 링크 탈출 공격 차단.
185
+ - **낙관적 동시성 충돌 감지**: 원자적 `fs.renameSync` 직전에 디스크 내용과 `expectedContent`를 대조하여 다중 프로세스 경쟁으로 인한 최신 설정 덮어쓰기 방지.
186
+ - **디렉터리 Inode & Dev TOCTOU 방어**: 임시 파일 작성 전후로 디렉터리의 디바이스 ID와 inode를 검증하여 디렉터리 교체 공격 차단.
187
+ - **Fail-Closed 엄격 구문 분석**: JSON 루트 또는 서버 필드가 Plain Object가 아닐 경우 즉시 거부하여 프로토타입 오염 방지.
188
+ - **핵심 스킬 엔진 결정론적 정렬 및 동적 캐시 재검증**:
189
+ - **결정론적 디렉터리 색인 및 충돌 방어**: 디렉터리를 알파벳순으로 정렬하고 충돌 키를 즉시 감지하여 안전하게 중복 건너뛰기.
190
+ - **자동 캐시 재검증 (`CACHE_REVALIDATE_MS = 1000`)**: 디스크 변경 사항을 1초 내에 자동 감지하여 서버 재시작 없이 편집 내용 반영.
191
+ - **대소문자 폴딩 및 정규 경로 방어**: `src/server.ts`가 darwin/win32에서 대소문자 폴딩과 `fs.realpathSync`를 수행하여 시스템 보호 디렉터리 접근 원천 차단.
192
+ - **RFC 6455 WebSocket 프로토콜 강화 및 복원력 있는 로그 압축**:
193
+ - `CONTINUATION` (0x00) 분할 메시지 재조합 완전 지원, 제어 프레임 분할 금지(`opcode >= 0x8 && !fin`) 및 비표준 RSV 확장 엄격 차단.
194
+ - 후미 탄력적 로그 압축: 이벤트 로그가 1 MB 한도에 도달하면 개행 정렬된 최근 레코드를 보존하여 전체 손실 방지.
195
+ - 비공개 파일 디스크립터를 `O_RDWR | O_APPEND | O_CREAT | O_NOFOLLOW`로 안전하게 열기.
196
+ - **Shell 및 PowerShell 스크립트 명령 주입 방어**:
197
+ - `find-polluter.sh` 및 `find-polluter.ps1`: 배열 전개 인자 전달 (`"${TEST_COMMAND[@]}"`, `& $testCommand @testCommandArgs`)과 공백 안전 읽기 루프로 셸 주입 원천 차단.
198
+ - `sdd-workspace`: `cd` 실행 전 `CDPATH=''`를 재설정하여 환경 변수를 통한 디렉터리 탈취 차단.
199
+ - `sdd-workspace.ps1`: BOM 없는 UTF-8(`[System.Text.UTF8Encoding]::new($false)`)로 플랜 마커를 저장하여 Unicode 경로 정합성 유지.
200
+ - **전체 자동 회귀 테스트 기준선**:
201
+ - 테스트 스위트를 **274개 자동 어서션**(Node.js: 145, Bash: 35, PowerShell: 94)으로 확장하고 100% 통과율 유지.
202
+
203
+ ### v6.3.7
204
+
205
+ - **업스트림 동기화 — 배치 1~3 (obra/superpowers)**:
206
+ - **스킬 자동 라우팅**: `systematic-debugging`과 `test-driven-development` 설명에 트리거 문구(`"tdd"`, `"systematic debug"` 등)와 상호 크로스 라우트를 추가하여 MCP 클라이언트의 스킬 선택 정확도를 향상.
207
+ - **테스트 명령이 없을 때의 증거 규율**: `verification-before-completion`에 "When There Is No Test Command" 섹션 추가. 보고서, 연구, 감사, 서신 작업은 산출물을 다시 열어 증명 가능한 것을 증명하고 미완료 항목을 명시해야 하며, "완전함"만 주장할 수 있고 "정확함"은 주장할 수 없음.
208
+ - **브레인스토밍 의도 게이트**: "Establish Shared Understanding"(의도 탐색 → 이해 되쓰기 → 설계 반영) 신설 및 HARD-GATE를 경로별 전제 조건 목록으로 재작성. 한 번의 승인을 나머지 단계 생략 허가로 해석하는 것을 금지.
209
+ - **플래닝 핸드오프 리뷰**: brainstorming의 스펙 셀프 리뷰를 0.0–9.9 평가 + burden ledger + 단일 유계 개선 패스 + 읽기 전용 재평가로 승격. 실패 시 초안을 복원하는 안전 규칙 포함.
210
+ - **저장된 계획 검토 및 상황별 핸드오프**: `writing-plans`는 실행 전에 사람이 저장된 계획을 검토하도록 요구하며, 실행 방식이 지정되지 않은 경우 고정 기본값 대신 이 계획에 맞는 추천을 제시.
211
+ - **계획 체크박스 기록**: `executing-plans`와 `subagent-driven-development`가 완료 메시지와 동시에 계획 파일의 단계를 체크.
212
+ - **원격 안전 경계**: `using-git-worktrees`는 공유 ref에서 분기할 때 `--no-track`을 필수로 요구하고 `git branch -vv` 추적 점검(첫 커밋 전 `--unset-upstream`)을 수행한다. `executing-plans`는 커밋을 로컬로 유지하고 공유 브랜치 재작성을 금지하며, implementer는 작업 중 push 요구를 BLOCKED로 컨트롤러에 보고한다.
213
+ - **Discoveries 원장**: SDD 진행 원장에 `## Discoveries` 섹션을 추가하여 태스크 간 발견이 compaction을 넘어 다음 디스패치의 인터페이스 조항으로 이어진다.
214
+ - **보류 발견 내보내기**: 플랜 워크스페이스 삭제 전에 `Ruling:`/`minor (deferred)`/`parked` 줄을 PR의 "Deferred items" 체크리스트 또는 커밋된 `docs/superpowers/follow-ups/<plan>.md`로 내보낸다.
215
+ - **Greenfield SDD 스크립트**: 리포지토리가 아직 없으면 `sdd-workspace`가 현재 디렉터리로 폴백하고(`.ps1` 동일), `review-package`는 비리포지토리 환경에서 실행 가능한 오류를 반환한다.
216
+ - **TDD 특성화 가드**: 동작 보존 리팩터링을 위한 5단계 절차(변이 → 실패 확인 → VCS 복원 → 그린 유지)를 추가하고 경계·변이 점검 섹션에서 상호 참조한다.
217
+ - **업스트림 콘텐츠 동기화 — 배치 4**: brainstorm 시작 스크립트가 `BRAINSTORM_HOST`/`BRAINSTORM_URL_HOST`에서 호스트 기본값을 가져오고(`--host`/`--url-host` 우선), `writing-skills`에 콘텐츠 이동 시 링크 재해석 절차를 추가했으며, SDD 리뷰어가 전체 보고서를 `…/task-N-review.md`에 쓰고 15줄 미만 요약만 반환합니다 — MCP에 `review_file` 인자(요청 경로가 정규화 후 보고서나 brief 파일과 일치하면 파생된 `-review.md`로 대체)와 `[FIX_BASE_SHA]`를 실제로 치환하는 `fix_base_sha` 별칭을 추가.
218
+ - **업스트림 드리프트 리포트**: `npm run drift`가 커밋된 베이스라인과 `obra/superpowers`를 비교해 채택된 파일 변경, 로컬에 없는 가져오기, 포크 전용 추가를 나열합니다. `npm run drift:record -- --ignore <skill>`로 검토된 동기화 후 갱신하며, 쓰기 전에 잘린 API tree를 거부합니다.
219
+ - **MCP 표면 커버리지 테스트**: 디스크의 모든 스킬은 자신의 콘텐츠를 제공하는 MCP 리소스로 노출되어야 하며, 프롬프트 목록은 4개 README와 정확히 일치해야 합니다.
220
+ - **MCP 설명 정합성**: 업스트림의 이스케이프 따옴표 형식을 인용 없는 YAML plain scalar로 적응하여 `SkillsManager`가 MCP로 리터럴 백슬래시를 내보내지 않도록 함.
221
+ - **회귀 가드**: `tests/upstream_sync_test.js`를 배치 1~4를 포괄하는 22개 라벨 체크로 확장. 전체 스위트 통과(npm 8개 스위트 139개 체크, PowerShell 90개 어서션, SDD 16 + 호스트 기본 11 + render-graph 8개 bash 어서션).
222
+ - **릴리스 준비 강화**: Bash와 PowerShell brainstorm host 테스트가 background 모드를 명시적으로 강제하여 전체 264개 검증이 `CODEX_CI=1`에서도 완료됩니다. `package-lock.json`을 v6.3.7 및 Node `>=18`과 동기화하고 npm repository와 CLI `bin` 메타데이터를 정규화했으며, `npm publish --dry-run`과 패키지 설치 smoke test로 검증했습니다.
223
+
224
+ ### v6.3.6
179
225
 
180
226
  - **극한의 성능 최적화 (2배~8.1배 가속)**:
181
227
  - **스킬 병렬 인덱싱 및 사전 캐싱**: `SkillsManager.listSkills`를 비동기 병렬 디렉토리 탐색(`Promise.all`)과 루트 경로 사전 확인 캐싱으로 업그레이드하여 콜드 스타트 인덱싱 지연 시간을 4.79ms에서 2.35ms로 단축(**2.04배 속도 향상**).
@@ -195,60 +241,6 @@ systematic-debugging ➔ using-git-worktrees ➔ dispatching-parallel-agents ➔
195
241
  - **다국어 문서 동기화**:
196
242
  - 모든 언어의 README([`README.md`](README.md), [`README.zh-TW.md`](README.zh-TW.md), [`README.ja.md`](README.ja.md), [`README.ko.md`](README.ko.md))에서 지원 환경 목록, 성능 지표, 원클릭 명령 표 동기화.
197
243
 
198
- ### v6.3.5
199
-
200
- - **7개 신규 AI 에이전트 및 편집기 환경 원클릭 설치 지원 (`src/setup-runner.ts`, `scripts/install.sh`)**:
201
- - 구성 엔진을 확장하여 총 15개 AI 개발 환경 지원:
202
- - **GitHub Copilot (VS Code Insiders)**: `Code - Insiders/User/mcp.json` (안정 버전 VS Code와의 충돌을 원천 방지하는 독립 물리 경로 격리, 별칭: `copilot-insiders`, `vscode-insiders`, `code-insiders`, `insiders`, `insider`)
203
- - **QwenPaw (개인 AI 어시스턴트 워크스테이션)**: `~/.qwenpaw/config.json` (`copaw` 호환, 별칭: `qwenpaw`, `copaw`)
204
- - **Cline (VS Code / CLI)**: `.../saoudrizwan.claude-dev/settings/cline_mcp_settings.json` (별칭: `cline`, `claude-dev`)
205
- - **Kilo Code**: `~/.config/kilo/kilo.jsonc` (적응형 `"mcp"` 루트 사양, 별칭: `kilo`, `kilocode`)
206
- - **Qoder**: `~/.qoder/settings.json` (별칭: `qoder`)
207
- - **Kiro**: `~/.kiro/settings/mcp.json` (별칭: `kiro`, `kiro-code`)
208
- - **Trae**: `.../Trae/User/mcp.json` (macOS, Windows, Linux 및 Trae CN 크로스 플랫폼 지원)
209
- - Kilo Code 고유의 딕셔너리 구조를 수용하는 `"json-mcp"` 형식 유형 추가.
210
- - `runSetup`을 통해 `harness.defaultConfig`로부터 템플릿을 주입하여 Single Source of Truth (SSOT) 확립.
211
- - **듀얼 Subagent 아키텍처 및 품질 코드 리뷰 (Code Review)**:
212
- - '아키텍처 및 보안 검토자'와 '품질 및 엣지 케이스 검토자' 2개의 전문 에이전트로 리뷰 수행.
213
- - 원자적 쓰기(`crypto.randomBytes(8)` + `flag: "wx"`), 심볼릭 링크 방어, 최소 권한(`0o700`/`0o600`), 기본 디스크 무오염 원칙 검증 완료.
214
- - 프로젝트 전반의 보안 감사를 완료하고 [`SECURITY.md`](SECURITY.md) 갱신(173개 자동화 어서션 100% 통과).
215
- - **테스트 스위트 대폭 확장 (`tests/setup_test.js`)**:
216
- - 단위 테스트를 21개에서 32개로 확장(100% 통과). Claude Desktop, Kimi Work, Hermes Desktop에 대한 엔드투엔드 샌드박스 테스트 및 별칭 검증 완료.
217
-
218
- ### v6.3.4
219
-
220
- - **Universal One-Click 글로벌 설정 엔진 (`src/setup-runner.ts`, `scripts/`)**:
221
- - 8대 주요 AI 개발 환경(Antigravity, Pi Desktop / Pi Agent, Cursor, GitHub Copilot (VS Code), Hermes Desktop / Agent, Kimi Work / Kimi Code, Claude Desktop, Devin Desktop)에 대한 무의존성 원클릭 자동 구성 지원.
222
- - CLI 명령어 `superpowers-setup` 및 `superpowers-mcp setup`을 제공하며, 크로스 플랫폼 설치 스크립트([`install.sh`](scripts/install.sh) 및 [`install.ps1`](scripts/install.ps1)) 개발.
223
- - **명시적 동의 및 안티바이러스 설계 (Explicit Consent & Anti-Virus Design)**: `--target <client>`를 필수로 요구하여 무단 디스크 스캔 및 전체 환경 임의 수정을 원천 차단(`--all` 제거).
224
- - **원자적 쓰기 방어 (`safeWriteConfig`)**: 무작위 8바이트 nonce 임시 파일, `flag: "wx"`, `renameSync`를 통한 원자적 조작으로 파일 충돌 및 손상 방지.
225
- - **심볼릭 링크 보호 및 최소 권한**: `realpathSync`로 링크 대상을 안전하게 확인하며, 새 디렉토리는 `0o700`, 설정 파일은 `0o600`으로 제한하고 백업 파일은 원본 권한을 보존.
226
- - **매개변수 인젝션 방어 및 JSONC 파싱**: `JSON.stringify`를 통한 안전한 이스케이프, 주석/후행 쉼표 허용 및 `isPlainObject` 프로토타입 오염 방어.
227
- - **CLI Stdio 격리**: `src/server.ts`에서 setup 인자를 사전 분기하여 MCP Stdio 프로토콜 오염 방지.
228
- - **자동화 테스트 스위트**: [`tests/setup_test.js`](tests/setup_test.js) 추가(21개 테스트 100% 통과).
229
- - **Skill Compositions 스킬 구성 및 엔드투엔드 파이프라인 (`src/server.ts`, `docs/`)**:
230
- - 3개의 새로운 MCP 워크플로우 프롬프트 추가: `feature-pipeline`, `structured-debug`, `skill-composition`.
231
- - 4개 국어 현지화 가이드([`docs/skill-compositions.ko.md`](docs/skill-compositions.ko.md)), 가로형 Mermaid 플로우차트 및 ASCII 워크플로우 다이어그램 추가.
232
- - [`skills/using-superpowers/SKILL.md`](skills/using-superpowers/SKILL.md) 및 [`skills/writing-plans/SKILL.md`](skills/writing-plans/SKILL.md)에 `Recommended Skill` 메타데이터 표준 및 컨트롤러-서브에이전트 간 프로토콜 추가.
233
- - [`tests/prompts_compositions_test.js`](tests/prompts_compositions_test.js) 추가(7개 테스트 100% 통과).
234
- - **프롬프트 보안 강화 및 라이프사이클 완성 (`src/server.ts`)**:
235
- - `interpolateTemplate`을 단일 패스 정규식 치환으로 업그레이드하여 연쇄적 플레이스홀더 인젝션 위험 제거.
236
- - 전체 9개 프롬프트에 32 KB 길이 제한 및 `hasOwnProperty` 검증 적용.
237
- - `structured-debug`에 Stage 6(리뷰 조치) 및 Stage 7(브랜치 정리/마무리) 추가.
238
- - **포괄적 보안 감사 및 검증**:
239
- - `npm audit` 취약점 0건 확인, 전체 5대 테스트 스위트(100+ 어서션) 100% 통과, [`SECURITY.md`](SECURITY.md) 갱신.
240
-
241
- ### v6.3.3
242
-
243
- - **MCP 표준 프롬프트 지원 (`src/server.ts`)**:
244
- - 표준 프롬프트 핸들러를 구현하여 IDE 프롬프트 선택기에서 사용할 수 있는 6개의 프롬프트(`session-start`, `sdd-implementer`, `sdd-task-reviewer`, `sdd-re-review`, `spec-reviewer`, `plan-reviewer`) 등록.
245
- - **멀티 하네스 참조 매핑**:
246
- - Devin CLI([`references/devin-tools.md`](skills/using-superpowers/references/devin-tools.md)) 및 OpenCode([`references/opencode-tools.md`](skills/using-superpowers/references/opencode-tools.md))용 네이티브 도구 매핑 추가.
247
- - **다국어 문서 동기화**:
248
- - 모든 언어의 README에서 MCP 기능 지원 표(Tools / Prompts / Resources) 및 멀티 하네스 지원 매트릭스 통일.
249
- - **테스트 스위트 확장**:
250
- - `prompts/list` 및 `prompts/get` 매개변수 주입에 대한 자동화 테스트 어서션 추가.
251
-
252
244
  👉 *이전 버전의 전체 릴리스 내역은 [CHANGELOG.md](CHANGELOG.md)를 참조하세요.*
253
245
 
254
246
  ---
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [English](README.md) | [繁體中文](README.zh-TW.md) | [日本語](README.ja.md) | [한국어](README.ko.md)
4
4
 
5
- [![Version](https://img.shields.io/badge/version-6.3.6-blue.svg)](https://github.com/Poseidoncode/superpowers-mcp)
5
+ [![Version](https://img.shields.io/badge/version-6.3.8-blue.svg)](https://github.com/Poseidoncode/superpowers-mcp)
6
6
  [![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
7
7
 
8
8
  This document summarizes the information and usage instructions for packaging the Superpowers skills and autonomous workflow system into an independent, high-performance, and secure **Model Context Protocol (MCP)** server.
@@ -23,11 +23,11 @@ This document summarizes the information and usage instructions for packaging th
23
23
  | :--- | :--- | :--- |
24
24
  | **Tools** | `list_skills`, `read_skill` | Discover, search, and load full skill instructions and checklists on demand. |
25
25
  | **Prompts** | 9 Native Prompts | `session-start`, `feature-pipeline`, `structured-debug`, `skill-composition`, `sdd-implementer`, `sdd-task-reviewer`, `sdd-re-review`, `spec-reviewer`, `plan-reviewer` |
26
- | **Resources** | 14 Direct Skill URIs | `skill://superpowers/<skill-name>` (Standard direct URI access) |
26
+ | **Resources** | 14 Skill URIs + 1 Guide | `skill://superpowers/<skill-name>` plus `guide://superpowers/skill-compositions` |
27
27
 
28
28
  ### Chatting with the AI Agent (Basic Usage)
29
29
 
30
- Once installed or configured, your AI Agent will automatically discover and invoke `Superpowers Skills` and `Prompts`.
30
+ Once installed or configured, your MCP client can discover the Superpowers tools, prompts, and resources. MCP prompts are user-invoked; select one from your client's MCP Prompts menu. Skill loading then depends on the agent following the selected prompt and calling `read_skill`.
31
31
 
32
32
  **Basic Interaction Examples:**
33
33
  - **Initialize Engineering Discipline:** "Apply `session-start` prompt" (Injects Superpowers rules & context)
@@ -125,24 +125,25 @@ This is the easiest way as it handles path resolution automatically.
125
125
 
126
126
  ## 🔄 Skill Compositions & Workflow Pipelines
127
127
 
128
- For complex, multi-step engineering tasks, use these **one-click end-to-end pipelines** where the AI guides you step-by-step (see detailed guide: [`docs/skill-compositions.md`](docs/skill-compositions.md)):
128
+ For complex engineering tasks, use these **interactive workflow launchers**. They start an agent-guided process and pause at design, plan-review, and branch-finishing decisions; they do not execute server-side or run unattended. See the published [`Skill Compositions Guide`](docs/skill-compositions.md), also available as the MCP resource `guide://superpowers/skill-compositions`.
129
129
 
130
130
  ### 1. New Feature Development Pipeline
131
131
  ```
132
132
  brainstorming ➔ writing-plans ➔ using-git-worktrees ➔ subagent-driven-development (TDD) ➔ verification-before-completion ➔ requesting-code-review ➔ finishing-a-development-branch
133
133
  ```
134
- - **One-Click Command:** "Please apply `feature-pipeline` to build [Feature Name]"
135
- - **Workflow:** Clarifies requirements (Spec) ➔ Decomposes plan ➔ Isolates worktree ➔ Implements via fresh subagents & TDD ➔ Runs full test suite ➔ Conducts code review ➔ Finishes branch.
134
+ - **Start it:** Select `feature-pipeline` from your client's MCP Prompts menu and provide `feature_name` plus optional `requirements`.
135
+ - **Workflow:** Clarifies requirements (Spec) ➔ waits for design approval ➔ creates a reviewable plan ➔ waits for plan approval ➔ isolates a worktree ➔ implements with SDD or the inline fallback and TDD ➔ verifies ➔ reviews ➔ asks how to finish the branch.
136
+ - **Fallback:** If the host has no multi-agent tools, the workflow uses `executing-plans` instead of claiming to dispatch subagents.
136
137
 
137
138
  ### 2. Structured Troubleshooting Pipeline
138
139
  ```
139
140
  systematic-debugging ➔ using-git-worktrees ➔ dispatching-parallel-agents ➔ test-driven-development ➔ verification-before-completion ➔ requesting-code-review ➔ finishing-a-development-branch
140
141
  ```
141
- - **One-Click Command:** "Please apply `structured-debug` to investigate this error: [Paste Trace / Logs]"
142
+ - **Start it:** Select `structured-debug` from your client's MCP Prompts menu and provide the issue or failing tests.
142
143
  - **Workflow:** Hypothesizes root causes ➔ Isolates worktrees for parallel agents ➔ Authors failing reproduction tests ➔ Applies targeted fix ➔ Confirms zero regressions ➔ Reviews fix ➔ Finishes branch.
143
144
 
144
145
  ### 3. Dynamic Workflow Guide
145
- - **One-Click Command:** "Please apply `skill-composition` for [Refactoring / Migration / Legacy Codebase]"
146
+ - **Start it:** Select `skill-composition` to get a recommended workflow for refactoring, migration, or a legacy codebase. These scenarios do not currently have dedicated launcher prompts.
146
147
  - **Workflow:** Dynamically recommends the optimal multi-skill composition for large refactors, migration safety nets, or onboarding:
147
148
  - **Large Refactoring & Migration:** `brainstorming` ➔ `writing-plans (skeleton-first)` ➔ `using-git-worktrees` ➔ `subagent-driven-development` ➔ `verification-before-completion` ➔ `requesting-code-review` ➔ `finishing-a-development-branch`
148
149
  - **Legacy Codebase Safety Net:** `brainstorming` ➔ `writing-plans` ➔ `test-driven-development (characterization)` ➔ `systematic-debugging` ➔ `verification-before-completion`
@@ -171,11 +172,57 @@ To help you choose the right skill, we have structured all 14 skills across the
171
172
  | 13 | **🤖 Advanced Agents** | **`using-superpowers`** | **Superpowers Foundation & Discipline**: Establishes mandatory skill discovery, loading discipline, and priority rules. | Automatically loaded at session start to enforce software engineering standards. |
172
173
  | 14 | **🤖 Advanced Agents** | **`writing-skills`** | **Skill Authoring & Maintenance**: Guides the creation, testing, and packaging of new Superpowers skills. | When creating custom skills or enhancing existing skill instructions. |
173
174
 
174
- ---
175
-
176
175
  ## 🆕 Recent Updates
177
176
 
178
- ### v6.3.6 (Latest)
177
+ ### v6.3.8 (Latest)
178
+
179
+ - **Actionable Interactive Workflow Launchers**:
180
+ - `feature-pipeline` and `structured-debug` now emit explicit stage-by-stage `read_skill` calls, preserve required user approval gates, and clearly state that execution happens through the client agent rather than inside the MCP server.
181
+ - Hosts with multi-agent support can use subagent execution; other hosts fall back to inline or sequential execution without claiming unavailable capabilities.
182
+ - `read_skill` accepts both bare skill names and the documented `superpowers:` prefix.
183
+ - The composition guide is included in the npm package and available through `guide://superpowers/skill-compositions`.
184
+ - **Universal Global Setup Concurrency & Symlink Breakout Defense**:
185
+ - **Allowed Roots Boundary Containment**: Enforces destination restriction to explicit allowed user roots (`homeDir`, `appData`, `localAppData`), blocking parent-directory symlink breakout attacks.
186
+ - **Optimistic Concurrency Conflict Defense**: Compares file content against `expectedContent` immediately prior to atomic `fs.renameSync`, preventing race conditions from silently overwriting newer configurations.
187
+ - **Directory Inode & Device TOCTOU Verification**: Re-checks parent directory canonical path, device ID (`dev`), and inode (`ino`) before and after temporary file creation, blocking directory swap attacks.
188
+ - **Fail-Closed Validation**: Rejects non-object JSON roots or server fields and duplicate YAML keys.
189
+ - **Skills Core Engine Collision Defense & Dynamic Cache Revalidation**:
190
+ - **Deterministic Directory Cataloging**: Catalogs directories in deterministic alphabetical order and detects alias/name collisions in `newSkillMap`, emitting diagnostic warnings and skipping duplicates.
191
+ - **Automatic Cache Revalidation (`CACHE_REVALIDATE_MS = 1000`)**: Detects disk modifications within 1 second without requiring MCP server restarts.
192
+ - **Canonical Path Blacklisting**: Platform case-folding and `fs.realpathSync` validation to prevent symlink bypass of system directories (`/private/etc`, `/private/var`, `C:\Windows`).
193
+ - **RFC 6455 WebSocket Protocol & Resilient Stream Hardening**:
194
+ - Support for fragmented text messages (`CONTINUATION` opcode `0x00`) with payload size tracking and RFC 6455 control frame constraints (`opcode >= 0x8 && !fin` rejected).
195
+ - Resilient tail event log compaction: Preserves recent newline-delimited event records when approaching the 1 MB file cap rather than dropping all historical events.
196
+ - Event log append mode hardened with `O_RDWR | O_APPEND | O_CREAT | O_NOFOLLOW`.
197
+ - **Shell & PowerShell Script Hardening**:
198
+ - `find-polluter.sh` & `find-polluter.ps1`: Caller-supplied test command with safe array expansion (`"${TEST_COMMAND[@]}"`, `& $testCommand @testCommandArgs`) and space-safe while loop, preventing shell command injection.
199
+ - `sdd-workspace`: Sanitizes `CDPATH=''` before all `cd` operations, neutralizing directory redirection attacks.
200
+ - `sdd-workspace.ps1`: Lossless Unicode plan marker persistence using UTF-8 without BOM (`[System.Text.UTF8Encoding]::new($false)`).
201
+ - **Automated Regression Verification Floor**:
202
+ - Expanded test suite to **274 automated test assertions** across Node.js (145), Bash (35), and PowerShell (94) with a 100% pass rate.
203
+
204
+ ### v6.3.7
205
+
206
+ - **Upstream Sync — Batches 1–3 (obra/superpowers)**:
207
+ - **Automatic Skill Routing**: `systematic-debugging` and `test-driven-development` descriptions now name their typed trigger phrases (`"tdd"`, `"systematic debug"`, …) and cross-route to the sibling skill, improving skill selection inside MCP clients.
208
+ - **Evidence Without a Test Command**: `verification-before-completion` gains the "When There Is No Test Command" section — for reports, research, audits, and correspondence, re-open the artifact, prove what can be proven, and account for every part of the request while claiming *complete*, never *right*.
209
+ - **Brainstorming Intent Gates**: new "Establish Shared Understanding" step (discover intent, write back your understanding, carry it into the design) plus a rewritten HARD-GATE that lists each path's prerequisites and refuses to treat one approval as permission to skip the rest.
210
+ - **Planning-Handoff Review**: brainstorming's spec self-review becomes a scored handoff review (0.0–9.9 readiness, burden ledger, one bounded improvement pass, read-only reassessment) with a fail-safe restore rule.
211
+ - **Saved-Plan Review & Contextual Handoff**: `writing-plans` now requires the human to review the saved plan before execution and, when no method was supplied, a plan-specific execution recommendation instead of a hardcoded default.
212
+ - **Plan Checkbox Bookkeeping**: `executing-plans` and `subagent-driven-development` tick the plan file's steps in the same message as the completion bookkeeping.
213
+ - **Remote-Safety Boundary**: `using-git-worktrees` requires `--no-track` plus a `git branch -vv` tracking check (`--unset-upstream` before the first commit); `executing-plans` keeps commits local and forbids rewriting shared branches; implementers report any mid-task push demand as BLOCKED instead of pushing.
214
+ - **Discoveries Ledger**: SDD's progress ledger gains a `## Discoveries` section so cross-task findings survive compaction and feed the next dispatch's interface clauses.
215
+ - **Deferred Findings Export**: before a plan workspace is deleted, `Ruling:` / `minor (deferred)` / `parked` lines are exported to a PR "Deferred items" checklist or a committed `docs/superpowers/follow-ups/<plan>.md`.
216
+ - **Greenfield SDD Scripts**: `sdd-workspace` falls back to the current directory before a repo exists (matching `.ps1` behavior), while `review-package` refuses actionably outside a repo.
217
+ - **TDD Characterization Guard**: a five-step procedure for behavior-preserving refactors — mutate, verify failure, restore via VCS, stay green — referenced from the boundary and mutation-check sections.
218
+ - **Upstream Content Sync — Batch 4**: the brainstorm start script takes its hosts from `BRAINSTORM_HOST`/`BRAINSTORM_URL_HOST` (`--host`/`--url-host` still win), `writing-skills` gained moved-content link re-resolution, and SDD reviewers now write their full report to `…/task-N-review.md` and return under 15 lines — exposed over MCP as the new `review_file` argument (replaced by the derived `-review.md` sibling when the requested path normalises to the report or brief file), plus the `fix_base_sha` alias that finally feeds `[FIX_BASE_SHA]`.
219
+ - **Upstream Drift Report**: `npm run drift` compares the committed upstream baseline against `obra/superpowers` and lists adopted files that moved, imports missing locally, and fork-only additions; `npm run drift:record -- --ignore <skill>` refreshes it after a reviewed sync and refuses truncated API trees before writing.
220
+ - **MCP Surface Coverage Test**: every skill on disk must be an exposed MCP resource serving its own content, and the prompt inventory must match all four READMEs exactly.
221
+ - **MCP Description Fidelity**: upstream's escaped-quote descriptions were adapted to unquoted YAML plain scalars so the `SkillsManager` parser never emits literal backslashes over MCP.
222
+ - **Regression Guards**: `tests/upstream_sync_test.js` now carries 22 labeled checks covering Batches 1–4; full suite green (139 npm checkmarks across 8 suites, 90 PowerShell assertions, 16 SDD + 11 host-default + 8 render-graph bash assertions).
223
+ - **Release-Readiness Hardening**: Bash and PowerShell brainstorm host tests explicitly force background mode, so the full 264-assertion matrix also completes under `CODEX_CI=1`; `package-lock.json` now matches v6.3.7 and Node `>=18`; npm repository and CLI `bin` metadata are normalized and verified through `npm publish --dry-run` plus a packed-install smoke test.
224
+
225
+ ### v6.3.6
179
226
 
180
227
  - **Extreme Performance Optimization (2x~8.1x Speedup)**:
181
228
  - **Parallel Skill Discovery**: Upgraded `SkillsManager.listSkills` to concurrent asynchronous directory traversal (`Promise.all`) combined with pre-resolved root path caching, cutting cold-start skill indexing latency from 4.79ms to 2.35ms (**2.04x speedup**).
@@ -195,60 +242,6 @@ To help you choose the right skill, we have structured all 14 skills across the
195
242
  - **Multilingual Documentation Alignment**:
196
243
  - Synchronized supported harness directories, performance metrics, and one-click commands across all 4 localized READMEs ([`README.md`](README.md), [`README.zh-TW.md`](README.zh-TW.md), [`README.ja.md`](README.ja.md), [`README.ko.md`](README.ko.md)).
197
244
 
198
- ### v6.3.5
199
-
200
- - **7 New AI Agent & Editor Harnesses Support (`src/setup-runner.ts`, `scripts/install.sh`)**:
201
- - Expanded universal one-click setup engine to support 7 additional AI developer platforms, bringing total coverage to 15 major AI environments:
202
- - **GitHub Copilot (VS Code Insiders)** (`Code - Insiders/User/mcp.json`, strictly isolated physical configuration path preventing collisions with Stable VS Code, aliases: `copilot-insiders`, `vscode-insiders`, `code-insiders`, `insiders`, `insider`)
203
- - **QwenPaw** (`~/.qwenpaw/config.json`, backward-compatible with `copaw`)
204
- - **Cline** (`.../saoudrizwan.claude-dev/settings/cline_mcp_settings.json`, aliases: `cline`, `claude-dev`)
205
- - **Kilo Code** (`~/.config/kilo/kilo.jsonc` with adaptive `"mcp"` root and array-based command schema, aliases: `kilo`, `kilocode`, `kilo-code`)
206
- - **Qoder** (`~/.qoder/settings.json`, alias: `qoder`)
207
- - **Kiro** (`~/.kiro/settings/mcp.json`, aliases: `kiro`, `kiro-code`)
208
- - **Trae** (`.../Trae/User/mcp.json`, cross-platform support for macOS, Windows, Linux, and Trae CN)
209
- - Added `"json-mcp"` schema format type to dynamically handle Kilo Code's unique dictionary structure.
210
- - Enforced Single Source of Truth (SSOT) by wiring `harness.defaultConfig(cmd, args)` directly through `runSetup` into `updateJsonConfig`.
211
- - **Dual-Subagent Architectural & Code Quality Review**:
212
- - Dispatched specialized Architectural & Security Reviewer and Quality & Edge-Case Reviewer subagents.
213
- - Verified atomic writes (`crypto.randomBytes(8)` + `flag: "wx"`), symlink containment, least-privilege permissions (`0o700`/`0o600`), and zero-pollution disk defaults across all 15 harnesses.
214
- - Completed comprehensive project-wide security review with 173 automated regression test assertions.
215
- - **Automated Test Suite Expansion (`tests/setup_test.js`)**:
216
- - Expanded setup regression tests from 21 to 32 tests (100% pass rate), adding end-to-end sandbox creation, aliases, and update assertions for Claude Desktop, Kimi Work, and Hermes Desktop.
217
-
218
- ### v6.3.4
219
-
220
- - **Universal One-Click Global Setup Engine (`src/setup-runner.ts`, `scripts/`)**:
221
- - One-click zero-dependency configuration for 8 major AI environments: Antigravity, Pi Desktop / Pi Agent, Cursor, GitHub Copilot (VS Code), Hermes Desktop / Agent, Kimi Work / Kimi Code, Claude Desktop, and Devin Desktop.
222
- - Added CLI executables `superpowers-setup` and `superpowers-mcp setup` with cross-platform installers ([`install.sh`](scripts/install.sh) and [`install.ps1`](scripts/install.ps1)).
223
- - **Explicit Consent & Anti-Virus Design**: Mandated explicit `--target <client>` requirement, completely eliminating unprompted bulk disk scanning or blind crawling (`--all` removed).
224
- - **Atomic File Operations & Race Defense (`safeWriteConfig`)**: Implemented non-destructive atomic writes via temporary files with process IDs and cryptographically random 8-byte nonces (`crypto.randomBytes(8)`), exclusive creation (`wx`), and atomic `renameSync`.
225
- - **Symlink Preservation & Permissions**: Preserves symlink destinations with `realpathSync`, restricts created directories to `0o700` and config files to `0o600`.
226
- - **Injection Defense & JSONC Parsing**: Parameter escaping via `JSON.stringify`, JSONC comment tolerance, and `isPlainObject` prototype pollution defense.
227
- - **CLI Transport Stdio Isolation**: Front-intercepts setup CLI commands in `src/server.ts` before MCP Stdio transport initialization.
228
- - **Comprehensive Test Suite**: Added [`tests/setup_test.js`](tests/setup_test.js) with 21 unit assertions (100% PASS).
229
- - **Skill Compositions & End-to-End Orchestration Pipelines (`src/server.ts`, `docs/`)**:
230
- - Added 3 new MCP workflow prompts: `feature-pipeline`, `structured-debug`, and `skill-composition`.
231
- - Comprehensive localized documentation in [`docs/skill-compositions.md`](docs/skill-compositions.md) (EN), [`docs/skill-compositions.zh-TW.md`](docs/skill-compositions.zh-TW.md) (ZH-TW), [`docs/skill-compositions.ja.md`](docs/skill-compositions.ja.md) (JA), and [`docs/skill-compositions.ko.md`](docs/skill-compositions.ko.md) (KO) with horizontal Mermaid flowcharts and ASCII workflow diagrams.
232
- - Enhanced [`skills/using-superpowers/SKILL.md`](skills/using-superpowers/SKILL.md) and [`skills/writing-plans/SKILL.md`](skills/writing-plans/SKILL.md) with `Recommended Skill` task metadata standards and controller-to-subagent dispatch protocols.
233
- - Added [`tests/prompts_compositions_test.js`](tests/prompts_compositions_test.js) with 7 comprehensive assertions (100% PASS).
234
- - **Prompts Security Hardening & Lifecycle Fixes (`src/server.ts`)**:
235
- - Upgraded `interpolateTemplate` to single-pass regex replacement, eliminating cascading placeholder injection risks.
236
- - Enforced universal `getStringArg` with a 32 KB clamp and `hasOwnProperty` validation across all 9 prompts.
237
- - Augmented `structured-debug` with Stage 6 (findings resolution via `receiving-code-review`) and Stage 7 (branch finishing and cleanup via `finishing-a-development-branch`).
238
- - **Full Security Audit & Verification**:
239
- - Verified 0 vulnerabilities across `npm audit` with exact dependency overrides for `hono`, `@hono/node-server`, `fast-uri`, and `qs`. All 5 test suites (100+ assertions) passing 100%. Updated [`SECURITY.md`](SECURITY.md).
240
-
241
- ### v6.3.3
242
-
243
- - **MCP Standard Prompts Support (`src/server.ts`)**:
244
- - Implemented standard prompt handlers, registering 6 prompts (`session-start`, `sdd-implementer`, `sdd-task-reviewer`, `sdd-re-review`, `spec-reviewer`, `plan-reviewer`) for native IDE prompt-picker usage.
245
- - **Multi-Harness Reference Mappings**:
246
- - Added platform references for Devin CLI ([`references/devin-tools.md`](skills/using-superpowers/references/devin-tools.md)) and OpenCode ([`references/opencode-tools.md`](skills/using-superpowers/references/opencode-tools.md)).
247
- - **Multi-Lingual Documentation Alignment**:
248
- - Aligned MCP capability tables (Tools, Prompts, Resources) and multi-harness matrices across all supported languages.
249
- - **Test Suite Expansion**:
250
- - Added automated test assertions for `prompts/list` and `prompts/get` parameter injection.
251
-
252
245
  👉 *For the complete release history, see [CHANGELOG.md](CHANGELOG.md).*
253
246
 
254
247
  ---