一键导入
test-writer
Write comprehensive tests for new or changed code. Use automatically when new features are added, functions are created, or behavior is modified.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Write comprehensive tests for new or changed code. Use automatically when new features are added, functions are created, or behavior is modified.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Find and fix a bug or issue — from any source (GitHub issue, error message, user report, or observed behavior)
Review code changes or a pull request — delegates to specialist agents for code quality, security, performance, and documentation.
Safely refactor code with test coverage as a safety net
Scan changes, commit, push, and create a PR — with confirmation at each step
Test-Driven Development loop — write a failing test first, then the minimum code to pass it, then refactor. Repeat.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
| name | test-writer |
| description | Write comprehensive tests for new or changed code. Use automatically when new features are added, functions are created, or behavior is modified. |
Write comprehensive tests for the code that was just added or changed.
git diff and git diff --cached to identify new/modified functions, classes, and modulesFor each new or modified function/method/component, map out:
For EACH scenario identified above, write a test. No skipping.
should return empty array when input is emptyshould throw ValidationError when email format is invalidshould retry 3 times before failing on network timeoutPure functions / business logic:
API endpoints / handlers:
UI components (if applicable):
Database / data layer:
Async operations: