@complexthings/superpowers-agent 10.0.3 → 11.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/.agents/superpowers-agent +17 -222
  2. package/.github/copilot-instructions.md +0 -9
  3. package/AGENTS.md +19 -140
  4. package/README.md +79 -507
  5. package/package.json +1 -7
  6. package/.agents/docs/SUPERPOWERS.md +0 -37
  7. package/.agents/skills/.gitkeep +0 -0
  8. package/.agents/skills/claude-handoff/SKILL.md +0 -18
  9. package/.agents/skills/code-review/SKILL.md +0 -89
  10. package/.agents/skills/codebase-design/DEEPENING.md +0 -37
  11. package/.agents/skills/codebase-design/DESIGN-IT-TWICE.md +0 -44
  12. package/.agents/skills/codebase-design/SKILL.md +0 -114
  13. package/.agents/skills/design-an-interface/SKILL.md +0 -94
  14. package/.agents/skills/diagnosing-bugs/SKILL.md +0 -134
  15. package/.agents/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +0 -41
  16. package/.agents/skills/domain-modeling/ADR-FORMAT.md +0 -47
  17. package/.agents/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
  18. package/.agents/skills/domain-modeling/SKILL.md +0 -74
  19. package/.agents/skills/fable-mode/SKILL.md +0 -95
  20. package/.agents/skills/git-guardrails-claude-code/SKILL.md +0 -95
  21. package/.agents/skills/git-guardrails-claude-code/scripts/block-dangerous-git.sh +0 -25
  22. package/.agents/skills/grill-me/SKILL.md +0 -7
  23. package/.agents/skills/grill-with-docs/SKILL.md +0 -7
  24. package/.agents/skills/grilling/SKILL.md +0 -14
  25. package/.agents/skills/handoff/SKILL.md +0 -16
  26. package/.agents/skills/i-have-adhd/SKILL.md +0 -120
  27. package/.agents/skills/implement/SKILL.md +0 -11
  28. package/.agents/skills/improve-codebase-architecture/HTML-REPORT.md +0 -123
  29. package/.agents/skills/improve-codebase-architecture/SKILL.md +0 -66
  30. package/.agents/skills/loop-me/SKILL.md +0 -32
  31. package/.agents/skills/prototype/LOGIC.md +0 -79
  32. package/.agents/skills/prototype/SKILL.md +0 -30
  33. package/.agents/skills/prototype/UI.md +0 -112
  34. package/.agents/skills/qa/SKILL.md +0 -130
  35. package/.agents/skills/request-refactor-plan/SKILL.md +0 -68
  36. package/.agents/skills/research/SKILL.md +0 -12
  37. package/.agents/skills/resolving-merge-conflicts/SKILL.md +0 -14
  38. package/.agents/skills/scaffold-exercises/SKILL.md +0 -106
  39. package/.agents/skills/setup-matt-pocock-skills/SKILL.md +0 -127
  40. package/.agents/skills/setup-matt-pocock-skills/domain.md +0 -51
  41. package/.agents/skills/setup-matt-pocock-skills/issue-tracker-github.md +0 -45
  42. package/.agents/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +0 -46
  43. package/.agents/skills/setup-matt-pocock-skills/issue-tracker-local.md +0 -30
  44. package/.agents/skills/setup-matt-pocock-skills/triage-labels.md +0 -15
  45. package/.agents/skills/skill-creator/LICENSE.txt +0 -202
  46. package/.agents/skills/skill-creator/SKILL.md +0 -485
  47. package/.agents/skills/skill-creator/agents/analyzer.md +0 -274
  48. package/.agents/skills/skill-creator/agents/comparator.md +0 -202
  49. package/.agents/skills/skill-creator/agents/grader.md +0 -223
  50. package/.agents/skills/skill-creator/assets/eval_review.html +0 -146
  51. package/.agents/skills/skill-creator/eval-viewer/generate_review.py +0 -471
  52. package/.agents/skills/skill-creator/eval-viewer/viewer.html +0 -1325
  53. package/.agents/skills/skill-creator/references/schemas.md +0 -430
  54. package/.agents/skills/skill-creator/scripts/__init__.py +0 -0
  55. package/.agents/skills/skill-creator/scripts/__pycache__/__init__.cpython-314.pyc +0 -0
  56. package/.agents/skills/skill-creator/scripts/__pycache__/run_eval.cpython-314.pyc +0 -0
  57. package/.agents/skills/skill-creator/scripts/__pycache__/utils.cpython-314.pyc +0 -0
  58. package/.agents/skills/skill-creator/scripts/aggregate_benchmark.py +0 -401
  59. package/.agents/skills/skill-creator/scripts/generate_report.py +0 -326
  60. package/.agents/skills/skill-creator/scripts/improve_description.py +0 -247
  61. package/.agents/skills/skill-creator/scripts/package_skill.py +0 -136
  62. package/.agents/skills/skill-creator/scripts/quick_validate.py +0 -103
  63. package/.agents/skills/skill-creator/scripts/run_eval.py +0 -310
  64. package/.agents/skills/skill-creator/scripts/run_loop.py +0 -328
  65. package/.agents/skills/skill-creator/scripts/utils.py +0 -47
  66. package/.agents/skills/tdd/SKILL.md +0 -36
  67. package/.agents/skills/tdd/mocking.md +0 -59
  68. package/.agents/skills/tdd/tests.md +0 -77
  69. package/.agents/skills/teach/GLOSSARY-FORMAT.md +0 -35
  70. package/.agents/skills/teach/LEARNING-RECORD-FORMAT.md +0 -46
  71. package/.agents/skills/teach/MISSION-FORMAT.md +0 -31
  72. package/.agents/skills/teach/RESOURCES-FORMAT.md +0 -32
  73. package/.agents/skills/teach/SKILL.md +0 -140
  74. package/.agents/skills/to-spec/SKILL.md +0 -75
  75. package/.agents/skills/to-tickets/SKILL.md +0 -114
  76. package/.agents/skills/triage/AGENT-BRIEF.md +0 -207
  77. package/.agents/skills/triage/OUT-OF-SCOPE.md +0 -105
  78. package/.agents/skills/triage/SKILL.md +0 -112
  79. package/.agents/skills/ubiquitous-language/SKILL.md +0 -93
  80. package/.agents/skills/wayfinder/SKILL.md +0 -127
  81. package/.agents/skills/writing-great-skills/GLOSSARY.md +0 -201
  82. package/.agents/skills/writing-great-skills/SKILL.md +0 -83
  83. package/.agents/templates/AGENTS.md.template +0 -27
  84. package/.agents/templates/SUPERPOWERS.md.template +0 -37
  85. package/skills/collaboration/brainstorming/SKILL.md +0 -66
  86. package/skills/collaboration/brainstorming/skill.json +0 -9
  87. package/skills/collaboration/leveraging-cli-tools/SKILL.md +0 -110
  88. package/skills/collaboration/leveraging-cli-tools/references/copilot-instructions.md +0 -30
  89. package/skills/collaboration/leveraging-cli-tools/scripts/setup-ponytail.sh +0 -185
  90. package/skills/collaboration/leveraging-cli-tools/scripts/setup-rtk.sh +0 -217
  91. package/skills/collaboration/leveraging-cli-tools/skill.json +0 -9
  92. package/skills/meta/create-skill-json/SKILL.md +0 -370
  93. package/skills/meta/create-skill-json/skill.json +0 -9
  94. package/skills/meta/create-skill-json/test-scenarios.md +0 -29
  95. package/skills/setup-skills/SKILL.md +0 -54
  96. package/skills/setup-skills/skill.json +0 -8
package/README.md CHANGED
@@ -1,563 +1,135 @@
1
- # Superpowers
1
+ # Superpowers Agent — Retired
2
2
 
3
- A comprehensive skills library of proven techniques, patterns, and workflows for AI coding assistants.
3
+ **This project is retired.** It receives no further updates, fixes, or support.
4
4
 
5
- **This is a fork and extension of Jesse Vincent's incredible [Superpowers for Claude Code](https://github.com/obra/superpowers).** Jesse's groundbreaking work and [his amazing blog post](https://blog.fsck.com/2025/10/09/superpowers/) introduced the concept of systematic, reusable skills for AI agents. This fork extends that vision to support agent-agnostic workflows across GitHub Copilot, Claude Code, OpenCode, Pi, and OpenAI Codex.
5
+ Use **[`npx skills`](https://skills.sh)** instead. It is the maintained way to find, install, and
6
+ manage agent skills, and it works across Claude Code, GitHub Copilot, OpenCode, Codex, and Pi.
6
7
 
7
- ## What's New
8
-
9
- **v10.0.2 (July 12, 2026):**
10
-
11
- - **Claude Code skill discovery fixed** — `bootstrap` now mirrors the repo's skills into `~/.claude/skills` (Claude ignores `~/.agents/skills`), gated on `~/.claude` existing, so Claude Code actually finds the bundled skills.
12
- - **`update` is now print-only and package-manager–aware** — it no longer runs a global install for you. It detects how the CLI was installed (npm/pnpm/yarn/bun/deno) and prints the exact command plus `bootstrap && setup-skills`.
13
- - **Retired-skill cleanup extended to `~/.claude/skills`** — the stale-skill cleaner prunes retired skills there too, proving ownership per-link so your own skills are untouched.
14
- - **Node.js versions refreshed** — Node 20 (EOL) dropped, Node 26 added. Supported engines are now `^22 || ^24 || ^26`.
15
-
16
- **v10.0.0 (July 12, 2026):**
17
-
18
- - ⚠️ **Leaner bundled surface** — most bundled skills were retired. The package now ships only four: `brainstorming`, `leveraging-cli-tools`, `create-skill-json`, and `setup-skills`. Install anything else with `superpowers-agent add`.
19
- - ⚠️ **Retired CLI commands removed** — the skill discovery/execution commands `dir`, `execute`, `find-skills`, `get-helpers`, `path`, and `use-skill` are gone. Skills are discovered and loaded through each harness's native skill tool, not the CLI.
20
- - ⚠️ **`brainstorming` deprecated** — it now announces its deprecation and redirects to the `grilling` skill, handing over the same context.
21
- - **Pi & OpenAI Codex supported** — `superpowers-agent` now detects and targets **Pi** (`.pi`) and **OpenAI Codex** (`.codex`) alongside GitHub Copilot, Claude Code, and OpenCode — five supported harnesses. Detection works whether a harness is installed as a binary or a project folder.
22
- - **RTK + ponytail integration** — `setup-rtk.sh` (harness-aware RTK config) and `setup-ponytail.sh` wire token-optimized CLI output and minimal-solution guidance into each harness. `leveraging-cli-tools` was rewritten around `rtk` and `ponytail`, with RTK Python guidance.
23
- - **`SUPERPOWERS.md` linked** from generated `AGENTS.md`, `CLAUDE.md`, and `copilot-instructions.md`; `setup-skills` dedupes the backups it creates and replaces the `copilot-instructions.md` marker idempotently.
24
-
25
- **v9.2.1 (June 1, 2026):**
26
-
27
- - **GitHub agents now reach the Copilot CLI** — `add` and `pull` now also symlink GitHub agents (`.github/agents/<name>.agent.md`) into `~/.copilot/agents/`, alongside the existing VS Code `prompts/` install, so the same agents are usable by the GitHub Copilot CLI. `rm` cleans up both locations.
28
- - **npm-based version monitoring** — the `using-superpowers` skill and `AGENTS.md` template now check for updates by querying the npm registry (`npm view @complexthings/superpowers-agent version`) and comparing by semver precedence, prompting you to update only when npm is actually newer (replaces the old bundled-version-string comparison).
29
- - **Smarter skill-priority guidance** — `using-superpowers` now tells agents to load domain/context skills first, then process skills (brainstorming, planning, debugging, TDD), then implementation skills, so the domain skill can shape which process fits.
30
- - **`leveraging-cli-tools` nudge broadened** — the session-start context now also points agents at the skill whenever a task involves using Bash.
31
- - **Template cleanup** — removed `TOOLS.md.template` and the `{{TOOL_MAPPINGS}}` bootstrap placeholder; tool-equivalence guidance now lives inline in the refreshed `AGENTS.md`/`SUPERPOWERS.md` templates. `AGENTS.md` skill priority simplified to Project → Personal.
32
-
33
- **v9.1.0 (May 30, 2026):**
34
-
35
- - **Session-start hooks installed by `bootstrap`** — `bootstrap` now installs a Claude Code `SessionStart` hook into `~/.claude/settings.json` and a GitHub Copilot CLI `sessionStart` hook at `~/.copilot/hooks/superpowers.json`, so the Superpowers context is injected at the start of every session. The Claude merge is idempotent and preserves your other hooks/settings. (This replaces the old Claude Code plugin hook, which has been removed.)
36
- - **`leveraging-cli-tools` in the injected prompt** — the session-start context now also tells agents to use the `leveraging-cli-tools` skill for code search, parsing, file finding, refactors, and verbose output to cut token cost and latency.
37
- - **New `session-context` command** — `superpowers-agent session-context [--format=claude|copilot|raw]` is the single source of truth for the injected prompt, shared by the Claude hook, the Copilot hook, and the OpenCode plugin so they never drift.
38
-
39
- **v9.0.0 (May 28, 2026):**
40
-
41
- - **Claude persona installation** — `.claude/agents/<name>.md` personas now install into `~/.claude/agents/` via `add`/`pull` (previously silently skipped)
42
- - ⚠️ **No more `postinstall`** — the npm `postinstall` script was removed for supply-chain hardening. Fresh installs now require a **one-time manual** `superpowers-agent bootstrap`; `superpowers-agent update` self-runs bootstrap thereafter
43
- - ⚠️ **Removed Cursor, Codex & Gemini support** — supported platforms are now **GitHub Copilot, Claude Code, and OpenCode** only. Integration modules, detection, the `install-cursor-hooks` command, and `GEMINI.md` generation were removed
44
- - ⚠️ **Skills live only in `~/.agents/skills`** — per-platform skill symlinking has been removed. A one-time `skill.json`-gated cleaner runs during `bootstrap` to scrub deprecated symlink directories (including legacy Cursor/Codex/Gemini) without touching agent personas
45
- - **Fixed `copilot-instructions.md`** — `setup-skills` now correctly creates and idempotently updates `.github/copilot-instructions.md`
46
- - **`bun test` harness** — added a Bun test runner, smoke test, and `test` script following the `.agents/tests/<feature>.test.js` convention
47
-
48
- **v8.4.0 (April 6, 2026):**
49
-
50
- - **`superpowers-agent rm` command** — new CLI command for removing installed skills and agents from your system
51
-
52
- **v8.2.0 (March 16, 2026):**
53
-
54
- - **npm registry update checking** — `update` and `check-updates` now query the npm registry instead of the Git repo. Run `npm install -g @complexthings/superpowers-agent` to update.
55
- - **Version parity hook** — A Husky pre-commit hook ensures `./package.json` and `.agents/package.json` stay in sync, auto-syncing to the highest version and rebuilding the CLI on mismatch.
56
-
57
- **v8.0.0 (March 13, 2026):**
58
-
59
- - **Skills-only delivery** — All per-platform prompt/command files (`.opencode/command/`, `.cursor/commands/`, `.gemini/commands/`, `.github/prompts/`, `.codex/prompts/`, `commands/`) have been removed.
60
- - **Bootstrap cleanup** — Bootstrap now runs a `removeLegacyPrompts` step that deletes any prompt/command files previously installed by older versions.
61
- - **`setup-skills` is now a skill** — Project initialization is delivered as `skills/setup-skills/SKILL.md`. The `superpowers-agent setup-skills` CLI command remains.
62
- - **Cursor integration is symlink-only** — Cursor hooks (`hooks/cursor/`) have been removed. Cursor now discovers skills through its native skill tool via symlinks.
63
- - **Removed skills**: `writing-skills`, `testing-skills-with-subagents`, `gardening-skills-wiki` deleted from `skills/meta/` mostly in favor of Claude's Skills 2.0 `skill-creator` skill.
64
- - **Removed CLI commands**: `install-copilot-prompts`, `install-cursor-commands`, `install-codex-prompts`, `install-gemini-commands`, `install-claude-commands`, `install-opencode-commands`.
65
-
66
- **v7.0.5 (February 9, 2026):**
67
-
68
- - **Agent Auto-Installation** - `add` and `pull` commands now automatically detect and install agents from repositories with an `agents.json` manifest, supporting GitHub Copilot and OpenCode platforms with extensible platform support
69
- - **Agent Tracking** - Installed agents are tracked in `~/.agents/config.json` with source repository, version, and install timestamps
70
- - **Persistent Repo Storage** - Git-sourced agent repositories are persisted at `~/.agents/repos/` to maintain valid symlinks
71
-
72
- **v7.0.0 (February 7, 2026):**
73
-
74
- - 🔧 **Bun Build System** - Migrated CLI build toolchain from Node.js/npm to Bun for faster builds and simpler dependency management
75
- - 📋 **Smart Copilot Instructions** - `bootstrap` and `update` now process `~/.github/copilot-instructions.md` as a template, injecting the `using-superpowers` skill content and supporting marker-based idempotent updates with automatic backups
76
- - 📊 **Mermaid Flowcharts** - Replaced DOT-format flowcharts with Mermaid syntax across 8 skills for better rendering in GitHub, VS Code, and agent contexts
77
-
78
- **Key Features:**
79
-
80
- - 🎯 **Native Skill Discovery** - Your AI platform discovers and loads skills directly
81
- - 🚀 **One-Line Installer** - `npm install -g @complexthings/superpowers-agent`
82
- - 📦 **Skill Installation** - `add` and `add-repository` commands for Git/local skill installation
83
- - 📝 **Setup Skills** - `setup-skills` initializes projects with agent instruction files and skill symlinks
84
-
85
- ## What You Get
86
-
87
- - **Requirement Grilling** - Interrogate a plan into a clear, reviewed design (the `grilling` skill; `brainstorming` now redirects here)
88
- - **Efficient CLI Workflows** - Search, inspect, and shape command output with less noise
89
- - **Skill Metadata** - Generate consistent `skill.json` files from existing skills
90
- - **Skill Setup** - Initialize project skill infrastructure
91
- - **Native Skill Tools** - Skills are discovered and loaded by your AI platform
92
-
93
- Plus:
94
- - **Universal Skills** - Work across GitHub Copilot, Claude Code, OpenCode, Pi, and OpenAI Codex
95
- - **Automatic Integration** - Skills activate automatically when relevant
96
- - **Consistent Workflows** - Systematic approaches to common engineering tasks
97
-
98
- # Installation
99
-
100
- ## Quick Install (Recommended)
101
-
102
- Install Superpowers globally and run the required one-time bootstrap step:
103
-
104
- ```bash
105
- npm install -g @complexthings/superpowers-agent
106
- superpowers-agent bootstrap
107
- ```
108
-
109
- > **Note:** `superpowers-agent bootstrap` is a **required** one-time step after every fresh install. It is no longer run automatically by npm's `postinstall` hook — you must run it manually. Subsequent `superpowers-agent update` calls will run bootstrap for you automatically.
110
-
111
- ## Migration to Superpower Agent `^10.0.0`
112
-
113
- ```bash
114
- rm -rf ~/.local/bin/superpowers-agent ~/.local/bin/superpowers ~/.agents/superpowers
115
- npm install -g @complexthings/superpowers-agent
116
- superpowers-agent bootstrap
117
- ```
118
-
119
- **After installation, your AI platform can discover Superpowers skills automatically.**
120
-
121
- If your platform has no native skill tool, open the relevant `SKILL.md` from its configured skill directories with your file-read tool.
122
-
123
- ## Manual Installation
124
-
125
- If you prefer manual installation or need project-specific setup, see [.agents/INSTALL.md](.agents/INSTALL.md).
126
-
127
- **Learn more:** [Superpowers for Claude Code](https://blog.fsck.com/2025/10/09/superpowers/) by Jesse Vincent
128
-
129
- ## Quick Start
130
-
131
- ### Discovering and Using Skills
132
-
133
- Use your AI platform's native skill tool to view available skills and load the one relevant to your task. If no native skill tool is available, inspect the configured project or personal skill directories and open the relevant `SKILL.md` with your file-read tool.
134
-
135
- **Priority order:** Project skills → Home skills → Global Superpowers skills
136
-
137
- ### Bundled Skills
138
-
139
- This release bundles four skills:
140
- - `brainstorming` — **deprecated**; redirects to the `grilling` skill
141
- - `leveraging-cli-tools`
142
- - `create-skill-json`
143
- - `setup-skills`
144
-
145
- ## Configuration
146
-
147
- Superpowers supports project-level and global configuration via `.agents/config.json`.
148
-
149
- ### Directory Configuration
150
-
151
- **Default locations:**
152
- - Prompts: `.agents/prompts/`
153
- - Plans: `.agents/plans/`
154
- - Skills: `.agents/skills/`
155
-
156
- **Override globally:**
157
- ```json
158
- // ~/.agents/config.json
159
- {
160
- "prompts_dir": "custom/prompts",
161
- "plans_dir": "custom/plans",
162
- "installLocation": "global"
163
- }
164
- ```
165
-
166
- **Override per-project:**
167
- ```json
168
- // .agents/config.json (in project root)
169
- {
170
- "prompts_dir": ".my-prompts",
171
- "plans_dir": ".my-plans",
172
- "installLocation": "project"
173
- }
174
- ```
175
-
176
- **Priority:** Project config > Global config > Defaults
177
-
178
- **Read config from CLI:**
179
8
  ```bash
180
- superpowers-agent config-get # prints the resolved configuration, including prompts_dir and plans_dir
9
+ npx skills
181
10
  ```
182
11
 
183
- ### Repository Aliases
12
+ v11.0.0 is the final release. It installs nothing. Every command it still exposes exists to take
13
+ Superpowers back off your machine.
184
14
 
185
- Superpowers allows you to create shortcuts for frequently used skill repositories using repository aliases.
15
+ ---
186
16
 
187
- **Add a repository alias:**
188
- ```bash
189
- # Automatic alias detection from skill.json
190
- superpowers-agent add-repository https://github.com/example/skills.git
17
+ ## What v11.0.0 removes automatically
191
18
 
192
- # Custom alias
193
- superpowers-agent add-repository https://github.com/example/skills.git --as=@myskills
194
-
195
- # Add to project config
196
- superpowers-agent add-repository https://github.com/example/skills.git --project
197
- ```
19
+ Running either command performs the same cleanup pass:
198
20
 
199
- **Use repository aliases to install skills:**
200
21
  ```bash
201
- # Install all skills from repository
202
- superpowers-agent add @myskills
203
-
204
- # Install specific skill path
205
- superpowers-agent add @myskills path/to/skill
206
-
207
- # Install to project
208
- superpowers-agent add @myskills path/to/skill --project
209
- ```
210
-
211
- **Configuration format:**
212
- ```json
213
- // ~/.agents/config.json or .agents/config.json
214
- {
215
- "installLocation": "global",
216
- "repositories": {
217
- "@myskills": "https://github.com/example/skills.git",
218
- "@internal": "https://github.com/myorg/internal-skills.git"
219
- }
220
- }
221
- ```
222
-
223
- Repository aliases make it easy to:
224
- - Install skills from multiple sources
225
- - Share skill repositories across teams
226
- - Quickly access frequently used skill collections
227
- - Support both Git URLs and local paths
228
-
229
- ### Agent Auto-Installation
230
-
231
- Repositories can include an `agents.json` manifest to automatically install AI agents alongside skills. When you run `superpowers-agent add` or `superpowers-agent pull` on a repository containing `agents.json`, agents are automatically symlinked to the appropriate platform directories.
232
-
233
- **`agents.json` format:**
234
- ```json
235
- {
236
- "version": "1.0.0",
237
- "repository": "@my-agents",
238
- "agents": {
239
- "github": ["agent-name-1", "agent-name-2"],
240
- "opencode": ["agent-name-1", "agent-name-2"]
241
- }
242
- }
243
- ```
244
-
245
- **Supported platforms and paths:**
246
-
247
- | Platform | Source Directory | Destination |
248
- |----------|----------------|-------------|
249
- | `github` | `.github/agents/<name>.agent.md` | VS Code `prompts/` directory **and** `~/.copilot/agents/` (GitHub Copilot CLI) |
250
- | `opencode` | `.opencode/agents/<name>.md` | `~/.config/opencode/agents/` |
251
- | `claude` | `.claude/agents/<name>.md` | `~/.claude/agents/` |
252
-
253
- **How it works:**
254
- 1. After skills are installed, the system checks for `agents.json` at the repository root
255
- 2. For each platform listed, agents are symlinked from the repository to the platform destination
256
- 3. For git-sourced repositories, a persistent copy is stored at `~/.agents/repos/` so symlinks remain valid
257
- 4. Installed agents are tracked in `~/.agents/config.json` under `installedAgents`
258
-
259
- **Examples:**
260
- ```bash
261
- # Install skills and agents from a repository
262
- superpowers-agent add https://github.com/example/agents-repo.git
263
-
264
- # Update agents from a repository alias
265
- superpowers-agent pull @my-agents
22
+ superpowers-agent bootstrap
23
+ # or
24
+ superpowers-agent update
266
25
  ```
267
26
 
268
- ### Skill Storage
269
-
270
- Skills live in a small set of canonical locations and the supported agents discover them there directly:
271
-
272
- - **Global skills** — bundled Superpowers skills in `~/.agents/superpowers/skills/` and personal skills in `~/.agents/skills/`
273
- - **Project skills** — `.agents/skills/` inside a project (created/managed by `setup-skills`)
274
- - **Claude Code mirror** — because Claude Code ignores `~/.agents/skills`, `bootstrap` also mirrors the repo's skills into `~/.claude/skills` (only when `~/.claude` exists) so Claude can find them.
275
-
276
- **Stale symlink cleanup:**
277
-
278
- A one-time, `skill.json`-gated cleaner runs during `superpowers-agent bootstrap`. It scrubs deprecated per-platform skill symlink directories left behind by older versions — including legacy Cursor, Codex, and Gemini directories — and reconciles `~/.claude/skills` so retired skills are pruned there too. Ownership is proved per-link from the raw target, so agent personas in `~/.claude/agents/` and your own skills are never touched.
279
-
280
- ## Skill Priority
281
-
282
- Each supported agent discovers and loads skills using its native skill tool. No separate prompt/command files are installed.
283
-
284
- **Skill priority pipeline (first match wins):**
285
- 1. `.agents/skills/` inside the workspace (project-specific overrides)
286
- 2. `.claude/skills/` inside the repo if present (repo-wide Claude overrides)
287
- 3. Personal skills in `~/.agents/skills/` (user-level customizations)
288
- 4. Bundled Superpowers skills in `~/.agents/superpowers/skills/` (system defaults)
289
-
290
- When any agent invokes a skill — no matter which supported tool it originates from — the CLI enforces the ordering above. Add a `brainstorming` skill under `.agents/skills/` and every supported tool immediately picks it up.
291
-
292
- ### OpenCode
27
+ The pass removes:
293
28
 
294
- Skills are available via OpenCode's native `skill` tool. The `.opencode/plugins/superpowers-agent.js` plugin injects bootstrap context at session start. Docs: [OpenCode Plugins](https://opencode.ai/docs/plugins/)
29
+ 1. The Superpowers `SessionStart` hook entry in `~/.claude/settings.json` (every other hook is preserved).
30
+ 2. The Copilot session hook at `~/.copilot/hooks/superpowers.json`.
31
+ 3. The OpenCode plugin at `~/.config/opencode/plugins/superpowers-agent.js`.
32
+ 4. Every package-owned skill symlink under `~/.agents/skills`, `~/.claude/skills`, `~/.copilot/skills`,
33
+ `~/.config/opencode/skill`, and the project-local `.claude/skills`, `.copilot/skills`, `.opencode/skill`.
34
+ 5. The `~/.local/bin/superpowers` and `~/.local/bin/superpowers-agent` shims, and the managed region of
35
+ `~/.agents/AGENTS.md`, which is rewritten to a short retirement note.
295
36
 
296
- ### GitHub Copilot
37
+ Symlinks are deleted outright. Real files are moved to the backup directory first. A failure on one
38
+ artifact is reported and skipped — the pass never aborts halfway.
297
39
 
298
- Skills are available via the native skill tool. `bootstrap` installs a `sessionStart` hook at `~/.copilot/hooks/superpowers.json` (honoring `$COPILOT_HOME`) that injects the Superpowers context — including the `leveraging-cli-tools` directive — at the start of every Copilot CLI session via the hook's `additionalContext` output.
40
+ ### Retirement Backup Directory
299
41
 
300
- ### Claude Code
301
-
302
- Skills are available via the native skill tool. Claude agent personas defined in `.claude/agents/<name>.md` are installed into `~/.claude/agents/` via `add`/`pull`. `bootstrap` also installs a `SessionStart` hook into `~/.claude/settings.json` that injects the Superpowers context every session (idempotent; preserves your other hooks and settings).
303
-
304
- ## Bundled Skills
305
-
306
- The package contains only the four skills listed in [Quick Start](#quick-start). Install additional skills with `superpowers-agent add`.
307
-
308
- ### Running Tests
309
-
310
- Run the automated suite from `.agents`:
311
-
312
- ```bash
313
- cd .agents
314
- bun test
315
42
  ```
316
-
317
- ### CLI Commands
318
-
319
- The `superpowers-agent` CLI provides commands for managing installed skills. Skill discovery and loading use your AI platform's native skill tool.
320
-
321
- **Skill Installation:**
322
- ```bash
323
- superpowers-agent add <url-or-path> # Install skill(s) from Git or local
324
- superpowers-agent add @alias path/to/skill # Install from repository alias
325
- superpowers-agent rm <skill-name> # Remove an installed skill or agent
43
+ ~/.agents/retirement-backup-<YYYY-MM-DD>/
326
44
  ```
327
45
 
328
- **Repository Management:**
329
- ```bash
330
- superpowers-agent list-repositories # List all configured repository aliases
331
- superpowers-agent add-repository <git-url> # Add repository alias
332
- ```
46
+ `<YYYY-MM-DD>` is the date the cleanup ran. `~/.claude/settings.json` is the one exception: it is
47
+ edited in place, and its copy is written beside it as `~/.claude/settings.json.backup-<YYYY-MM-DD>`.
333
48
 
334
- **Configuration:**
335
- ```bash
336
- superpowers-agent config-get # Show current configuration
337
- superpowers-agent config-set <key> <value> # Update configuration
338
- ```
49
+ ## How to restore from the backup
339
50
 
340
- **Project Setup:**
341
- ```bash
342
- superpowers-agent setup-skills # Initialize project with skills docs
343
- superpowers-agent bootstrap # Run complete bootstrap (installs Claude + Copilot session hooks)
344
- superpowers-agent update # Update to latest version
345
- ```
51
+ The cleanup summary prints an exact `cp` line for every file it backed up. Run those lines to undo it.
52
+ The general form:
346
53
 
347
- **Session Hooks:**
348
54
  ```bash
349
- superpowers-agent session-context # Print session-start context (raw)
350
- superpowers-agent session-context --format=claude # Emit Claude Code SessionStart hook JSON
351
- superpowers-agent session-context --format=copilot # Emit GitHub Copilot sessionStart hook JSON
55
+ cp ~/.agents/retirement-backup-2026-09-05/<filename> <original path>
56
+ cp ~/.claude/settings.json.backup-2026-09-05 ~/.claude/settings.json
352
57
  ```
353
- The platform hooks installed by `bootstrap` call this command; it is the single source of truth for the injected CLI-tool nudge.
354
58
 
355
- ### Skill Metadata with skill.json
59
+ Skill symlinks are not backed up — they are recreated by whatever tool you use next, or by hand.
356
60
 
357
- Skills can include a `skill.json` file to define installation metadata for the superpowers-agent CLI and multi-skill repositories.
61
+ ## Removing everything by hand
358
62
 
359
- #### Single Skill Configuration
63
+ Use this if the automated pass fails or you never want to run the CLI again.
360
64
 
361
- For a single skill, `skill.json` defines its identity:
362
-
363
- ```json
364
- {
365
- "version": "1.0.0",
366
- "name": "aem/block-collection-and-party",
367
- "title": "AEM Block Collection and Party"
368
- }
369
- ```
370
-
371
- **Fields:**
372
- - `name`: Canonical skill name (used for installation path)
373
- - `title`: Human-readable display name
374
- - `version`: Skill version for tracking updates
375
-
376
- #### Multi-Skill Repository Configuration
377
-
378
- For repositories containing multiple skills, the root `skill.json` lists all skills and defines a repository alias:
379
-
380
- ```json
381
- {
382
- "version": "1.0.0",
383
- "repository": "@baici",
384
- "skills": [
385
- "aem/authoring-analysis",
386
- "aem/block-collection-and-party",
387
- "aem/block-inventory",
388
- "aem/building-blocks",
389
- "aem/content-driven-development"
390
- ]
391
- }
392
- ```
393
-
394
- **Fields:**
395
- - `repository`: Default alias for this repository (used with `add-repository`)
396
- - `skills`: Array of skill paths within the repository
397
- - `version`: Repository version
398
-
399
- **Each skill then has its own skill.json:**
400
- ```
401
- repository/
402
- ├── skill.json # Repository manifest
403
- ├── aem/
404
- │ ├── authoring-analysis/
405
- │ │ ├── SKILL.md
406
- │ │ └── skill.json # Individual skill metadata
407
- │ └── block-inventory/
408
- │ ├── SKILL.md
409
- │ └── skill.json
410
- ```
411
-
412
- **Usage with multi-skill repositories:**
413
65
  ```bash
414
- # Add repository with automatic alias detection
415
- superpowers-agent add-repository https://github.com/example/skills.git
416
- # Detects @baici alias from skill.json
66
+ # 1. Claude session hook edit the file and delete the hooks.SessionStart entry
67
+ # whose command contains "superpowers-agent session-context".
68
+ $EDITOR ~/.claude/settings.json
417
69
 
418
- # Install specific skill from repository
419
- superpowers-agent add @baici aem/building-blocks
420
-
421
- # Install all skills from repository
422
- superpowers-agent add @baici
423
- ```
70
+ # 2. Copilot session hook
71
+ rm -f ~/.copilot/hooks/superpowers.json
424
72
 
425
- #### Benefits of skill.json
73
+ # 3. OpenCode plugin
74
+ rm -f ~/.config/opencode/plugins/superpowers-agent.js
426
75
 
427
- 1. **Repository Management**: Organize and share multi-skill collections
428
- 2. **Automatic Detection**: CLI reads metadata for installation defaults
429
- 3. **Installation Paths**: Control where skills install with `name` field
430
- 4. **Version Tracking**: Each skill tracks its version independently
76
+ # 4. Skill symlinks remove only links pointing into a superpowers checkout
77
+ for d in ~/.agents/skills ~/.claude/skills ~/.copilot/skills ~/.config/opencode/skill \
78
+ ./.claude/skills ./.copilot/skills ./.opencode/skill; do
79
+ [ -d "$d" ] || continue
80
+ for l in "$d"/*; do
81
+ [ -L "$l" ] && case "$(readlink "$l")" in *superpowers*) rm -f "$l";; esac
82
+ done
83
+ done
431
84
 
432
- ## How It Works
85
+ # 5. Shims
86
+ rm -f ~/.local/bin/superpowers ~/.local/bin/superpowers-agent
433
87
 
434
- **For Agent-Agnostic Installation:**
435
- 1. **Bootstrap Process** - Installs agent integrations and syncs skill symlinks globally
436
- 2. **Skill Discovery** - Finds skills across system, personal, and project locations
437
- 3. **Priority Resolution** - Project skills override personal skills override system skills
438
- 4. **Universal Integration** - Works with GitHub Copilot, Claude Code, OpenCode, Pi, and OpenAI Codex
439
-
440
- **For OpenCode:**
441
- 1. **Plugin System** - The `.opencode/plugins/superpowers-agent.js` plugin injects bootstrap context dynamically at session start
442
- 2. **System Transform Hook** - Uses `experimental.chat.system.transform` for reliable session injection
443
- 3. **Native Skills** - Skills are accessible via OpenCode's native `skill` tool through symlinks
444
-
445
- **For Claude Code:**
446
- 1. **Skills System** - Uses Claude Code's first-party skills system
447
- 2. **Automatic Discovery** - Claude finds and uses relevant skills for your task
448
- 3. **Mandatory Workflows** - When a skill exists for your task, using it becomes required
449
-
450
- ## Philosophy
451
-
452
- - **Test-Driven Development** - Write tests first, always
453
- - **Systematic over ad-hoc** - Process over guessing
454
- - **Complexity reduction** - Simplicity as primary goal
455
- - **Evidence over claims** - Verify before declaring success
456
- - **Domain over implementation** - Work at problem level, not solution level
457
-
458
- ## Contributing
459
-
460
- Skills live directly in this repository. To contribute:
461
-
462
- 1. Fork the repository
463
- 2. Create a branch for your skill
464
- 3. Follow the skill-creator skill for creating new skills
465
- 4. Submit a PR
466
-
467
- ## Updating
468
-
469
- ### Automatic Updates (Default)
470
-
471
- Superpowers automatically checks for and applies updates during bootstrap by default:
472
-
473
- ```bash
474
- superpowers-agent bootstrap
88
+ # 6. Managed instructions in ~/.agents/AGENTS.md — delete the block between
89
+ # <!-- SUPERPOWERS_SKILLS_START --> and <!-- SUPERPOWERS_SKILLS_END -->
90
+ $EDITOR ~/.agents/AGENTS.md
475
91
  ```
476
92
 
477
- **Auto-update behavior:**
478
- - ✓ Fetches latest changes from GitHub main branch
479
- - ✓ Only updates if repository is clean (no local modifications)
480
- - ✓ Intelligently reinstalls only changed integrations (opencode plugin, etc.)
481
- - ✓ Skips update if not on main branch or network unavailable
93
+ ### The Copilot instructions block cleanup does not touch
482
94
 
483
- **Skip auto-update for a single run:**
484
- ```bash
485
- superpowers-agent bootstrap --no-update
486
- ```
487
-
488
- **Re-install only specific agent integrations:**
489
-
490
- Use `--force-<agent>` flags to target individual agents without running the full bootstrap. Useful when you've updated a single agent's tools or want to repair a specific integration.
491
-
492
- ```bash
493
- # Re-install only GitHub Copilot integration
494
- superpowers-agent bootstrap --force-copilot
95
+ Cleanup deliberately leaves your project's `.github/copilot-instructions.md` alone, because that file
96
+ is checked into your repository and is yours to edit. Remove the block yourself, including both
97
+ markers:
495
98
 
496
- # Re-install Copilot and Claude together
497
- superpowers-agent bootstrap --force-copilot --force-claude
498
99
  ```
499
-
500
- Supported flags: `--force-copilot`, `--force-claude`, `--force-opencode`
501
-
502
- > When `--force-<agent>` flags are used, universal alias installation and `AGENTS.md` platform generation are skipped. Skill symlink sync still runs. If the agent's directory does not exist (e.g. `~/.copilot`), it will be created automatically.
503
-
504
- ### Manual Updates
505
-
506
- Check for updates anytime with the dedicated update command:
507
-
508
- ```bash
509
- superpowers-agent update
100
+ <!-- SUPERPOWERS_-_INSTRUCTIONS_START -->
101
+ ...
102
+ <!-- SUPERPOWERS_-_INSTRUCTIONS_END -->
510
103
  ```
511
104
 
512
- This command is **print-only** — it never runs a global install for you (that can need sudo/permissions and should be your explicit call). It:
513
- - Checks the npm registry for a newer version
514
- - Detects how the CLI was installed (npm/pnpm/yarn/bun/deno) from its install path
515
- - Prints the exact install command for your package manager, followed by `superpowers-agent bootstrap && superpowers-agent setup-skills`
105
+ ## Uninstalling the package
516
106
 
517
- For example, with an npm install it prints:
107
+ Run the cleanup first, then remove the global package with the manager you installed it with:
518
108
 
519
109
  ```bash
520
- npm install -g @complexthings/superpowers-agent
521
- superpowers-agent bootstrap && superpowers-agent setup-skills
110
+ npm uninstall -g @complexthings/superpowers-agent
111
+ pnpm remove -g @complexthings/superpowers-agent
112
+ yarn global remove @complexthings/superpowers-agent
113
+ bun remove -g @complexthings/superpowers-agent
114
+ deno uninstall -g superpowers-agent
522
115
  ```
523
116
 
524
- ### Configuration
525
-
526
- **Disable auto-update permanently:**
527
- ```bash
528
- superpowers-agent config-set auto_update false
529
- ```
117
+ ## Release notes — v11.0.0 (final)
530
118
 
531
- When disabled, bootstrap will show an "Update Available" message instead of auto-updating.
119
+ Final release. The CLI installs nothing; `bootstrap` and `update` both run Retirement Cleanup.
120
+ The bundled skills, the session-context hooks and the repo-managed skill symlinks are removed.
121
+ Requires Node `^22 || ^24 || ^26`.
532
122
 
533
- **Re-enable auto-update:**
534
- ```bash
535
- superpowers config-set auto_update true
536
- ```
123
+ Maintainer step after publishing v11.0.0 to npm:
537
124
 
538
- **View current configuration:**
539
125
  ```bash
540
- superpowers config-get
126
+ npm deprecate @complexthings/superpowers-agent "Retired — use npx skills instead: https://skills.sh"
541
127
  ```
542
128
 
543
- Configuration is stored in `~/.agents/superpowers/.config.json` and persists across updates.
544
-
545
129
  ## Credits
546
130
 
547
- This project builds on [Jesse Vincent's Superpowers for Claude Code](https://github.com/obra/superpowers). Jesse's pioneering work introduced the concept of systematic, reusable skills for AI agents. Read his excellent blog post: [Superpowers for Claude Code](https://blog.fsck.com/2025/10/09/superpowers/)
548
-
549
- **Inspired by obra/superpowers (v7.0.0):**
550
- - Reusable skill workflows
551
- - OpenCode plugin architecture pattern
552
- - Test infrastructure for skill validation
553
-
554
- This fork extends that vision to support agent-agnostic workflows across GitHub Copilot, Claude Code, OpenCode, Pi, and OpenAI Codex.
555
-
556
- ## License
557
-
558
- MIT License - see LICENSE file for details
559
-
560
- ## Support
131
+ Superpowers began as [Jesse Vincent's Superpowers for Claude Code](https://github.com/obra/superpowers),
132
+ introduced in [this blog post](https://blog.fsck.com/2025/10/09/superpowers/). This fork extended that
133
+ idea to other agent harnesses. Thanks to everyone who used it, filed issues, and sent patches.
561
134
 
562
- - **Issues**: https://github.com/complexthings/superpowers/issues
563
- - **Original Project**: https://github.com/obra/superpowers
135
+ Skills live on at **[https://skills.sh](https://skills.sh)**.