Files
nano-vllm/.claude/rules/plan-execution.md
2026-01-20 07:07:56 +08:00

45 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Plan 执行规则
## 严格禁止未经许可执行 Plan
**重要**:在用户明确发出以下指示之前,**绝对不能**执行 plan
- "执行 plan"
- "开始实现"
- "go ahead"
- 或其他明确的开始信号
### 允许的操作
在等待用户确认期间,只能进行以下操作:
| 操作类型 | 允许 | 示例 |
|---------|------|------|
| 阅读代码 | ✅ | 用 Read/Grep/Glob 探索代码库 |
| 修改 plan 文件 | ✅ | 更新 task_plan.md, findings.md |
| 讨论设计 | ✅ | 回答用户关于 plan 的问题 |
| **修改源代码** | ❌ | 编辑 .py 文件 |
| **创建新源文件** | ❌ | 新建 .py 文件 |
| **运行测试/benchmark** | ❌ | 执行 python 脚本 |
### 工作流程
```
用户: "请阅读 plan 并优化"
Claude:
1. 阅读 task_plan.md
2. 阅读相关代码
3. 更新 task_plan.md 中的计划
4. 等待用户确认
用户: "执行 plan"
Claude:
1. 现在可以开始修改代码
2. 按照 plan 中的步骤执行
```
### 原因
- 防止在设计未完善时过早修改代码
- 给用户审查计划的机会
- 避免不必要的重构