---
name: Add Tests
slug: add-tests
category: Quality
description: Add Tests generates unit and E2E tests for a completed phase based on UAT criteria and implementation. Use it to classify implementation files, approve a test plan, and commit tests following RED-GREEN conventions.
github: "https://github.com/open-gsd/gsd-core/tree/next/skills/gsd-add-tests"
language: JavaScript
stars: 8257
forks: 573
install: "npx degit https://github.com/open-gsd/gsd-core/tree/next/skills/gsd-add-tests ~/.claude/skills/gsd-add-tests"
installs_to: ~/.claude/skills/gsd-add-tests
source_path: skills/gsd-add-tests/SKILL.md
collection_size: 25
category_size: 1354
collection_url: "https://dirskills.com/collections/open-gsd/gsd-core"
added: 2026-08-15T06:50:58.333Z
last_synced: 2026-08-15T06:50:58.333Z
canonical_url: "https://dirskills.com/skills/add-tests"
---

# Add Tests

Add Tests generates unit and E2E tests for a completed phase based on UAT criteria and implementation. Use it to classify implementation files, approve a test plan, and commit tests following RED-GREEN conventions.

**Install:**

```bash
npx degit https://github.com/open-gsd/gsd-core/tree/next/skills/gsd-add-tests ~/.claude/skills/gsd-add-tests
```

## README

<objective>
Generate unit and E2E tests for a completed phase, using its SUMMARY.md, CONTEXT.md, and VERIFICATION.md as specifications.

Analyzes implementation files, classifies them into TDD (unit), E2E (browser), or Skip categories, presents a test plan for user approval, then generates tests following RED-GREEN conventions.

Output: Test files committed with message `test(phase-{N}): add unit and E2E tests from add-tests command`
</objective>

<execution_context>
@~/.claude/gsd-core/workflows/add-tests.md
</execution_context>

<context>
Phase: $ARGUMENTS

@.planning/STATE.md
@.planning/ROADMAP.md
</context>

<process>
Execute end-to-end.
Preserve all workflow gates (classification approval, test plan approval, RED-GREEN verification, gap reporting).
</process>
