# Unit Test Starter

> Generate starter unit tests for a small function or module. Use when a junior developer needs test scaffolding and edge cases.

- Skill: `majiayu000/unit-test-starter` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/unit-test-starter`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/unit-test-starter/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/unit-test-starter

---


# Unit Test Starter

## Purpose
Generate starter unit tests for a small function or module.

## Inputs to request
- Function signature and expected behavior.
- Test framework and language.
- Edge cases or error conditions.

## Workflow
1. Identify core behaviors and failure cases from the function signature.
2. Propose table-driven cases with inputs and expected outputs.
3. Highlight one edge case and one negative case.
4. Show how to run the tests.

## Output
- Test case list with rationale.
- Sample test code snippet for the project test framework.

## Quality bar
- Keep tests deterministic and isolated.
- Prefer clear assertions over broad snapshots.

