@relipa/ai-flow-kit 0.0.1

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 (204) hide show
  1. package/AIFLOW.md +432 -0
  2. package/CHANGELOG.md +78 -0
  3. package/CONTRIBUTING.md +351 -0
  4. package/IMPLEMENTATION_SUMMARY.md +348 -0
  5. package/QUICK_START.md +392 -0
  6. package/README.md +323 -0
  7. package/bin/aiflow.js +178 -0
  8. package/custom/mcp-presets/README.md +138 -0
  9. package/custom/mcp-presets/backlog.json +15 -0
  10. package/custom/mcp-presets/figma.json +15 -0
  11. package/custom/mcp-presets/google-sheets.json +14 -0
  12. package/custom/mcp-presets/jira.json +16 -0
  13. package/custom/prompts/bug-fix.md +149 -0
  14. package/custom/prompts/feature.md +190 -0
  15. package/custom/prompts/investigation.md +164 -0
  16. package/custom/rules/code-style.md +7 -0
  17. package/custom/rules/java/code-style.md +11 -0
  18. package/custom/rules/java/naming.md +17 -0
  19. package/custom/rules/java/review-checklist.md +36 -0
  20. package/custom/rules/javascript/code-style.md +12 -0
  21. package/custom/rules/javascript/naming.md +14 -0
  22. package/custom/rules/naming.md +9 -0
  23. package/custom/rules/php/code-style.md +10 -0
  24. package/custom/rules/php/naming.md +15 -0
  25. package/custom/rules/review-checklist.md +9 -0
  26. package/custom/skills/figma-to-component/SKILL.md +207 -0
  27. package/custom/skills/generate-spec/SKILL.md +97 -0
  28. package/custom/skills/impact-analysis/SKILL.md +94 -0
  29. package/custom/skills/investigate-bug/SKILL.md +93 -0
  30. package/custom/skills/report-customer/SKILL.md +95 -0
  31. package/custom/skills/review-plan/SKILL.md +158 -0
  32. package/custom/skills/validate-ticket/SKILL.md +240 -0
  33. package/custom/templates/laravel.md +90 -0
  34. package/custom/templates/nextjs.md +89 -0
  35. package/custom/templates/reactjs.md +567 -0
  36. package/custom/templates/spring-boot.md +598 -0
  37. package/custom/templates/vue-nuxt.md +89 -0
  38. package/docs/architecture.md +395 -0
  39. package/docs/cli-reference.md +438 -0
  40. package/docs/configuration.md +412 -0
  41. package/docs/getting-started.md +248 -0
  42. package/docs/troubleshooting.md +587 -0
  43. package/docs/workflows/bug-fix.md +126 -0
  44. package/docs/workflows/feature.md +123 -0
  45. package/docs/workflows/impact-analysis.md +13 -0
  46. package/docs/workflows/investigation.md +13 -0
  47. package/docs/workflows/refactor.md +13 -0
  48. package/index.js +27 -0
  49. package/package.json +70 -0
  50. package/scripts/config.js +317 -0
  51. package/scripts/context.js +117 -0
  52. package/scripts/detect.js +239 -0
  53. package/scripts/doctor.js +48 -0
  54. package/scripts/guide.js +282 -0
  55. package/scripts/hooks/session-start.js +140 -0
  56. package/scripts/init.js +453 -0
  57. package/scripts/memory.js +247 -0
  58. package/scripts/prompt.js +392 -0
  59. package/scripts/remove.js +170 -0
  60. package/scripts/update.js +111 -0
  61. package/scripts/use.js +570 -0
  62. package/scripts/validate.js +303 -0
  63. package/upstream/.claude-plugin/marketplace.json +20 -0
  64. package/upstream/.claude-plugin/plugin.json +20 -0
  65. package/upstream/.codex/INSTALL.md +67 -0
  66. package/upstream/.cursor-plugin/plugin.json +25 -0
  67. package/upstream/.gitattributes +18 -0
  68. package/upstream/.github/FUNDING.yml +3 -0
  69. package/upstream/.github/ISSUE_TEMPLATE/bug_report.md +52 -0
  70. package/upstream/.github/ISSUE_TEMPLATE/config.yml +5 -0
  71. package/upstream/.github/ISSUE_TEMPLATE/feature_request.md +34 -0
  72. package/upstream/.github/ISSUE_TEMPLATE/platform_support.md +23 -0
  73. package/upstream/.github/PULL_REQUEST_TEMPLATE.md +87 -0
  74. package/upstream/.opencode/INSTALL.md +83 -0
  75. package/upstream/.opencode/plugins/superpowers.js +112 -0
  76. package/upstream/.version-bump.json +19 -0
  77. package/upstream/AGENTS.md +1 -0
  78. package/upstream/CHANGELOG.md +13 -0
  79. package/upstream/CLAUDE.md +85 -0
  80. package/upstream/CODE_OF_CONDUCT.md +128 -0
  81. package/upstream/GEMINI.md +2 -0
  82. package/upstream/LICENSE +21 -0
  83. package/upstream/README.md +190 -0
  84. package/upstream/RELEASE-NOTES.md +1096 -0
  85. package/upstream/agents/code-reviewer.md +48 -0
  86. package/upstream/commands/brainstorm.md +5 -0
  87. package/upstream/commands/execute-plan.md +5 -0
  88. package/upstream/commands/write-plan.md +5 -0
  89. package/upstream/docs/README.codex.md +126 -0
  90. package/upstream/docs/README.opencode.md +130 -0
  91. package/upstream/docs/plans/2025-11-22-opencode-support-design.md +294 -0
  92. package/upstream/docs/plans/2025-11-22-opencode-support-implementation.md +1095 -0
  93. package/upstream/docs/plans/2025-11-28-skills-improvements-from-user-feedback.md +711 -0
  94. package/upstream/docs/plans/2026-01-17-visual-brainstorming.md +571 -0
  95. package/upstream/docs/superpowers/plans/2026-01-22-document-review-system.md +301 -0
  96. package/upstream/docs/superpowers/plans/2026-02-19-visual-brainstorming-refactor.md +523 -0
  97. package/upstream/docs/superpowers/plans/2026-03-11-zero-dep-brainstorm-server.md +479 -0
  98. package/upstream/docs/superpowers/plans/2026-03-23-codex-app-compatibility.md +564 -0
  99. package/upstream/docs/superpowers/specs/2026-01-22-document-review-system-design.md +136 -0
  100. package/upstream/docs/superpowers/specs/2026-02-19-visual-brainstorming-refactor-design.md +162 -0
  101. package/upstream/docs/superpowers/specs/2026-03-11-zero-dep-brainstorm-server-design.md +118 -0
  102. package/upstream/docs/superpowers/specs/2026-03-23-codex-app-compatibility-design.md +244 -0
  103. package/upstream/docs/testing.md +303 -0
  104. package/upstream/docs/windows/polyglot-hooks.md +212 -0
  105. package/upstream/gemini-extension.json +6 -0
  106. package/upstream/hooks/hooks-cursor.json +10 -0
  107. package/upstream/hooks/hooks.json +16 -0
  108. package/upstream/hooks/run-hook.cmd +46 -0
  109. package/upstream/hooks/session-start +57 -0
  110. package/upstream/package.json +6 -0
  111. package/upstream/scripts/bump-version.sh +220 -0
  112. package/upstream/skills/brainstorming/SKILL.md +164 -0
  113. package/upstream/skills/brainstorming/scripts/frame-template.html +214 -0
  114. package/upstream/skills/brainstorming/scripts/helper.js +88 -0
  115. package/upstream/skills/brainstorming/scripts/server.cjs +354 -0
  116. package/upstream/skills/brainstorming/scripts/start-server.sh +148 -0
  117. package/upstream/skills/brainstorming/scripts/stop-server.sh +56 -0
  118. package/upstream/skills/brainstorming/spec-document-reviewer-prompt.md +49 -0
  119. package/upstream/skills/brainstorming/visual-companion.md +287 -0
  120. package/upstream/skills/dispatching-parallel-agents/SKILL.md +182 -0
  121. package/upstream/skills/executing-plans/SKILL.md +70 -0
  122. package/upstream/skills/finishing-a-development-branch/SKILL.md +200 -0
  123. package/upstream/skills/receiving-code-review/SKILL.md +213 -0
  124. package/upstream/skills/requesting-code-review/SKILL.md +105 -0
  125. package/upstream/skills/requesting-code-review/code-reviewer.md +146 -0
  126. package/upstream/skills/subagent-driven-development/SKILL.md +277 -0
  127. package/upstream/skills/subagent-driven-development/code-quality-reviewer-prompt.md +26 -0
  128. package/upstream/skills/subagent-driven-development/implementer-prompt.md +113 -0
  129. package/upstream/skills/subagent-driven-development/spec-reviewer-prompt.md +61 -0
  130. package/upstream/skills/systematic-debugging/CREATION-LOG.md +119 -0
  131. package/upstream/skills/systematic-debugging/SKILL.md +296 -0
  132. package/upstream/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
  133. package/upstream/skills/systematic-debugging/condition-based-waiting.md +115 -0
  134. package/upstream/skills/systematic-debugging/defense-in-depth.md +122 -0
  135. package/upstream/skills/systematic-debugging/find-polluter.sh +63 -0
  136. package/upstream/skills/systematic-debugging/root-cause-tracing.md +169 -0
  137. package/upstream/skills/systematic-debugging/test-academic.md +14 -0
  138. package/upstream/skills/systematic-debugging/test-pressure-1.md +58 -0
  139. package/upstream/skills/systematic-debugging/test-pressure-2.md +68 -0
  140. package/upstream/skills/systematic-debugging/test-pressure-3.md +69 -0
  141. package/upstream/skills/test-driven-development/SKILL.md +371 -0
  142. package/upstream/skills/test-driven-development/testing-anti-patterns.md +299 -0
  143. package/upstream/skills/using-git-worktrees/SKILL.md +218 -0
  144. package/upstream/skills/using-superpowers/SKILL.md +117 -0
  145. package/upstream/skills/using-superpowers/references/codex-tools.md +100 -0
  146. package/upstream/skills/using-superpowers/references/copilot-tools.md +52 -0
  147. package/upstream/skills/using-superpowers/references/gemini-tools.md +33 -0
  148. package/upstream/skills/verification-before-completion/SKILL.md +139 -0
  149. package/upstream/skills/writing-plans/SKILL.md +152 -0
  150. package/upstream/skills/writing-plans/plan-document-reviewer-prompt.md +49 -0
  151. package/upstream/skills/writing-skills/SKILL.md +655 -0
  152. package/upstream/skills/writing-skills/anthropic-best-practices.md +1150 -0
  153. package/upstream/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
  154. package/upstream/skills/writing-skills/graphviz-conventions.dot +172 -0
  155. package/upstream/skills/writing-skills/persuasion-principles.md +187 -0
  156. package/upstream/skills/writing-skills/render-graphs.js +168 -0
  157. package/upstream/skills/writing-skills/testing-skills-with-subagents.md +384 -0
  158. package/upstream/tests/brainstorm-server/package-lock.json +36 -0
  159. package/upstream/tests/brainstorm-server/package.json +10 -0
  160. package/upstream/tests/brainstorm-server/server.test.js +427 -0
  161. package/upstream/tests/brainstorm-server/windows-lifecycle.test.sh +351 -0
  162. package/upstream/tests/brainstorm-server/ws-protocol.test.js +392 -0
  163. package/upstream/tests/claude-code/README.md +158 -0
  164. package/upstream/tests/claude-code/analyze-token-usage.py +168 -0
  165. package/upstream/tests/claude-code/run-skill-tests.sh +187 -0
  166. package/upstream/tests/claude-code/test-document-review-system.sh +177 -0
  167. package/upstream/tests/claude-code/test-helpers.sh +202 -0
  168. package/upstream/tests/claude-code/test-subagent-driven-development-integration.sh +314 -0
  169. package/upstream/tests/claude-code/test-subagent-driven-development.sh +165 -0
  170. package/upstream/tests/explicit-skill-requests/prompts/action-oriented.txt +3 -0
  171. package/upstream/tests/explicit-skill-requests/prompts/after-planning-flow.txt +17 -0
  172. package/upstream/tests/explicit-skill-requests/prompts/claude-suggested-it.txt +11 -0
  173. package/upstream/tests/explicit-skill-requests/prompts/i-know-what-sdd-means.txt +8 -0
  174. package/upstream/tests/explicit-skill-requests/prompts/mid-conversation-execute-plan.txt +3 -0
  175. package/upstream/tests/explicit-skill-requests/prompts/please-use-brainstorming.txt +1 -0
  176. package/upstream/tests/explicit-skill-requests/prompts/skip-formalities.txt +3 -0
  177. package/upstream/tests/explicit-skill-requests/prompts/subagent-driven-development-please.txt +1 -0
  178. package/upstream/tests/explicit-skill-requests/prompts/use-systematic-debugging.txt +1 -0
  179. package/upstream/tests/explicit-skill-requests/run-all.sh +70 -0
  180. package/upstream/tests/explicit-skill-requests/run-claude-describes-sdd.sh +100 -0
  181. package/upstream/tests/explicit-skill-requests/run-extended-multiturn-test.sh +113 -0
  182. package/upstream/tests/explicit-skill-requests/run-haiku-test.sh +144 -0
  183. package/upstream/tests/explicit-skill-requests/run-multiturn-test.sh +143 -0
  184. package/upstream/tests/explicit-skill-requests/run-test.sh +136 -0
  185. package/upstream/tests/opencode/run-tests.sh +163 -0
  186. package/upstream/tests/opencode/setup.sh +88 -0
  187. package/upstream/tests/opencode/test-plugin-loading.sh +82 -0
  188. package/upstream/tests/opencode/test-priority.sh +198 -0
  189. package/upstream/tests/opencode/test-tools.sh +104 -0
  190. package/upstream/tests/skill-triggering/prompts/dispatching-parallel-agents.txt +8 -0
  191. package/upstream/tests/skill-triggering/prompts/executing-plans.txt +1 -0
  192. package/upstream/tests/skill-triggering/prompts/requesting-code-review.txt +3 -0
  193. package/upstream/tests/skill-triggering/prompts/systematic-debugging.txt +11 -0
  194. package/upstream/tests/skill-triggering/prompts/test-driven-development.txt +7 -0
  195. package/upstream/tests/skill-triggering/prompts/writing-plans.txt +10 -0
  196. package/upstream/tests/skill-triggering/run-all.sh +60 -0
  197. package/upstream/tests/skill-triggering/run-test.sh +88 -0
  198. package/upstream/tests/subagent-driven-dev/go-fractals/design.md +81 -0
  199. package/upstream/tests/subagent-driven-dev/go-fractals/plan.md +172 -0
  200. package/upstream/tests/subagent-driven-dev/go-fractals/scaffold.sh +45 -0
  201. package/upstream/tests/subagent-driven-dev/run-test.sh +106 -0
  202. package/upstream/tests/subagent-driven-dev/svelte-todo/design.md +70 -0
  203. package/upstream/tests/subagent-driven-dev/svelte-todo/plan.md +222 -0
  204. package/upstream/tests/subagent-driven-dev/svelte-todo/scaffold.sh +46 -0
@@ -0,0 +1,83 @@
1
+ # Installing Superpowers for OpenCode
2
+
3
+ ## Prerequisites
4
+
5
+ - [OpenCode.ai](https://opencode.ai) installed
6
+
7
+ ## Installation
8
+
9
+ Add superpowers to the `plugin` array in your `opencode.json` (global or project-level):
10
+
11
+ ```json
12
+ {
13
+ "plugin": ["superpowers@git+https://github.com/obra/superpowers.git"]
14
+ }
15
+ ```
16
+
17
+ Restart OpenCode. That's it — the plugin auto-installs and registers all skills.
18
+
19
+ Verify by asking: "Tell me about your superpowers"
20
+
21
+ ## Migrating from the old symlink-based install
22
+
23
+ If you previously installed superpowers using `git clone` and symlinks, remove the old setup:
24
+
25
+ ```bash
26
+ # Remove old symlinks
27
+ rm -f ~/.config/opencode/plugins/superpowers.js
28
+ rm -rf ~/.config/opencode/skills/superpowers
29
+
30
+ # Optionally remove the cloned repo
31
+ rm -rf ~/.config/opencode/superpowers
32
+
33
+ # Remove skills.paths from opencode.json if you added one for superpowers
34
+ ```
35
+
36
+ Then follow the installation steps above.
37
+
38
+ ## Usage
39
+
40
+ Use OpenCode's native `skill` tool:
41
+
42
+ ```
43
+ use skill tool to list skills
44
+ use skill tool to load superpowers/brainstorming
45
+ ```
46
+
47
+ ## Updating
48
+
49
+ Superpowers updates automatically when you restart OpenCode.
50
+
51
+ To pin a specific version:
52
+
53
+ ```json
54
+ {
55
+ "plugin": ["superpowers@git+https://github.com/obra/superpowers.git#v5.0.3"]
56
+ }
57
+ ```
58
+
59
+ ## Troubleshooting
60
+
61
+ ### Plugin not loading
62
+
63
+ 1. Check logs: `opencode run --print-logs "hello" 2>&1 | grep -i superpowers`
64
+ 2. Verify the plugin line in your `opencode.json`
65
+ 3. Make sure you're running a recent version of OpenCode
66
+
67
+ ### Skills not found
68
+
69
+ 1. Use `skill` tool to list what's discovered
70
+ 2. Check that the plugin is loading (see above)
71
+
72
+ ### Tool mapping
73
+
74
+ When skills reference Claude Code tools:
75
+ - `TodoWrite` → `todowrite`
76
+ - `Task` with subagents → `@mention` syntax
77
+ - `Skill` tool → OpenCode's native `skill` tool
78
+ - File operations → your native tools
79
+
80
+ ## Getting Help
81
+
82
+ - Report issues: https://github.com/obra/superpowers/issues
83
+ - Full documentation: https://github.com/obra/superpowers/blob/main/docs/README.opencode.md
@@ -0,0 +1,112 @@
1
+ /**
2
+ * Superpowers plugin for OpenCode.ai
3
+ *
4
+ * Injects superpowers bootstrap context via system prompt transform.
5
+ * Auto-registers skills directory via config hook (no symlinks needed).
6
+ */
7
+
8
+ import path from 'path';
9
+ import fs from 'fs';
10
+ import os from 'os';
11
+ import { fileURLToPath } from 'url';
12
+
13
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
14
+
15
+ // Simple frontmatter extraction (avoid dependency on skills-core for bootstrap)
16
+ const extractAndStripFrontmatter = (content) => {
17
+ const match = content.match(/^---\n([\s\S]*?)\n---\n([\s\S]*)$/);
18
+ if (!match) return { frontmatter: {}, content };
19
+
20
+ const frontmatterStr = match[1];
21
+ const body = match[2];
22
+ const frontmatter = {};
23
+
24
+ for (const line of frontmatterStr.split('\n')) {
25
+ const colonIdx = line.indexOf(':');
26
+ if (colonIdx > 0) {
27
+ const key = line.slice(0, colonIdx).trim();
28
+ const value = line.slice(colonIdx + 1).trim().replace(/^["']|["']$/g, '');
29
+ frontmatter[key] = value;
30
+ }
31
+ }
32
+
33
+ return { frontmatter, content: body };
34
+ };
35
+
36
+ // Normalize a path: trim whitespace, expand ~, resolve to absolute
37
+ const normalizePath = (p, homeDir) => {
38
+ if (!p || typeof p !== 'string') return null;
39
+ let normalized = p.trim();
40
+ if (!normalized) return null;
41
+ if (normalized.startsWith('~/')) {
42
+ normalized = path.join(homeDir, normalized.slice(2));
43
+ } else if (normalized === '~') {
44
+ normalized = homeDir;
45
+ }
46
+ return path.resolve(normalized);
47
+ };
48
+
49
+ export const SuperpowersPlugin = async ({ client, directory }) => {
50
+ const homeDir = os.homedir();
51
+ const superpowersSkillsDir = path.resolve(__dirname, '../../skills');
52
+ const envConfigDir = normalizePath(process.env.OPENCODE_CONFIG_DIR, homeDir);
53
+ const configDir = envConfigDir || path.join(homeDir, '.config/opencode');
54
+
55
+ // Helper to generate bootstrap content
56
+ const getBootstrapContent = () => {
57
+ // Try to load using-superpowers skill
58
+ const skillPath = path.join(superpowersSkillsDir, 'using-superpowers', 'SKILL.md');
59
+ if (!fs.existsSync(skillPath)) return null;
60
+
61
+ const fullContent = fs.readFileSync(skillPath, 'utf8');
62
+ const { content } = extractAndStripFrontmatter(fullContent);
63
+
64
+ const toolMapping = `**Tool Mapping for OpenCode:**
65
+ When skills reference tools you don't have, substitute OpenCode equivalents:
66
+ - \`TodoWrite\` → \`todowrite\`
67
+ - \`Task\` tool with subagents → Use OpenCode's subagent system (@mention)
68
+ - \`Skill\` tool → OpenCode's native \`skill\` tool
69
+ - \`Read\`, \`Write\`, \`Edit\`, \`Bash\` → Your native tools
70
+
71
+ Use OpenCode's native \`skill\` tool to list and load skills.`;
72
+
73
+ return `<EXTREMELY_IMPORTANT>
74
+ You have superpowers.
75
+
76
+ **IMPORTANT: The using-superpowers skill content is included below. It is ALREADY LOADED - you are currently following it. Do NOT use the skill tool to load "using-superpowers" again - that would be redundant.**
77
+
78
+ ${content}
79
+
80
+ ${toolMapping}
81
+ </EXTREMELY_IMPORTANT>`;
82
+ };
83
+
84
+ return {
85
+ // Inject skills path into live config so OpenCode discovers superpowers skills
86
+ // without requiring manual symlinks or config file edits.
87
+ // This works because Config.get() returns a cached singleton — modifications
88
+ // here are visible when skills are lazily discovered later.
89
+ config: async (config) => {
90
+ config.skills = config.skills || {};
91
+ config.skills.paths = config.skills.paths || [];
92
+ if (!config.skills.paths.includes(superpowersSkillsDir)) {
93
+ config.skills.paths.push(superpowersSkillsDir);
94
+ }
95
+ },
96
+
97
+ // Inject bootstrap into the first user message of each session.
98
+ // Using a user message instead of a system message avoids:
99
+ // 1. Token bloat from system messages repeated every turn (#750)
100
+ // 2. Multiple system messages breaking Qwen and other models (#894)
101
+ 'experimental.chat.messages.transform': async (_input, output) => {
102
+ const bootstrap = getBootstrapContent();
103
+ if (!bootstrap || !output.messages.length) return;
104
+ const firstUser = output.messages.find(m => m.info.role === 'user');
105
+ if (!firstUser || !firstUser.parts.length) return;
106
+ // Only inject once
107
+ if (firstUser.parts.some(p => p.type === 'text' && p.text.includes('EXTREMELY_IMPORTANT'))) return;
108
+ const ref = firstUser.parts[0];
109
+ firstUser.parts.unshift({ ...ref, type: 'text', text: bootstrap });
110
+ }
111
+ };
112
+ };
@@ -0,0 +1,19 @@
1
+ {
2
+ "files": [
3
+ { "path": "package.json", "field": "version" },
4
+ { "path": ".claude-plugin/plugin.json", "field": "version" },
5
+ { "path": ".cursor-plugin/plugin.json", "field": "version" },
6
+ { "path": ".claude-plugin/marketplace.json", "field": "plugins.0.version" },
7
+ { "path": "gemini-extension.json", "field": "version" }
8
+ ],
9
+ "audit": {
10
+ "exclude": [
11
+ "CHANGELOG.md",
12
+ "RELEASE-NOTES.md",
13
+ "node_modules",
14
+ ".git",
15
+ ".version-bump.json",
16
+ "scripts/bump-version.sh"
17
+ ]
18
+ }
19
+ }
@@ -0,0 +1 @@
1
+ CLAUDE.md
@@ -0,0 +1,13 @@
1
+ # Changelog
2
+
3
+ ## [5.0.5] - 2026-03-17
4
+
5
+ ### Fixed
6
+
7
+ - **Brainstorm server ESM fix**: Renamed `server.js` → `server.cjs` so the brainstorming server starts correctly on Node.js 22+ where the root `package.json` `"type": "module"` caused `require()` to fail. ([PR #784](https://github.com/obra/superpowers/pull/784) by @sarbojitrana, fixes [#774](https://github.com/obra/superpowers/issues/774), [#780](https://github.com/obra/superpowers/issues/780), [#783](https://github.com/obra/superpowers/issues/783))
8
+ - **Brainstorm owner-PID on Windows**: Skip `BRAINSTORM_OWNER_PID` lifecycle monitoring on Windows/MSYS2 where the PID namespace is invisible to Node.js. Prevents the server from self-terminating after 60 seconds. The 30-minute idle timeout remains as the safety net. ([#770](https://github.com/obra/superpowers/issues/770), docs from [PR #768](https://github.com/obra/superpowers/pull/768) by @lucasyhzhu-debug)
9
+ - **stop-server.sh reliability**: Verify the server process actually died before reporting success. Waits up to 2 seconds for graceful shutdown, escalates to `SIGKILL`, and reports failure if the process survives. ([#723](https://github.com/obra/superpowers/issues/723))
10
+
11
+ ### Changed
12
+
13
+ - **Execution handoff**: Restore user choice between subagent-driven-development and executing-plans after plan writing. Subagent-driven is recommended but no longer mandatory. (Reverts `5e51c3e`)
@@ -0,0 +1,85 @@
1
+ # Superpowers — Contributor Guidelines
2
+
3
+ ## If You Are an AI Agent
4
+
5
+ Stop. Read this section before doing anything.
6
+
7
+ This repo has a 94% PR rejection rate. Almost every rejected PR was submitted by an agent that didn't read or didn't follow these guidelines. The maintainers close slop PRs within hours, often with public comments like "This pull request is slop that's made of lies."
8
+
9
+ **Your job is to protect your human partner from that outcome.** Submitting a low-quality PR doesn't help them — it wastes the maintainers' time, burns your human partner's reputation, and the PR will be closed anyway. That is not being helpful. That is being a tool of embarrassment.
10
+
11
+ Before you open a PR against this repo, you MUST:
12
+
13
+ 1. **Read the entire PR template** at `.github/PULL_REQUEST_TEMPLATE.md` and fill in every section with real, specific answers. Not summaries. Not placeholders.
14
+ 2. **Search for existing PRs** — open AND closed — that address the same problem. If duplicates exist, STOP and tell your human partner. Do not open another duplicate.
15
+ 3. **Verify this is a real problem.** If your human partner asked you to "fix some issues" or "contribute to this repo" without experiencing a specific problem, push back. Ask them what broke, what failed, what the user experience was.
16
+ 4. **Confirm the change belongs in core.** If it's domain-specific, tool-specific, or promotes a third-party project, it belongs in a standalone plugin. Tell your human partner.
17
+ 5. **Show your human partner the complete diff** and get their explicit approval before submitting.
18
+
19
+ If any of these checks fail, do not open the PR. Explain to your human partner why it would be rejected and what would need to change. They will thank you for saving them the embarrassment.
20
+
21
+ ## Pull Request Requirements
22
+
23
+ **Every PR must fully complete the PR template.** No section may be left blank or filled with placeholder text. PRs that skip sections will be closed without review.
24
+
25
+ **Before opening a PR, you MUST search for existing PRs** — both open AND closed — that address the same problem or a related area. Reference what you found in the "Existing PRs" section. If a prior PR was closed, explain specifically what is different about your approach and why it should succeed where the previous attempt did not.
26
+
27
+ **PRs that show no evidence of human involvement will be closed.** A human must review the complete proposed diff before submission.
28
+
29
+ ## What We Will Not Accept
30
+
31
+ ### Third-party dependencies
32
+
33
+ PRs that add optional or required dependencies on third-party projects will not be accepted unless they are adding support for a new harness (e.g., a new IDE or CLI tool). Superpowers is a zero-dependency plugin by design. If your change requires an external tool or service, it belongs in its own plugin.
34
+
35
+ ### "Compliance" changes to skills
36
+
37
+ Our internal skill philosophy differs from Anthropic's published guidance on writing skills. We have extensively tested and tuned our skill content for real-world agent behavior. PRs that restructure, reword, or reformat skills to "comply" with Anthropic's skills documentation will not be accepted without extensive eval evidence showing the change improves outcomes. The bar for modifying behavior-shaping content is very high.
38
+
39
+ ### Project-specific or personal configuration
40
+
41
+ Skills, hooks, or configuration that only benefit a specific project, team, domain, or workflow do not belong in core. Publish these as a separate plugin.
42
+
43
+ ### Bulk or spray-and-pray PRs
44
+
45
+ Do not trawl the issue tracker and open PRs for multiple issues in a single session. Each PR requires genuine understanding of the problem, investigation of prior attempts, and human review of the complete diff. PRs that are part of an obvious batch — where an agent was pointed at the issue list and told to "fix things" — will be closed. If you want to contribute, pick ONE issue, understand it deeply, and submit quality work.
46
+
47
+ ### Speculative or theoretical fixes
48
+
49
+ Every PR must solve a real problem that someone actually experienced. "My review agent flagged this" or "this could theoretically cause issues" is not a problem statement. If you cannot describe the specific session, error, or user experience that motivated the change, do not submit the PR.
50
+
51
+ ### Domain-specific skills
52
+
53
+ Superpowers core contains general-purpose skills that benefit all users regardless of their project. Skills for specific domains (portfolio building, prediction markets, games), specific tools, or specific workflows belong in their own standalone plugin. Ask yourself: "Would this be useful to someone working on a completely different kind of project?" If not, publish it separately.
54
+
55
+ ### Fork-specific changes
56
+
57
+ If you maintain a fork with customizations, do not open PRs to sync your fork or push fork-specific changes upstream. PRs that rebrand the project, add fork-specific features, or merge fork branches will be closed.
58
+
59
+ ### Fabricated content
60
+
61
+ PRs containing invented claims, fabricated problem descriptions, or hallucinated functionality will be closed immediately. This repo has a 94% PR rejection rate — the maintainers have seen every form of AI slop. They will notice.
62
+
63
+ ### Bundled unrelated changes
64
+
65
+ PRs containing multiple unrelated changes will be closed. Split them into separate PRs.
66
+
67
+ ## Skill Changes Require Evaluation
68
+
69
+ Skills are not prose — they are code that shapes agent behavior. If you modify skill content:
70
+
71
+ - Use `superpowers:writing-skills` to develop and test changes
72
+ - Run adversarial pressure testing across multiple sessions
73
+ - Show before/after eval results in your PR
74
+ - Do not modify carefully-tuned content (Red Flags tables, rationalization lists, "human partner" language) without evidence the change is an improvement
75
+
76
+ ## Understand the Project Before Contributing
77
+
78
+ Before proposing changes to skill design, workflow philosophy, or architecture, read existing skills and understand the project's design decisions. Superpowers has its own tested philosophy about skill design, agent behavior shaping, and terminology (e.g., "your human partner" is deliberate, not interchangeable with "the user"). Changes that rewrite the project's voice or restructure its approach without understanding why it exists will be rejected.
79
+
80
+ ## General
81
+
82
+ - Read `.github/PULL_REQUEST_TEMPLATE.md` before submitting
83
+ - One problem per PR
84
+ - Test on at least one harness and report results in the environment table
85
+ - Describe the problem you solved, not just what you changed
@@ -0,0 +1,128 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the
26
+ overall community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or
31
+ advances of any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email
35
+ address, without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ jesse@primeradiant.com.
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series
86
+ of actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or
93
+ permanent ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within
113
+ the community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.0, available at
119
+ https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120
+
121
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
+ enforcement ladder](https://github.com/mozilla/diversity).
123
+
124
+ [homepage]: https://www.contributor-covenant.org
125
+
126
+ For answers to common questions about this code of conduct, see the FAQ at
127
+ https://www.contributor-covenant.org/faq. Translations are available at
128
+ https://www.contributor-covenant.org/translations.
@@ -0,0 +1,2 @@
1
+ @./skills/using-superpowers/SKILL.md
2
+ @./skills/using-superpowers/references/gemini-tools.md
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Jesse Vincent
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,190 @@
1
+ # Superpowers
2
+
3
+ Superpowers is a complete software development workflow for your coding agents, built on top of a set of composable "skills" and some initial instructions that make sure your agent uses them.
4
+
5
+ ## How it works
6
+
7
+ It starts from the moment you fire up your coding agent. As soon as it sees that you're building something, it *doesn't* just jump into trying to write code. Instead, it steps back and asks you what you're really trying to do.
8
+
9
+ Once it's teased a spec out of the conversation, it shows it to you in chunks short enough to actually read and digest.
10
+
11
+ After you've signed off on the design, your agent puts together an implementation plan that's clear enough for an enthusiastic junior engineer with poor taste, no judgement, no project context, and an aversion to testing to follow. It emphasizes true red/green TDD, YAGNI (You Aren't Gonna Need It), and DRY.
12
+
13
+ Next up, once you say "go", it launches a *subagent-driven-development* process, having agents work through each engineering task, inspecting and reviewing their work, and continuing forward. It's not uncommon for Claude to be able to work autonomously for a couple hours at a time without deviating from the plan you put together.
14
+
15
+ There's a bunch more to it, but that's the core of the system. And because the skills trigger automatically, you don't need to do anything special. Your coding agent just has Superpowers.
16
+
17
+
18
+ ## Sponsorship
19
+
20
+ If Superpowers has helped you do stuff that makes money and you are so inclined, I'd greatly appreciate it if you'd consider [sponsoring my opensource work](https://github.com/sponsors/obra).
21
+
22
+ Thanks!
23
+
24
+ - Jesse
25
+
26
+
27
+ ## Installation
28
+
29
+ **Note:** Installation differs by platform. Claude Code or Cursor have built-in plugin marketplaces. Codex and OpenCode require manual setup.
30
+
31
+ ### Claude Code Official Marketplace
32
+
33
+ Superpowers is available via the [official Claude plugin marketplace](https://claude.com/plugins/superpowers)
34
+
35
+ Install the plugin from Claude marketplace:
36
+
37
+ ```bash
38
+ /plugin install superpowers@claude-plugins-official
39
+ ```
40
+
41
+ ### Claude Code (via Plugin Marketplace)
42
+
43
+ In Claude Code, register the marketplace first:
44
+
45
+ ```bash
46
+ /plugin marketplace add obra/superpowers-marketplace
47
+ ```
48
+
49
+ Then install the plugin from this marketplace:
50
+
51
+ ```bash
52
+ /plugin install superpowers@superpowers-marketplace
53
+ ```
54
+
55
+ ### Cursor (via Plugin Marketplace)
56
+
57
+ In Cursor Agent chat, install from marketplace:
58
+
59
+ ```text
60
+ /add-plugin superpowers
61
+ ```
62
+
63
+ or search for "superpowers" in the plugin marketplace.
64
+
65
+ ### Codex
66
+
67
+ Tell Codex:
68
+
69
+ ```
70
+ Fetch and follow instructions from https://raw.githubusercontent.com/obra/superpowers/refs/heads/main/.codex/INSTALL.md
71
+ ```
72
+
73
+ **Detailed docs:** [docs/README.codex.md](docs/README.codex.md)
74
+
75
+ ### OpenCode
76
+
77
+ Tell OpenCode:
78
+
79
+ ```
80
+ Fetch and follow instructions from https://raw.githubusercontent.com/obra/superpowers/refs/heads/main/.opencode/INSTALL.md
81
+ ```
82
+
83
+ **Detailed docs:** [docs/README.opencode.md](docs/README.opencode.md)
84
+
85
+ ### GitHub Copilot CLI
86
+
87
+ ```bash
88
+ copilot plugin marketplace add obra/superpowers-marketplace
89
+ copilot plugin install superpowers@superpowers-marketplace
90
+ ```
91
+
92
+ ### Gemini CLI
93
+
94
+ ```bash
95
+ gemini extensions install https://github.com/obra/superpowers
96
+ ```
97
+
98
+ To update:
99
+
100
+ ```bash
101
+ gemini extensions update superpowers
102
+ ```
103
+
104
+ ### Verify Installation
105
+
106
+ Start a new session in your chosen platform and ask for something that should trigger a skill (for example, "help me plan this feature" or "let's debug this issue"). The agent should automatically invoke the relevant superpowers skill.
107
+
108
+ ## The Basic Workflow
109
+
110
+ 1. **brainstorming** - Activates before writing code. Refines rough ideas through questions, explores alternatives, presents design in sections for validation. Saves design document.
111
+
112
+ 2. **using-git-worktrees** - Activates after design approval. Creates isolated workspace on new branch, runs project setup, verifies clean test baseline.
113
+
114
+ 3. **writing-plans** - Activates with approved design. Breaks work into bite-sized tasks (2-5 minutes each). Every task has exact file paths, complete code, verification steps.
115
+
116
+ 4. **subagent-driven-development** or **executing-plans** - Activates with plan. Dispatches fresh subagent per task with two-stage review (spec compliance, then code quality), or executes in batches with human checkpoints.
117
+
118
+ 5. **test-driven-development** - Activates during implementation. Enforces RED-GREEN-REFACTOR: write failing test, watch it fail, write minimal code, watch it pass, commit. Deletes code written before tests.
119
+
120
+ 6. **requesting-code-review** - Activates between tasks. Reviews against plan, reports issues by severity. Critical issues block progress.
121
+
122
+ 7. **finishing-a-development-branch** - Activates when tasks complete. Verifies tests, presents options (merge/PR/keep/discard), cleans up worktree.
123
+
124
+ **The agent checks for relevant skills before any task.** Mandatory workflows, not suggestions.
125
+
126
+ ## What's Inside
127
+
128
+ ### Skills Library
129
+
130
+ **Testing**
131
+ - **test-driven-development** - RED-GREEN-REFACTOR cycle (includes testing anti-patterns reference)
132
+
133
+ **Debugging**
134
+ - **systematic-debugging** - 4-phase root cause process (includes root-cause-tracing, defense-in-depth, condition-based-waiting techniques)
135
+ - **verification-before-completion** - Ensure it's actually fixed
136
+
137
+ **Collaboration**
138
+ - **brainstorming** - Socratic design refinement
139
+ - **writing-plans** - Detailed implementation plans
140
+ - **executing-plans** - Batch execution with checkpoints
141
+ - **dispatching-parallel-agents** - Concurrent subagent workflows
142
+ - **requesting-code-review** - Pre-review checklist
143
+ - **receiving-code-review** - Responding to feedback
144
+ - **using-git-worktrees** - Parallel development branches
145
+ - **finishing-a-development-branch** - Merge/PR decision workflow
146
+ - **subagent-driven-development** - Fast iteration with two-stage review (spec compliance, then code quality)
147
+
148
+ **Meta**
149
+ - **writing-skills** - Create new skills following best practices (includes testing methodology)
150
+ - **using-superpowers** - Introduction to the skills system
151
+
152
+ ## Philosophy
153
+
154
+ - **Test-Driven Development** - Write tests first, always
155
+ - **Systematic over ad-hoc** - Process over guessing
156
+ - **Complexity reduction** - Simplicity as primary goal
157
+ - **Evidence over claims** - Verify before declaring success
158
+
159
+ Read more: [Superpowers for Claude Code](https://blog.fsck.com/2025/10/09/superpowers/)
160
+
161
+ ## Contributing
162
+
163
+ Skills live directly in this repository. To contribute:
164
+
165
+ 1. Fork the repository
166
+ 2. Create a branch for your skill
167
+ 3. Follow the `writing-skills` skill for creating and testing new skills
168
+ 4. Submit a PR
169
+
170
+ See `skills/writing-skills/SKILL.md` for the complete guide.
171
+
172
+ ## Updating
173
+
174
+ Skills update automatically when you update the plugin:
175
+
176
+ ```bash
177
+ /plugin update superpowers
178
+ ```
179
+
180
+ ## License
181
+
182
+ MIT License - see LICENSE file for details
183
+
184
+ ## Community
185
+
186
+ Superpowers is built by [Jesse Vincent](https://blog.fsck.com) and the rest of the folks at [Prime Radiant](https://primeradiant.com).
187
+
188
+ - **Discord**: [Join us](https://discord.gg/Jd8Vphy9jq) for community support, questions, and sharing what you're building with Superpowers
189
+ - **Issues**: https://github.com/obra/superpowers/issues
190
+ - **Release announcements**: [Sign up](https://primeradiant.com/superpowers/) to get notified about new versions