通过真实游戏模拟验证角色死亡、墓碑 POI 创建、地图渲染和点击详情。用于需要测试寿元死亡或其他游戏内死亡流程、墓碑 POI,且不得直接调用 handle_death 的任务。
80
100%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
以独立数据目录启动测试局,绝不污染用户当前存档或设置。死亡必须由 Simulator.step() 的正常结算路径产生,不能为了测试直接调用 handle_death()、手工注册墓碑或伪造死亡事件。
docs/specs/external-control-api.md,通过 /api/v1/command/* 创建或配置测试角色,不直接改 game_instance。is_dead 为真,并包含 death_info。world/map 的 pois 含 kind: "grave",位置与死者死亡位置一致。deceased_avatar_id,用作前端进入角色详情的关联。avatar 并打开死者现有的角色详情,不应打开独立墓碑详情面板。pytest tests/test_death.py
cd web
npm run type-check
npm run test -- src/__tests__/composables/useTextures.test.tsUI 验证优先使用可用的浏览器控制工具;不可用时才以本地 Playwright 打开隔离的前端服务。不要用直接调用死亡处理函数来替代端到端验证。
测试结束后先暂停测试局,再停止本次启动的前端、后端和 LLM stub 进程。删除本次专用的数据目录、stub、日志和截图;仅保留仓库内的正式实现与回归测试。清理前核对所有目标都位于仓库 tmp/ 或 web/tmp/,不得触碰用户的常规数据目录或正在使用的服务。
001b129
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.