AGENT SKILL

testing.write_unit_tests

Propose a plan for unit testing a file and then implement it

使用场景测试与质量
License 许可
Apache-2.0
所属仓库
causify-ai/helpers
最近更新
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

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 # Verification in .claude/skills/testing.rules.md is verified

04 同仓库更多 Skills