前言
随着Claude Code、Cursor、GitHub Copilot等AI编程工具的广泛普及,开发者的生产力得到了显著提升。然而,随之而来的问题也逐渐清晰:AI能生成代码,却不知道该"先做什么";AI能回答问题,却不遵循团队的工程规范;AI能修复Bug,却常常改完一处又破坏另一处。
Superpowers 正是为解决这一问题而生的开源项目。它为AI编程智能体提供了一套完整的、可组合的软件工程工作流技能库,让AI不仅会写代码,更懂得如何"正确地"开展软件工程实践。
安装与配置
Claude Code
Claude Code通过插件市场安装,是目前支持最完善的平台:
bash
# 注册 Superpowers 插件市场
/plugin marketplace add obra/superpowers-marketplace
# 安装 Superpowers 插件
/plugin install superpowers@superpowers-marketplace
装后,启动新会话时技能库会自动加载。更新:
bash
/plugin update superpowers
Cursor
在Cursor的Agent聊天中直接安装:
bash
/plugin-add superpowers
Codex
克隆仓库并创建技能软链接:
bash
# 克隆 Superpowers 仓库
git clone https://github.com/obra/superpowers.git ~/.codex/superpowers
# 创建技能发现软链接
mkdir -p ~/.agents/skills
ln -s ~/.codex/superpowers/skills ~/.agents/skills/superpowers
OpenCode
bash
# 克隆仓库
git clone https://github.com/obra/superpowers.git ~/.config/opencode/superpowers
# 注册插件
mkdir -p ~/.config/opencode/plugins
ln -s ~/.config/opencode/superpowers/.opencode/plugins/superpowers.js \
~/.config/opencode/plugins/superpowers.js
# 创建技能软链接
mkdir -p ~/.config/opencode/skills
ln -s ~/.config/opencode/superpowers/skills \
~/.config/opencode/skills/superpowers