Skip to content
Development
Skill

/test-writer

Generate comprehensive test suites for existing code

From plugin
pydantic-deepagents
1.1k14 skills

Claude Code

$ npx -y skills add vstorm-co/pydantic-deepagents --skill test-writer --agent claude-code

SKILL.md

test-writer.SKILL.md
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
Ships withpydantic-deepagents

Open-source, self-hosted Claude Code - a terminal AI assistant and the Python framework behind it. Tool-calling, sandboxed execution, multi-agent teams, skills, checkpoints, unlimited context - on Pydantic AI, any model.

Stars on GitHub

Momentum

stars in total
1.1k
Star history of vstorm-co/pydantic-deepagents on GitHub, a chart by star-history.com

Other skills on pydantic-deepagents.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills12d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about test-writer.

Which coding agents can use test-writer?
test-writer installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.