add-tests

Add unit and integration tests to fill coverage gaps in source repositories.

1|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/mattbobambrose/mattbobambrose-claude-skills --skill add-tests-mattbobambrose
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-tests
Source: https://github.com/mattbobambrose/mattbobambrose-claude-skills/tree/main/plugins/testing/skills/add-tests
Command: npx skills add https://github.com/mattbobambrose/mattbobambrose-claude-skills --skill add-tests-mattbobambrose

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Repeatedly finding and filling gaps in a codebase's test coverage is time-consuming and error-prone, and many projects lack focused tests for edge cases, serialization, and public APIs. This Skill automates discovery of coverage gaps and produces tests that follow the project's existing conventions so changes are reliable and maintainable.

Core Features & Use Cases

  • Project stack detection: Reads build and manifest files to identify language, test framework, and directory layout.
  • Coverage gap discovery: Scans source and test files to find public methods, edge cases, and serialization paths without tests.
  • Conservative test generation: Writes tests alongside existing tests, matches test style and helpers, runs the project's test command, and reports all added tests grouped by file.
  • Use cases: Increase unit test coverage before a release, add regression tests for bug fixes, and create serialization round-trip tests for DTOs.

Quick Start

Run the add-tests skill to analyze the repository, identify uncovered public functions and edge cases, generate tests that match project conventions, execute the test suite to verify passing builds, and produce a file-by-file report of tests added.

Frequently Asked Questions about add-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically generate unit tests to fill gaps in code coverage?

To generate unit tests and fill coverage gaps, this skill scans your source files and existing tests to discover uncovered public APIs and edge cases, then writes matching tests that follow your project's conventions.

Can I add serialization round-trip tests for DTOs automatically?

Yes, you can add serialization round-trip tests automatically. The skill identifies serialization paths in your codebase and generates validation tests that match your existing test framework and directory layout.

How do I add regression tests that match my project's existing test conventions?

You can add regression tests matching your conventions by running this skill. It reads your build files to detect the test framework, writes tests alongside existing ones, and runs the project's test command to verify passing builds.

What is the best way to find missing edge-case tests across a source code repository?

The best way to find missing edge-case tests is through coverage gap discovery. This skill scans source and test files to pinpoint public methods and edge-case validation paths that lack tests, then outputs a grouped report of added tests.

Does the test generation process work across common tech stacks?

Yes, test generation works across common tech stacks. The skill reads build files and manifests to identify your language, test framework, and directory layout, applying to repositories where build files and test conventions are present.

What happens if a generated unit test fails during the build verification?

When a generated unit test fails during build verification, the skill executes the project's test command to verify passing builds and reports the results, ensuring only validated tests that match project conventions are added.