From claude-code-starter
Generates unit tests for code or functions, analyzing inputs, paths, edges, and errors. Detects project test framework (pytest, Jest, etc.), applies mocks, matches style, and writes files after confirmation.
npx claudepluginhub lighthouse-strategy/claude-code-starterThis skill uses the workspace's default tool permissions.
为指定的代码自动生成测试用例,让用户不用自己写测试。
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides agent creation for Claude Code plugins with file templates, frontmatter specs (name, description, model), triggering examples, system prompts, and best practices.
为指定的代码自动生成测试用例,让用户不用自己写测试。
如果用户指定了函数或文件,直接读取。
如果没有指定,问:
你想给哪个函数或文件生成测试?
读取目标代码,分析:
查看项目中已有的测试文件,了解:
如果项目没有已有测试,根据技术栈选择最常用的测试框架。
按以下优先级生成测试:
规则:
展示生成的测试代码,告诉用户:
生成了 N 个测试用例,覆盖了 xxx。要我写入到测试文件吗?
用户确认后,写入对应的测试文件。然后运行测试确认全部通过。