Files
msd-core/commands/gsd/add-tests.md
Tom Boucher 1452b1275b fix(dispatcher): rename Task→Agent in allowed-tools, workflow prose, and agent tools frontmatter
Fixes #3168

The Claude Code subagent dispatcher tool is named `Agent` (with `subagent_type`
parameter). The `Task*` namespace (TaskCreate, TaskList, TaskGet, TaskUpdate,
TaskOutput, TaskStop) is the separate task-tracker. GSD's commands, workflows,
and agents were partially migrated and still referenced `- Task` / `Task(` in
55 files, causing orchestrators to silently fall back to inline execution when
no `Task` tool appeared on their tool surface.

Changes:
- `commands/gsd/*.md` allowed-tools: replaced `- Task` with `- Agent` in 24
  files; removed duplicate `- Task` from autonomous.md (already had `- Agent`)
- `get-shit-done/workflows/*.md`: replaced dispatcher `Task(` → `Agent(` in
  29 workflow files (~133 call sites); TaskCreate/List/Get/Update/Output/Stop
  left untouched
- `agents/gsd-debug-session-manager.md`: replaced `Task` → `Agent` in tools
  frontmatter (the only remaining agent with the wrong name)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-06 15:00:08 -04:00

1.3 KiB

name, description, argument-hint, allowed-tools, argument-instructions
name description argument-hint allowed-tools argument-instructions
gsd:add-tests Generate tests for a completed phase based on UAT criteria and implementation <phase> [additional instructions]
Read
Write
Edit
Bash
Glob
Grep
Agent
AskUserQuestion
Parse the argument as a phase number (integer, decimal, or letter-suffix), plus optional free-text instructions. Example: /gsd-add-tests 12 Example: /gsd-add-tests 12 focus on edge cases in the pricing module
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

<execution_context> @~/.claude/get-shit-done/workflows/add-tests.md </execution_context>

Phase: $ARGUMENTS

@.planning/STATE.md @.planning/ROADMAP.md

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