Loading...
Loading...
Compare original and translation side by side
.agents/DECISIONS/[feature-name].md.agents/DECISIONS/[feature-name].md.agents/SPECS/[feature-name].mdundefined.agents/SPECS/[feature-name].mdundefinedundefinedundefined.agents/TODOS/[feature-name].mdundefined.agents/TODOS/[feature-name].mdundefinednpm run build && npm testnpm test -- --grep "module X"npm test -- --grep "edge cases"npm run integrationnpm run docs && open docs/index.html
Each item must be independently checkable. This prevents "looks right" progress.npm run build && npm testnpm test -- --grep "module X"npm test -- --grep "edge cases"npm run integrationnpm run docs && open docs/index.html
每个事项都必须可独立验证。这可以避免“看起来有进展”的虚假情况。.agents/.agents/
├── SPECS/
│ └── [feature-name].md # what/why/constraints
├── TODOS/
│ └── [feature-name].md # steps + verification commands
└── DECISIONS/
└── [feature-name].md # tradeoffs, rejected options, assumptionsuser-auth.mdapi-refactor.md.agents/.agents/
├── SPECS/
│ └── [feature-name].md # 内容/目的/约束条件
├── TODOS/
│ └── [feature-name].md # 步骤 + 验证命令
└── DECISIONS/
└── [feature-name].md # 权衡方案、被否决的选项、假设前提user-auth.mdapi-refactor.md| Dimension | Question | If No... |
|---|---|---|
| Intent | Do you have acceptance criteria and a test harness? | Don't run agent |
| Memory | Do you have durable artifacts (spec/todo) so it can resume? | It will thrash |
| Planning | Can it produce/update a plan with checkpoints? | It will improvise badly |
| Authority | Is what it can do restricted (edit, test, commit)? | Too risky |
| Control Flow | Does it decide next step based on tool output? | It's just generating blobs |
| Tools | Does it have minimum necessary tooling and nothing extra? | Attack surface too large |
| 维度 | 问题 | 如果否…… |
|---|---|---|
| Intent(意图) | 是否有验收标准和测试框架? | 不要运行代理 |
| Memory(记忆) | 是否有持久化文档(spec/todo)以便代理可以恢复任务? | 代理会陷入混乱 |
| Planning(规划) | 代理能否生成/更新带有检查点的计划? | 代理会进行糟糕的即兴发挥 |
| Authority(权限) | 代理的操作是否受到限制(编辑、测试、提交)? | 风险过高 |
| Control Flow(控制流) | 代理是否根据工具输出来决定下一步操作? | 它只是在生成无意义的内容 |
| Tools(工具) | 代理是否拥有必要的最少工具,没有多余工具? | 攻击面过大 |
Edit these files: [paths]
Interface: [exact signatures]
Acceptance criteria: [list]
Required tests: [list]
Don't change anything else.Give me 3 options and a recommendation.
Make the recommendation conditional on constraints A/B/C.Only use the files I provided.
If you need more context, ask for a specific file and explain why.Add a test that fails on the buggy version and passes on the correct one.编辑这些文件:[路径]
接口:[精确签名]
验收标准:[列表]
必填测试:[列表]
不要修改其他任何内容。给我3个选项和一个推荐方案。
根据约束条件A/B/C给出有条件的推荐。仅使用我提供的文件。
如果需要更多上下文,请索要特定文件并说明原因。添加一个在错误版本中失败、在正确版本中通过的测试。SPEC-FIRST WORKFLOW
STAGE A - FRAMING:
[3 approaches with tradeoffs]
[Recommendation]
STAGE B - SPEC:
[Draft spec.md content]
STAGE C - TODO:
[Draft todo.md with verification commands]
Ready to proceed to Stage D (execution)?SPEC-FIRST WORKFLOW
STAGE A - FRAMING:
[3种带有权衡的方案]
[推荐方案]
STAGE B - SPEC:
[spec.md草稿内容]
STAGE C - TODO:
[带有验证命令的todo.md草稿]
是否准备进入阶段D(执行)?