10分钟速览superpower+gstack实践
概述1.1 什么是 SuperpowersSuperpowers是一套 Claude Code 插件技能集专注于软件工程方法论的系统化。它将 TDD测试驱动开发、代码审查、系统调试等工程实践编码为可复用的 AI 工作流确保 AI 编码助手遵循严格的工程纪律。核心理念用规则约束 AI 行为防止快速但低质量的代码输出。1.2 什么是 gstackgstack是一套全生命周期项目管理技能集覆盖从产品构思到部署监控的完整开发流程。它提供 QA 测试、代码审查、设计审查、部署验证等自动化工作流。核心理念Boil the Ocean把海水煮沸— 既然 AI 边际成本趋近于零就把每件事做到极致完整。1.3 为什么要结合使用维度Superpowers 贡献gstack 贡献规划设计文档 实施计划模板CEO/工程/设计多维审查实现TDD 子代理驱动开发自动化测试 浏览器 QA审查代码审查协议多维审查军团 安全扫描部署完成分支管理Ship 部署 金丝雀监控质量验证即完成设计审查 可访问性审计2. 安装与配置2.1 前置条件检查项要求Node.js 18Git 2.34Claude Code CLI已安装GitHub CLI (gh)已安装并认证操作系统macOS / Linux / Windows (WSL)2.2 安装 SuperpowersSuperpowers 作为 Claude Code 插件安装# 方法一通过 Claude Code 插件市场安装推荐 claude plugins:install superpowers # 方法二手动安装 cd ~/.claude/plugins git clone https://github.com/anthropics/superpowers.git # 验证安装 claude skills:list | grep superpowers安装完成后技能文件位于~/.claude/plugins/cache/superpowers/superpowers/version/skills/ ├── brainstorming/SKILL.md ├── dispatching-parallel-agents/SKILL.md ├── executing-plans/SKILL.md ├── finishing-a-development-branch/SKILL.md ├── receiving-code-review/SKILL.md ├── requesting-code-review/SKILL.md ├── subagent-driven-development/SKILL.md ├── systematic-debugging/SKILL.md ├── test-driven-development/SKILL.md ├── using-git-worktrees/SKILL.md ├── using-superpowers/SKILL.md ├── verification-before-completion/SKILL.md ├── writing-plans/SKILL.md └── writing-skills/SKILL.md2.3 安装 gstack# 方法一通过 setup 脚本安装推荐 cd ~/.claude/skills git clone https://github.com/garryslist/gstack.git cd gstack ./setup # 方法二如果已有 Claude Code 环境直接运行 cd ~/.claude/skills/gstack ./setup --team # 验证安装 ls ~/.claude/skills/gstack/SKILL.mdgstack 安装后的目录结构~/.claude/skills/gstack/ ├── SKILL.md # 主入口技能 ├── bin/ # CLI 工具集 ├── browse/ # 无头浏览器引擎 ├── sections/ # 各子流程详细步骤 └── ... ~/.claude/skills/ # gstack 子技能独立目录 ├── spec/ ├── ship/ ├── qa/ ├── investigate/ ├── review/ ├── design-review/ ├── context-save/ ├── context-restore/ ├── autoplan/ ├── office-hours/ ├── land-and-deploy/ ├── canary/ ├── dev-workflow/ └── ...2.4 配置 CLAUDE.md 路由规则安装完成后在项目根目录的CLAUDE.md中添加技能路由## Skill routing When the users request matches an available skill, invoke it via the Skill tool. Key routing rules: - 产品创意/头脑风暴 → /office-hours - 策略/范围 → /plan-ceo-review - 架构 → /plan-eng-review - 设计系统/计划审查 → /design-consultation 或 /plan-design-review - 全流程审查 → /autoplan - Bug/错误 → /investigate - QA/测试行为 → /qa 或 /qa-only - 代码审查/diff 检查 → /review - 视觉优化 → /design-review - 发布/部署/PR → /ship 或 /land-and-deploy - 保存进度 → /context-save - 恢复上下文 → /context-restore - 撰写规格文档 → /spec2.5 配置流程图3. Superpowers 技能详解3.1 技能总览3.2 各技能详细说明3.2.1 brainstorming头脑风暴