skills/core/gstack-sprint/SKILL.md
3-Phase Sprint workflow — design → execute → review with user interaction at decision points
npx skillsauth add sehoon787/my-claude gstack-sprintInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
<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>
<Steps>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>
testing
Vault health check — workflow pattern analysis, profile sync, session gap recovery, persona rule proposals
tools
Initialize, manage, and search the per-project .briefing/ vault. Obsidian-compatible persistent knowledge base.
data-ai
Advanced Boss orchestration patterns — Agent Teams leadership, 6-section delegation template, Skill vs Agent conflict resolution, Guardian pattern, and AI-slop detection.
testing
Create, edit, improve, or audit AgentSkills. Use when creating a new skill from scratch or when asked to improve, review, audit, tidy up, or clean up an existing skill or SKILL.md file. Also use when editing or restructuring a skill directory (moving files to references/ or scripts/, removing stale content, validating against the AgentSkills spec). Triggers on phrases like "create a skill", "author a skill", "tidy up a skill", "improve this skill", "review the skill", "clean up the skill", "audit the skill".