gsd-add-tests

Generate unit and end-to-end tests from UAT criteria and phase documents.

Updated May 15, 2026
One-click install
npx skills add https://github.com/Pear-Commerce/pear-ai-skills --skill gsd-add-tests-pear-commerce
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsd-add-tests
Source: https://github.com/Pear-Commerce/pear-ai-skills/tree/main/skills/gsd-add-tests
Command: npx skills add https://github.com/Pear-Commerce/pear-ai-skills --skill gsd-add-tests-pear-commerce

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually writing tests for completed project phases is time-consuming, often inconsistent, and frequently fails to align with original UAT criteria and implementation details. This skill automates the entire test generation process to ensure tests are accurate, comprehensive, and match the phase's intended functionality.

Core Features & Use Cases

  • UAT-Aligned Test Creation: Generates both unit and end-to-end tests directly from a phase's UAT criteria, implementation files, SUMMARY.md, CONTEXT.md, and VERIFICATION.md.
  • TDD-Compliant Workflow: Follows RED-GREEN testing conventions to produce properly structured, valid tests that correctly validate implementation logic.
  • Use Case: After completing a feature phase for a customer-facing web app, use this skill to automatically generate matching unit tests for backend API logic and E2E tests for user registration flows, reducing test creation time from hours to minutes.

Quick Start

Use the gsd-add-tests skill to generate unit and E2E tests for your most recently completed GSD 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 auto-generate unit and e2e tests from UAT criteria?

You can auto-generate unit and e2e tests from UAT criteria by using a GSD workflow skill that reads your phase context and verification documents to produce TDD-compliant test files. This eliminates manual test creation effort by directly mapping acceptance criteria to test logic.

What files do I need to generate tests for a completed project phase?

To generate tests for a completed project phase, you need the phase's UAT criteria, implementation files, SUMMARY.md, CONTEXT.md, and VERIFICATION.md. These documents provide the test specifications and implementation logic required to produce valid test coverage.

Does automated test generation follow RED-GREEN TDD conventions?

Automated test generation follows RED-GREEN TDD conventions to ensure properly structured, valid tests. It produces test files that correctly validate implementation logic and align with the phase's intended functionality and acceptance criteria.

Can I generate both unit tests and end-to-end tests for backend API logic?

Yes, you can generate both unit tests and end-to-end tests for backend API logic. The test generation process creates matching unit tests for backend logic and E2E tests for user flows, reducing comprehensive test creation time from hours to minutes.

When should I generate tests for completed GSD workflow phases?

You should generate tests for completed GSD workflow phases when implementation is finalized and UAT criteria are available. Applying test generation at this stage ensures tests accurately match the phase's intended functionality without disrupting active development.

Why do manually written tests fail to align with implementation details?

Manually written tests often fail to align with implementation details because they are time-consuming and inconsistent. Automating the process ensures tests are accurate, comprehensive, and directly match the phase's original UAT criteria and implementation files.