Agent skill
unit-test-starter
Generate starter unit tests for a small function or module. Use when a junior developer needs test scaffolding and edge cases.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/unit-test-starter-proflead-codex-skills-library-2
SKILL.md
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
- Identify core behaviors and failure cases from the function signature.
- Propose table-driven cases with inputs and expected outputs.
- Highlight one edge case and one negative case.
- 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.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?