@complexthings/superpowers-agent 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/.agents/docs/SUPERPOWERS.md +108 -0
  2. package/.agents/prompts/001-copilot-tool-mapping-do/001-copilot-tool-mapping-do.md +116 -0
  3. package/.agents/prompts/001-copilot-tool-mapping-do/SUMMARY.md +72 -0
  4. package/.agents/prompts/001-copilot-tool-mapping-do/copilot-tool-mapping-do-output.md +83 -0
  5. package/.agents/prompts/001-release-management-do/001-release-management-do.md +161 -0
  6. package/.agents/prompts/001-release-management-do/SUMMARY.md +19 -0
  7. package/.agents/prompts/001-release-management-do/completed/001-release-management-do.md +161 -0
  8. package/.agents/prompts/002-pull-command-do/SUMMARY.md +28 -0
  9. package/.agents/prompts/002-pull-command-do/completed/002-pull-command-do.md +122 -0
  10. package/.agents/prompts/002-pull-command-do/pull-command-do-output.md +174 -0
  11. package/.agents/prompts/command_updates_prompt.md +69 -0
  12. package/.agents/prompts/current_prompt.md +8 -0
  13. package/.agents/prompts/refactor.prompt.md +57 -0
  14. package/.agents/skills/.gitkeep +0 -0
  15. package/.agents/superpowers-agent +355 -0
  16. package/.agents/superpowers-bootstrap.md +42 -0
  17. package/.agents/templates/AGENTS.md.template +40 -0
  18. package/.agents/templates/SUPERPOWERS.md.template +108 -0
  19. package/.agents/templates/TOOLS.md.template +15 -0
  20. package/.github/workflows/main.yaml +32 -0
  21. package/AGENTS.md +60 -0
  22. package/LICENSE +21 -0
  23. package/README.md +724 -0
  24. package/hooks/hooks.json +15 -0
  25. package/hooks/session-start.sh +27 -0
  26. package/package.json +51 -0
  27. package/skills/architecture/ABOUT.md +20 -0
  28. package/skills/architecture/preserving-productive-tensions/SKILL.md +146 -0
  29. package/skills/architecture/preserving-productive-tensions/skill.json +9 -0
  30. package/skills/collaboration/brainstorming/SKILL.md +166 -0
  31. package/skills/collaboration/brainstorming/skill.json +9 -0
  32. package/skills/collaboration/brainstorming/spec-document-reviewer-prompt.md +50 -0
  33. package/skills/collaboration/brainstorming/visual-companion.md +277 -0
  34. package/skills/collaboration/dispatching-parallel-agents/SKILL.md +174 -0
  35. package/skills/collaboration/dispatching-parallel-agents/skill.json +9 -0
  36. package/skills/collaboration/executing-plans/SKILL.md +130 -0
  37. package/skills/collaboration/executing-plans/skill.json +9 -0
  38. package/skills/collaboration/finishing-a-development-branch/SKILL.md +261 -0
  39. package/skills/collaboration/finishing-a-development-branch/skill.json +9 -0
  40. package/skills/collaboration/leveraging-cli-tools/SKILL.md +132 -0
  41. package/skills/collaboration/leveraging-cli-tools/skill.json +9 -0
  42. package/skills/collaboration/receiving-code-review/SKILL.md +233 -0
  43. package/skills/collaboration/receiving-code-review/skill.json +9 -0
  44. package/skills/collaboration/requesting-code-review/SKILL.md +110 -0
  45. package/skills/collaboration/requesting-code-review/code-reviewer.md +146 -0
  46. package/skills/collaboration/requesting-code-review/skill.json +12 -0
  47. package/skills/collaboration/subagent-driven-development/SKILL.md +255 -0
  48. package/skills/collaboration/subagent-driven-development/code-quality-reviewer-prompt.md +26 -0
  49. package/skills/collaboration/subagent-driven-development/implementer-prompt.md +113 -0
  50. package/skills/collaboration/subagent-driven-development/skill.json +15 -0
  51. package/skills/collaboration/subagent-driven-development/spec-reviewer-prompt.md +61 -0
  52. package/skills/collaboration/using-git-worktrees/SKILL.md +366 -0
  53. package/skills/collaboration/using-git-worktrees/skill.json +9 -0
  54. package/skills/collaboration/writing-plans/SKILL.md +121 -0
  55. package/skills/collaboration/writing-plans/plan-document-reviewer-prompt.md +52 -0
  56. package/skills/collaboration/writing-plans/skill.json +9 -0
  57. package/skills/debugging/defense-in-depth/SKILL.md +380 -0
  58. package/skills/debugging/defense-in-depth/skill.json +9 -0
  59. package/skills/debugging/root-cause-tracing/SKILL.md +361 -0
  60. package/skills/debugging/root-cause-tracing/find-polluter.sh +63 -0
  61. package/skills/debugging/root-cause-tracing/skill.json +12 -0
  62. package/skills/debugging/systematic-debugging/SKILL.md +299 -0
  63. package/skills/debugging/systematic-debugging/condition-based-waiting-example.ts +158 -0
  64. package/skills/debugging/systematic-debugging/condition-based-waiting.md +115 -0
  65. package/skills/debugging/systematic-debugging/defense-in-depth.md +122 -0
  66. package/skills/debugging/systematic-debugging/find-polluter.sh +63 -0
  67. package/skills/debugging/systematic-debugging/root-cause-tracing.md +169 -0
  68. package/skills/debugging/systematic-debugging/skill.json +9 -0
  69. package/skills/debugging/systematic-debugging/test-academic.md +14 -0
  70. package/skills/debugging/systematic-debugging/test-pressure-1.md +58 -0
  71. package/skills/debugging/systematic-debugging/test-pressure-2.md +68 -0
  72. package/skills/debugging/systematic-debugging/test-pressure-3.md +69 -0
  73. package/skills/debugging/verification-before-completion/SKILL.md +143 -0
  74. package/skills/debugging/verification-before-completion/skill.json +9 -0
  75. package/skills/finding-skills/SKILL.md +101 -0
  76. package/skills/finding-skills/skill.json +8 -0
  77. package/skills/meta/create-skill-json/SKILL.md +370 -0
  78. package/skills/meta/create-skill-json/skill.json +9 -0
  79. package/skills/meta/create-skill-json/test-scenarios.md +29 -0
  80. package/skills/meta/creating-prompts/SKILL.md +349 -0
  81. package/skills/meta/creating-prompts/examples/do-example.md +65 -0
  82. package/skills/meta/creating-prompts/examples/plan-example.md +75 -0
  83. package/skills/meta/creating-prompts/examples/refine-example.md +65 -0
  84. package/skills/meta/creating-prompts/examples/research-example.md +63 -0
  85. package/skills/meta/creating-prompts/scripts/get-next-number.sh +27 -0
  86. package/skills/meta/creating-prompts/skill.json +20 -0
  87. package/skills/meta/creating-prompts/templates/do-template.md +59 -0
  88. package/skills/meta/creating-prompts/templates/plan-template.md +58 -0
  89. package/skills/meta/creating-prompts/templates/refine-template.md +54 -0
  90. package/skills/meta/creating-prompts/templates/research-template.md +56 -0
  91. package/skills/meta/using-superpowers/SKILL.md +122 -0
  92. package/skills/meta/using-superpowers/skill.json +5 -0
  93. package/skills/meta/writing-prompts/SKILL.md +345 -0
  94. package/skills/meta/writing-prompts/skill.json +9 -0
  95. package/skills/problem-solving/ABOUT.md +40 -0
  96. package/skills/problem-solving/collision-zone-thinking/SKILL.md +188 -0
  97. package/skills/problem-solving/collision-zone-thinking/references/historical-examples.md +393 -0
  98. package/skills/problem-solving/collision-zone-thinking/skill.json +9 -0
  99. package/skills/problem-solving/inversion-exercise/SKILL.md +174 -0
  100. package/skills/problem-solving/inversion-exercise/skill.json +9 -0
  101. package/skills/problem-solving/meta-pattern-recognition/SKILL.md +116 -0
  102. package/skills/problem-solving/meta-pattern-recognition/skill.json +9 -0
  103. package/skills/problem-solving/scale-game/SKILL.md +222 -0
  104. package/skills/problem-solving/scale-game/skill.json +9 -0
  105. package/skills/problem-solving/simplification-cascades/SKILL.md +113 -0
  106. package/skills/problem-solving/simplification-cascades/skill.json +9 -0
  107. package/skills/problem-solving/when-stuck/SKILL.md +69 -0
  108. package/skills/problem-solving/when-stuck/skill.json +9 -0
  109. package/skills/research/ABOUT.md +20 -0
  110. package/skills/research/tracing-knowledge-lineages/SKILL.md +241 -0
  111. package/skills/research/tracing-knowledge-lineages/skill.json +9 -0
  112. package/skills/setup-skills/SKILL.md +47 -0
  113. package/skills/testing/condition-based-waiting/SKILL.md +359 -0
  114. package/skills/testing/condition-based-waiting/example.ts +158 -0
  115. package/skills/testing/condition-based-waiting/skill.json +12 -0
  116. package/skills/testing/test-driven-development/SKILL.md +434 -0
  117. package/skills/testing/test-driven-development/skill.json +9 -0
  118. package/skills/testing/testing-anti-patterns/SKILL.md +298 -0
  119. package/skills/testing/testing-anti-patterns/skill.json +9 -0
  120. package/skills/testing/verification-before-completion/SKILL.md +246 -0
  121. package/skills/testing/verification-before-completion/skill.json +10 -0
  122. package/skills/using-a-skill/SKILL.md +101 -0
  123. package/skills/using-a-skill/skill.json +8 -0
package/README.md ADDED
@@ -0,0 +1,724 @@
1
+ # Superpowers
2
+
3
+ A comprehensive skills library of proven techniques, patterns, and workflows for AI coding assistants.
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, Cursor, Gemini, and other AI coding assistants.
6
+
7
+ ## What's New
8
+
9
+ **v8.0.0 (March 13, 2026):**
10
+
11
+ - **Skills-only delivery** — All per-platform prompt/command files (`.opencode/command/`, `.cursor/commands/`, `.gemini/commands/`, `.github/prompts/`, `.codex/prompts/`, `commands/`) have been removed.
12
+ - **Bootstrap cleanup** — Bootstrap now runs a `removeLegacyPrompts` step that deletes any prompt/command files previously installed by older versions.
13
+ - **`setup-skills` is now a skill** — Project initialization is delivered as `skills/setup-skills/SKILL.md`. The `superpowers-agent setup-skills` CLI command remains.
14
+ - **Cursor integration is symlink-only** — Cursor hooks (`hooks/cursor/`) have been removed. Cursor now discovers skills through its native skill tool via symlinks.
15
+ - **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.
16
+ - **Removed CLI commands**: `install-copilot-prompts`, `install-cursor-commands`, `install-codex-prompts`, `install-gemini-commands`, `install-claude-commands`, `install-opencode-commands`.
17
+
18
+ **v7.0.5 (February 9, 2026):**
19
+
20
+ - **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
21
+ - **Agent Tracking** - Installed agents are tracked in `~/.agents/config.json` with source repository, version, and install timestamps
22
+ - **Persistent Repo Storage** - Git-sourced agent repositories are persisted at `~/.agents/repos/` to maintain valid symlinks
23
+
24
+ **v7.0.0 (February 7, 2026):**
25
+
26
+ - 🔧 **Bun Build System** - Migrated CLI build toolchain from Node.js/npm to Bun for faster builds and simpler dependency management
27
+ - 📋 **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
28
+ - 📊 **Mermaid Flowcharts** - Replaced DOT-format flowcharts with Mermaid syntax across 8 skills for better rendering in GitHub, VS Code, and agent contexts
29
+
30
+ **v6.5.0 (January 24, 2026):**
31
+
32
+ - 🔄 **Upstream Sync** - Ported advanced features from Jesse Vincent's [obra/superpowers](https://github.com/obra/superpowers) v4.1.1:
33
+ - **OpenCode Plugin** (`.opencode/plugins/superpowers-agent.js`) - Session bootstrap injection via system prompt transform
34
+ - **using-superpowers Skill** - Behavioral enforcement with Red Flags rationalization table (12 anti-patterns)
35
+ - **Two-Stage Code Review** - Spec compliance review + code quality review workflow
36
+ - **Test Infrastructure** (`tests/`) - Agent-agnostic test scripts for skill triggering
37
+
38
+ - 🔌 **OpenCode Plugin** - Native plugin for OpenCode that injects superpowers context at every session start using `experimental.chat.system.transform` hook
39
+
40
+ - 📋 **Two-Stage Review Process** - Updated `subagent-driven-development` skill with spec reviewer and code quality reviewer prompts for comprehensive code review
41
+
42
+ **v6.4.x (January 23-24, 2026):**
43
+
44
+ - 📐 **Context Optimization** - Reduced AGENTS.md context size by ~60-70% with separate SUPERPOWERS.md reference file
45
+ - 🔗 **Project-Level Symlinks** - `setup-skills` now creates symlinks from agent directories to `.agents/skills`
46
+
47
+ **Previous Releases:**
48
+
49
+ - **v6.3.x** - Codex platform support, native skill tools, extended symlinks for OpenCode/Cursor/Gemini
50
+ - **v6.0.0** - Complete codebase modernization with 90% bundle reduction
51
+ - **v5.4.0** - Dynamic tool mappings, automated platform detection
52
+
53
+ **Key Features:**
54
+
55
+ - 🎯 **Smart Skill Matching** - Just type `superpowers execute brainstorming` instead of full paths
56
+ - 🚀 **One-Line Installer** - `npm install -g @complexthings/superpowers-agent`
57
+ - 📦 **Skill Installation** - `add` and `add-repository` commands for Git/local skill installation
58
+ - 🔍 **Helper Discovery** - `get-helpers` finds scripts within skills using substring matching
59
+ - 📝 **Setup Skills** - `setup-skills` skill initializes projects with agent instruction files and skill symlinks
60
+
61
+ ## What You Get
62
+
63
+ - **Testing Skills** - TDD, async testing, anti-patterns
64
+ - **Debugging Skills** - Systematic debugging, root cause tracing, verification
65
+ - **Collaboration Skills** - Brainstorming, planning, code review, parallel agents
66
+ - **Development Skills** - Git worktrees, finishing branches, subagent workflows
67
+ - **Meta Skills** - Creating, testing, and sharing skills
68
+ - **Utility Commands** - `find-skills` to discover available skills, `execute` to load them
69
+
70
+ Plus:
71
+ - **Universal Prompts** - Work across Claude, GitHub Copilot, Cursor, Gemini, and other AI assistants
72
+ - **Automatic Integration** - Skills activate automatically when relevant
73
+ - **Consistent Workflows** - Systematic approaches to common engineering tasks
74
+
75
+ # Installation
76
+
77
+ ## Quick Install (Recommended)
78
+
79
+ Install Superpowers globally with one command:
80
+
81
+ ```bash
82
+ npm install -g @complexthings/superpowers-agent
83
+ ```
84
+
85
+ The installer will:
86
+ 1. Install to `~/.agents/superpowers` (global, works everywhere)
87
+ 2. Set up universal aliases: `superpowers` and `superpowers-agent`
88
+ 3. Sync skill symlinks for all detected agents
89
+ 4. Optionally update project files (AGENTS.md)
90
+
91
+ **After installation, you can use Superpowers from anywhere:**
92
+ ```bash
93
+ superpowers --help
94
+ superpowers find-skills
95
+ superpowers execute systematic-debugging
96
+ ```
97
+
98
+ ## Manual Installation
99
+
100
+ If you prefer manual installation or need project-specific setup, see [.agents/INSTALL.md](.agents/INSTALL.md).
101
+
102
+ **Learn more:** [Superpowers for Claude Code](https://blog.fsck.com/2025/10/09/superpowers/) by Jesse Vincent
103
+
104
+ ## Quick Start
105
+
106
+ ### Discovering Skills
107
+
108
+ **List all available skills:**
109
+ ```bash
110
+ superpowers find-skills
111
+ ```
112
+
113
+ **Search for specific skills:**
114
+ ```bash
115
+ superpowers find-skills | grep -i <topic>
116
+ ```
117
+
118
+ ### Using Skills
119
+
120
+ **Smart skill matching** - Just type the skill name or any suffix:
121
+ ```bash
122
+ superpowers execute brainstorming # Finds superpowers:collaboration/brainstorming
123
+ superpowers execute test-driven-development # Finds superpowers:testing/test-driven-development
124
+ superpowers execute collaboration/brainstorming # More specific suffix also works
125
+ ```
126
+
127
+ **Full paths still work:**
128
+ ```bash
129
+ superpowers execute superpowers:collaboration/brainstorming
130
+ ```
131
+
132
+ **Priority order:** Project skills → Home skills → Global Superpowers skills
133
+
134
+ ### Automatic Skill Activation
135
+
136
+ Skills activate automatically when relevant. For example:
137
+ - `test-driven-development` activates when implementing features
138
+ - `systematic-debugging` activates when debugging issues
139
+ - `verification-before-completion` activates before claiming work is done
140
+
141
+ ## Configuration
142
+
143
+ Superpowers supports project-level and global configuration via `.agents/config.json`.
144
+
145
+ ### Directory Configuration
146
+
147
+ **Default locations:**
148
+ - Prompts: `.agents/prompts/`
149
+ - Plans: `.agents/plans/`
150
+ - Skills: `.agents/skills/`
151
+
152
+ **Override globally:**
153
+ ```json
154
+ // ~/.agents/config.json
155
+ {
156
+ "prompts_dir": "custom/prompts",
157
+ "plans_dir": "custom/plans",
158
+ "installLocation": "global"
159
+ }
160
+ ```
161
+
162
+ **Override per-project:**
163
+ ```json
164
+ // .agents/config.json (in project root)
165
+ {
166
+ "prompts_dir": ".my-prompts",
167
+ "plans_dir": ".my-plans",
168
+ "installLocation": "project"
169
+ }
170
+ ```
171
+
172
+ **Priority:** Project config > Global config > Defaults
173
+
174
+ **Read config from CLI:**
175
+ ```bash
176
+ superpowers-agent get-config prompts_dir
177
+ superpowers-agent get-config plans_dir
178
+ ```
179
+
180
+ ### Repository Aliases
181
+
182
+ Superpowers allows you to create shortcuts for frequently used skill repositories using repository aliases.
183
+
184
+ **Add a repository alias:**
185
+ ```bash
186
+ # Automatic alias detection from skill.json
187
+ superpowers-agent add-repository https://github.com/example/skills.git
188
+
189
+ # Custom alias
190
+ superpowers-agent add-repository https://github.com/example/skills.git --as=@myskills
191
+
192
+ # Add to project config
193
+ superpowers-agent add-repository https://github.com/example/skills.git --project
194
+ ```
195
+
196
+ **Use repository aliases to install skills:**
197
+ ```bash
198
+ # Install all skills from repository
199
+ superpowers-agent add @myskills
200
+
201
+ # Install specific skill path
202
+ superpowers-agent add @myskills path/to/skill
203
+
204
+ # Install to project
205
+ superpowers-agent add @myskills path/to/skill --project
206
+ ```
207
+
208
+ **Configuration format:**
209
+ ```json
210
+ // ~/.agents/config.json or .agents/config.json
211
+ {
212
+ "installLocation": "global",
213
+ "repositories": {
214
+ "@myskills": "https://github.com/example/skills.git",
215
+ "@internal": "https://github.com/myorg/internal-skills.git"
216
+ }
217
+ }
218
+ ```
219
+
220
+ Repository aliases make it easy to:
221
+ - Install skills from multiple sources
222
+ - Share skill repositories across teams
223
+ - Quickly access frequently used skill collections
224
+ - Support both Git URLs and local paths
225
+
226
+ ### Agent Auto-Installation
227
+
228
+ 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.
229
+
230
+ **`agents.json` format:**
231
+ ```json
232
+ {
233
+ "version": "1.0.0",
234
+ "repository": "@my-agents",
235
+ "agents": {
236
+ "github": ["agent-name-1", "agent-name-2"],
237
+ "opencode": ["agent-name-1", "agent-name-2"]
238
+ }
239
+ }
240
+ ```
241
+
242
+ **Supported platforms and paths:**
243
+
244
+ | Platform | Source Directory | Destination |
245
+ |----------|----------------|-------------|
246
+ | `github` | `.github/agents/<name>.agent.md` | VS Code `prompts/` directory |
247
+ | `opencode` | `.opencode/agents/<name>.md` | `~/.config/opencode/agents/` |
248
+
249
+ **How it works:**
250
+ 1. After skills are installed, the system checks for `agents.json` at the repository root
251
+ 2. For each platform listed, agents are symlinked from the repository to the platform destination
252
+ 3. For git-sourced repositories, a persistent copy is stored at `~/.agents/repos/` so symlinks remain valid
253
+ 4. Installed agents are tracked in `~/.agents/config.json` under `installedAgents`
254
+
255
+ **Examples:**
256
+ ```bash
257
+ # Install skills and agents from a repository
258
+ superpowers-agent add https://github.com/example/agents-repo.git
259
+
260
+ # Update agents from a repository alias
261
+ superpowers-agent pull @my-agents
262
+ ```
263
+
264
+ ### Skill Symlinks for IDE Integration
265
+
266
+ Superpowers automatically creates symlinks to make skills available to all major AI coding assistants in their native skill directories.
267
+
268
+ **How it works:**
269
+
270
+ When you run `superpowers-agent bootstrap` or `superpowers-agent setup-skills`:
271
+
272
+ 1. **Global symlinks** (via `bootstrap`) sync skills to user-level directories:
273
+ - `~/.claude/skills/superpowers` -> `~/.agents/superpowers/skills/`
274
+ - `~/.copilot/skills/superpowers` -> `~/.agents/superpowers/skills/`
275
+ - `~/.config/opencode/skill/superpowers` -> `~/.agents/superpowers/skills/`
276
+ - `~/.cursor/skills/superpowers` -> `~/.agents/superpowers/skills/`
277
+ - `~/.gemini/skills/superpowers` -> `~/.agents/superpowers/skills/`
278
+ - `~/.codex/skills/superpowers` -> `~/.agents/superpowers/skills/`
279
+
280
+ 2. **Project symlinks** (via `setup-skills`) sync project skills to agent directories:
281
+ - `.claude/skills` -> `.agents/skills`
282
+ - `.github/skills` -> `.agents/skills`
283
+ - `.opencode/skill` -> `.agents/skills`
284
+ - `.cursor/skills` -> `.agents/skills`
285
+ - `.gemini/skills` -> `.agents/skills`
286
+ - `.codex/skills` -> `.agents/skills`
287
+
288
+ 3. **Personal skills** (installed via `superpowers-agent add`) are symlinked individually to all platforms.
289
+
290
+ **Behavior:**
291
+ - Symlinks are only created if the parent directory exists
292
+ - Use `--force` flag to create parent directories: `superpowers-agent bootstrap --force`
293
+ - Use `--force-<agent>` flags to re-install only specific agent integrations (e.g. `--force-copilot`, `--force-cursor`, `--force-claude`)
294
+ - Symlinks are tracked in `~/.agents/config.json` for management
295
+
296
+ **Windows Notes:**
297
+
298
+ On Windows, symlinks require either:
299
+ - Developer Mode enabled (Settings > Update & Security > For developers)
300
+ - Running as administrator
301
+
302
+ If symlink creation fails on Windows, you'll see a warning with instructions.
303
+
304
+ **Configuration:**
305
+ ```json
306
+ // ~/.agents/config.json
307
+ {
308
+ "symlinks": {
309
+ "claude": {
310
+ "superpowers": "~/.claude/skills/superpowers",
311
+ "skills": ["~/.claude/skills/my-skill"]
312
+ },
313
+ "copilot": {
314
+ "superpowers": "~/.copilot/skills/superpowers",
315
+ "skills": []
316
+ },
317
+ "opencode": {
318
+ "superpowers": "~/.config/opencode/skill/superpowers",
319
+ "skills": []
320
+ },
321
+ "cursor": {
322
+ "superpowers": "~/.cursor/skills/superpowers",
323
+ "skills": []
324
+ },
325
+ "gemini": {
326
+ "superpowers": "~/.gemini/skills/superpowers",
327
+ "skills": []
328
+ },
329
+ "codex": {
330
+ "superpowers": "~/.codex/skills/superpowers",
331
+ "skills": []
332
+ }
333
+ }
334
+ }
335
+ ```
336
+
337
+ ## Slash Commands & Skill Priority
338
+
339
+ Superpowers delivers skills as symlinks into each agent's native skill directory. Each agent discovers and loads skills using its native skill tool — no separate prompt/command files are installed.
340
+
341
+ **Skill priority pipeline (first match wins):**
342
+ 1. `./skills/` or `.agents/skills/` inside the workspace (project-specific overrides)
343
+ 2. `.claude/skills/` inside the repo if present (repo-wide Claude overrides)
344
+ 3. Personal skills in `~/.agents/skills/` (user-level customizations)
345
+ 4. Bundled Superpowers skills in `~/.agents/superpowers/skills/` (system defaults)
346
+
347
+ When any agent invokes a skill — no matter which tool it originates from — the CLI enforces the ordering above. Add a `brainstorming` skill under `./skills/` and every tool immediately picks it up without modifying any prompt files.
348
+
349
+ ### OpenCode
350
+
351
+ 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/)
352
+
353
+ ### GitHub Copilot
354
+
355
+ Skills are available via the native skill tool.
356
+
357
+ ### Cursor
358
+
359
+ Skills are available via the native skill tool.
360
+ ### Gemini
361
+
362
+ Skills are available via the native skill tool.
363
+
364
+ ### Claude Code
365
+
366
+ Skills are available via the native skill tool.
367
+
368
+ ### Codex
369
+
370
+ Skills are available via the native skill tool.
371
+
372
+ ## What's Inside
373
+
374
+ ### Skills Library
375
+
376
+ **Testing** (`skills/testing/`)
377
+ - **test-driven-development** - RED-GREEN-REFACTOR cycle
378
+ - **condition-based-waiting** - Async test patterns
379
+ - **testing-anti-patterns** - Common pitfalls to avoid
380
+ - **verification-before-completion** - Evidence-based completion claims (ported from obra/superpowers)
381
+
382
+ **Debugging** (`skills/debugging/`)
383
+ - **systematic-debugging** - 4-phase root cause process
384
+ - **root-cause-tracing** - Find the real problem
385
+ - **defense-in-depth** - Multiple validation layers
386
+
387
+ **Collaboration** (`skills/collaboration/`)
388
+ - **brainstorming** - Socratic design refinement
389
+ - **writing-plans** - Detailed implementation plans
390
+ - **executing-plans** - Batch execution with checkpoints
391
+ - **dispatching-parallel-agents** - Concurrent subagent workflows
392
+ - **requesting-code-review** - Pre-review checklist
393
+ - **receiving-code-review** - Responding to feedback
394
+ - **using-git-worktrees** - Parallel development branches
395
+ - **finishing-a-development-branch** - Merge/PR decision workflow
396
+ - **subagent-driven-development** - Fast iteration with two-stage code review (spec + quality)
397
+ - **leveraging-cli-tools** - High-performance CLI tools (rg, jq, fd, bat, ast-grep)
398
+
399
+ **Meta** (`skills/meta/`)
400
+ - **using-superpowers** - Behavioral enforcement skill loaded at session start (ported from obra/superpowers)
401
+ - **writing-prompts** - Create custom slash commands for GitHub Copilot, Cursor, or Claude
402
+ - **creating-prompts** - Create structured prompts for Do/Plan/Research/Refine workflows (adapted from TÂCHES)
403
+ - **create-skill-json** - Generate skill.json metadata files from SKILL.md and directory structure
404
+
405
+ **Utilities** (`skills/finding-skills/`, `skills/using-a-skill/`, `skills/setup-skills/`)
406
+ - **finding-skills** - Discover and search available skills
407
+ - **using-a-skill** - Load and apply specific skills
408
+ - **setup-skills** - Initialize project with agent instruction files and skill symlinks
409
+
410
+ **Problem-Solving** (`skills/problem-solving/`)
411
+ - **collision-zone-thinking** - Force unrelated concepts together for emergent insights
412
+ - **inversion-exercise** - Flip assumptions to reveal hidden constraints
413
+ - **meta-pattern-recognition** - Spot universal principles across domains
414
+ - **scale-game** - Test at extremes to expose fundamental truths
415
+ - **simplification-cascades** - Find insights that eliminate multiple components
416
+ - **when-stuck** - Dispatch to right problem-solving technique
417
+
418
+ **Research** (`skills/research/`)
419
+ - **tracing-knowledge-lineages** - Understand how ideas evolved over time
420
+
421
+ **Architecture** (`skills/architecture/`)
422
+ - **preserving-productive-tensions** - Keep multiple valid approaches instead of forcing premature resolution
423
+
424
+ ### Test Infrastructure
425
+
426
+ The `tests/` directory contains agent-agnostic test scripts for validating skill behavior:
427
+
428
+ **Test Categories:**
429
+ - `tests/skill-triggering/` - Tests for implicit skill activation scenarios
430
+ - `tests/explicit-skill-requests/` - Tests for explicit skill loading requests
431
+
432
+ **Running Tests:**
433
+ ```bash
434
+ # Run a single test
435
+ ./tests/skill-triggering/run-test.sh prompts/test-name.txt
436
+
437
+ # Run all tests in a category
438
+ ./tests/skill-triggering/run-all.sh
439
+
440
+ # Configure for your agent
441
+ export AGENT_CLI="opencode" # or "claude", "cursor", etc.
442
+ ./tests/skill-triggering/run-test.sh prompts/test-name.txt
443
+ ```
444
+
445
+ **Creating New Tests:**
446
+ 1. Add prompt files to `prompts/` subdirectory
447
+ 2. Each test is a `.txt` file with the prompt to send
448
+ 3. Scripts output agent responses for manual verification
449
+
450
+ ### CLI Commands
451
+
452
+ The `superpowers-agent` CLI provides powerful commands for managing skills:
453
+
454
+ **Skill Discovery:**
455
+ ```bash
456
+ superpowers-agent find-skills # List all available skills
457
+ superpowers-agent execute <name> # Load a specific skill
458
+ superpowers-agent path <skill-name> # Get SKILL.md file path
459
+ superpowers-agent dir <skill-name> # Get skill directory path
460
+ superpowers-agent get-helpers <skill> <term> # Find helper files in skill
461
+ ```
462
+
463
+ **Skill Installation:**
464
+ ```bash
465
+ superpowers-agent add <url-or-path> # Install skill(s) from Git or local
466
+ superpowers-agent add @alias path/to/skill # Install from repository alias
467
+ ```
468
+
469
+ **Repository Management:**
470
+ ```bash
471
+ superpowers-agent list-repositories # List all configured repository aliases
472
+ superpowers-agent add-repository <git-url> # Add repository alias
473
+ ```
474
+
475
+ **Configuration:**
476
+ ```bash
477
+ superpowers-agent config-get # Show current configuration
478
+ superpowers-agent config-set <key> <value> # Update configuration
479
+ superpowers-agent get-config <key> # Get specific config value
480
+ ```
481
+
482
+ **Project Setup:**
483
+ ```bash
484
+ superpowers-agent setup-skills # Initialize project with skills docs
485
+ superpowers-agent bootstrap # Run complete bootstrap
486
+ superpowers-agent update # Update to latest version
487
+ ```
488
+
489
+ ### Skill Metadata with skill.json
490
+
491
+ Skills can include a `skill.json` file to define metadata for the superpowers-agent CLI. This enables powerful features like repository aliases, helper file discovery, and multi-skill repositories.
492
+
493
+ **All skills in this repository include skill.json files** with version tracking, helper file listings, and aliases for convenient access.
494
+
495
+ #### Single Skill Configuration
496
+
497
+ For a single skill, `skill.json` defines the skill's identity and helpers:
498
+
499
+ ```json
500
+ {
501
+ "version": "1.0.0",
502
+ "name": "aem/block-collection-and-party",
503
+ "title": "AEM Block Collection and Party",
504
+ "helpers": [
505
+ "scripts/get-block-structure.js",
506
+ "scripts/search-block-collection-github.js",
507
+ "scripts/search-block-collection.js",
508
+ "scripts/search-block-party.js"
509
+ ],
510
+ "aliases": [
511
+ "block-party",
512
+ "block-collection"
513
+ ]
514
+ }
515
+ ```
516
+
517
+ **Fields:**
518
+ - `name`: Canonical skill name (used for installation path)
519
+ - `title`: Human-readable display name
520
+ - `helpers`: Array of helper script paths relative to skill directory
521
+ - `aliases`: Short names that can be used with `execute` and `get-helpers`
522
+ - `version`: Skill version for tracking updates
523
+
524
+ **Usage with helpers:**
525
+ ```bash
526
+ # Find helper files
527
+ superpowers-agent get-helpers block-collection search-block
528
+ # Returns: /path/to/skill/scripts/search-block-collection.js
529
+
530
+ # Use skill aliases
531
+ superpowers-agent execute block-party
532
+ # Loads: aem/block-collection-and-party
533
+ ```
534
+
535
+ #### Multi-Skill Repository Configuration
536
+
537
+ For repositories containing multiple skills, the root `skill.json` lists all skills and defines a repository alias:
538
+
539
+ ```json
540
+ {
541
+ "version": "1.0.0",
542
+ "repository": "@baici",
543
+ "skills": [
544
+ "aem/authoring-analysis",
545
+ "aem/block-collection-and-party",
546
+ "aem/block-inventory",
547
+ "aem/building-blocks",
548
+ "aem/content-driven-development"
549
+ ]
550
+ }
551
+ ```
552
+
553
+ **Fields:**
554
+ - `repository`: Default alias for this repository (used with `add-repository`)
555
+ - `skills`: Array of skill paths within the repository
556
+ - `version`: Repository version
557
+
558
+ **Each skill then has its own skill.json:**
559
+ ```
560
+ repository/
561
+ ├── skill.json # Repository manifest
562
+ ├── aem/
563
+ │ ├── authoring-analysis/
564
+ │ │ ├── SKILL.md
565
+ │ │ └── skill.json # Individual skill metadata
566
+ │ └── block-inventory/
567
+ │ ├── SKILL.md
568
+ │ └── skill.json
569
+ ```
570
+
571
+ **Usage with multi-skill repositories:**
572
+ ```bash
573
+ # Add repository with automatic alias detection
574
+ superpowers-agent add-repository https://github.com/example/skills.git
575
+ # Detects @baici alias from skill.json
576
+
577
+ # Install specific skill from repository
578
+ superpowers-agent add @baici aem/building-blocks
579
+
580
+ # Install all skills from repository
581
+ superpowers-agent add @baici
582
+ ```
583
+
584
+ #### Benefits of skill.json
585
+
586
+ 1. **Helper Discovery**: Find and execute helper scripts easily
587
+ 2. **Skill Aliases**: Use short, memorable names instead of full paths
588
+ 3. **Repository Management**: Organize and share multi-skill collections
589
+ 4. **Automatic Detection**: CLI reads metadata for smart defaults
590
+ 5. **Installation Paths**: Control where skills install with `name` field
591
+ 6. **Version Tracking**: Each skill tracks its version independently
592
+
593
+ ## How It Works
594
+
595
+ **For Agent-Agnostic Installation:**
596
+ 1. **Bootstrap Process** - Installs agent integrations and syncs skill symlinks globally
597
+ 2. **Skill Discovery** - Finds skills across system, personal, and project locations
598
+ 3. **Priority Resolution** - Project skills override personal skills override system skills
599
+ 4. **Universal Integration** - Works with OpenCode, GitHub Copilot, Cursor, Gemini, and other AI assistants
600
+
601
+ **For OpenCode:**
602
+ 1. **Plugin System** - The `.opencode/plugins/superpowers-agent.js` plugin injects bootstrap context dynamically at session start
603
+ 2. **System Transform Hook** - Uses `experimental.chat.system.transform` for reliable session injection
604
+ 3. **Native Skills** - Skills are accessible via OpenCode's native `skill` tool through symlinks
605
+
606
+ **For Claude Code:**
607
+ 1. **Skills System** - Uses Claude Code's first-party skills system
608
+ 2. **Automatic Discovery** - Claude finds and uses relevant skills for your task
609
+ 3. **Mandatory Workflows** - When a skill exists for your task, using it becomes required
610
+
611
+ ## Philosophy
612
+
613
+ - **Test-Driven Development** - Write tests first, always
614
+ - **Systematic over ad-hoc** - Process over guessing
615
+ - **Complexity reduction** - Simplicity as primary goal
616
+ - **Evidence over claims** - Verify before declaring success
617
+ - **Domain over implementation** - Work at problem level, not solution level
618
+
619
+ ## Contributing
620
+
621
+ Skills live directly in this repository. To contribute:
622
+
623
+ 1. Fork the repository
624
+ 2. Create a branch for your skill
625
+ 3. Follow the skill-creator skill for creating new skills
626
+ 4. Submit a PR
627
+
628
+ ## Updating
629
+
630
+ ### Automatic Updates (Default)
631
+
632
+ Superpowers automatically checks for and applies updates during bootstrap by default:
633
+
634
+ ```bash
635
+ superpowers-agent bootstrap
636
+ ```
637
+
638
+ **Auto-update behavior:**
639
+ - ✓ Fetches latest changes from GitHub main branch
640
+ - ✓ Only updates if repository is clean (no local modifications)
641
+ - ✓ Intelligently reinstalls only changed integrations (opencode plugin, etc.)
642
+ - ✓ Skips update if not on main branch or network unavailable
643
+
644
+ **Skip auto-update for a single run:**
645
+ ```bash
646
+ superpowers-agent bootstrap --no-update
647
+ ```
648
+
649
+ **Re-install only specific agent integrations:**
650
+
651
+ 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.
652
+
653
+ ```bash
654
+ # Re-install only GitHub Copilot integration
655
+ superpowers-agent bootstrap --force-copilot
656
+
657
+ # Re-install Copilot and Gemini together
658
+ superpowers-agent bootstrap --force-copilot --force-gemini
659
+ ```
660
+
661
+ Supported flags: `--force-copilot`, `--force-cursor`, `--force-codex`, `--force-gemini`, `--force-claude`, `--force-opencode`
662
+
663
+ > 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.
664
+
665
+ ### Manual Updates
666
+
667
+ Update anytime with the dedicated update command:
668
+
669
+ ```bash
670
+ superpowers-agent update
671
+ ```
672
+
673
+ This command:
674
+ - Pulls latest changes from GitHub
675
+ - Detects which integration files changed
676
+ - Reinstalls only affected integrations
677
+ - Shows summary of what was updated
678
+
679
+ **Update without reinstalling integrations:**
680
+ ```bash
681
+ superpowers update --no-reinstall
682
+ ```
683
+
684
+ ### Configuration
685
+
686
+ **Disable auto-update permanently:**
687
+ ```bash
688
+ superpowers-agent config-set auto_update false
689
+ ```
690
+
691
+ When disabled, bootstrap will show an "Update Available" message instead of auto-updating.
692
+
693
+ **Re-enable auto-update:**
694
+ ```bash
695
+ superpowers config-set auto_update true
696
+ ```
697
+
698
+ **View current configuration:**
699
+ ```bash
700
+ superpowers config-get
701
+ ```
702
+
703
+ Configuration is stored in `~/.agents/superpowers/.config.json` and persists across updates.
704
+
705
+ ## Credits
706
+
707
+ 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/)
708
+
709
+ **Ported from obra/superpowers (v7.0.0):**
710
+ - `using-superpowers` behavioral enforcement skill
711
+ - Two-stage code review process (spec + quality reviewers)
712
+ - OpenCode plugin architecture pattern
713
+ - Test infrastructure for skill validation
714
+
715
+ This fork extends that vision to support agent-agnostic workflows across multiple AI coding assistants including GitHub Copilot, Cursor, Gemini, OpenCode, and Codex.
716
+
717
+ ## License
718
+
719
+ MIT License - see LICENSE file for details
720
+
721
+ ## Support
722
+
723
+ - **Issues**: https://github.com/complexthings/superpowers/issues
724
+ - **Original Project**: https://github.com/obra/superpowers