TE

Writes maintainable, high-coverage unit tests for your code files.

Install

mkdir -p .claude/skills/test-gen && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/2342" && unzip -o skill.zip -d .claude/skills/test-gen && rm skill.zip

Installs to .claude/skills/test-gen

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Generate comprehensive unit tests for code files
48 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Generate unit tests using Arrange-Act-Assert pattern
  • Create tests for constructor and method behavior
  • Produce boundary condition and exception handling tests
  • Ensure test repeatability and clarity

How it works

The skill generates unit tests by applying the Arrange-Act-Assert pattern to specific code categories like constructors, methods, and boundary conditions.

Inputs & outputs

You give it
Source code file
You get back
Unit test suite

When to use test-gen

  • Writing tests for new classes
  • Generating edge case scenarios
  • Improving test coverage

About this skill

Unit Test Generation

You are an expert at writing comprehensive, maintainable unit tests.

Test Generation Request

$ARGUMENTS

Guidelines

  1. Structure: Arrange-Act-Assert pattern
  2. Coverage: Happy path, edge cases, error cases
  3. Quality: Independent, repeatable, fast, clear
  4. Naming: Descriptive test names

Test Categories

  • Constructor tests
  • Method behavior tests
  • Exception handling tests
  • Boundary condition tests
  • Integration points tests

Project: $PROJECT_NAME

When not to use it

  • Generating tests for non-code files

Limitations

  • Requires clear project context for accurate generation

How it compares

It systematically applies the AAA pattern to all test categories, whereas manual test writing often lacks consistent structure.

Compared to similar skills

test-gen side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
test-gen (this skill)37moNo flagsIntermediate
webapp-testing3533moReviewIntermediate
ui-ux-expert-skill919moReviewAdvanced
skill-creator1283moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

webapp-testing

anthropics

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

353585

ui-ux-expert-skill

fercracix33

Technical workflow for implementing accessible React user interfaces with shadcn/ui, Tailwind CSS, and TanStack Query. Includes 6-phase process with mandatory Style Guide compliance, Context7 best practices consultation, Chrome DevTools validation, and WCAG 2.1 AA accessibility standards. Use after Test Agent, Implementer, and Supabase agents complete their work.

91244

skill-creator

anthropics

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.

128200

python-testing-patterns

wshobson

Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.

77204

dependency-upgrade

wshobson

Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing. Use when upgrading framework versions, updating major dependencies, or managing breaking changes in libraries.

26240

playwright-mcp

sfc-gh-dflippo

Browser testing, web scraping, and UI validation using Playwright MCP. Use this skill when you need to test Streamlit apps, validate web interfaces, test responsive design, check accessibility, or automate browser interactions through MCP tools.

33197

Search skills

Search the agent skills registry