"Superpowers owns the implementation loop, GStack owns everything before and after it. Context Guard keeps the session clean."
A Claude Code plugin that integrates Superpowers and GStack into one workflow — with skill routing, automatic context management, and project auto-configuration. Already have an existing project? Run /adapt and it analyzes your setup, preserves your CLAUDE.md, and adds routing — so you can jump right in.
Status: Work in Progress — Actively developed. Contributions, feedback, and ideas are very welcome. See Contributing.
If you've installed both Superpowers and GStack, you've probably run into these issues:
- Claude picks the wrong framework for the task (GStack's
/investigatewhen you wanted Superpowers' debugging) - No clear handoff between planning (GStack) and implementation (Superpowers)
- Context rot in long sessions — quality degrades as the context window fills up
- You don't know which skills to use when, or which to skip for your project type
This project solves all of that with routing rules, automatic context management, and a structured 4-phase workflow.
Every comparison article says "use both" but nobody explains how. This project fills that gap:
| Framework | Strengths | Phase |
|---|---|---|
| GStack (Garry Tan) | Product thinking, architecture review, QA, security, shipping | Planning, Review, Ship |
| Superpowers (Jesse Vincent) | TDD, structured coding, debugging, code review | Implementation |
They never overlap. GStack focuses on what roles review the work. Superpowers focuses on how code gets written.
- Claude Code Plugin with twelve skills:
/setup-routing— Generates a tailored CLAUDE.md for new projects/adapt— Adds routing to existing projects without losing your CLAUDE.md content/autoimplement— Auto-advance through a multi-phase implementation plan by chaining/review,/pitfall-verification, and/codex reviewat each phase boundary. Skips the y/n prompts you'd always answer "yes" to when reviews pass. Active pre-flight (v2.14.0+, tightened in v2.14.2): unless the latest commit touching the plan path matches the pre-flight marker regex^(chore|fix)\(plan\):[[:space:]]*pre-flight([[:space:]]|$), autoimplement itself runs pitfall + codex on the plan body before Phase 1 dispatch — closes the gap between/writing-plansand autonomous execution. The pre-flight step commits a marker (chore(plan): pre-flight reviewed clean (...)orfix(plan): pre-flight {reviews_ran} feedback) so subsequent runs skip it. Stops by default when any review flags actionable issues; severe findings (security/data-loss/correctness in test assertions) always stop regardless of policy; pitfall/codex per-phase findings can be treated as advisory via the upfront policy question. Hard refusals: fewer than 2 phases, missing per-phase commit steps, dirty working tree, onmain/masterbranch, plan touches migrations / secrets / credentials /.env/.ssh./context-handoff— Writes a human-readable handoff todocs/superpowers/handoff.mdbefore/clearor/compact. Auto-resumes on next session start. Different from gstack's/context-save— this lives in the repo and works cross-machine./htmlify— Generates beautiful, pedagogical HTML companions for MD artefakter (design docs, plans, handoffs). v2 (2.0.0): opt-in--planflag aktiverer rich rendering med 9 visuelle komponenter (comparison-matrix, flowchart-svg, pullquote, callout-box, stats-bar, two-column, expandable, diff-card, feedback-panel). Plan'en genereres av Claude Code i samme sesjon (Max-plan compute — ingen Anthropic API-kall). Uten--plan: v1-template-rendering (backwards compatible). Auto-opens via--openflag (macOS); aggregated per-directory dashboard viahtmlify dashboard <dir>. Optional PostToolUse hook auto-fires on artifact writes. Bun + TypeScript; 138 unit tests; sanitized via DOMPurify./pitfall-verification— Final-check skill run after any PRD, spec, plan, or code artifact. Targeted check that typical pitfalls for that artifact type and domain (security, idempotency, contracts, edge cases, LLM output) actually do not apply. Two rounds max./quality-review— Perceived-quality gate run after a PRD, spec, or implementation plan, before implementation begins. Hunts pitfalls that make a product feel cheap or broken even when it technically works (silent failures, missing loading/empty states, error recovery, state drift, animations, AI output, sudo flows). Complementary to/pitfall-verification: that one asks "will this work?", this one asks "will this feel good?"./macos-native-review— Apple-native conformance gate for macOS PRDs, specs, and plans. 12 HIG-citation-grounded categories: vocabulary, control choices, keyboard shortcuts, semantic colors, sheets/popovers/alerts, animation timing, privileged operations, accessibility, menu bar, app lifecycle, dock behavior, App menu. Every finding cites adeveloper.apple.comHIG page via WebFetch. Phase 0 self-check rejects non-macOS artifacts. Complementary to/pitfall-verification("will this work?") and/quality-review("will this feel good?") — this asks "is this Apple-native?"./ios-native-review— Apple-native conformance gate for iOS/iPadOS PRDs, specs, and plans. 13 HIG-citation-grounded categories: vocabulary, controls/touch targets (44×44pt), navigation paradigm (tab bar / navigation stack / split view), modal presentation (.presentationDetents,.fullScreenCover, popover), gestures, system surfaces (safe area, Dynamic Island), keyboard handling, haptics, semantic colors, animation timing, privileged operations, accessibility (VoiceOver, Dynamic Type to AX5), app lifecycle. Every finding cites adeveloper.apple.comHIG (iOS) page via WebFetch. Phase 0 self-check rejects non-iOS artifacts. Same shape as/macos-native-reviewbut iOS-specific surfaces and conventions./macos-e2e-scaffold— One-shot XCUITest scaffolding for macOS SwiftUI projects. Walks the Scene tree deterministically, generates ranked TIER-1/2/3 test stubs (Smoke + Happy-path + Error-recovery always; Modal/Menubar/Multi-window/Toolbar conditional on pattern detection). Suggests accessibility identifiers (<ViewName>_<ControlType>_<Purpose>) with batch confirmation, emits a Claude-readable xcresult runner script. Three project-type branches (xcodegen / SPM / plain .xcodeproj). Manual invocation only — modifies project files. Phase 0 self-check refuses non-Swift, non-SwiftUI, non-macOS, or already-scaffolded projects. The only skill in the plugin that creates test infrastructure rather than reviewing artefacts./superpowers-gstack:office-hours-track-aware(v2.3.0+) — wraps upstream/office-hoursfor dual-track projects. Runs the gstack brainstorm, then infers track from the idea (native vs web signals), asks the platform question (iOS/macOS/both) inline only if needed, relocates the design doc into the project'sdocs/directory, runs/htmlify --openso the rich HTML opens BEFORE the approval gate, and only then asks Approve / Revise / Restart. Suggests/superpowers-gstack:swiftui-design-consultationnext for native tracks. Intercepts/office-hoursvia CLAUDE.md routing rules./superpowers-gstack:swiftui-design-consultation— Apple-canon design system consultation for SwiftUI projects; producesDESIGN.md+ a Swift Package starter; chains into macos-native-review with HIG conformance budget. Inlines the platform question (iOS/macOS/both) on first run if.gstack/trackis missing (v2.3.0+).
- Per-skill model routing (v1.11.0+) —
/setup-routingand/adaptemit a### Model Routingtable inside the generated CLAUDE.md. Each row maps a skill (or phase within a multi-phase skill) to its recommended model per harness: Claude Code (opus/sonnet/haiku), Pi (local-only) (Qwen3.6 model IDs), Pi (hybrid) (local default + cloud fallback). Swift/SwiftUI implementation phases route toqwen3.6-27b-optiQ-SFTwhen running in Pi. Seeskills/setup-routing/model-routing.mdfor the canonical table. Advisory v0.1 — orchestrator-Claude consults it when dispatching subagents. - Appendix — Skill internals, troubleshooting, and anti-patterns
- Automated update pipeline — GitHub Actions keeps the plugin in sync when upstream frameworks change
Tip: In autocomplete, type
/setup-routing,/adapt, or/context-handoff— Claude Code matches on the skill name. The full prefixed form (e.g./superpowers-gstack:adapt) also works.
Vibe coding with a flight plan. Because your AI already has opinions. Might as well make them good.
# Superpowers (in Claude Code)
/plugin marketplace add claude-plugins-official
/plugin install superpowers
# GStack
git clone https://github.com/garrytan/gstack.git ~/.claude/skills/gstack
cd ~/.claude/skills/gstack && ./setup# In Claude Code:
/plugin marketplace add Paretofilm/claude-marketplace
/plugin install superpowers-gstack@paretofilm-plugins
Restart Claude Code after installation.
Important: Start Claude Code from your project directory before running setup:
cd ~/Developer/my-project
claude# New project:
/setup-routing
# Existing project:
/adapt
This generates a CLAUDE.md with routing rules tailored to your project type, tech stack, and deployment target.
| Situation | Start with |
|---|---|
| New idea, unclear scope | /office-hours |
| Scope is clear, ready to build | /superpowers:brainstorming |
| Bug fix | /superpowers:systematic-debugging |
| Code complete, ready for review | /review |
| Ready to ship | /ship |
| Long session, save state | /context-handoff |
┌─────────────────────────────────────────────────┐
│ PHASE 1: DISCOVERY & PLANNING (GStack) │
│ │
│ /office-hours → Product framing │
│ /plan-ceo-review → Strategic validation │
│ /plan-eng-review → Architecture lock │
│ /plan-design-review → Design validation │
│ /autoplan → Chains all three reviews │
├─────────────────────────────────────────────────┤
│ PHASE 1.5: SPEC REVIEW (this plugin) │
│ │
│ /pitfall-verification → "will this work?" │
│ /quality-review → "will this feel good?" │
│ /macos-native-review → "is this Apple-native?" │
│ (macOS projects only) │
│ /ios-native-review → "is this iOS-native?" │
│ (iOS/iPadOS only) │
├─────────────────────────────────────────────────┤
│ PHASE 2: IMPLEMENTATION (Superpowers) │
│ │
│ /superpowers:brainstorming → Refine │
│ /superpowers:writing-plans → TDD tasks│
│ /superpowers:subagent-driven-development → Build│
│ /superpowers:systematic-debugging → Fix bugs │
├─────────────────────────────────────────────────┤
│ PHASE 3: REVIEW & QA (GStack) │
│ │
│ /review → Pre-landing code review │
│ /qa <url> → Browser-based testing │
│ /cso → Security audit │
│ /design-review → Visual audit │
├─────────────────────────────────────────────────┤
│ PHASE 4: SHIP & MONITOR (GStack) │
│ │
│ /ship → Tests, coverage, PR │
│ /canary → Post-deploy monitoring │
│ /retro → Sprint retrospective │
│ /document-release → Update docs │
└─────────────────────────────────────────────────┘
Use /clear when switching between GStack and Superpowers phases (skip for small projects < 5 tasks). Before clearing after Phase 1, save key decisions:
# Save decisions, then clear
/clear
/superpowers:brainstorming
Adopt the design as-is from the Phase 1 design doc — focus on technical details only.
If review feedback needs code changes: /superpowers:receiving-code-review → fix → /review again.
Long sessions degrade Claude's output quality — a problem known as context rot. GSD solves this with a full orchestration layer, but that creates nesting issues when combined with Superpowers' subagent-driven development (three layers of orchestration). This plugin takes a lighter approach:
How it works:
- After
/compact, Claude asks if you want to activate auto context handoff for the session - If yes, it keeps
docs/superpowers/handoff.mdupdated as a living document — current task, decisions, next step - When context gets heavy again, Claude suggests
/clear - After
/clear, Claude automatically reads the handoff file, presents where you left off, and clears it — no "resume" command needed
Manual use: Run /context-handoff anytime to save state before a /clear.
No hooks, no orchestration overhead, no nesting. Just save and restore.
/office-hours → Frame the idea
/plan-ceo-review → Validate scope
/plan-eng-review → Lock architecture
→ Save key decisions to docs/
/clear
/pitfall-verification → Spec-level: "will this work?"
/quality-review → Spec-level: "will this feel good?"
[macOS only]
/macos-native-review → Spec-level: "is this Apple-native?"
[iOS only]
/ios-native-review → Spec-level: "is this iOS-native?"
/superpowers:brainstorming → Adopt design, refine technical approach
/superpowers:writing-plans → Break into TDD tasks
/pitfall-verification → Plan-level: re-check after writing-plans
/superpowers:subagent-driven-development → Build it
/clear
/review → Code review
/qa http://localhost:3000 → Browser testing
/cso → Security check
/ship → PR and deploy
/superpowers:systematic-debugging → Find root cause + fix with TDD
/clear
/review → Verify the fix
/ship → Deploy
/superpowers:brainstorming → Quick technical refinement
/superpowers:writing-plans → TDD tasks
/superpowers:subagent-driven-development → Build it
/clear
/review → /ship
/superpowers:brainstorming → Adopt quickly
/superpowers:writing-plans → TDD breakdown
/superpowers:executing-plans → Inline execution (no subagents)
/review → /ship
Skip Phase 1, skip /clear between phases, skip subagents, skip review specialists for < 200 LOC.
/office-hours → /plan-eng-review (security focus)
/clear
/superpowers:brainstorming → /superpowers:writing-plans → SDD
/clear
/cso → Security audit FIRST
/review → /qa → /ship → /canary
New idea or feature?
YES → /office-hours (GStack)
NO →
Bug?
During coding? → /superpowers:systematic-debugging
During QA/prod? → /investigate (GStack)
Scope clear?
YES → /superpowers:brainstorming
NO → /office-hours
Spec or plan written? (after writing-specs / writing-plans / plan-eng-review)
→ /pitfall-verification → /quality-review
→ [macOS] /macos-native-review
→ [iOS] /ios-native-review
→ /superpowers:writing-plans (or /superpowers:subagent-driven-development)
Code written? → /clear → /review
Review feedback needs changes? → /superpowers:receiving-code-review → fix → /review
Review passed? → /qa → /cso → /ship
| Command | When to Use |
|---|---|
/office-hours |
Starting something new |
/plan-ceo-review |
Validating scope and strategy |
/plan-eng-review |
Locking architecture |
/plan-design-review |
Validating design |
/plan-devex-review |
Validating developer experience |
/plan-tune |
Tune plan-skill question preferences (one-time, per-project) |
/autoplan |
Chains all three reviews |
/review |
Pre-merge code review |
/qa <url> |
Browser-based testing |
/cso |
Security audit |
/design-review |
Visual audit |
/design-consultation |
Design system from scratch |
/design-shotgun |
Generate multiple design variants |
/design-html |
Finalize design as production HTML/CSS |
/devex-review |
Live developer experience audit |
/investigate |
Bug root cause (QA/production) |
/ship |
Create PR and deploy |
/land-and-deploy |
Merge and verify |
/canary |
Post-deploy monitoring |
/landing-report |
Read-only PR queue + sibling-workspace dashboard |
/setup-deploy |
Configure deploy platform (one-time) |
/document-release |
Update docs |
/retro |
Sprint retrospective |
/health |
Code quality dashboard |
/context-save |
Save progress, save state |
/context-restore |
Resume where left off |
/context-handoff |
Write handoff to repo before /clear (cross-machine, no gstack required) |
/careful |
Destructive command warnings |
/freeze |
Restrict edits to one directory |
/unfreeze |
Clear the freeze boundary mid-session |
/guard |
Full safety: /careful + /freeze combined |
/browse |
Headless browser |
/open-gstack-browser |
Launch GStack Browser (Chromium + sidebar) |
/pair-agent |
Pair a remote AI agent with your browser |
/setup-browser-cookies |
Import cookies for authenticated tests |
/benchmark |
Performance regression detection |
/benchmark-models |
Cross-model benchmark |
/make-pdf |
Markdown to publication-quality PDFs |
/learn |
Save cross-session learnings |
/setup-gbrain |
Onboard cross-session memory (gbrain) |
/codex |
OpenAI Codex CLI second opinion |
| Command | When to Use |
|---|---|
/superpowers:brainstorming |
Refining technical approach |
/superpowers:writing-plans |
Creating TDD task breakdown |
/superpowers:subagent-driven-development |
Executing with subagents + TDD |
/superpowers:executing-plans |
Inline execution (small projects) |
/superpowers:dispatching-parallel-agents |
Independent parallel tasks |
/superpowers:systematic-debugging |
Finding root cause of bugs |
/superpowers:using-git-worktrees |
Feature branch isolation — asks for consent before creating; detects if already in a worktree |
/superpowers:finishing-a-development-branch |
Merge/PR/discard — only cleans up worktrees it created (inside .worktrees/) |
/superpowers:test-driven-development |
Manual TDD enforcement |
/superpowers:verification-before-completion |
Verify before claiming done |
/superpowers:requesting-code-review |
Dispatch review subagent (uses general-purpose agent with self-contained template) |
/superpowers:receiving-code-review |
Handle review feedback |
/superpowers:writing-skills |
Plugin/skill projects only |
When orchestrator-Claude dispatches a subagent, it should pick the model based on the task being executed, not the orchestrator's default. The full table lives at skills/setup-routing/model-routing.md. Highlights:
| Skill / Phase | Claude Code | Pi (local-only) | Pi (hybrid) |
|---|---|---|---|
/plan-ceo-review |
opus | qwen3.6-35b-a3b-4bit-dwq | opus |
/superpowers:brainstorming |
sonnet | qwen3.6-35b-a3b-4bit-dwq | sonnet |
/review, /cso, /retro |
sonnet | qwen3.6-mlx-8bit | sonnet |
/superpowers:verification-before-completion |
haiku | qwen3.6-mlx-8bit | haiku |
/ship, /health, /learn, /canary |
haiku | qwen3.6-mlx-8bit | haiku |
| TDD → implement (Swift/SwiftUI) | sonnet | qwen3.6-27b-optiQ-SFT | qwen3.6-27b-optiQ-SFT |
The recommendations are advisory v0.1 — orchestrator-Claude reads them as guidance, no hook enforcement yet (v1.12.0 candidate). See skills/setup-routing/model-routing.md for the full table with phase-level breakdowns and caveats.
⚠️ Marketplace users — heads up. The Pi columns reference local-model identifiers specific to the plugin author's~/.pi/agent/models.json. If you don't run Pi (or run it with different models), the Pi columns won't apply to you — but the Claude Code column will. To opt out entirely, answer "None — skip model routing entirely" when/setup-routingor/adaptasks about harnesses (Step 2 Q10 / Step 2 follow-up). Existing CLAUDE.md files aren't touched until you re-run one of those skills. Full opt-out details and design rationale:docs/superpowers/specs/2026-05-12-model-routing-design.md.
A GitHub Actions workflow runs weekly and checks for new versions of GStack, Superpowers, and Claude Code. When changes are found, it automatically updates the plugin and creates a PR. A self-repair workflow handles failures automatically.
See VERSIONS.md for currently tracked versions.
Plugin behaviors that depend on LLM dispatch (track-aware routing, slash-command interception) are tested end-to-end against claude --print. See tests/README.md for prerequisites, cost (~1 min per case, a few cents each), and what's covered.
bash tests/run.sh --integrationThis is a work in progress and any help is welcome:
- Try it out — Use the workflow on a real project and report what works and what doesn't
- Open issues — Bug reports, unclear documentation, missing scenarios
- Submit PRs — Fixes, improvements, new common scenarios
- Share your experience — Write about your setup or workflow adaptations
- Testing with more project types (mobile, data pipelines, monorepos, infrastructure)
- Better routing heuristics for edge cases
- Integration testing after upstream framework updates
- Fork the repo
- Create a feature branch
- Make your changes
- Submit a PR
Should I use GStack or Superpowers? Both. They cover different phases. This project gives you the workflow to combine them.
Can I use this with an existing project?
Yes. Run /adapt — it preserves your existing CLAUDE.md and adds only the routing section.
Do I need both frameworks installed? Yes. Install both Superpowers and GStack, then add this plugin for routing.
What if I only want one framework? Each works fine on its own. This project is for people who want to use both together.
How does context management compare to GSD? GSD is a full orchestration framework with wave-based execution and state machines. It's powerful but creates nesting problems with Superpowers' SDD (three layers of orchestration). This plugin takes GSD's best idea — context hygiene — and implements it as a lightweight save/restore mechanism. If you want full GSD, install it separately.
Does this work with Cursor / Windsurf? No. Built for Claude Code only.
What project types does this support? Web apps, APIs, mobile, CLI tools, libraries, data pipelines, monorepos, Claude Code plugins, and more. The setup skill tailors routing to your project.
claude code best setup claude code workflow gstack superpowers together best claude code plugins claude code TDD workflow ai coding workflow claude code skills agentic development workflow claude code framework comparison how to use gstack and superpowers claude code project setup CLAUDE.md generator claude code routing ai-assisted software development claude code context management context rot prevention claude code session management gsd alternative
This entire project — the routing plugin, the skill evaluation tables, the consistency checks, and even this README — was developed by Claude Code using the very workflow it documents. No human wrote or edited the content. A human guided the direction and reviewed the results, but every line was authored by AI.
The workflow needed to make sense to an AI that would actually follow it, not just read well to a human skimming a README. The result is a set of instructions that Claude Code genuinely works well with — because it wrote them for itself.
Whether that's reassuring or unsettling is left as an exercise for the reader.
MIT
- Superpowers by Jesse Vincent — the implementation backbone
- GStack by Garry Tan — the planning and review backbone
- Built for Claude Code by Anthropic