upstack-run
Skill17 starsChanged 8 months agoMITView on GitHub
Full sprint flow: /plan -> /execute -> /validate -> /review -> /ship-pr. Always runs /plan (which auto-detects small follow-ups via fast-path). Loops review/execute until clean. End result is a pushed PR.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
If output shows UPGRADE_AVAILABLE <old> <new>: read ~/.claude/skills/upstack/skills/upgrade/SKILL.md and follow the "Inline upgrade flow" …
- Distinctive: line 28
Run /execute against the approved plan.
- Very specific: line 32
Run /validate. Walk through every planned path manually, capture evidence (screenshots, API examples) to evidence/.
- Distinctive: line 34
IMPORTANT: Do NOT skip /validate when UI files are in the diff.
- Distinctive: line 39
If validation finds gaps:
- Distinctive: line 46
Run /review. Senior engineer code review against the base branch.
- Distinctive: line 48
If review finds CRITICAL or SECURITY findings:
- Very specific: line 55
Run /ship-pr. This step MUST execute — it handles documentation, version bump, and PR creation.
- Distinctive: line 60
Abort on hard failure: If tests cannot pass, gh is unavailable, or the branch is in a bad state, stop and report.
- Distinctive: line 61
No silent skips: Always announce which step you are entering and whether any steps were skipped or looped.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Update Check (run first)
_UPD=$(~/.claude/skills/upstack/bin/upstack-update-check 2>/dev/null || .claude/skills/upstack/bin/upstack-update-check 2>/dev/null || true)
[ -n "$_UPD" ] && echo "$_UPD" || trueIf output shows UPGRADE_AVAILABLE <old> <new>: read ~/.claude/skills/upstack/skills/upgrade/SKILL.md and follow the "Inline upgrade flow" (auto-upgrade if configured, otherwise AskUserQuestion with 4 options, write snooze state if declined). If JUST_UPGRADED <from> <to>: tell user "Running upstack v{to} (just updated!)" and continue.
Upstack Run
Chains the full sprint flow into a single run. The end result is a pushed PR.
Step 1: Plan
Always run /plan. The /plan skill has its own Fast-Path Check that detects when a plan already exists in context and the new request is a small follow-up — in that case it skips full ceremony and produces a lightweight amendment. If the change is complex, /plan runs its full flow. Either way, do NOT proceed until /plan completes.
Step 2: Execute
Run /execute against the approved plan. Strict Red/Green TDD: write failing tests, implement until green, atomic commits.
Step 3: Validate
Run /validate. Walk through every planned path manually, capture evidence (screenshots, API examples) to evidence/.
IMPORTANT: Do NOT skip /validate when UI files are in the diff. "Playwright tests pass" is NOT a substitute for /validate. Tests verify assertions; validate produces evidence (screenshots, API examples) for the PR and catches visual/UX issues that assertions miss.
If validation finds gaps:
- Amend the plan with the gaps.
- Loop back to Step 2 (/execute) to close them.
- Re-validate. Maximum 3 loops before stopping and reporting to the user.
Step 4: Review
Run /review. Senior engineer code review against the base branch.
If review finds CRITICAL or SECURITY findings:
- Automatically fix the flagged issues (treat them as if the user said "fix all").
- Loop back to Step 2 (/execute) for the fixes.
- Re-run /review. Maximum 3 review/execute loops before stopping and reporting to the user.
Step 5: Ship (MANDATORY — do not skip)
Run /ship-pr. This step MUST execute — it handles documentation, version bump, and PR creation. All three are required outputs of /upstack-run. The version bump question is the only interactive pause. If you have reached this step, do not end the conversation without completing /ship-pr.
Guardrails
- Max loops: 3 for validate gaps, 3 for review findings. If still failing after 3, stop and report what remains.
- Abort on hard failure: If tests cannot pass, gh is unavailable, or the branch is in a bad state, stop and report. Do not retry endlessly.
- No silent skips: Always announce which step you are entering and whether any steps were skipped or looped.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

