~test

GitHub

根据指定范围或最近变更,遵循TDD规范编写完整测试用例并运行验证。支持无参自动推导范围,确保测试通过以作为交付证据,同时同步任务状态和覆盖率报告。

skills/commands/test/SKILL.md hellowind777/helloagents

Trigger Scenarios

用户输入~test命令要求为指定模块编写测试 用户输入~test命令要求为最近变更的文件编写测试

Install

npx skills add hellowind777/helloagents --skill ~test -g -y
More Options

Non-standard path

npx skills add https://github.com/hellowind777/helloagents/tree/main/skills/commands/test -g -y

Use without installing

npx skills use hellowind777/helloagents@~test

指定 Agent (Claude Code)

npx skills add hellowind777/helloagents --skill ~test -a claude-code -g -y

安装 repo 全部 skill

npx skills add hellowind777/helloagents --all -g -y

预览 repo 内 skill

npx skills add hellowind777/helloagents --list

SKILL.md

Frontmatter
{
    "name": "~test",
    "policy": {
        "allow_implicit_invocation": false
    },
    "description": "为指定模块或最近变更编写完整测试(~test 命令)"
}

Trigger: ~test [scope]

流程

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

Version History

  • 79c0b48 Current 2026-08-20 08:25

Same Skill Collection

skills/commands/auto/SKILL.md
skills/commands/loop/SKILL.md
skills/hello-api/SKILL.md
skills/hello-data/SKILL.md
skills/hello-errors/SKILL.md
skills/hello-perf/SKILL.md
skills/hello-security/SKILL.md
skills/hello-test/SKILL.md
skills/hello-ui/SKILL.md
skills/hello-write/SKILL.md
skills/_meta/SKILL.md
skills/commands/ask/SKILL.md
skills/commands/clean/SKILL.md
skills/commands/commit/SKILL.md
skills/commands/help/SKILL.md
skills/commands/init/SKILL.md
skills/commands/plan/SKILL.md
skills/commands/prd/SKILL.md
skills/commands/qa/SKILL.md
skills/hello-arch/SKILL.md
skills/hello-debug/SKILL.md
skills/hello-reflect/SKILL.md
skills/hello-subagent/SKILL.md
skills/helloagents/SKILL.md
skills/qa-review/SKILL.md

Metadata

Files
0
Version
79c0b48
Hash
d8ddb0ff
Indexed
2026-08-20 08:25

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-25 06:53
浙ICP备14020137号-1 $방문자$