Skip to content

Commit 7f5a491

Browse files
feat(superpowers): add Superpowers skills library plugin
Vendor obra/superpowers v7.0.0 (MIT) as a ZCode plugin: 15 development workflow skills (brainstorming, TDD, systematic debugging, planning, code review, subagent-driven development) plus a SessionStart hook that injects the using-superpowers bootstrap so skills auto-trigger. ZCode-specific additions: Node session-start hook (process executor, reads one in-plugin file, no network/writes), references/zcode-tools.md tool mapping, one Platform Adaptation pointer line, manifest, and EN/ZH READMEs. Marketplace entry registered under developer-tools at 1.0.0.
1 parent 8b8c69c commit 7f5a491

85 files changed

Lines changed: 11356 additions & 2 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Use this repository to browse available plugins, install the marketplace in comp
2121
| [**github**](./plugins/github) | `developer-tools` | GitHub CLI workflows for commits, pull requests, issues, releases, Actions, repositories, and Codespaces. |
2222
| [**gitlab**](./plugins/gitlab) | `developer-tools` | GitLab CLI workflows for merge requests, issues, CI/CD, repositories, releases, and API operations, including self-managed instances. |
2323
| [**alibaba-cloud-cli**](./plugins/alibaba-cloud-cli) | `developer-tools` | Alibaba Cloud CLI workflows for credential setup, profile checks, and safe cloud resource operations. |
24+
| [**superpowers**](./plugins/superpowers) | `developer-tools` | Battle-tested development workflow skills — brainstorming, TDD, systematic debugging, planning, code review, and subagent-driven development — that auto-trigger at the right moments. |
2425
| [**lark-cli**](./plugins/lark-cli) | `utilities` | Lark CLI workflows for docs, sheets, Base, calendar, messaging, and other SaaS resources with guided setup and OAuth login. |
2526
| [**dingtalk-cli**](./plugins/dingtalk-cli) | `productivity` | DingTalk Workspace CLI workflows with OAuth/device authorization, profile checks, and optional upstream Skills. |
2627
| [**wecom-cli**](./plugins/wecom-cli) | `productivity` | WeCom CLI workflows for messages, docs, sheets, mail, calendar, meetings, contacts, and todos with QR authentication. |
@@ -53,7 +54,7 @@ The `category` field in [`marketplace.json`](./marketplace.json) keeps discovery
5354

5455
| Category | Use it for | Current plugins |
5556
| --- | --- | --- |
56-
| `developer-tools` | Development, code quality, Git, CI, and engineering workflows | `cloudbase-skills`, `mimosa`, `github`, `gitlab`, `alibaba-cloud-cli` |
57+
| `developer-tools` | Development, code quality, Git, CI, and engineering workflows | `cloudbase-skills`, `mimosa`, `github`, `gitlab`, `alibaba-cloud-cli`, `superpowers` |
5758
| `productivity` | Planning, knowledge work, and personal workflow automation | `video2code` |
5859
| `utilities` | General-purpose helpers that do not fit another category | `lark-cli` |
5960
| `finance` | Finance-domain workflows: markets, accounting, risk, and fintech integrations | `write-research`, `read-macro`, `assess-credit`, `pick-funds`, `watch-positions`, `model-deals`, `vet-companies`, `find-clients`, `run-fpa`, `accounting-and-reporting` |

‎README_CN.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
| [**github**](./plugins/github) | `developer-tools` | 基于 GitHub CLI 的工作流,覆盖提交、Pull Request、Issue、Release、Actions、仓库和 Codespaces。 |
2222
| [**gitlab**](./plugins/gitlab) | `developer-tools` | 基于 `glab` 的 GitLab 工作流,覆盖 MR、Issue、CI/CD、仓库、Release 和 API,并支持自托管实例。 |
2323
| [**alibaba-cloud-cli**](./plugins/alibaba-cloud-cli) | `developer-tools` | 阿里云 CLI 工作流:配置凭证与 profile,并安全执行云资源查询和操作。 |
24+
| [**superpowers**](./plugins/superpowers) | `developer-tools` | 经过实战检验的开发工作流技能 —— 头脑风暴、TDD、系统化调试、计划编写与执行、代码评审、子代理驱动开发 —— 在恰当时机自动触发。 |
2425
| [**lark-cli**](./plugins/lark-cli) | `utilities` | Lark CLI 工作流:覆盖文档、表格、多维表格、日历、消息等 SaaS 资源,并引导应用配置与 OAuth 登录。 |
2526
| [**dingtalk-cli**](./plugins/dingtalk-cli) | `productivity` | 钉钉 Workspace CLI 工作流:OAuth/设备授权、验证组织账号,并按需安装上游 Skills。 |
2627
| [**wecom-cli**](./plugins/wecom-cli) | `productivity` | 企业微信 CLI 工作流:覆盖消息、文档、表格、邮件、日历、会议、通讯录和待办,并支持扫码授权与状态检查。 |
@@ -52,7 +53,7 @@ agent + 领域 skill」的组合;除 `accounting-and-reporting` 外都带远
5253

5354
| 分类 | 适用范围 | 当前插件 |
5455
| --- | --- | --- |
55-
| `developer-tools` | 开发、代码质量、Git、CI 和工程工作流 | `cloudbase-skills`、`mimosa`、`github`、`gitlab`、`alibaba-cloud-cli` |
56+
| `developer-tools` | 开发、代码质量、Git、CI 和工程工作流 | `cloudbase-skills`、`mimosa`、`github`、`gitlab`、`alibaba-cloud-cli`、`superpowers` |
5657
| `productivity` | 计划、知识工作和个人工作流自动化 | `video2code` |
5758
| `utilities` | 不属于其他分类的通用工具 | `lark-cli` |
5859
| `finance` | 金融领域工作流:行情、财务、风险与金融科技集成 | `write-research`、`read-macro`、`assess-credit`、`pick-funds`、`watch-positions`、`model-deals`、`vet-companies`、`find-clients`、`run-fpa`、`accounting-and-reporting` |

‎marketplace.json‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,32 @@
772772
"source": "./plugins/hyper3d-rodin",
773773
"category": "developer-tools",
774774
"icon": "https://cdn-zcode.z.ai/zcode/official-plugin/assets/hyper3d-rodin/icon.jpg"
775+
},
776+
{
777+
"name": "superpowers",
778+
"description": "Battle-tested development skills for ZCode: brainstorming, test-driven development, systematic debugging, planning, code review, and subagent workflows that auto-trigger at the right moments.",
779+
"description_i18n": {
780+
"en": "Battle-tested development skills for ZCode: brainstorming, test-driven development, systematic debugging, planning, code review, and subagent workflows that auto-trigger at the right moments.",
781+
"zh-CN": "面向 ZCode 的实战检验开发技能库:头脑风暴、测试驱动开发、系统化调试、计划编写与执行、代码评审与子代理协作等工作流,在恰当时机自动触发。"
782+
},
783+
"version": "1.0.0",
784+
"author": {
785+
"name": "eps-epsiloneridani",
786+
"url": "https://github.com/eps-epsiloneridani"
787+
},
788+
"homepage": "https://github.com/obra/superpowers",
789+
"license": "MIT",
790+
"keywords": [
791+
"skills",
792+
"tdd",
793+
"debugging",
794+
"planning",
795+
"code-review",
796+
"workflow"
797+
],
798+
"source": "./plugins/superpowers",
799+
"category": "developer-tools",
800+
"icon": "https://cdn-zcode.z.ai/zcode/official-plugin/assets/superpowers/icon.png"
775801
}
776802
]
777803
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "superpowers",
3+
"description": "Battle-tested development skills for ZCode: brainstorming, test-driven development, systematic debugging, planning, code review, and subagent workflows that auto-trigger at the right moments.",
4+
"description_i18n": {
5+
"en": "Battle-tested development skills for ZCode: brainstorming, test-driven development, systematic debugging, planning, code review, and subagent workflows that auto-trigger at the right moments.",
6+
"zh-CN": "面向 ZCode 的实战检验开发技能库:头脑风暴、测试驱动开发、系统化调试、计划编写与执行、代码评审与子代理协作等工作流,在恰当时机自动触发。"
7+
},
8+
"version": "1.0.0",
9+
"author": {
10+
"name": "eps-epsiloneridani",
11+
"url": "https://github.com/eps-epsiloneridani"
12+
},
13+
"keywords": [
14+
"skills",
15+
"tdd",
16+
"debugging",
17+
"planning",
18+
"code-review",
19+
"workflow"
20+
]
21+
}

‎plugins/superpowers/LICENSE‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Jesse Vincent
4+
Copyright (c) 2026 eps-epsiloneridani (ZCode packaging and adaptation)
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.

‎plugins/superpowers/README.md‎

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# superpowers
2+
3+
[中文文档](./README_CN.md)
4+
5+
A comprehensive, battle-tested skills library for ZCode: brainstorming, test-driven development, systematic debugging, planning, code review, and subagent-driven development — packaged for ZCode from [obra/superpowers](https://github.com/obra/superpowers) v7.0.0.
6+
7+
## What it does
8+
9+
1. **Bootstraps skills awareness at every session start.** A `SessionStart` hook injects the `using-superpowers` skill into the model context, wrapped so the agent treats it as a hard rule: *if a skill might apply — even a 1% chance — invoke it before acting.* This bootstrap is what makes the rest of the library active instead of inert files on disk.
10+
2. **Installs 15 workflow skills that auto-trigger by context.** Skills are discovered from their `name` + `description` frontmatter and invoked with ZCode's native `Skill` tool as `superpowers:<name>` (e.g. `superpowers:brainstorming`). You can also invoke them explicitly from the composer's skill picker.
11+
12+
Typical effect: a request like *"Let's make a react todo list"* triggers `superpowers:brainstorming` to refine the design **before** any code is written; *"fix this bug"* triggers `superpowers:systematic-debugging` before any patching.
13+
14+
## The skills
15+
16+
| Skill | Use it for |
17+
| --- | --- |
18+
| `brainstorming` | Refine a rough idea into a validated design before any implementation |
19+
| `test-driven-development` | RED / GREEN / REFACTOR discipline: no production code without a failing test first |
20+
| `systematic-debugging` | Find root causes with a four-phase framework instead of patching symptoms |
21+
| `writing-plans` | Turn a validated design into a detailed implementation plan with exact file changes |
22+
| `executing-plans` | Execute a written plan task by task, with verification per task |
23+
| `subagent-driven-development` | Execute a plan via per-task implementer/reviewer subagent pairs |
24+
| `dispatching-parallel-agents` | Fan out independent subagent work and collect the results |
25+
| `requesting-code-review` | Hand a clean, reviewable changeset to a code-reviewer |
26+
| `receiving-code-review` | Respond to review feedback with technical judgment, not blind compliance |
27+
| `verification-before-completion` | Claim "done" only with evidence (tests run, output shown) |
28+
| `finishing-a-development-branch` | Decide merge / PR / cleanup after verification passes |
29+
| `using-git-worktrees` | Isolated worktrees for parallel tasks and risky experiments |
30+
| `writing-skills` | Create or edit skills with testing discipline (used to maintain this library) |
31+
| `using-superpowers` | The meta-skill: how to find and use skills (injected at session start) |
32+
| `diagnosing-superpowers` | Diagnose sessions where skills did not trigger or the workflow failed |
33+
34+
## Structure
35+
36+
```text
37+
superpowers/
38+
├── .zcode-plugin/plugin.json # manifest
39+
├── skills/<name>/SKILL.md # 15 skills with references, prompts, and helper scripts
40+
├── hooks/hooks.json # SessionStart registration (auto-discovered)
41+
├── hooks/session-start.mjs # bootstrap injector (Node, no dependencies)
42+
├── LICENSE # MIT (upstream + packaging)
43+
├── README.md / README_CN.md
44+
```
45+
46+
## Hook: SessionStart bootstrap
47+
48+
| Event | Matcher | What it does |
49+
| --- | --- | --- |
50+
| `SessionStart` | `startup\|clear\|compact` | Runs `hooks/session-start.mjs`, which reads `skills/using-superpowers/SKILL.md`, strips the frontmatter, and returns it as `hookSpecificOutput.additionalContext` so it enters the model context. |
51+
52+
Side effects, explicitly:
53+
54+
- The hook **reads one file inside the plugin directory**. It writes nothing, makes no network requests, and collects nothing.
55+
- It requires `node` on `PATH` (any recent version; the script uses only Node built-ins). If the skill file cannot be read, it exits cleanly and the session continues without the bootstrap.
56+
- ZCode snapshots hook configuration when a session starts: after installing or enabling the plugin, open a **new session** to see the bootstrap.
57+
- Manual smoke test:
58+
59+
```shell
60+
printf '%s\n' '{"hook_event_name":"SessionStart","session_id":"manual","source":"startup"}' \
61+
| node hooks/session-start.mjs
62+
```
63+
64+
Stdout must be a single JSON object with `hookSpecificOutput.hookEventName = "SessionStart"`. Diagnostics go to stderr only.
65+
66+
Some skills ship small helper scripts under `skills/*/scripts/` and run them only when the skill's workflow calls for it (invoked through their interpreter, e.g. `bash scripts/start-server.sh` or `node ./render-graphs.js`); they operate on the current workspace.
67+
68+
## Install
69+
70+
1. In ZCode, open the plugin manager (**Settings → Plugin Management → Discover**), find **superpowers**, and install it. It is enabled by default.
71+
2. Start a **new session**.
72+
3. Smoke check: ask *"What are your superpowers?"* — the agent should describe its skills.
73+
4. Try it: send *"Let's make a react todo list"* in a clean session — the agent should invoke `superpowers:brainstorming` before writing any code.
74+
75+
## Provenance and license
76+
77+
- All skill content is vendored from [obra/superpowers](https://github.com/obra/superpowers) **v7.0.0** (commit `bb92a77`), MIT License © Jesse Vincent. See [LICENSE](./LICENSE).
78+
- This packaging's ZCode-specific changes: the `.zcode-plugin` manifest, the Node `SessionStart` hook, `skills/using-superpowers/references/zcode-tools.md` (tool mapping for ZCode), one pointer line in `using-superpowers/SKILL.md`'s "Platform Adaptation" list, and the README/LICENSE files. Everything else is verbatim upstream so future upstream releases can be re-synced cleanly.

‎plugins/superpowers/README_CN.md‎

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# superpowers
2+
3+
[English](./README.md)
4+
5+
面向 ZCode 的全面且经过实战检验的技能库:头脑风暴、测试驱动开发、系统化调试、计划编写与执行、代码评审、子代理驱动开发 —— 基于 [obra/superpowers](https://github.com/obra/superpowers) v7.0.0 打包。
6+
7+
## 它做什么
8+
9+
1. **在每次会话启动时注入技能引导。** 一个 `SessionStart` 钩子会把 `using-superpowers` 技能注入模型上下文,并以强约束的方式告知模型:*只要某个技能可能适用 —— 哪怕只有 1% 的可能 —— 就必须先调用它再行动。* 正是这个引导让整个技能库真正生效,而不是磁盘上的静态文件。
10+
2. **安装 15 个按上下文自动触发的工作流技能。** 技能通过其 `name` + `description` 元数据被发现,并使用 ZCode 原生的 `Skill` 工具以 `superpowers:<名称>` 的形式调用(例如 `superpowers:brainstorming`)。你也可以在输入框的技能选择器中手动调用。
11+
12+
典型效果:在全新会话中发送 *"Let's make a react todo list"*,会先触发 `superpowers:brainstorming` 打磨设计,然后才动手写代码;发送 *"fix this bug"*,会先触发 `superpowers:systematic-debugging`,而不是直接打补丁。
13+
14+
## 技能列表
15+
16+
| 技能 | 用途 |
17+
| --- | --- |
18+
| `brainstorming` | 在动手实现之前,把粗糙的想法打磨成经过验证的设计 |
19+
| `test-driven-development` | RED / GREEN / REFACTOR 纪律:没有失败的测试就不写生产代码 |
20+
| `systematic-debugging` | 用四阶段框架定位根因,而不是修补表象 |
21+
| `writing-plans` | 把验证过的设计转化为包含精确文件改动的实施计划 |
22+
| `executing-plans` | 按任务逐项执行书面计划,每个任务都有验证环节 |
23+
| `subagent-driven-development` | 通过"实现者/评审者"子代理对逐任务执行计划 |
24+
| `dispatching-parallel-agents` | 并行分发相互独立的子代理工作并汇总结果 |
25+
| `requesting-code-review` | 把干净、可评审的变更集交给代码评审者 |
26+
| `receiving-code-review` | 以技术判断回应评审意见,而不是盲目服从 |
27+
| `verification-before-completion` | 只有拿到证据(跑过测试、展示输出)才能声称"完成" |
28+
| `finishing-a-development-branch` | 验证通过后决定合并 / 提 PR / 清理 |
29+
| `using-git-worktrees` | 用隔离的 worktree 支持并行任务和高风险实验 |
30+
| `writing-skills` | 以可测试的纪律创建或修改技能(本库自身的维护方式) |
31+
| `using-superpowers` | 元技能:如何发现并使用技能(会话启动时注入) |
32+
| `diagnosing-superpowers` | 诊断技能未触发或工作流失效的会话 |
33+
34+
## 目录结构
35+
36+
```text
37+
superpowers/
38+
├── .zcode-plugin/plugin.json # 插件清单
39+
├── skills/<name>/SKILL.md # 15 个技能,含参考文档、提示词和辅助脚本
40+
├── hooks/hooks.json # SessionStart 注册(自动发现,无需在清单中声明)
41+
├── hooks/session-start.mjs # 引导注入器(Node,零依赖)
42+
├── LICENSE # MIT(上游 + 打包)
43+
├── README.md / README_CN.md
44+
```
45+
46+
## 钩子:SessionStart 引导
47+
48+
| 事件 | 匹配器 | 作用 |
49+
| --- | --- | --- |
50+
| `SessionStart` | `startup\|clear\|compact` | 运行 `hooks/session-start.mjs`:读取 `skills/using-superpowers/SKILL.md`,去除 frontmatter,通过 `hookSpecificOutput.additionalContext` 注入模型上下文。 |
51+
52+
副作用说明:
53+
54+
- 该钩子**只读取插件目录内的一个文件**;不写入任何内容、不发起网络请求、不收集任何数据。
55+
- 需要 `PATH` 上有 `node`(任意较新版本;脚本只使用 Node 内置模块)。若技能文件不可读,钩子会干净地退出,会话继续,只是没有引导内容。
56+
- ZCode 在会话启动时会对钩子配置做快照:安装或启用插件后,请**新建会话**以加载引导。
57+
- 手动冒烟测试:
58+
59+
```shell
60+
printf '%s\n' '{"hook_event_name":"SessionStart","session_id":"manual","source":"startup"}' \
61+
| node hooks/session-start.mjs
62+
```
63+
64+
标准输出必须是以 `hookSpecificOutput.hookEventName = "SessionStart"` 开头的单个 JSON 对象;诊断信息只输出到 stderr。
65+
66+
部分技能在 `skills/*/scripts/` 下带有小型辅助脚本,仅在对应技能的工作流需要时运行(通过解释器调用,例如 `bash scripts/start-server.sh` 或 `node ./render-graphs.js`);它们只作用于当前工作区。
67+
68+
## 安装
69+
70+
1. 在 ZCode 中打开插件管理(**设置 → 插件管理 → 发现**),找到 **superpowers** 并安装,默认启用。
71+
2. **新建会话**。
72+
3. 冒烟验证:询问 *"What are your superpowers?"* —— 模型应当能描述自己的技能。
73+
4. 实际试用:在全新会话中发送 *"Let's make a react todo list"* —— 模型应当在写任何代码之前先调用 `superpowers:brainstorming`。
74+
75+
## 来源与许可
76+
77+
- 全部技能内容逐字取自 [obra/superpowers](https://github.com/obra/superpowers) **v7.0.0**(commit `bb92a77`),MIT 许可证 © Jesse Vincent。见 [LICENSE](./LICENSE)。
78+
- 本打包所做的 ZCode 适配:`.zcode-plugin` 清单、Node 版 `SessionStart` 钩子、`skills/using-superpowers/references/zcode-tools.md`(ZCode 工具映射)、`using-superpowers/SKILL.md` "Platform Adaptation" 列表中的一行指针,以及 README/LICENSE 文件。其余内容与上游完全一致,便于后续同步上游新版本。

0 commit comments

Comments
 (0)