# ~test

> ~test is an Agent Skill for testing & quality published in the hellowind777/helloagents repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

为指定模块或最近变更编写完整测试（~test 命令）

- Skill name: `~test`
- Category: [Testing & Quality](https://www.openparable.com/skill/testing-quality/1)
- Source: https://github.com/hellowind777/helloagents/blob/HEAD/skills/commands/test/SKILL.md
- Repository: hellowind777/helloagents (638 GitHub stars when collected)

## SKILL.md

Trigger: ~test [scope]

## 流程

1. 确定测试范围：
   - 无参数：为最近变更的文件编写测试
   - 指定文件/模块：为指定范围编写测试
   - Codex active goal 下无参数：从 `tasks.md` 未完成项、`contract.json` 与 `state_path` 推导本次测试范围
2. 按 hello-* 技能查找路径读取 hello-test SKILL.md，按其 TDD 规范和边界用例要求编写测试
3. 运行测试确认全部通过
4. 同步直接相关的任务状态，报告覆盖情况和遗漏；测试通过只作为 goal 交付证据，不直接标记 goal complete

---

Source: https://www.openparable.com/skill/testing-quality/test-fbeb78ae (OpenParable). Cite the canonical URL above.
