Write Unit Tests — Development skill for Claude Code
Generate thorough unit tests for a function or component.
How to install Write Unit Tests
Installs to ~/.claude/skills/alexnesteruk-agent-registry-write-unit-tests/SKILL.md
mkdir -p ~/.claude/skills/alexnesteruk-agent-registry-write-unit-tests && curl -fsSL https://raw.githubusercontent.com/alexnesteruk/agent-registry/HEAD/skills/write-unit-tests.md -o ~/.claude/skills/alexnesteruk-agent-registry-write-unit-tests/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Write Unit Tests does
name: write-unit-tests description: Generate thorough unit tests for a function or component arguments:
- name: target description: The function, class, or component to test required: true
- name: framework description: Test framework to use (e.g. Jasmine, Jest, Vitest) required: false
Write Unit Tests
Generate thorough unit tests for `{{target}}`.
- Cover the happy path, edge cases, and error conditions
- Each test should have a single clear assertion focus
- Us
Alternatives in Development
- Create Handoff — You are tasked with writing a handoff document to hand off your work to another agent in a new session 10k ★
- Dive — Dive is an open-source MCP Host Desktop Application that seamlessly integrates with any LLMs supporting functi 1.8k ★
- Claude Code Sub Agent Collective — 🧠 Context Engineering Research - Not just another agent collection, but using research and context engineerin 523 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Develop Team
Stage 3 alias — Develop: implement work units as vertical slices, including unit-local tests. Thin wrapper aro
Implement Fix
Debug and patch application code to satisfy failing E2E or unit tests
Component Gen
Generate React or Vue components with prop types, styling, accessibility, and tests
Pinpoint
Click an element on your local dev site, write what should change, and your coding agent gets it — selector, c
Cc Safe
Tip 34: Write lots of tests (and use TDD)
TDD Red
Write comprehensive failing tests following TDD red phase principles.
Related Agents
Rig QA
Test writing agent. Use to write or extend unit tests for new or changed code. Give it the file or function to
Widget Test Specialist
Use this agent to write widget tests and unit tests for Flutter code. Give it a screen, widget, or function an
Build Worker
Sonnet-tier worker for everyday coding subtasks: implement a well-specified function or component, fix a descr