From my-claude
3-Phase Sprint workflow — design → execute → review with user interaction at decision points
npx claudepluginhub sehoon787/my-claude --plugin my-claudeThis skill uses the workspace's default tool permissions.
<Purpose>
Guides pre-coding design process: explore context, challenge assumptions, propose approaches, present for approval, set up git worktrees. Enforces HARD-GATE against premature implementation.
Proposes 2-3 implementation approaches with trade-offs, recommends one, obtains explicit user approval, and writes PLAN.md. Enforces SPEC.md prerequisite via gates.
Orchestrates spec-driven development workflow (Requirements → Design → Tasks → Implementation) with approval gates. Activates for structured feature planning or 'use spec-driven'.
Share bugs, ideas, or general feedback.
<Use_When>
<Do_Not_Use_When>
<Why_This_Exists> End-to-end feature work fails silently in three predictable ways:
gstack-sprint enforces the three-phase contract: user-confirmed design → automated execution via ralph → user-confirmed review against the design doc. Each phase boundary requires explicit user confirmation before the next phase begins. </Why_This_Exists>
Determine scale from the user's request:
Invoke /plan-eng-review (mandatory for all scales) to produce a structured engineering design document
Surface all key decisions using AskUserQuestion for each ambiguity:
Wait for user to confirm "design complete" before transitioning to Phase 2. Do not proceed to Phase 2 on your own judgment.
Skip condition: If the user's original message already confirms design is done ("design is already done, just build it", "design is done, just build it") → skip Phase 1 entirely and proceed to Phase 2 with the provided design context
Fallback (gstack not installed): Use the OMC planner agent (opus) to produce a structured plan. Present the plan to the user and wait for their confirmation before proceeding.
Phase 2 runs as an independent skill invocation, not nested within gstack-sprint's prompt context. Boss invokes Skill(skill: "ralph") for this phase.
Invoke the ralph skill — ralph internally selects its execution strategy based on scale:
ralph Step 7a (inside ralph): attempts gstack /review for code review — non-blocking, skips silently if gstack is not installed or /review fails
ralph Step 7b (inside ralph): architect/critic verification — always runs regardless of Step 7a result
Agent teams for complex work (ralph delegates to executor + code-reviewer + test-engineer in parallel as needed)
Fallback (gstack not installed): ralph's existing verification flow runs unchanged — no behavior difference from ralph's perspective
Phase 2 completion: ralph signals completion via its standard cancel/completion flow. After ralph completes, gstack-sprint resumes Phase 3.
Find design doc: Search ~/.gstack/projects/ for the most recent design file matching the current repo.
REPO=$(basename "$(git rev-parse --show-toplevel 2>/dev/null)")
ORG=$(git remote get-url origin 2>/dev/null | sed 's|.*[:/]\([^/]*\)/.*|\1|' || echo "unknown")
DESIGN_DOC=$(ls -t ~/.gstack/projects/${ORG}-${REPO}/*-design-*.md 2>/dev/null | head -1)
If no design doc is found, fall back to comparing against the original user request and any notes captured during Phase 1.
Read the design doc in full, then read all files implemented during Phase 2
Compare implementation against design: For each item in the design doc, determine whether it was implemented, partially implemented, or skipped. Note any implementation that was added beyond the design scope.
Present a comparison table to the user:
| Design Item | Status | Notes |
|---|---|---|
| Feature A | Implemented | |
| Feature B | Partial | Missing edge case X |
| Feature C | Not implemented | Descoped during Phase 2 |
| Bonus: Feature D | Added (not in design) | Confirm or revert |
AskUserQuestion with the following options:
If "needs improvement" or "partial fix": Re-enter Phase 2 with a targeted correction delta. Pass the specific gaps to ralph rather than re-running the full implementation. After correction, return to Phase 3 Step 1.
If "approve": Suggest next steps — /ship or manual commit. Do not proceed autonomously.
Optional follow-up chain (present as options, do not auto-invoke):
Fallback (gstack not installed): Read the implemented files directly, compare against the original user request and Phase 1 notes, and present the comparison to the user for their review.
<Escalation_And_Stop_Conditions>
| Design Item | Status | Notes |
|---|---|---|
| User auth via JWT | Implemented | |
| Refresh token rotation | Implemented | |
| Rate limiting (100 req/min) | Partial | Middleware added, limit not configurable |
| Audit log for auth events | Not implemented | Descoped during execution |
| OpenAPI schema update | Implemented |
3 items fully implemented, 1 partially implemented, 1 not implemented. How would you like to proceed? (approve / needs improvement / partial fix)
Why good: Reads the actual design doc, presents concrete status per item, asks before proceeding.
</Good>
<Bad>
Skipping Phase 1 and jumping straight to implementation:
"Understood, I'll start implementing right away." [immediately starts writing code without design confirmation]
Why bad: Phase 1 exists to align on design before implementation. Skipping it risks building the wrong thing.
</Bad>
<Bad>
Claiming Phase 3 complete without reading the design doc:
"Implementation is complete. All features are working correctly."
Why bad: Did not read the design doc, did not produce a comparison table, did not ask the user for confirmation. This is completion theater.
</Bad>
</Examples>
<Final_Checklist>
- [ ] Phase 1: Design doc produced and user confirmed "design complete" (or Phase 1 explicitly skipped per user request)
- [ ] Phase 2: ralph invoked and completed with its own verification (7a + 7b)
- [ ] Phase 3: Design doc located (or fallback to original request)
- [ ] Phase 3: Comparison table presented to user
- [ ] Phase 3: User selected "approve", "needs improvement", or "partial fix"
- [ ] If "needs improvement": correction delta passed to ralph, Phase 3 re-run after correction
- [ ] If "approve": next steps suggested (/ship or manual commit), no autonomous action taken
</Final_Checklist>