Skip to main content
skill CX Codex

test-writer · vstorm-co — Claude Code skill: what it does, how to install

test-writer generates structured test suites for existing code matching your active testing framework.

MIT ★ 1,125 updated 2026-10-27

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add vstorm-co/pydantic-deepagents --skill test-writer -a claude-code
Open on GitHub

What test-writer does

This skill guides the model to examine target codebases, discover the established test runner such as pytest or unittest, and mirror existing project conventions. It focuses on isolating distinct behaviors so that each test function targets one specific scenario rather than an entire method.

Coverage spans standard execution flows, edge cases with empty containers or boundary numbers, explicit failure handling, and integration passes across multiple calls. External resources like network endpoints or databases are mocked out, while shared setup relies on fixtures.

Assertions demand exact value comparisons rather than plain truthiness checks. The skill strictly enforces the test_<what>_<condition>_<expected> naming pattern across all generated test files.

What it helps with

  • generate full test coverage for existing source files
  • verify edge cases including zero, empty lists, and boundary inputs
  • mock external network or database calls in integration tests

Example prompts for the agent

  • Write comprehensive tests for user_service.py using our current framework
  • Add boundary and error test cases for the billing calculations
  • Generate integration tests covering state changes across the order workflow

How to install test-writer

1Skills CLI (Vercel)

npx skills add vstorm-co/pydantic-deepagents --skill test-writer -a claude-code

2Manually: put the files in place

~/.claude/skills/test-writer/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/test-writer/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about test-writer

How to install test-writer in Claude Code?

Run npx skills add vstorm-co/pydantic-deepagents --skill test-writer -a claude-code or place the file directly at ~/.claude/skills/test-writer/SKILL.md.

What does test-writer do?

It instructs Claude Code to inspect public methods, adopt existing test conventions, and write suites covering normal paths, edge inputs, exceptions, and integrations.

What naming convention does test-writer enforce?

It formats test functions according to the test_<what>_<condition>_<expected> template, allocating one function per behavior.

Source text

SKILL.md · MIT
---
name: test-writer
description: "Generate comprehensive test suites for existing code"
tags: [testing, code-quality]
version: "1.0.0"
---

# Test Writer

Generate comprehensive tests for the target code.

## Process

1. Read the source code to understand all public functions/methods
2. Identify the testing framework already used in the project (pytest, unittest, etc.)
3. Follow existing test patterns and conventions in the project
4. Write tests covering all categories below

## Coverage Strategy

### Happy Path
- Normal inputs with expected outputs
- All public methods/functions

### Edge Cases
- Empty inputs (empty string, empty list, None)
- Boundary values (0, -1, max int)
- Single element collections

### Error Cases
- Invalid input types
- Missing required arguments
- Network/IO failures (mock external calls)

### Integration
- Multiple functions working together
- State changes across calls

## Guidelines

- One test function per behavior, not per method
- Descriptive test names: `test_<what>_<condition>_<expected>`
- Use fixtures for shared setup
- Mock external dependencies (APIs, databases, filesystem)
- Assert specific values, not just truthiness
- Test both return values and side effects

© vstorm-co · MIT · vstorm-co/pydantic-deepagents

Similar skills

All skills for Testing and QA →

test-writer by other authors comes first.

test-writer leonardomso test-writer generates Vitest test suites for code examples in JavaScript concept documentation pages. Helps verify documentation snippets before publishing. CX Codex +1 358installs test-writer sno-ai test-writer — a skill for Claude Code writes and improves test code. It activates when Codex is asked to add or change tests. CX Codex +1 ★ 869repo stars improving-test-suites b-mendoza improving-test-suites is a Claude Code skill that reviews test suites and focuses them on important behavior. It activates for requests to trim, rewrite, review, or strengthen tests. CX Codex +1 119installs test-writer-fixer Community test-writer-fixer creates missing test suites, runs test runners after code changes, and updates failing checks. It keeps your test suite aligned with refactored logic. CX Codex ★ 2,003repo stars agent-5-test-writer happycapy-ai agent-5-test-writer writes tests for Agent 4's code changes: picks the repo's framework, adds regression and unit tests, runs the full suite, and records results in ./workspace/test-changes.json. CX Codex ★ 138repo stars gjalla-test-audit gjalla gjalla-test-audit audits test suites to uncover false confidence, over-mocked logic, and assertions that conceal code regressions. Helpful when hardening test suites before major updates. CX Codex +1 888installs dart-generate-test-mocks dart-lang dart-generate-test-mocks — a Dart testing skill: the agent injects external services through constructors, generates mock classes with mockito and build_runner, then writes the unit test. CX Codex +1 20,300installs Quality Assurance daffy0208 Quality Assurance sets up testing strategies, enforces code quality rules, and guards phase transitions. It structures your test pyramid and inspects code before release. CX Codex +1 206installs

From the same set14

The whole set →
git-workflow git-workflow standardizes Git operations for Claude Code, covering commit messages, feature branches, PRs, and rebase conflict handling. CX Codex +1 ★ 1,125repo stars refactor The refactor skill guides code changes that improve structure while preserving external behavior. Use it to break up long functions, remove duplication, or make naming consistent. CX Codex +1 ★ 1,125repo stars code-review code-review is a Claude Code skill that checks code for bugs, security issues, style, and performance problems. Ask for a review to run it. CX Codex +1 ★ 1,125repo stars skill-creator skill-creator is a Claude Code skill that turns a recurring task from a conversation into reusable instructions for an AI agent. It captures workflows for future sessions. CX Codex +1 ★ 1,125repo stars environment-discovery The environment-discovery skill trains Claude Code to systematically explore unfamiliar environments before making changes. It checks file structure, data formats, available tools, and existing code—saving debugging time. CX Codex +1 ★ 1,125repo stars report-writing report-writing provides guidelines for structuring analytical reports, drafting stand-alone executive summaries, and citing sources. CX Codex +1 ★ 1,125repo stars build-and-compile The build-and-compile skill helps Claude Code choose build commands from a project's files and troubleshoot compiler or dependency errors. Use it when a build fails or the project setup is unclear. CX Codex +1 ★ 1,125repo stars research-methodology research-methodology — a skill with methodology for structured research: three-phase search, source reliability ranking, and note-taking with confidence levels for each finding. CX Codex +1 ★ 1,125repo stars

Project sponsors

Companies that keep this analytics open