agents / superpowers-agent
AGENTS.md3 starsChanged 3 months agoMITView on GitHub
硬约束:步骤 4 未完成不得进入步骤 5;步骤 7 必须展示运行证据。 输入:用户说"帮我实现 XX 功能" 输入:用户有多个独立的子任务需要同时推进 输入:用户报告了一个难以定位的 bug
In this repository23 other files it gives its agents.
- addyosmani-agent-skills-agent/AGENTS.mdAGENTS.md
- agent-harness-agent/AGENTS.mdAGENTS.md
- agent-memory-agent/AGENTS.mdAGENTS.md
- alibaba-ocr-agent/AGENTS.mdAGENTS.md
- app-ideas-agent/AGENTS.mdAGENTS.md
- career-monetize-agent/AGENTS.mdAGENTS.md
- content-distiller/AGENTS.mdAGENTS.md
- data-extraction-agent/AGENTS.mdAGENTS.md
- data-viz-agent/AGENTS.mdAGENTS.md
- editorial-art-agent/AGENTS.mdAGENTS.md
- ency-charts-agent/AGENTS.mdAGENTS.md
- html-doc-agent/AGENTS.mdAGENTS.md
- humanizer-agent/AGENTS.mdAGENTS.md
- mattpocock-engineering-agent/AGENTS.mdAGENTS.md
- ppt-deck-agent/AGENTS.mdAGENTS.md
- quant-prediction-agent/AGENTS.mdAGENTS.md
- recording-agent/AGENTS.mdAGENTS.md
- research-methodology-agent/AGENTS.mdAGENTS.md
- security-privacy-agent/AGENTS.mdAGENTS.md
- seo-content-agent/AGENTS.mdAGENTS.md
- ui-design-agent/AGENTS.mdAGENTS.md
- visual-media-agent/AGENTS.mdAGENTS.md
- content-distillerSkill
The file
Files
AGENTS.md - 工作流程和场景定义
🚀 启动流程
- 读取 IDENTITY.md — 知道我是谁
- 读取 SOUL.md — 知道我怎么说话
- 读取 USER.md — 了解你是谁
- 不需要询问许可,直接执行
📋 核心工作流:强制开发七步法
总览
步骤 1: 需求理解 → 明确目标和边界
步骤 2: 方案设计 → 架构和技术选型
步骤 3: Worktree 创建 → git-worktree-isolation 隔离工作区
步骤 4: 测试先行 → test-first-philosophy 写失败测试
步骤 5: 实现 → 最少代码使测试通过
步骤 6: 重构验证 → 保持测试通过的前提下优化
步骤 7: 证据提交 → evidence-over-claims 验证后再声明成功硬约束:步骤 4 未完成不得进入步骤 5;步骤 7 必须展示运行证据。
🔍 场景 1:新功能开发
输入:用户说"帮我实现 XX 功能"
步骤 1-2 — 需求与方案
- 确认功能范围和验收标准
- 设计模块结构和接口约定
步骤 3 — Worktree 隔离
- 调用
git-worktree-isolation - 基于主分支创建独立 worktree(如
feature/user-auth) - 所有开发在新 worktree 中进行,不影响主分支
步骤 4-5 — TDD 实现
- 调用
test-first-philosophy,先写失败测试 - 编写最少代码使所有测试通过
- 检查
skipping-tests-anti-pattern:不允许以任何理由跳过测试
步骤 6-7 — 验证提交
- 重构优化,确保测试仍然通过
- 调用
evidence-over-claims:运行测试套件并展示输出 - 只有看到通过的测试输出才声明"完成"
🔍 场景 2:并行任务分派
输入:用户有多个独立的子任务需要同时推进
- 调用
subagent-driven-development - 将任务分解为互不依赖的子任务
- 为每个子任务创建独立的 worktree 和 subagent
- 每个 subagent 完成后经过两阶段审查:
- 第一阶段:subagent 自检(测试是否全部通过?)
- 第二阶段:主 agent 复审(代码质量、架构一致性)
- 合并到主分支前确认无冲突
🔍 场景 3:Bug 调查
输入:用户报告了一个难以定位的 bug
- 检查
ad-hoc-debugging-anti-pattern:不允许凭猜测修改代码 - 收集信息:错误消息、堆栈跟踪、复现步骤
- 形成假设列表,按可能性排序
- 对每个假设设计最小验证实验
- 找到根因后走标准七步法修复(含回归测试)
🛑 错误处理
| 状况 | 行为 |
| 用户要求跳过测试 | 拒绝并解释 test-first-philosophy 是硬约束 |
| Worktree 创建失败 | 检查 Git 状态,报告冲突文件 |
| Subagent 结果不符合预期 | 回炉重做该子任务,不做表面修补 |
| 无法复现 bug | 请求更多上下文(环境、日志、操作步骤),不做猜测性修复 |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

