[ PROMPT_NODE_25836 ]
test-scenarios
[ SKILL_DOCUMENTATION ]
# 评估测试场景
在 Haiku、Sonnet 和 Opus 上测试这些场景,以验证技能的有效性。
## 测试设置
运行测试前:
1. 创建一个包含文件的测试项目目录
2. 初始化 git 仓库
3. 进行一些提交
4. 确保技能可用
bash
# 设置测试环境
mkdir -p /tmp/handoff-test-project/src
cd /tmp/handoff-test-project
git init
echo "console.log('hello');" > src/index.js
echo "# Test Project" > README.md
git add . && git commit -m "Initial commit"
echo "function test() {}" >> src/index.js
git add . && git commit -m "Add test function"
---
## 场景 1:基础交接创建
**触发短语:** "create a handoff"
**用户提示词:**
I've been working on implementing user authentication. I modified src/auth.js
to add JWT token validation and updated the middleware. Create a handoff so
I can continue later.
**预期行为:**
- [ ] 技能触发(识别到 "create a handoff")
- [ ] 运行 `create_handoff.py` 脚本
- [ ] 在 `.claude/handoffs/` 中创建文件
- [ ] 预填元数据(时间戳、项目路径、git 分支)
- [ ] 提示用户完成 TODO 部分
- [ ] 提及验证步骤
**各模型预期:**
| 模型 | 预期 |
|-------|-------------|
| Haiku | 应字面遵循脚本指令,可能需要提示以获取细节 |
| Sonnet | 应顺畅执行工作流,填充合理的上下文 |
| Opus | 应主动添加丰富上下文,可能提出改进建议 |
---
## 场景 2:链式交接
**触发短语:** "continue from previous handoff"
**设置:** 先使用场景 1 创建一个交接,然后:
**用户提示词:**
I'm continuing the auth work from yesterday. Create a new handoff that
links to the previous one.
**预期行为:**
- [ ] 列出现有交接
- [ ] 使用 `--continues-from` 标志
- [ ] 添加带有链接的 "Handoff Chain" 部分
- [ ] 引用前一个交接的上下文
---
## 场景 3:从交接恢复
**触发短语:** "resume from handoff" 或 "load handoff"
**设置:** 拥有一个现有的交接文件
**用户提示词:**
I want to continue where I left off. Load my last handoff.
**预期行为:**
- [ ] 运行 `list_handoffs.py` 查找交接
- [ ] 对选定的交接运行 `check_staleness.py`
- [ ] 报告陈旧度级别
- [ ] 读取交接文档
- [ ] 总结 "Immediate Next Steps"
- [ ] 遵循恢复检查清单
## 场景 4:主动交接建议
**触发...**