test-gen

Generate and verify JavaScript or TypeScript tests matching existing frameworks.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/mferris77/SpringBoard --skill test-gen-mferris77
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-gen
Source: https://github.com/mferris77/SpringBoard/tree/main/vscode-citadel-harness/skills/test-gen
Command: npx skills add https://github.com/mferris77/SpringBoard --skill test-gen-mferris77

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation and verification of tests that match a project's existing test framework and style, ensuring tests cover happy paths, edge cases, and error paths and that generated tests run green before delivery.

Core Features & Use Cases

  • Framework detection: Inspect project configs and nearby test files to determine runner, assertion style, file naming, and mocking patterns.
  • Structured test generation: Produce one test file per source file with organized describe/it blocks covering happy path, edge cases, and error paths while minimizing mocks.
  • Execution and iteration: Run the generated tests, repair failing assertions up to three iterations, and mark unrecoverable tests as skipped with a documented reason.
  • Use Case: Add comprehensive, repository-conformant tests for auth middleware, utility modules, or exported libraries without changing source code.

Quick Start

Use test-gen to generate and verify tests for the module at src/auth/session.ts.

Frequently Asked Questions about test-gen

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

FAQPage Schema
How do I generate unit tests that match my project's existing test runner and conventions?

To generate unit tests matching existing conventions, the Skill inspects project configurations and nearby test files to detect the test runner, assertion style, and mocking patterns, then produces structured tests that align with your repository's framework.

Can I automatically generate Vitest or Jest tests for happy paths and edge cases?

Yes, you can automatically generate Vitest or Jest tests for happy paths, edge cases, and error paths. The Skill creates one test file per source file with organized describe and it blocks while minimizing mocks to ensure accurate coverage.

What happens if automatically generated tests fail during execution?

When generated tests fail during execution, the Skill runs the tests, repairs failing assertions up to three iterations, and marks unrecoverable tests as skipped with a documented reason, ensuring the delivered tests run green.

Does test generation work with both JavaScript and TypeScript repositories?

Test generation works with JavaScript and TypeScript repositories by detecting the existing test runner and repository patterns. It applies framework detection to ensure generated tests match the project's specific configuration and file naming conventions.

What is the best way to add comprehensive tests without modifying my source code?

The best way to add comprehensive tests without modifying source code is to generate repository-conformant tests for exported functions. The Skill covers auth middleware or utility modules with verified tests that pass without changing the underlying source.

Why are some generated tests marked as skipped instead of passing?

Generated tests are marked as skipped when source bugs prevent passing tests. After three repair iterations, the Skill documents the specific reason for skipping, ensuring unrecoverable test failures are transparent rather than silently ignored.