code-generate-tests

Generate tests for untested functions and edge cases.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/sirn/dotfiles --skill code-generate-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-generate-tests
Source: https://github.com/sirn/dotfiles/tree/main/var/agents/skills/code-generate-tests
Command: npx skills add https://github.com/sirn/dotfiles --skill code-generate-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It identifies untested functions and edge cases in a codebase and generates validation tests to improve reliability and reduce regression risk.

Core Features & Use Cases

  • Automatically generate tests for untested functions and edge cases.
  • Align with existing test frameworks to run new tests and report coverage changes.
  • Use during refactors or feature additions to quickly close gaps in test coverage and ensure stability.

Quick Start

Run this skill against the target codebase to automatically create and execute new tests for untested paths.

Frequently Asked Questions about code-generate-tests

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

FAQPage Schema
How do I automatically generate tests for untested functions in my codebase?

To automatically generate tests for untested functions, you can run this skill against your target codebase to identify untested paths and create new test files that align with your existing test framework.

What is the best way to improve code coverage when adding new modules?

The best way to improve code coverage when adding new modules is to auto-generate validation tests for untested paths and edge cases, ensuring the new tests integrate with your project test runner and pass successfully.

Can I use auto-generated tests to detect edge cases during a code refactor?

Yes, you can use auto-generated tests to detect edge cases during a code refactor by applying the skill to modified code, which identifies risky untested areas and creates appropriate fixtures to close coverage gaps.

Does the generated test code align with my existing test frameworks?

The generated test code aligns with existing test frameworks by identifying test gaps and creating appropriate fixtures that integrate directly with your project test runner to execute and report coverage changes.

How do I create test fixtures for untested paths without manual setup?

You can create test fixtures for untested paths without manual setup by running the skill, which automatically detects test gaps, generates the necessary fixtures, and ensures the new tests pass within your project environment.