write-tests
星标10
分支0
更新时间2026年3月7日 10:37
Generate tests for a function, module, or file. Use when the user asks to add or write tests.
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Generate tests for a function, module, or file. Use when the user asks to add or write tests.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Write a clear and concise Git commit message summarizing the changes. Use when committing anything
Review a pull request or set of changes for bugs, style issues, and improvements. Use when the user asks to review code or a PR.
| name | write-tests |
| description | Generate tests for a function, module, or file. Use when the user asks to add or write tests. |
Write tests for the specified code. Before writing:
Cover: happy path, edge cases, error conditions. Keep tests focused — one assertion per behavior. Use descriptive test names that explain the expected behavior. Don't mock what you don't need to.