# Claude Code 安装 Superpowers 教程：not found 修法与 15 个技能

> 官方命令报 not found 是没注册官方市场，先 marketplace add 再装；Superpowers 装上有 15 个技能，每会话常驻约 706 token。

- URL: https://blog.laozhang.ai/zh/posts/claude-superpowers-plugin
- Published: 2026-11-28
- Updated: 2026-11-28
- Author: LaoZhang AI Team (https://blog.laozhang.ai/zh/about)
- Topic: Claude Code
- Tags: Claude Code, Superpowers, 插件, Skills, AI 编程

---
Superpowers 是装进 Claude Code 的一套开发流程插件：15 个技能加 1 个会话启动钩子，让 Claude 在动手写代码之前先问清需求、写计划、按测试驱动开发，做完再自查和请求代码审查。它由 Jesse Vincent 和 Prime Radiant 维护，MIT 许可，在 Claude 插件目录里带“Anthropic verified”标记，但不是 Anthropic 自己的产品。

在已经打开过 Claude Code 交互会话的电脑上，会话里输入 `/plugin install superpowers@claude-plugins-official`，选好安装范围就能装上。如果在终端里跑 `claude plugin install superpowers@claude-plugins-official` 得到 `Plugin "superpowers" not found in marketplace "claude-plugins-official"`，说明这台机器还没注册 Anthropic 官方市场：先运行 `claude plugin marketplace add anthropics/claude-plugins-official`，再重新安装。装完用 `claude plugin details superpowers` 看一眼，列出 15 个技能就说明装对了。

终端安装、报错和修法在 2026 年 11 月 27 日用 Claude Code 2.1.322 在两个全新的配置目录里实际跑过，装上的是 Superpowers 7.0.2。到 11 月 28 日，测试用的这台机器上 Claude Code 仍是 2.1.322。会话里的 `/plugin` 面板和技能实际触发没有测试，涉及它们的内容来自 Claude Code 官方文档、插件作者的 README 和 GitHub issue。

## Superpowers 装进 Claude Code 的是什么：15 个技能和 1 个启动钩子

在 Claude Code 2.1.322 上运行 `claude plugin details superpowers`，Superpowers 7.0.2 的组件清单是 15 个技能、1 个 SessionStart 钩子、0 个 agent、0 个 MCP 服务器。所以它既不是 MCP，也不是一个独立的智能体：技能是按需加载的说明文档，钩子在每次启动、`/clear` 和上下文压缩之后运行，把“先检查有没有适用的技能”这条规矩放进会话。技能、钩子和斜杠命令各管什么，见 [Claude Code Hooks、Skills 与斜杠命令：区别、选型和最小配置](https://blog.laozhang.ai/zh/posts/claude-code-hooks-slash-commands-skills)。

会话里的变化都来自这条规矩。using-superpowers 技能的原文要求，只要有 1% 的可能某个技能适用，就必须先调用它；brainstorming 的描述写着任何创造性工作之前都必须使用。所以你说“加一个导出 CSV 的功能”，Claude 不会直接改代码，而是先问你要做什么、为什么要做，把设计分段给你确认。这也是有人觉得它“管得多”的原因，它的 README 原话是“Mandatory workflows, not suggestions”。

[作者在 GitHub 上的 Superpowers README](https://github.com/obra/superpowers) 把一次完整开发写成 7 步：brainstorming 问清需求 → using-git-worktrees 在新分支的独立工作区里开工 → writing-plans 把工作拆成 2–5 分钟一个的小任务 → subagent-driven-development 或 executing-plans 逐个执行 → test-driven-development 先写会失败的测试再写实现 → requesting-code-review 在任务之间按计划审查 → finishing-a-development-branch 跑测试，给出合并、开 PR、保留或丢弃的选项并清理工作区。第 4 步二选一：subagent-driven-development 每个任务派一个新的子代理、每步之后审查，最彻底；executing-plans 在当前会话里依次做完，最后对整条分支审查一次，最省。

claude.com 的 Superpowers 插件页截至 2026 年 11 月 27 日显示安装 1,009,371 次，但页面说明还写着 `/execute-plan` 和“a code-reviewer agent”。7.0.2 里对应的是 executing-plans 技能，agent 数为 0，两者不一致时以 `claude plugin details` 的输出为准。

## Claude Code 怎么安装 Superpowers：按你的环境选一条命令

选哪条命令取决于两件事：你是在 Claude Code 会话里操作，还是在系统终端或脚本里操作；以及这台机器有没有打开过 Claude Code 交互会话。Claude Code 官方文档说明，第一次打开交互式终端会话时会自动添加 Anthropic 官方市场 `claude-plugins-official`，没打开过的机器上这个市场不存在，新装的电脑、容器、CI 和换了 `CLAUDE_CONFIG_DIR` 的配置目录都属于这种情况。还没装 Claude Code 本体的话，先看 [Claude Code 安装教程：全平台完整设置指南（2026）](https://blog.laozhang.ai/zh/posts/claude-code-install)。

### 在 Claude Code 会话里用 /plugin 安装

平时一直在用 Claude Code 的电脑，官方市场已经在，直接在会话里装：

1. 在会话输入框运行 `/plugin install superpowers@claude-plugins-official`。按官方文档，这条命令在会话里不会立刻安装，而是打开 `/plugin` 面板的插件详情页；官方市场的插件会在这里显示两项上下文开销估算，Every turn 是每条消息都带上的部分，When invoked 是技能加载时增加的部分。
2. 选安装范围：Install for you 是 user scope，本机所有项目都启用；Install for all collaborators on this repository 是 project scope，写进仓库的 `.claude/settings.json`；Install for you, in this repo only 是 local scope。个人试用选第一个。
3. 安装后出现 `Run /reload-plugins to apply.` 时，面板会关闭并自动重新加载。如果它提示重新加载会让提示缓存失效、把插件留在待生效状态，运行 `/reload-plugins --force` 让它立即生效。

也可以只输入 `/plugin`，在 Discover 标签页里搜 superpowers。官方文档给的其他入口是：VS Code 扩展里输入 `/plugins` 打开 Manage plugins 搜索安装，列表为空时先在 Marketplaces 标签页添加 `anthropics/claude-plugins-official`；桌面版在 Code 标签页点输入框旁的 +，选 Add plugins。

### 在终端或脚本里安装：新机器也能一次成功

在系统终端、安装脚本或 CI 里，按官方文档的顺序先注册市场再安装：

```bash
claude plugin marketplace add anthropics/claude-plugins-official
claude plugin install superpowers@claude-plugins-official
```

2026 年 11 月 27 日在一个全新配置目录里，第一条从 GitHub 克隆官方市场（走 SSH）用了 9.6 秒，第二条安装用了 3.8 秒，装上 Superpowers 7.0.2，默认 user scope；要装到项目范围就在第二条后面加 `--scope project`。`claude plugin marketplace list` 里已经有 `claude-plugins-official` 的机器，直接运行第二条即可。终端里装好的插件，要在下次启动 Claude Code，或在已经打开的会话里运行 `/reload-plugins` 之后才会加载。

### 用作者自己的市场 superpowers-marketplace 安装

README 列了第二条路：作者自己的市场，里面除了 Superpowers 还有几个相关插件。

```text
/plugin marketplace add obra/superpowers-marketplace
/plugin install superpowers@superpowers-marketplace
```

在终端里把开头的 `/plugin` 换成 `claude plugin` 即可，11 月 27 日实测添加市场 7.3 秒、安装 2.5 秒，同样是 7.0.2。这条路和官方市场的区别在更新：官方文档写明 `claude-plugins-official` 默认开启自动更新，第三方市场默认关闭，所以从这里装的要自己更新。两条路只选一条，两个市场各装一份时 Claude Code 不会提醒，后面排查一节会讲怎么处理。

## 为什么 superpowers@claude-plugins-official 报 not found

这条报错的原因是官方市场没注册，不是插件下架或名字写错。2026 年 11 月 27 日在一个从未打开过交互会话的全新配置目录里，`claude plugin marketplace list` 只列出一个内置市场 `anthropic-plugin-directory`（Source: Built in (Anthropic Directory)），没有 `claude-plugins-official`，于是安装和报错建议的更新都失败了：

```text
$ claude plugin install superpowers@claude-plugins-official
✘ Failed to install plugin "superpowers@claude-plugins-official": Plugin "superpowers" not found in marketplace "claude-plugins-official". Your local copy may be out of date — try `claude plugin marketplace update claude-plugins-official`.

$ claude plugin marketplace update claude-plugins-official
✘ Failed to update marketplace(s): Marketplace 'claude-plugins-official' not found. Available marketplaces: anthropic-plugin-directory
```

报错里说“本地副本可能过期”，但 update 只能刷新已经添加过的市场，这台机器上根本没有这个市场，所以照提示做也没用。[Claude Code 官方文档的插件安装页](https://code.claude.com/docs/en/discover-plugins)对此写得很明确：在还没有人打开过交互会话的机器上，脚本要先运行 `claude plugin marketplace add anthropics/claude-plugins-official` 再安装。同一天在第二个全新配置目录里按这个顺序做，安装成功，命令就是上一节终端安装的那两行。

还有一条更短的路：不写市场名，直接运行 `claude plugin install superpowers`。11 月 27 日它从内置的 anthropic-plugin-directory 装上了 `superpowers@anthropic-plugin-directory`，版本 7.0.2-22f0b463e7a5，约 17 秒，和官方市场那份同是 7.0.2。两者的差别在以后：官方文档写明 `claude-plugins-official` 默认自动更新，而这份文档没有提到 anthropic-plugin-directory 的更新方式。只想马上用上，不带市场名的命令就够了；想以后少管更新，用官方市场那份。

![Superpowers 报 not found 的排查流程：marketplace list 里没有 claude-plugins-official 时，install 和 update 都会失败，可先注册官方市场再装，或不带市场名直接安装](https://blog.laozhang.ai/posts/zh/claude-superpowers-plugin/img/plugin-not-found-flow.webp)

## 确认 Superpowers 技能已经加载：按顺序查 4 处

先在终端确认插件装上并启用，再确认组件齐全，最后看会话里有没有生效。四处按顺序查，前一处不对就先解决它：

1. 运行 `claude plugin list`，应能看到 `superpowers@<市场名>`，Status 是 `✔ enabled`，Version 是 7.0.2 或更新。出现两条 superpowers，说明两个市场各装了一份。
2. 运行 `claude plugin details superpowers`，应显示 `Skills (15)` 和 `Hooks (1)  SessionStart`。技能数为 0 时，看默认配置目录下的 `~/.claude/plugins/cache/<市场名>/superpowers/<版本>/skills` 里有没有 15 个文件夹。
3. 如果会话是在安装之前打开的，运行 `/reload-plugins` 或重开会话；会话里输入 `/plugin`，Installed 标签页应列出 Superpowers 和它的安装范围。
4. 新开一个会话，发一句要做东西的话，例如 README 给的 `Let's make a react todo list`。装好的 Superpowers 应在写任何代码之前先触发 brainstorming、开始向你提问；这句验证方法 README 写在 Muse 一节，技能是同一套。

第 4 步没有出现提问时，可以直接对 Claude 说“figure out what went wrong with superpowers in this session”。按 README 的说明，这会触发 diagnosing-superpowers 技能，它读当前会话记录，给出带行号证据的分析，需要时还能打包一份去掉敏感信息的报告用来提 issue。

## Superpowers 占多少 token：每个会话常驻约 706，单个技能触发 0.7k–4.9k

按 Claude Code 2.1.322 自带的估算，Superpowers 7.0.2 每个会话固定多出约 706 token，这部分是 15 个技能的描述，模型靠它们判断什么时候该调用哪个技能。这项估算把 SessionStart 钩子标为 `harness-only — no model context cost`，也就是没有计算钩子在启动、`/clear` 和压缩后注入会话的引导内容，所以实际常驻量会高于 706。真正的大头是技能触发时加载的正文，单个技能约 700 到 4.9k token，每触发一次算一次。下表数字来自 2026 年 11 月 27 日 `claude plugin details superpowers` 的 Projected token cost 一栏，原文注明是估算，可能与实际用量不同。

| 技能 | 做什么 | 常驻（每会话） | 触发一次 |
| --- | --- | ---: | ---: |
| subagent-driven-development | 每个任务派一个子代理执行，先查是否符合需求再查代码质量 | ~30 | ~4.9k |
| executing-plans | 在当前会话里依次执行计划，最后整体审查一次 | ~50 | ~4.5k |
| writing-skills | 按测试方法编写和检验新技能 | ~30 | ~4.1k |
| brainstorming | 动手前问清需求、确认设计 | ~60 | ~3.7k |
| writing-plans | 把设计拆成带文件路径和验证步骤的小任务 | ~30 | ~2.6k |
| test-driven-development | 红、绿、重构：先写会失败的测试 | ~30 | ~2.4k |
| systematic-debugging | 分四个阶段找到根因再修 | ~30 | ~2.3k |
| finishing-a-development-branch | 跑测试，给出合并、PR、保留或丢弃的选项，清理工作区 | ~40 | ~1.9k |
| using-git-worktrees | 在新分支的独立工作区开工，确认测试基线干净 | ~60 | ~1.6k |
| diagnosing-superpowers | 分析一次会话里 Superpowers 哪里出了问题 | ~100 | ~1.6k |
| dispatching-parallel-agents | 同时派出多个子代理并行工作 | ~40 | ~1.5k |
| receiving-code-review | 处理收到的审查意见 | ~70 | ~1.5k |
| verification-before-completion | 宣布完成之前先验证确实修好 | ~70 | ~830 |
| using-superpowers | 技能系统的入门，要求先查有没有适用的技能 | ~50 | ~750 |
| requesting-code-review | 发起审查前的检查清单 | ~40 | ~700 |

每行的常驻值是四舍五入后的，相加约 730，和总数 706 的差来自取整。拿一次完整开发来算：7 步各触发一次、第 4 步用 subagent-driven-development，技能正文合计约 3.7k + 1.6k + 2.6k + 4.9k + 2.4k + 0.7k + 1.9k = 17.8k token；第 4 步换成 executing-plans 约 17.4k。这还只是技能正文，子代理执行任务和审查代码本身的消耗另算。所以 706 的常驻成本不大，影响额度的是一次大任务里整套流程跑下来的量。想看实际消耗、找出什么在占额度，见 [Claude Code 用量查看与 Token 审计：5 小时和每周额度、缓存与 MCP](https://blog.laozhang.ai/zh/posts/claude-code-usage-limit-issues)。

![Superpowers 的 token 估算：每会话常驻约 706，单个技能触发一次 0.7k–4.9k，完整开发 7 步各触发一次约 17.8k](https://blog.laozhang.ai/posts/zh/claude-superpowers-plugin/img/token-cost-breakdown.webp)

## Superpowers 技能不触发、装了两份、plan mode 下没反应

技能“没起作用”，多数是加载问题而不是插件坏了：先用前面的四步确认装上并加载，再对照下表找症状。表中前五行的现象在 2026 年 11 月 27 日的测试或官方文档里能对上；plan mode、旧缓存、长会话三行来自 GitHub 上的报告和插件更新说明。

| 症状 | 原因 | 处理 |
| --- | --- | --- |
| 终端报 `Plugin "superpowers" not found in marketplace "claude-plugins-official"` | 这台机器或这个配置目录没注册官方市场 | 先 `claude plugin marketplace add anthropics/claude-plugins-official` 再装 |
| `Marketplace 'claude-plugins-official' not found. Available marketplaces: anthropic-plugin-directory` | 同上，update 只能刷新已添加的市场 | 同上，或不带市场名运行 `claude plugin install superpowers` |
| 回复 `/plugin isn't available in this environment.` | 在 `claude -p` 这类非交互运行里用了 `/plugin` | 改在系统终端运行 `claude plugin install`，已装的插件在非交互运行里照常加载 |
| `claude plugin list` 显示已启用，当前会话里却没有技能 | 会话在安装之前就开着 | 运行 `/reload-plugins` 或重开会话 |
| `claude plugin list` 里有两条 superpowers | 从两个市场各装了一份，两条都显示 enabled，没有冲突提示 | 留一份，卸载另一份，例如 `claude plugin uninstall superpowers@superpowers-marketplace` |
| plan mode 下没有任何技能触发 | 已知现象，较早的报告 #1667 以 not planned 关闭 | 退出 plan mode 再提需求 |
| 装完技能数为 0，调试日志里版本是 unknown | 旧版本报告：读到空的缓存目录，约 25 秒后后台更新才拿到正确版本 | 看缓存目录里有没有带版本号的文件夹，等一会儿重启会话或重装 |
| 小事也被反复提问，不该触发时也触发 | 设计如此：1% 规则要求先调用技能 | 升级到 7.0.2；让 Claude 运行 diagnosing-superpowers 看是哪个技能触发的 |
| 长会话压缩之后流程走样，修复循环超过上限 | 压缩后每个技能被截到 20,000 字符再附回 | 升级到 7.0.1 或更新 |

两个市场各装一份时，会话里技能会不会重复出现没有测到，留一份最稳妥。plan mode 那一行，[Superpowers 仓库的 issue #2709](https://github.com/obra/superpowers/issues/2709) 报告了 Claude Code 2.1.322 在 plan mode 下没有技能触发，作者 11 月 19 日关闭时表示没看到 Superpowers 参与其中的迹象，也就是不认为这是插件的问题。旧缓存那一行来自 [anthropics/claude-code 仓库的 issue #27879](https://github.com/anthropics/claude-code/issues/27879)，那是 2026 年 2 月、Superpowers 4.3.1 时的报告，已因长期无人跟进关闭，现在是否还会出现不确定，只作为技能数为 0 时先看缓存目录的线索。

提问多的问题，7.0.2（2026 年 11 月 3 日）的更新说明写到，brainstorming 改为只在答案会改变要做的东西时才提问，作者自测里多余的提问从 41 次降到 23 次。长会话那一行来自 7.0.1（10 月 21 日）的更新说明：Claude Code 压缩上下文后，每个技能被截到 20,000 字符再附回，一次被报告的会话因此丢掉了“最多 5 轮修复”的限制、跑了 18 轮，7.0.1 因此把 subagent-driven-development 的修复循环等内容挪进了单独的参考文件。

## Superpowers 值不值得装：适合多步骤功能开发，不适合随手改几行

Superpowers 适合愿意让 Claude 按固定流程做事的多步骤开发：一个功能要改好几个文件、需要测试兜底、希望 Claude 按计划自己连续工作较长时间。README 的说法是，代理按计划自主工作一两个小时并不少见。代价也来自流程：小改动同样会先被问需求，test-driven-development 会删掉先于测试写出来的代码，子代理和审查还要额外消耗 token。

如果你多数时候只是改几行、写一次性脚本、让 Claude 读代码回答问题，或者团队已经有自己的分支、提交和审查规矩，不想被另一套流程接管，这套插件更多是负担。想先在一个仓库里试，用 local scope 安装，只对这个仓库生效，不影响其他项目。如果还在比较别的技能包，可以先看 [Claude Code Skills 推荐：先用哪个、怎么安装与确认生效](https://blog.laozhang.ai/zh/posts/claude-code-best-skills)。

让它收尾之前，先自己提交或备份工作区里没提交的文件。[Superpowers 仓库的 issue #2706](https://github.com/obra/superpowers/issues/2706)（2026 年 11 月 15 日提交，附带的修复截至 11 月 27 日尚未合并）报告：在 Cursor CLI 和 composer-2.5 模型上运行 Superpowers 7.0.2，让 finishing-a-development-branch “合并并清理”时，24 次里 24 次删掉了 worktree 里从未提交过的文件；让 executing-plans 在 main 分支上执行计划时，21 次里 21 次未经同意直接提交到 main。这是在另一个工具和模型上做的社区测试，Claude Code 上是否同样发生没有数据，但防范成本很低：收尾前用 `git status` 看一眼未跟踪的文件，执行计划之前自己先切到新分支。

## Codex、Cursor、OpenCode 怎么安装 Superpowers

Superpowers 在每个编程工具里都要单独安装，README 的原话是用几个工具就各装一遍，Claude Code 里装的不会出现在 Codex 或 Cursor 里。截至 2026 年 11 月 27 日，README（v7.0.2）给出的装法如下：

| 工具 | 装法 |
| --- | --- |
| Codex App | 侧栏 Plugins → Coding 区找到 Superpowers → 点旁边的 + |
| Codex CLI | 输入 `/plugins`，搜 superpowers，选 Install Plugin |
| Cursor | 在 Agent 对话里输入 `/add-plugin superpowers` |
| OpenCode | 对 OpenCode 说 `Fetch and follow instructions from https://raw.githubusercontent.com/obra/superpowers/refs/heads/main/.opencode/INSTALL.md` |
| Gemini CLI | `gemini extensions install https://github.com/obra/superpowers` |
| Qwen Code | `qwen extensions install obra/superpowers`，提示时选 superpowers |
| GitHub Copilot CLI | `copilot plugin marketplace add obra/superpowers-marketplace`，再 `copilot plugin install superpowers@superpowers-marketplace` |

Codex 插件目录里的版本可能慢一步：11 月 27 日用 ChatGPT 桌面应用内置的 codex-cli 0.171.0-alpha.13.2 查看，条目是 `superpowers@openai-curated-remote`，版本 7.0.1，而 GitHub 上 11 月 3 日已发布 7.0.2。Qoder 不在 README 列出的工具里，没有作者给的装法。

## 更新和卸载 Superpowers：update 与 uninstall

更新单个插件用 `claude plugin update superpowers@<市场名>`，或在会话里打开 `/plugin` 的 Installed 标签页，选中 Superpowers 后点 Update now。从官方市场装的默认自动更新，会话启动后在后台刷新，出现 `Plugin updated: superpowers · Run /reload-plugins to apply` 时运行 `/reload-plugins`，不运行的话下次启动也会用上新版本。从 superpowers-marketplace 装的默认不自动更新，可以在 `/plugin` 的 Marketplaces 标签页里给这个市场打开自动更新。注意 `claude plugin marketplace update` 不带名字时只刷新各市场的列表，不会升级已经装上的插件。

```bash
claude plugin update superpowers@claude-plugins-official
claude plugin disable superpowers@claude-plugins-official
claude plugin uninstall superpowers@claude-plugins-official
```

只想暂停就用 disable，之后用 `claude plugin enable` 恢复；不要了就 uninstall，市场名换成你装的那个。11 月 27 日的测试里，uninstall 用了 0.2 秒，之后 `claude plugin list` 显示 `No plugins installed`。另外，删除一个市场（`claude plugin marketplace remove <市场名>`）会把从这个市场装的插件一起卸载。

## Claude Code 安装 Superpowers 的其他问题

**Superpowers 能离线安装吗？** 在 Claude Code 里装 Superpowers 需要能访问 GitHub：2026 年 11 月 27 日的测试里，添加市场这一步是从 GitHub 克隆仓库，插件也从市场拉取。README 没有给出离线装法，离线安装也没有测试过。

**团队怎么让整个仓库都用上 Superpowers？** 用 project scope 安装：`claude plugin install superpowers@claude-plugins-official --scope project`，它写进仓库的 `.claude/settings.json`，提交后对所有协作者启用。按 Claude Code 官方文档，提交这个文件只打开开关、不会替别人下载插件，每个协作者还要在自己的克隆里运行一次同样带 `--scope project` 的安装命令。

**在 VS Code 扩展或桌面版里装的 Superpowers，终端里能用吗？** 装在 user scope 就能。Claude Code 官方文档说明，同一台电脑上的终端、桌面应用的本地会话和 VS Code 扩展读同一组设置文件，任何一处按 user scope 安装的插件，另外两处都能用。云端会话例外，要在 claude.ai 的插件设置里另外添加。

## 参考来源

本文引用的外部页面，按正文出现顺序排列。最后更新于 2026-11-28。

- [作者在 GitHub 上的 Superpowers README](https://github.com/obra/superpowers) (github.com)
- [Claude Code 官方文档的插件安装页](https://code.claude.com/docs/en/discover-plugins) (code.claude.com)
- [Superpowers 仓库的 issue #2709](https://github.com/obra/superpowers/issues/2709) (github.com)
- [anthropics/claude-code 仓库的 issue #27879](https://github.com/anthropics/claude-code/issues/27879) (github.com)
- [Superpowers 仓库的 issue #2706](https://github.com/obra/superpowers/issues/2706) (github.com)
