self-test-generator

Generate behavior-based tests from project specifications for Jest and PyTest.

1|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/hohai99/antigravity-skills --skill self-test-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: self-test-generator
Source: https://github.com/hohai99/antigravity-skills/tree/main/.agent/skills/self-test-generator
Command: npx skills add https://github.com/hohai99/antigravity-skills --skill self-test-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill generates behavior-based tests directly from project specifications, avoiding reliance on code intuition.

Core Features & Use Cases

  • Spec-driven test generation: Create tests from explicit spec clauses, ensuring traceability to the source document.
  • Framework-agnostic output: Produce tests compatible with common frameworks like Jest, PyTest, and others.
  • Use Case: After implementing a feature, generate a complete test suite that validates behavior against the spec.

Quick Start

After completing a task, run the Self Test Generator to output a test suite that references the source spec clauses. Review and adapt the generated tests for your project.

Frequently Asked Questions about self-test-generator

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

FAQPage Schema
How do I generate behavior-based tests from specifications?

Yes, you can generate spec-driven tests for frameworks like Jest and PyTest. The Skill produces framework-agnostic output, creating deterministic, isolated test suites compatible with common testing frameworks directly from your specifications.

When do I need to generate tests from specs instead of code?

You need to generate tests from specs when you want to avoid reliance on code intuition and ensure traceability. Generating behavior-based tests from explicit spec clauses validates software behavior against the original requirements rather than implementation details.

How do I automate test generation after task implementation?

To automate test generation after task implementation, run a spec-driven generator to produce a complete test suite from project specifications. The generated tests enforce traceability by referencing the source spec clauses to validate the implemented behavior.

What is spec-driven test generation and how does it work?

Spec-driven test generation creates behavior-based tests directly from explicit specification clauses. It works by parsing project specs to output deterministic, isolated tests, ensuring traceability by referencing the source document within the test suite.

Does spec-driven test generation work with existing project specifications?

Yes, spec-driven test generation works with existing project specifications by extracting explicit spec clauses to produce tests. It operates framework-agnostically to output suites for Jest, PyTest, and others, enforcing traceability to the source spec document.