gsd-add-tests

Generate unit and E2E tests from phase documentation using RED-GREEN conventions.

Updated Jan 28, 2025
One-click install
npx skills add https://github.com/aslaii/dotfiles --skill gsd-add-tests-aslaii
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsd-add-tests
Source: https://github.com/aslaii/dotfiles/tree/main/claude/skills/gsd-add-tests
Command: npx skills add https://github.com/aslaii/dotfiles --skill gsd-add-tests-aslaii

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually creating unit and end-to-end tests for completed software phases is time-consuming and error-prone; this Skill automates the generation process from design and implementation specs to improve test coverage and consistency.

Core Features & Use Cases

  • Generate test plans that classify implementation files into unit (TDD) and E2E (browser) categories based on SUMMARY.md, CONTEXT.md, and VERIFICATION.md.
  • Produce unit tests (TDD) and E2E tests, following RED-GREEN conventions, with structured commit messages.
  • Support gated workflows with classification approvals, test plan approvals, RED-GREEN verification, and gap reporting.

Quick Start

Provide the phase name and any optional instructions to generate tests for that phase.

Frequently Asked Questions about gsd-add-tests

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

FAQPage Schema
How do I generate unit and E2E tests from phase specs?

You can generate unit and E2E tests by providing a phase name to analyze SUMMARY.md, CONTEXT.md, and VERIFICATION.md files. The tool classifies implementation files into TDD or browser categories, proposes a test plan, and generates tests following RED-GREEN conventions.

What is the RED-GREEN convention for TDD test generation?

The RED-GREEN convention is a test-driven development process where tests are initially written to fail (RED) before implementation, then made to pass (GREEN). This Skill automates generating tests following these conventions from your phase specifications.

Can I classify implementation files into unit and E2E categories automatically?

Yes, you can automatically classify implementation files into unit (TDD) and E2E (browser) categories. The tool analyzes your phase specifications to propose a categorized test plan for your approval before generating the tests.

How do I automate test creation for completed software phases?

You automate test creation for completed phases by inputting the phase name and optional instructions. The tool reads verification and context files, plans the tests, and commits them with structured messages like test(phase-N): add unit and E2E tests.

Does the test generation process support gated workflow approvals?

Yes, the test generation process supports gated workflows with classification approvals and test plan approvals. It preserves workflow gates throughout the generation cycle and provides RED-GREEN verification and gap reporting.