登录
示例展示 审计通过 v1.2.0 👍 85% · 3.6k 次试用 · 1.3k 收藏 · 本周 +142

test-gen

Generate the test you would have written if you weren't tired.

示例输出 这个 Skill 需要本地文件 / git 历史,不能在浏览器内试用
输入
function chunk<T>(arr: T[], n: number): T[][]
输出
// 5 tests, 1 edge case (empty array, n=0 should throw)
...
sk install test-gen --agent claude-code

关于

Reads a function and emits a test that covers the cases you actually care about — not 100% line coverage theater. Picks 3-5 meaningful inputs and the one edge case you would have forgotten.

这个 Skill 适合谁
  • 01 TDD-ish engineers who hate writing test scaffolding
  • 02 review-time test backfill
不适合: Property-based testing (use fast-check directly).
相似 Skill

下面这些 Skill 在我们的索引里和它最相近——但相近不等于相同。