test-unit
Use when adding or repairing fast isolated tests for local functions, classes, transformations, intrinsics, or small modules.
- License 许可
- GPL-3.0
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- test-unit
- description
- Use when adding or repairing fast isolated tests for local functions, classes, transformations, intrinsics, or small modules.
03 SKILL.md 正文
Read the testing contract. State the falsifiable behavior question and choose inputs that distinguish the implementation from a tautology. Cover a normal case plus plausible empty, boundary, invalid, and error cases; keep the test isolated from network, clock, filesystem, and global state unless those are the behavior under test.
Assert externally meaningful values, errors, or state transitions. Avoid
asserting implementation call counts as the sole signal. Follow local naming,
fixtures, and runner conventions. Record the exact command, expected signal,
scope, cost, and limitation. If the failure crosses a component seam, hand off
to test-integration rather than forcing a unit test.
04 同仓库更多 Skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code
verification-before-completion
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
using-superpowers
Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions
using-git-worktrees
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code