phase
Phased Software Engineering Execution
Task
$ARGUMENTS
Reference
Subagent execution follows the Ralph pattern. Each phase workspace is a self-contained Ralph environment: CLAUDE.md (agent instructions), prd.json (story state machine), progress.txt (learning persistence). Subagents are autonomous — they read their workspace instructions and execute independently.
The Sugar library (src/lib/) is the source of truth for all execution logic. Skills delegate to sugar CLI commands for workspace management, story state, consensus, and pattern propagation.
Prompt reinforcement
Use prompt repetition at every decision boundary: state the task, provide context, give the instruction, restate context briefly, repeat the instruction. Apply at skill level (restate $ARGUMENTS before each phase), subagent level (each workspace CLAUDE.md repeats the task), and per-story (restate acceptance criteria before implementing).
More from scando1993/sugar
worktree
Git worktree lifecycle management. Use when creating, navigating, syncing, or cleaning up git worktrees for parallel development.
12ralph
Convert PRDs to prd.json format for the Ralph autonomous agent system. Use when you have an existing PRD and need to convert it to Ralph's JSON format. Triggers on: convert this prd, turn this into ralph format, create prd.json, ralph json.
12respond-review
Guidance for receiving and responding to code review feedback. Use when addressing PR review comments, incorporating reviewer suggestions, or managing review discussions.
12tdd
Test-driven development with strict RED-GREEN-REFACTOR enforcement. Enforces: write failing test first, minimal implementation, then refactor. Use when adding new features or fixing bugs.
11debug
Systematic debugging with hypothesis-driven investigation. Use when diagnosing bugs, errors, or unexpected behavior. Phases: Reproduce, Hypothesize, Investigate, Fix, Verify, Regression.
11prd
Generate a Product Requirements Document for a feature. Use when planning a feature, starting a project, or when asked to create a PRD. Triggers on: create a prd, write prd for, plan this feature, requirements for, spec out.
11