AGENT SKILL
testing.write_unit_tests
Propose a plan for unit testing a file and then implement it
使用场景测试与质量
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-02
- Stars
- ★ 155
- Forks
- 170
01 前言 Front Matter
- model
- haiku
- description
- Propose a plan for unit testing a file and then implement it
02 资源文件 1
- 参考文档README.md6.6 KB
03 SKILL.md 正文
Goal
- Propose a unit test plan for a given file, then implement it after the user approves
Workflow
Propose a Unit Test Plan
- Given a file
<FILE>, create a comprehensive unit test plan according to the rules in.claude/skills/testing.rules.md - Create a file with a summary of what is going to be tested
Implement the Unit Test Plan
- Wait for the user to review the plan and approve or modify it
- Then implement it
Important
- All invariants and conventions for unit tests are documented in
.claude/skills/testing.rules.md - For all code you must follow the instructions in
.claude/skills/coding.rules.md
Verification
- [ ] Make sure everything in
# Verificationin.claude/skills/testing.rules.mdis verified
04 同仓库更多 Skills
tutorial_in_60_mins.propagate_docker_changes
Sync tutorial and class-project Docker files to match project_template
★ 155
tutorial_in_60_mins.merge_markdown
Merge the content of a markdown file into a Jupyter notebook
★ 155
tutorial_in_60_mins.format
Format a directory to follow the "Learn X in 60 Minutes" tutorial conventions
★ 155
tutorial_in_60_mins.create
Create a tutorial directory for the Learn X in 60 Minutes conventions
★ 155
todo.reorg_in_progress
Reorganize ai_task_queue.md so in-progress tasks, not-started tasks, and mislabeled topic headers sit under the right H1 stage
★ 155
todo.reorg_headers
Reorganize ai_task_queue.md .md so every H2 topic matches ALL TOPICS and every H3 task sits under the right topic, keeping its H1 stage
★ 155