依据真实代码契约生成并验证单元测试或集成测试。用于用户要求为函数、类、接口或缺陷补测试、提高覆盖率、生成回归用例或完善测试策略时;先读取现有测试与调用方,不猜测空值、异常或超时行为,不自动安装框架或访问生产依赖。
$npx -y skills add laolaoshiren/claude-code-skills-zh --skill test-generatorInstalls into the current project.
Run `npx skills use "https://github.com/laolaoshiren/claude-code-skills-zh" --skill "laolaoshiren/claude-code-skills-zh/test-generator"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/laolaoshiren/claude-code-skills-zh" that are relevant to the current task. Run `npx skills add "https://github.com/laolaoshiren/claude-code-skills-zh"` and select the relevant skills, then follow their instructions.