superpowers-mcp 6.3.2 → 6.3.4
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.ja.md +146 -222
- package/README.ko.md +146 -222
- package/README.md +146 -225
- package/README.zh-TW.md +146 -223
- package/out/server.js +228 -34
- package/out/setup-runner.js +57 -0
- package/out/setup.js +58 -0
- package/package.json +11 -6
- package/scripts/copy-skills.js +48 -0
- package/scripts/install.ps1 +59 -0
- package/scripts/install.sh +44 -0
- package/scripts/setup.js +31 -0
- package/skills/brainstorming/spec-document-reviewer-prompt.md +1 -0
- package/skills/subagent-driven-development/implementer-prompt.md +1 -0
- package/skills/using-superpowers/SKILL.md +11 -0
- package/skills/using-superpowers/references/devin-tools.md +41 -0
- package/skills/using-superpowers/references/opencode-tools.md +32 -0
- package/skills/writing-plans/SKILL.md +3 -0
- package/skills/writing-plans/plan-document-reviewer-prompt.md +1 -0
package/README.md
CHANGED
|
@@ -2,34 +2,93 @@
|
|
|
2
2
|
|
|
3
3
|
[English](README.md) | [繁體中文](README.zh-TW.md) | [日本語](README.ja.md) | [한국어](README.ko.md)
|
|
4
4
|
|
|
5
|
-
[](https://github.com/Poseidoncode/superpowers-mcp)
|
|
6
6
|
[](LICENSE)
|
|
7
7
|
|
|
8
|
-
This document summarizes the information and usage instructions for packaging the
|
|
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.
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
## 🚀 How to Install and Use
|
|
13
13
|
|
|
14
|
-
### Supported Environments
|
|
14
|
+
### Supported Environments & Harnesses
|
|
15
15
|
|
|
16
|
-
**Antigravity**, **Cursor**, **VSCode
|
|
16
|
+
- **AI Code Editors & IDEs**: **Antigravity (AGY)**, **Cursor**, **VSCode** (GitHub Copilot), **Devin Desktop**, **MiniMax Code Desktop**, **Codex**.
|
|
17
|
+
- **AI Desktop Applications & Harnesses**: **Hermes Desktop**, **Kimi Work**.
|
|
18
|
+
- **Local & Self-Hosted AI Platforms**: **AnythingLLM**, **LibreChat**.
|
|
17
19
|
|
|
18
|
-
###
|
|
20
|
+
### MCP Capabilities Provided
|
|
19
21
|
|
|
20
|
-
|
|
22
|
+
| Protocol Feature | Items / Count | Description |
|
|
23
|
+
| :--- | :--- | :--- |
|
|
24
|
+
| **Tools** | `list_skills`, `read_skill` | Discover, search, and load full skill instructions and checklists on demand. |
|
|
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) |
|
|
27
|
+
|
|
28
|
+
### Chatting with the AI Agent (Basic Usage)
|
|
21
29
|
|
|
22
|
-
|
|
30
|
+
Once installed or configured, your AI Agent will automatically discover and invoke `Superpowers Skills` and `Prompts`.
|
|
23
31
|
|
|
24
|
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
32
|
+
**Basic Interaction Examples:**
|
|
33
|
+
- **Initialize Engineering Discipline:** "Apply `session-start` prompt" (Injects Superpowers rules & context)
|
|
34
|
+
- **Discover Available Skills:** "List all superpowers skills"
|
|
35
|
+
- **Load an Atomic Skill:** "Use `read_skill` to load the `brainstorming` skill and help me explore requirements"
|
|
27
36
|
|
|
28
37
|
---
|
|
29
38
|
|
|
30
|
-
##
|
|
39
|
+
## ⚡ Targeted One-Click Setup
|
|
40
|
+
|
|
41
|
+
To get up and running with Superpowers instantly without intrusive background modifications, use our **targeted, privacy-respecting** one-click setup tool.
|
|
42
|
+
|
|
43
|
+
> [!NOTE]
|
|
44
|
+
> **Run From Any Directory**: You do NOT need to clone this repository or navigate to a specific folder. You can execute these commands directly from **any directory** in your terminal. The installer automatically targets global configuration files rooted in your user home directory (`~`), instantly enabling Superpowers across all your workspaces.
|
|
45
|
+
|
|
46
|
+
> [!TIP]
|
|
47
|
+
> **Transparency & Zero-Pollution Principle**: Superpowers will NEVER silently scan or bulk-modify unselected editors like adware. You explicitly choose the client you use, ensuring 100% transparent and safe modification via **atomic write swap** (zero crash risk, **zero disk pollution by default** without dumping `.bak` files, zero impact on your existing MCP servers).
|
|
48
|
+
|
|
49
|
+
### 1. Choose Your AI Agent / Editor (Targeted One-Liner)
|
|
50
|
+
|
|
51
|
+
Select your client and run the corresponding command in your terminal:
|
|
52
|
+
|
|
53
|
+
| Harness / Client | Supported OS | One-Click Setup Command | Global Config Location |
|
|
54
|
+
| :--- | :--- | :--- | :--- |
|
|
55
|
+
| **Antigravity (Google DeepMind)** | macOS / Windows / Linux | `npx -y superpowers-mcp setup --target antigravity` | `~/.gemini/config/mcp_config.json` |
|
|
56
|
+
| **Pi Desktop / Pi Agent** | macOS / Windows / Linux | `npx -y superpowers-mcp setup --target pi-desktop` | `~/.pi/agent/mcp.json` |
|
|
57
|
+
| **Cursor** | macOS / Windows / Linux | `npx -y superpowers-mcp setup --target cursor` | `~/.cursor/mcp.json` |
|
|
58
|
+
| **GitHub Copilot (VS Code)** | macOS / Windows / Linux | `npx -y superpowers-mcp setup --target copilot` | `Code/User/mcp.json` *(VS Code `servers` schema)* |
|
|
59
|
+
| **Hermes Desktop / Agent** | macOS / Windows / Linux | `npx -y superpowers-mcp setup --target hermes` | `~/.hermes/config.yaml` *(Win: `%LOCALAPPDATA%\hermes`)* |
|
|
60
|
+
| **Kimi Work / Kimi Code** | macOS / Windows / Linux | `npx -y superpowers-mcp setup --target kimi` | `~/.kimi-code/mcp.json` |
|
|
61
|
+
| **Claude Desktop** | macOS / Windows / Linux | `npx -y superpowers-mcp setup --target claude` | `Claude/claude_desktop_config.json` |
|
|
62
|
+
| **Devin Desktop (formerly Windsurf)** | macOS / Windows / Linux | `npx -y superpowers-mcp setup --target devin` | `~/.config/devin/mcp_config.json` *(or `windsurf`)* |
|
|
63
|
+
|
|
64
|
+
*(If using Bun, append `--bun` for faster startup, e.g., `npx -y superpowers-mcp setup --target cursor --bun`)*
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
### 2. Setup via Curl or PowerShell
|
|
69
|
+
|
|
70
|
+
- **macOS / Linux (via Curl with explicit target):**
|
|
71
|
+
```bash
|
|
72
|
+
curl -fsSL https://raw.githubusercontent.com/Poseidoncode/superpowers-mcp/main/scripts/install.sh | bash -s -- --target cursor
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
- **Windows (via PowerShell with explicit target):**
|
|
76
|
+
```powershell
|
|
77
|
+
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/Poseidoncode/superpowers-mcp/main/scripts/install.ps1))) -Target cursor
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
#### Advanced Flags:
|
|
81
|
+
- `--dry-run`: Preview changes without writing to disk.
|
|
82
|
+
- `--remove`: Safely remove Superpowers configuration from the targeted client.
|
|
83
|
+
- `--backup`: Create a timestamped `.bak` backup before modifying (Default: disabled, zero-pollution).
|
|
84
|
+
- `--bun`: Use `bunx` instead of `npx` in the generated configuration.
|
|
85
|
+
- `--target <name>`: Explicit target name (aliases supported, e.g. `code`, `vscode`, `kimi-code`).
|
|
86
|
+
|
|
87
|
+
---
|
|
31
88
|
|
|
32
|
-
|
|
89
|
+
## 🛠️ Manual MCP Configuration
|
|
90
|
+
|
|
91
|
+
If you prefer configuring manually, add the following settings to your IDE or MCP client (e.g., Cursor, Antigravity, VSCode, AnythingLLM, etc.).
|
|
33
92
|
|
|
34
93
|
### Method : NPX / BUNX (Recommended)
|
|
35
94
|
|
|
@@ -57,234 +116,96 @@ This is the easiest way as it handles path resolution automatically.
|
|
|
57
116
|
|
|
58
117
|
---
|
|
59
118
|
|
|
60
|
-
##
|
|
119
|
+
## 🔄 Skill Compositions & Workflow Pipelines
|
|
61
120
|
|
|
62
|
-
|
|
63
|
-
| :--- | :--- | :--- |
|
|
64
|
-
| `brainstorming` | Before starting a new feature, exploring requirements and design. | Prevents the AI from jumping straight into writing code. |
|
|
65
|
-
| `writing-plans` | Before multi-file refactoring or complex migrations. | Establishes a clear execution blueprint. |
|
|
66
|
-
| `systematic-debugging` | When encountering any errors or abnormal behavior. | Enforces "root cause analysis" instead of guessing. |
|
|
67
|
-
| `test-driven-development` | When implementing logically challenging features. | Ensures code is accompanied by tests, achieving Red-Green-Refactor. |
|
|
68
|
-
| `verification-before-completion` | Before claiming "it's fixed" or "it's done". | Evidence-based completion confirmation. |
|
|
121
|
+
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)):
|
|
69
122
|
|
|
70
|
-
|
|
123
|
+
### 1. New Feature Development Pipeline
|
|
124
|
+
```
|
|
125
|
+
brainstorming ➔ writing-plans ➔ using-git-worktrees ➔ subagent-driven-development (TDD) ➔ verification-before-completion ➔ requesting-code-review ➔ finishing-a-development-branch
|
|
126
|
+
```
|
|
127
|
+
- **One-Click Command:** "Please apply `feature-pipeline` to build [Feature Name]"
|
|
128
|
+
- **Workflow:** Clarifies requirements (Spec) ➔ Decomposes plan ➔ Isolates worktree ➔ Implements via fresh subagents & TDD ➔ Runs full test suite ➔ Conducts code review ➔ Finishes branch.
|
|
71
129
|
|
|
72
|
-
|
|
130
|
+
### 2. Structured Troubleshooting Pipeline
|
|
131
|
+
```
|
|
132
|
+
systematic-debugging ➔ using-git-worktrees ➔ dispatching-parallel-agents ➔ test-driven-development ➔ verification-before-completion ➔ requesting-code-review ➔ finishing-a-development-branch
|
|
133
|
+
```
|
|
134
|
+
- **One-Click Command:** "Please apply `structured-debug` to investigate this error: [Paste Trace / Logs]"
|
|
135
|
+
- **Workflow:** Hypothesizes root causes ➔ Isolates worktrees for parallel agents ➔ Authors failing reproduction tests ➔ Applies targeted fix ➔ Confirms zero regressions ➔ Reviews fix ➔ Finishes branch.
|
|
73
136
|
|
|
74
|
-
###
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
137
|
+
### 3. Dynamic Workflow Guide
|
|
138
|
+
- **One-Click Command:** "Please apply `skill-composition` for [Refactoring / Migration / Legacy Codebase]"
|
|
139
|
+
- **Workflow:** Dynamically recommends the optimal multi-skill composition for large refactors, migration safety nets, or onboarding:
|
|
140
|
+
- **Large Refactoring & Migration:** `brainstorming` ➔ `writing-plans (skeleton-first)` ➔ `using-git-worktrees` ➔ `subagent-driven-development` ➔ `verification-before-completion` ➔ `requesting-code-review` ➔ `finishing-a-development-branch`
|
|
141
|
+
- **Legacy Codebase Safety Net:** `brainstorming` ➔ `writing-plans` ➔ `test-driven-development (characterization)` ➔ `systematic-debugging` ➔ `verification-before-completion`
|
|
79
142
|
|
|
80
|
-
### 2. Emergency Hotfix Sequence
|
|
81
|
-
1. "Read the systematic-debugging skill to locate the root cause of the current issue."
|
|
82
|
-
2. "Read the test-driven-development skill to write a failing test for the bug and fix it."
|
|
83
|
-
3. "Read the verification-before-completion skill to validate the applied hotfix."
|
|
84
143
|
|
|
85
144
|
---
|
|
86
145
|
|
|
87
|
-
## 📋 Supported Skills Overview (14
|
|
88
|
-
|
|
89
|
-
To help you choose the right skill, we
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
### 🌿 4. Version Control
|
|
108
|
-
- `using-git-worktrees`: Managing multiple branches using Git Worktrees
|
|
109
|
-
|
|
110
|
-
### 🤖 5. Advanced Agent Controls
|
|
111
|
-
|
|
112
|
-
These skills are designed for orchestrating complex meta-execution patterns within supported IDEs (like Antigravity or Cursor).
|
|
113
|
-
|
|
114
|
-
- **`subagent-driven-development`**: Driving sub-agents to execute tasks
|
|
115
|
-
- **Usage**: Used to execute a predefined plan task-by-task. The system spawns a fresh "implementer" sub-agent per task, followed by a consolidated **task reviewer** (spec compliance + code quality) sub-agent, plus a **whole-branch final review** at the end. A **Pre-Flight Plan Review** scans for task conflicts before execution begins. Plans run in plan-scoped workspaces (`.superpowers/sdd/<plan>/`), the controller rules on conflicts and records them in the ledger instead of stopping, and small same-shape tasks are batched into a single dispatch.
|
|
116
|
-
- **Model Selection**: Choose sub-agent models based on task complexity — cheaper models for mechanical work, capable models for architecture and subtle concurrency changes.
|
|
117
|
-
- **Example**: "Read the subagent-driven-development skill, then execute the tasks listed in docs/plans/feature-plan.md one by one."
|
|
118
|
-
- **`dispatching-parallel-agents`**: Dispatching tasks to parallel agents
|
|
119
|
-
- **Usage**: Used for tackling multiple *independent* issues (e.g., 3 unrelated failing tests or 3 separate web research topics). The AI will adopt a parallel-execution mindset, addressing each task independently without crossing state or experiencing context pollution, significantly speeding up output generation.
|
|
120
|
-
- **Debugging Example**: "Read the dispatching-parallel-agents skill, then dispatch 3 parallel agents to investigate the independently failing tests A, B, and C."
|
|
121
|
-
- **Research Example**: "Read the dispatching-parallel-agents skill, then search the web for React 19 features, Vue 3.5 updates, and Svelte 5 Runes in parallel — summarize each independently."
|
|
122
|
-
|
|
123
|
-
### ⚙️ 6. Customization & Meta
|
|
124
|
-
- `using-superpowers`: Guidelines and self-checks for using Superpowers
|
|
125
|
-
- `writing-skills`: Writing and expanding new custom skills
|
|
146
|
+
## 📋 Supported Skills Overview (14 Core Skills & Scenarios)
|
|
147
|
+
|
|
148
|
+
To help you choose the right skill, we have structured all 14 skills across the Software Development Lifecycle (SDLC), merging core capabilities and community-recommended scenarios:
|
|
149
|
+
|
|
150
|
+
| # | SDLC Phase | Skill Name | What It Does (Purpose & Core Value) | Recommended Scenario |
|
|
151
|
+
| :-: | :--- | :--- | :--- | :--- |
|
|
152
|
+
| 1 | **🚀 Planning & Design** | **`brainstorming`** | **Requirements & Architecture Design**: Explores options and constraints before coding; outputs Design Specs; includes Visual Companion browser UI review. | Before starting any new feature or major change; prevents jumping straight into code. |
|
|
153
|
+
| 2 | **🚀 Planning & Design** | **`writing-plans`** | **Implementation Planning**: Decomposes specs into bite-sized, testable tasks annotated with Recommended Skills and file contracts. | Before multi-file refactoring, complex migrations, or major implementations. |
|
|
154
|
+
| 3 | **💻 Implementation** | **`executing-plans`** | **In-Session Plan Execution**: Executes planned tasks step-by-step with checkpoint reviews in the current session. | Batch execution of plans within the same session without spawning subagents. |
|
|
155
|
+
| 4 | **💻 Implementation** | **`subagent-driven-development`** | **Subagent-Driven Development (SDD)**: Dispatches fresh, context-isolated subagents per task with dual-layer adversarial reviews. | Recommended execution model for complex plans to eliminate context pollution. |
|
|
156
|
+
| 5 | **💻 Implementation** | **`test-driven-development`** | **Test-Driven Development (TDD)**: Enforces strict Red ➔ Green ➔ Refactor cycles ensuring robust test coverage. | When implementing logically challenging features or critical algorithms. |
|
|
157
|
+
| 6 | **🔍 Debugging** | **`systematic-debugging`** | **Systematic Root Cause Debugging**: Deconstructs complex errors into testable hypotheses with validation experiments. | When encountering any unexpected error, test failure, or intermittent bug. |
|
|
158
|
+
| 7 | **🛡️ Quality & Review** | **`verification-before-completion`** | **Evidence-Based Verification**: Mandates running the full repository test suite, linter, and type checks. | Before claiming "it works" or "it is done"; provides tangible proof of completion. |
|
|
159
|
+
| 8 | **🛡️ Quality & Review** | **`requesting-code-review`** | **Initiating Code Reviews**: Packages diffs and reports for multi-dimensional architectural and quality reviews. | Before merging branches or finalizing tasks to ensure architectural integrity. |
|
|
160
|
+
| 9 | **🛡️ Quality & Review** | **`receiving-code-review`** | **Processing Review Feedback**: Systematically evaluates review feedback, applies fixes, and records rulings. | When addressing review findings systematically without losing context. |
|
|
161
|
+
| 10 | **🛡️ Quality & Review** | **`finishing-a-development-branch`** | **Branch Integration & Cleanup**: Manages PR/merge, cleans up Git worktrees, and deletes temporary branches cleanly. | After all verifications pass to cleanly integrate the feature into the main branch. |
|
|
162
|
+
| 11 | **🌿 Version Control** | **`using-git-worktrees`** | **Physical Git Isolation**: Creates isolated worktree directories for features or debugging to prevent race conditions. | When working on concurrent tasks or running parallel multi-agent investigations. |
|
|
163
|
+
| 12 | **🤖 Advanced Agents** | **`dispatching-parallel-agents`** | **Parallel Agent Orchestration**: Dispatches concurrent subagents in isolated workspaces to investigate multiple hypotheses simultaneously. | When facing multiple failing tests or investigating independent theories in parallel. |
|
|
164
|
+
| 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. |
|
|
165
|
+
| 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. |
|
|
126
166
|
|
|
127
167
|
---
|
|
128
168
|
|
|
129
169
|
## 🆕 Recent Updates
|
|
130
170
|
|
|
131
|
-
### v6.3.
|
|
132
|
-
|
|
133
|
-
- **
|
|
134
|
-
-
|
|
135
|
-
-
|
|
136
|
-
- **
|
|
137
|
-
-
|
|
138
|
-
- **
|
|
139
|
-
-
|
|
140
|
-
- **
|
|
141
|
-
-
|
|
142
|
-
- **
|
|
143
|
-
-
|
|
144
|
-
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
-
|
|
149
|
-
-
|
|
150
|
-
-
|
|
151
|
-
- **
|
|
152
|
-
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
- **
|
|
159
|
-
-
|
|
160
|
-
|
|
161
|
-
-
|
|
162
|
-
|
|
163
|
-
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
- **Not adopted (deliberate)**: upstream's v6.3.0 server simplification (it removed loopback-only enforcement, `O_NOFOLLOW` reads, nonce CSP, and the local brand SVG) — this package keeps its hardened server; upstream's `.ps1` deletions and plugin-only restructuring also don't apply to this MCP server layout.
|
|
167
|
-
- **Tests**: MCP flow, render-graphs (8 assertions), and the full PowerShell suite (64 assertions) all pass.
|
|
168
|
-
|
|
169
|
-
### v6.2.4
|
|
170
|
-
|
|
171
|
-
- **Upstream alignment — persistent brainstorm sessions**: with `--project-dir`, the companion now persists its session key to `.superpowers/brainstorm/.last-token` (owner-only, gitignored) alongside `.last-port` and reuses it across restarts — an already-open browser tab stays connected after a restart, no URL re-sharing needed. Ephemeral `/tmp` sessions keep rotating the key per invocation, and an explicit `BRAINSTORM_TOKEN` env var still wins and is never persisted. Delete `.last-token` (server stopped) to force a fresh key.
|
|
172
|
-
- **Token-file read path hardened** (`readPrivateFile`): symlinked or multi-link `.last-token` files are rejected instead of being adopted as the session key, with the read performed through an `O_NOFOLLOW` fd whose identity is re-checked and tightened to 0600 — closing the asymmetry with the already-hardened write path (found by independent security review).
|
|
173
|
-
- **Diagnosability**: a failed token-file write now logs `Failed to write private token file:` instead of silently degrading to per-start key rotation.
|
|
174
|
-
- **start-server.ps1 env hygiene**: an ephemeral (no `--project-dir`) launch no longer inherits a stale project key/port from the invoking pwsh session.
|
|
175
|
-
- **Tests**: companion suite now 31 assertions — token persistence across restarts, pre-seeded file honored, symlinked token file rejected, rotation preserved without a token file; test cleanup is failure-safe (try/finally). PowerShell suite asserts `.last-token` matches the served key.
|
|
176
|
-
|
|
177
|
-
### v6.2.3
|
|
178
|
-
|
|
179
|
-
- **Hardened Brainstorming Visual Companion (`server.cjs`)**: the local loopback-only HTTP+WebSocket server is crash-resistant against filesystem races (a deleted content dir or a screen vanishing mid-read degrades to the waiting page / 404 instead of killing the process), and its watcher self-heals after the content dir is deleted and recreated (Linux inotify + macOS FSEvents). WebSocket handshakes are validated against RFC 6455 (version/upgrade/connection/key), control-frame payloads are capped at 125 bytes, clients have idle/partial-frame deadlines, and the oldest connection is evicted when the cap is full. Security headers now include `nosniff` and a nonce CSP; generated keys rotate per invocation; screen, skill, event, and user-event reads/logs are size-capped and state files are private.
|
|
180
|
-
- **Companion security defaults**: the server only binds to loopback HTTP, rotates its key on every invocation, stores browser authentication only in an HttpOnly/SameSite cookie after the initial URL, and blocks unnonce'd scripts in screen HTML. Remote browsers must use an authenticated SSH tunnel; a restart requires sharing the new `server-info` URL.
|
|
181
|
-
- **`/files/` double-`writeHead` crash fixed** (found by subagent review): files are read *before* headers are sent, and reads use `O_NOFOLLOW` + fd-based `fstat` + size cap, closing the check-then-read TOCTOU.
|
|
182
|
-
- **Process-lifecycle safety**: `start-server.sh/.ps1` now prove a PID is a live brainstorm server of this session (server-instance-id + cmdline check, same as stop-server) before signalling it; `stop-server.sh` resolves paths canonically before deleting temp sessions so `/tmp/../` tricks can't escape the temp root; relative `--project-dir` is resolved up front; `server-instance-id` is written without BOM so cross-shell identity checks work on Windows PowerShell 5.1.
|
|
183
|
-
- **SkillsManager hardening**: skill reads use `O_NOFOLLOW` on POSIX (symlink-swap TOCTOU); a failed rescan returns the last-good cache instead of poisoning it; skill names containing consecutive dots (e.g. `a..b`) are now findable — lookups are map-only and never touch the filesystem.
|
|
184
|
-
- **MCP protocol polish**: malformed percent-encoding in resource URIs now returns `InvalidRequest` (-32600) instead of leaking an internal error.
|
|
185
|
-
- **Dependencies**: exact verified overrides pin `hono` to 4.13.0, `@hono/node-server` to 2.0.11, and `fast-uri` to 4.1.2 (resolving the relevant advisories). `npm audit`: **0 vulnerabilities**.
|
|
186
|
-
- **Test suite**: `npm test` builds first and runs the JavaScript edge-case/security, MCP server flow, and companion-server regression suites. The 63-assertion PowerShell suite runs separately with `tests/powershell/run-tests.sh` and skips gracefully when `pwsh` is unavailable.
|
|
187
|
-
- **Independent review**: the security and correctness findings were addressed with per-invocation auth rotation, loopback-only HTTP, nonce CSP, bounded reads, private state writes, and deterministic cross-platform tests.
|
|
188
|
-
|
|
189
|
-
### v6.2.2
|
|
190
|
-
|
|
191
|
-
- **Symlink Traversal Prevention**: `SkillsManager.readSkillContent()` now canonicalizes paths with `fs.realpath` before checking boundaries, preventing symlink-based arbitrary file reads; `getSafeSkillsPath` also blocks dangerous system-directory prefixes.
|
|
192
|
-
- **Compatibility & Protocol**: Added UTF-8 BOM support for frontmatter and skill content, and enforced RFC 3986 encoding/decoding for resource URIs containing spaces or special characters.
|
|
193
|
-
- **Correctness & Tests**: Force reloads now invalidate the content cache, concurrent reload locking is safer, multiline YAML descriptions accept tab or space indentation, and `tests/edge_cases_test.js` covers these security and cache behaviors.
|
|
194
|
-
|
|
195
|
-
### v6.2.1
|
|
196
|
-
|
|
197
|
-
- **PowerShell Script Test Suite**: Added `tests/powershell/` with 63 assertions across 5 suites for `sdd-workspace.ps1`, `task-brief.ps1`, `review-package.ps1`, `find-polluter.ps1`, and the brainstorm `start-server.ps1`/`stop-server.ps1` lifecycle. Run with `tests/powershell/run-tests.sh`; it skips gracefully when `pwsh` is unavailable.
|
|
198
|
-
- **stop-server.ps1 Cross-Platform Fix**: `Get-CimInstance Win32_Process` is Windows-only; the script now uses `ps` on Unix so the server-id check works correctly on macOS/Linux.
|
|
199
|
-
- **Cleanup**: Removed `skills/using-superpowers/references/copilot-tools.md`, an orphaned reference file already pruned upstream.
|
|
200
|
-
|
|
201
|
-
### v6.2.0
|
|
202
|
-
- **Upstream Sync with obra/superpowers v6.2.0**: Synchronized upstream improvements across all skills while preserving local security enhancements and PowerShell helpers.
|
|
203
|
-
- **subagent-driven-development Restructure**: Plan-scoped workspaces (`.superpowers/sdd/<plan>/`) so concurrent plans can never read or overwrite each other's artifacts. Resume-based review-fix loop with a five-round circuit breaker, plus a new scoped `re-review-prompt.md` for re-reviews after fixes.
|
|
204
|
-
- **test-driven-development**: `testing-anti-patterns.md` replaced by upstream `writing-good-tests.md`.
|
|
205
|
-
- **finishing-a-development-branch**: Adopted the upstream rewrite (includes the same worktree-path capture fix previously patched locally; branch discard is now explicit-request-only).
|
|
206
|
-
- **Skills-wide compression**: Recap and persuasion sections removed across many `SKILL.md` files, reducing prompt token footprint.
|
|
207
|
-
- **gemini-tools.md**: Restored to the updated upstream version; `visual-companion.md` gains a Gemini CLI launch section.
|
|
208
|
-
- **PowerShell Parity Fixes**:
|
|
209
|
-
- All SDD `.ps1` scripts ported to the new plan-scoped `PLAN_FILE` interfaces; `find-polluter.ps1` gained the `./`-prefix and `**/` collapse fixes from the bash version.
|
|
210
|
-
- **Exit-code parity**: Fixed `Write-Error` under `$ErrorActionPreference = "Stop"` swallowing the intended exit codes — validation failures now correctly exit 2 and a missing task exits 3, matching the bash scripts.
|
|
211
|
-
- **`sdd-workspace.ps1` slug derivation**: Strips only a trailing `.md` (matching bash `basename`), instead of any file extension.
|
|
212
|
-
- **Version Alignment**: `package.json`, `package-lock.json`, and the MCP server handshake version are now consistent at 6.2.0.
|
|
213
|
-
|
|
214
|
-
### v6.0.3
|
|
215
|
-
- **Command Injection Fix**: Replaced `cp.exec()` with `cp.execFile()` in the brainstorming Visual Companion server (`server.cjs`) for the `BRAINSTORM_OPEN_CMD` launcher path. The old code concatenated the env var with the URL via the shell; the new code passes arguments as an argv array, eliminating shell metacharacter injection regardless of env var content.
|
|
216
|
-
- **Dependency Security (overrides)**: Added `overrides` block in `package.json` enforcing minimum versions for transitive dependencies:
|
|
217
|
-
- `@hono/node-server`: 1.19.14 → **2.0.11** — fixes Windows path traversal in serve-static via encoded backslash ([GHSA-frvp-7c67-39w9](https://github.com/advisories/GHSA-frvp-7c67-39w9))
|
|
218
|
-
- `fast-uri`: 3.1.2 → **4.1.1** — fixes host confusion via IDN canonicalization ([GHSA-4c8g-83qw-93j6](https://github.com/advisories/GHSA-4c8g-83qw-93j6)) and literal backslash authority delimiter ([GHSA-v2hh-gcrm-f6hx](https://github.com/advisories/GHSA-v2hh-gcrm-f6hx))
|
|
219
|
-
- `body-parser`: 2.2.2 → **2.3.0** — fixes DoS when invalid limit value silently disables size enforcement ([GHSA-v422-hmwv-36x6](https://github.com/advisories/GHSA-v422-hmwv-36x6))
|
|
220
|
-
- **Upstream Bug Fixes**:
|
|
221
|
-
- `find-polluter.sh`: Now accepts `./`-prefixed paths (not just bare paths) and supports top-level test files by collapsing `**/` in the pattern
|
|
222
|
-
- `finishing-a-development-branch/SKILL.md`: Captures `WORKTREE_PATH` before Step 5 changes directory, fixing a cleanup regression. Added detached HEAD push variant for Option 2
|
|
223
|
-
|
|
224
|
-
### v6.0.2
|
|
225
|
-
- **Modular Refactoring & Performance Upgrades**:
|
|
226
|
-
- **Decoupled Architecture**: Extracted file system access, metadata caching, and parsing logic into a dedicated [`src/skills-manager.ts`](src/skills-manager.ts), leaving [`src/server.ts`](src/server.ts) purely focused on MCP protocol handling.
|
|
227
|
-
- **O(1) Map-Based Cache**: Replaced the $O(N)$ double-array scan with case-insensitive, dual-key (by name and directory name) memory caches for fast $O(1)$ lookups.
|
|
228
|
-
- **Async I/O Pipeline**: Swapped synchronous file API calls (`readdirSync`, `readFileSync`) with promises and `Promise.all` concurrent execution, unlocking high-throughput performance.
|
|
229
|
-
- **Markdown Cache**: Cached stripped skill content in memory to avoid repetitive disk reads when tools are invoked frequently.
|
|
230
|
-
- **Security Hardening**:
|
|
231
|
-
- **ReDoS Prevention**: Replaced regex-based frontmatter parser with a safe, line-by-line state machine parser, completely eliminating CPU exhaustion risks and supporting multiline YAML descriptions.
|
|
232
|
-
- **Path Traversal Shield**: Added strict alphanumeric white-listing (`/^[a-zA-Z0-9-_]+$/`) on skill name inputs to prevent traversal attacks.
|
|
233
|
-
- **Directory Injection Check**: Validated `SKILLS_PATH` to actively reject potentially hostile system root folders.
|
|
234
|
-
- **Path & Username Leak Protection**: Caught native file system errors and masked them into generic, path-free `McpError` payloads.
|
|
235
|
-
- **Windows Build and Script Safety**: Handled Windows `chmodSync` platform checks in `esbuild.js` and skipped Symlinks in `copy-skills.js` to prevent recursive file copy loops.
|
|
236
|
-
|
|
237
|
-
- **Upstream Security Cherry-Picks**: Applied security hardening from obra/superpowers v6.1.1:
|
|
238
|
-
- **WebSocket frame size validation**: Added `MAX_FRAME_PAYLOAD_BYTES (10 MB)` check in `decodeFrame()` to prevent oversized frame attacks (CWE-789). Dual protection — BigInt extended-length and general post-resolution guard.
|
|
239
|
-
- **Hardlink containment**: Added `stat.nlink !== 1` check in `isRegularFileInsideContentDir()` prevents path traversal via hardlinks.
|
|
240
|
-
- **`escapeHtmlText()` extraction**: Extracted inline `escHtml` closure into a reusable named function for consistent HTML escaping.
|
|
241
|
-
- **URL parsing refactor**: Extracted `pathnameOf()` and `queryKey()` helpers, reducing duplicate inline URL logic in `handleRequest()`.
|
|
242
|
-
- **`review-package` Path Resolution Fix**: Fixed `sdd-workspace` invocation to use absolute path resolution (`$(cd "$(dirname "$0")" && pwd)`) instead of relative path, fixing CWD-dependent failures.
|
|
243
|
-
- **Windows Native Helper Scripts**: Added PowerShell wrappers for Visual Companion startup/shutdown, SDD review/task helpers, and systematic-debugging polluter detection.
|
|
244
|
-
- **Skill Documentation Enhancements**:
|
|
245
|
-
- `subagent-driven-development`: Added `plan-mandated` review guidance for handling plan conflicts.
|
|
246
|
-
- `writing-skills`: Strengthened prohibition vs. recipe guidance with empirical evidence from wording tests.
|
|
247
|
-
- `test-driven-development`: Fixed table formatting for clarity.
|
|
248
|
-
- `writing-skills/anthropic-best-practices`: Updated image CDN URLs.
|
|
249
|
-
- **`helper.js` Comment Alignment**: Added 4 clarifying inline comments to align with upstream documentation without changing behavior. DOM-safe `showTombstone()` preserved (no `innerHTML` regression).
|
|
250
|
-
- **Cleanup**: Removed obsolete `walkthrough.md` (v5.1.0 upgrade guide).
|
|
251
|
-
|
|
252
|
-
### v6.0.1
|
|
253
|
-
- **Security Fix — Reflected XSS (#2)**: Fixed server-side reflected cross-site scripting in `skills/brainstorming/scripts/server.cjs`. The `bootstrapPage()` function was called with the user-supplied `keyFromQuery` parameter (even though validated via `timingSafeEqualStr`). Changed to use the server-side `TOKEN` constant instead, eliminating user-tainted data from the HTML response sink. Zero behavior change (the validated value is identical).
|
|
254
|
-
|
|
255
|
-
### v6.0.0
|
|
256
|
-
- **Upstream Sync with obra/superpowers v6.1.1**: Major synchronization bringing upstream improvements across all skills.
|
|
257
|
-
- **subagent-driven-development Redesign**: Consolidated two-stage review (spec → code quality) into a single "task reviewer" sub-agent, plus added a broad **whole-branch final review** at completion. New **Pre-Flight Plan Review** catches task conflicts before execution begins. Added **Model Selection Guidance** to optimize cost vs. turn count.
|
|
258
|
-
- **using-superpowers Simplified**: Removed platform-specific sections and Graphviz diagram. Introduced **per-platform reference files** (`antigravity-tools.md`, `pi-tools.md`) and updated `codex-tools.md` for cleaner multi-environment support.
|
|
259
|
-
- **brainstorming Visual Companion**: Changed to **just-in-time** offering — no longer offered upfront, only when a visual question actually arises.
|
|
260
|
-
- **Type Safety & Code Quality**: Fixed `Record<string,string>` cast in `server.ts` with proper `typeof` guard. Replaced remaining `innerHTML` with safe DOM methods. Removed redundant checks and verbose comments across the codebase.
|
|
261
|
-
|
|
262
|
-
### v5.1.2
|
|
263
|
-
- **Security Hardening**: Removed the last remaining `innerHTML` usage in `skills/brainstorming/scripts/helper.js`, replacing it with safe DOM creation methods — now zero `innerHTML` in the entire codebase.
|
|
264
|
-
- **Dependency Security**: Upgraded `hono` from `4.12.23` to `4.12.26` to patch 5 advisories including CORS origin reflection, Lambda body-limit bypass, and Set-Cookie header merging.
|
|
265
|
-
- **Clean Slate**: All 37 Dependabot advisories and npm audit warnings now fully resolved — zero outstanding vulnerabilities.
|
|
266
|
-
|
|
267
|
-
### v5.1.1
|
|
268
|
-
- **Security Audit & Hardening**: Conducted a full-scale security audit and updated `.gitignore` rules to prevent potential secret leaks.
|
|
269
|
-
- **Vulnerability Patches**: Patched XSS vulnerability in brainstorming Visual Companion (`helper.js`) by replacing unsafe `innerHTML` usage with secure DOM APIs. Upgraded `path-to-regexp` to `8.4.2` to resolve a high-severity ReDoS vulnerability.
|
|
270
|
-
- **Dev Dependencies**: Bumped `esbuild` to `0.28.1`.
|
|
271
|
-
|
|
272
|
-
### v5.1.0
|
|
273
|
-
- **Inline Self-Review**: Replaced heavyweight subagent review loops (Spec Review, Plan Review) in `brainstorming` and `writing-plans` with lightweight inline self-review checklists, significantly improving efficiency by eliminating subagent overhead.
|
|
274
|
-
- **Git Worktree Redesign**: Rewrote `using-git-worktrees` and `finishing-a-development-branch` with a `detect-and-defer` mechanism, natively supporting AI editors' (like Claude Code) built-in worktree tools while safely falling back to git CLI commands.
|
|
275
|
-
- **Token Optimization**: Removed obsolete `Integration` sections from all skills, reducing prompt token footprints.
|
|
276
|
-
- **Consolidation**: Consolidated the independent `code-reviewer` agent directly into `requesting-code-review`.
|
|
277
|
-
|
|
278
|
-
### v4.3.2
|
|
279
|
-
- **Security**: Fixed XSS vulnerability in brainstorming Visual Companion
|
|
280
|
-
- **Docs**: Updated README and SECURITY with accurate version info
|
|
281
|
-
|
|
282
|
-
### v4.3.0
|
|
283
|
-
- Initial MCP server implementation
|
|
284
|
-
- 14 core skills migrated from original Superpowers
|
|
171
|
+
### v6.3.4 (Latest)
|
|
172
|
+
|
|
173
|
+
- **Universal One-Click Global Setup Engine (`src/setup-runner.ts`, `scripts/`)**:
|
|
174
|
+
- 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.
|
|
175
|
+
- Added CLI executables `superpowers-setup` and `superpowers-mcp setup` with cross-platform installers ([`install.sh`](scripts/install.sh) and [`install.ps1`](scripts/install.ps1)).
|
|
176
|
+
- **Explicit Consent & Anti-Virus Design**: Mandated explicit `--target <client>` requirement, completely eliminating unprompted bulk disk scanning or blind crawling (`--all` removed).
|
|
177
|
+
- **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`.
|
|
178
|
+
- **Symlink Preservation & Permissions**: Preserves symlink destinations with `realpathSync`, restricts created directories to `0o700` and config files to `0o600`.
|
|
179
|
+
- **Injection Defense & JSONC Parsing**: Parameter escaping via `JSON.stringify`, JSONC comment tolerance, and `isPlainObject` prototype pollution defense.
|
|
180
|
+
- **CLI Transport Stdio Isolation**: Front-intercepts setup CLI commands in `src/server.ts` before MCP Stdio transport initialization.
|
|
181
|
+
- **Comprehensive Test Suite**: Added [`tests/setup_test.js`](tests/setup_test.js) with 21 unit assertions (100% PASS).
|
|
182
|
+
- **Skill Compositions & End-to-End Orchestration Pipelines (`src/server.ts`, `docs/`)**:
|
|
183
|
+
- Added 3 new MCP workflow prompts: `feature-pipeline`, `structured-debug`, and `skill-composition`.
|
|
184
|
+
- 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.
|
|
185
|
+
- 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.
|
|
186
|
+
- Added [`tests/prompts_compositions_test.js`](tests/prompts_compositions_test.js) with 7 comprehensive assertions (100% PASS).
|
|
187
|
+
- **Prompts Security Hardening & Lifecycle Fixes (`src/server.ts`)**:
|
|
188
|
+
- Upgraded `interpolateTemplate` to single-pass regex replacement, eliminating cascading placeholder injection risks.
|
|
189
|
+
- Enforced universal `getStringArg` with a 32 KB clamp and `hasOwnProperty` validation across all 9 prompts.
|
|
190
|
+
- Augmented `structured-debug` with Stage 6 (findings resolution via `receiving-code-review`) and Stage 7 (branch finishing and cleanup via `finishing-a-development-branch`).
|
|
191
|
+
- **Full Security Audit & Verification**:
|
|
192
|
+
- 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).
|
|
193
|
+
|
|
194
|
+
### v6.3.3
|
|
195
|
+
|
|
196
|
+
- **MCP Standard Prompts Support (`src/server.ts`)**:
|
|
197
|
+
- 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.
|
|
198
|
+
- **Multi-Harness Reference Mappings**:
|
|
199
|
+
- 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)).
|
|
200
|
+
- **Multi-Lingual Documentation Alignment**:
|
|
201
|
+
- Aligned MCP capability tables (Tools, Prompts, Resources) and multi-harness matrices across all supported languages.
|
|
202
|
+
- **Test Suite Expansion**:
|
|
203
|
+
- Added automated test assertions for `prompts/list` and `prompts/get` parameter injection.
|
|
204
|
+
|
|
205
|
+
👉 *For the complete release history, see [CHANGELOG.md](CHANGELOG.md).*
|
|
285
206
|
|
|
286
207
|
---
|
|
287
208
|
|
|
288
209
|
## 🙏 Acknowledgments
|
|
289
210
|
|
|
290
|
-
This project is a fork and adaptation of the original [Superpowers](https://github.com/obra/superpowers) project by [obra](https://github.com/obra). We are grateful for their work in defining the agentic skills framework and software development methodology that powers this MCP server.
|
|
211
|
+
This project is a fork and adaptation of the original [Superpowers](https://github.com/obra/superpowers) project by [obra](https://github.com/obra). We are grateful for their pioneering work in defining the agentic skills framework and software development methodology that powers this MCP server.
|