Free 40-page Claude guide โ€” setup, 120 prompt codes, MCP servers, AI agents. Download free โ†’
CLSkills
Back to Agents

Test Writer Agent

Available

โ€œTests that write themselvesโ€

Testing6 skills

What It Does

Monitors your code changes and automatically generates comprehensive unit tests, integration tests, and edge case coverage. Understands your testing framework, follows your existing test patterns, and keeps coverage above your target threshold.

Features

  • Detects untested functions and code paths
  • Generates unit tests matching your framework (Jest, Vitest, Mocha, etc.)
  • Creates mocks and fixtures automatically
  • Follows AAA pattern (Arrange, Act, Assert)
  • Generates edge case and boundary tests
  • Updates tests when source code changes
  • Maintains consistent test naming conventions

Triggers

On file save On commit Manual request When coverage drops below threshold

Trust Levels

Full Auto
Agent acts on its own
Ask First
Agent suggests, you approve

Use Cases

  • Catching up on test coverage for legacy code
  • Maintaining TDD workflow without slowing down
  • Ensuring new features are always tested

Example Prompts

โ€œWrite tests for the auth moduleโ€
โ€œIncrease test coverage to 80%โ€
โ€œGenerate edge case tests for this functionโ€

Quick Info

CategoryTesting
Skills Used6
Trust Levels2
StatusAvailable

Install This Agent

Install command:

curl -o ~/.claude/skills/test-writer-agent.md https://clskills.in/agents/test-writer-agent.md

Drop into ~/.claude/skills/ and invoke with /test-writer-agent

Want this customized for YOUR stack?

AI generates a personalized version of this agent tailored to your framework, conventions, and workflow.