scaffold_tests

Generate Happy Path, Edge Case, and Error test stubs for existing code.

41|10|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/krishnakanthb13/antigravity_global_skills --skill scaffold-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scaffold_tests
Source: https://github.com/krishnakanthb13/antigravity_global_skills/tree/main/scaffold_tests
Command: npx skills add https://github.com/krishnakanthb13/antigravity_global_skills --skill scaffold-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generates unit and regression test scaffolds for existing code to accelerate test coverage and ensure early feedback during development.

Core Features & Use Cases

  • Automatically creates three test stubs per target: Happy Path, Edge Case, and Error to outline expected behavior.
  • Detects common test frameworks and scaffolds files in a conventional tests/ or alongside source.
  • Supports quick iteration for refactoring, legacy code, and new modules across projects.

Quick Start

Provide the target source file path and optional test framework, then run the scaffold_tests skill to generate Happy Path, Edge Case, and Error test stubs.

Frequently Asked Questions about scaffold_tests

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

FAQPage Schema
How do I generate unit test scaffolds for existing legacy code?

To generate unit test scaffolds for existing legacy code, you provide the target source file path and an optional test framework. The tool then automatically creates Happy Path, Edge Case, and Error test stubs to accelerate test coverage.

What is the best way to create regression test stubs for new modules?

The best way to create regression test stubs for new modules is using an automated scaffolding tool. It detects project conventions and places Happy Path, Edge Case, and Error test stubs alongside the source or in a tests/ directory to fast-track coverage.

Can I specify a test framework when generating test stubs?

Yes, you can specify an optional test framework when generating test stubs. The scaffolding process detects common test frameworks and generates the Happy Path, Edge Case, and Error files according to your project's conventional directory structure.

How does scaffolding test files work during a code refactor?

Scaffolding test files during a code refactor works by taking a target source file path and generating three structured test stubs. These Happy Path, Edge Case, and Error stubs outline expected behavior to ensure quick iteration and early feedback.

Do I need a specific directory structure to auto-generate unit and regression tests?

You do not need a specific directory structure to auto-generate unit and regression tests. The tool detects common project conventions and places the generated Happy Path, Edge Case, and Error stubs either alongside the source file or directly in a tests/ directory.