[research@ai4se] : ~ $ β–Œ
cd ../
[process] | | 15 min

# OpenSpec + Superpowers + gstack: A Three-Layer AI-Native Delivery Stack

OpenSpec owns spec truth, Superpowers owns execution discipline, gstack owns expert review and release β€” layered division of labor rather than mechanically chaining three pipelines.

[tool-integration][process]

OpenSpec, Superpowers, and gstack can be combined for clear gains in end-to-end software delivery efficiency and quality β€” but the recommended approach isn’t to mechanically chain the three pipelines together. Instead, use layered division of labor:

LayerPrimary toolCore responsibilityKey artifacts
Spec and change-memory layerOpenSpecRecords why, what, and how system behavior changesproposal, design, tasks, delta specs
Engineering discipline and execution layerSuperpowersKeeps agents working through TDD, debugging, verification, reviewdesign confirmation, implementation plan, TDD evidence
Expert-role and delivery closed-loop layergstackDedicated product/engineering/design/QA/release personasplan review, QA reports, PR, retro

In one sentence: OpenSpec as source of truth, Superpowers as execution discipline, gstack as specialist gears and shipping harness.

Why Three Layers Are Needed

The four problems most likely to spiral out of control in AI software delivery:

  1. Requirement drift β€” OpenSpec leaves a trail via change proposals and delta specs
  2. Long-session context decay β€” Superpowers splits work using skills, plans, subtasks, and verification gates
  3. AI self-assessment being overly optimistic β€” gstack review/QA and Superpowers verification form an external check
  4. Speed without quality β€” together, the three expand β€œcode generation” into a spec β†’ implementation β†’ verification β†’ release β†’ retro closed loop

Where Each Layer Sits

OpenSpec β€” The Truth Layer

A brownfield-first, spec-driven change system. Command path:

/opsx:propose β†’ /opsx:apply β†’ /opsx:sync β†’ /opsx:archive

openspec/specs/ records the current behavior of the system; openspec/changes/ records each active change. Well suited to owning the durable context in the combination β€” not a one-off plan, but a memory of system behavior that agents read and update before every change.

Superpowers β€” The Execution Governance Layer

Composable skills: brainstorming, writing-plans, test-driven-development, systematic-debugging, verification-before-completion, requesting-code-review, subagent-driven-development, and more.

It makes explicit the discipline a senior engineer would naturally follow: clarify before implementing, write a plan before executing, TDD and systematic debugging, verify before completion, parallelize with subagents.

gstack β€” The Expert Review and Release Layer

Explicit gears on top of Claude Code: /plan-eng-review, /plan-design-review, /qa, /ship, /retro, and more. It avoids having a single agent blend product, design, engineering, QA, and release cognitive modes; each workspace has independent browser state, making parallel browser testing easy.

Priority of Responsibility (Avoiding Conflicts)

If all three tools try to drive the entire workflow, you’ll get duplicate plans, duplicate reviews, and conflicting instructions. You must define who has final say:

  1. OpenSpec is authoritative for spec truth β€” requirements, acceptance criteria, and behavior changes are written into openspec/changes/<change>/, then synced back to openspec/specs/ once complete
  2. Superpowers is authoritative for execution discipline β€” writing code, changing tests, debugging, and completion declarations all follow its TDD, verification, and review skills
  3. gstack is authoritative for expert review and release β€” product/design plan review, browser QA, release, retro

OpenSpec doesn’t own all engineering discipline; Superpowers doesn’t replace a long-lived spec repository; gstack doesn’t replace the source of truth for system behavior.

0. AGENTS.md tool routing rules
   ↓
1. OpenSpec: /opsx:propose <change>
   ↓
2. Superpowers: brainstorming / writing-plans
   ↓
3. gstack: /plan-eng-review /plan-design-review
   ↓
4. Superpowers: TDD / systematic-debugging / subagent-driven-development
   ↓
5. gstack: /qa /review
   ↓
6. OpenSpec: /opsx:sync
   ↓
7. gstack: /ship
   ↓
8. OpenSpec: /opsx:archive + gstack: /retro

Suggested Directory Structure

repo/
β”œβ”€β”€ openspec/           # business capabilities, system behavior, change history
β”œβ”€β”€ docs/superpowers/   # user-confirmed design and implementation plans
β”œβ”€β”€ .gstack/            # QA reports, browser state
β”œβ”€β”€ AGENTS.md           # routing rules only, no duplicated tool documentation
└── src/

AGENTS.md Routing Example

## Tool Routing

- OpenSpec is the source of truth for feature intent and behavior changes.
- Superpowers governs implementation: planning, TDD, debugging, verification.
- gstack is used for specialist reviews, browser QA, shipping, retros.
- Do not create parallel task lists unless they cross-reference the active OpenSpec change id.

Quality Comes from Multiple Independent Checks

Check dimensionOwner
Requirement qualityOpenSpec proposal + delta specs (why/what/scenarios)
Design qualitygstack product/design/engineering review
Code qualitySuperpowers TDD + systematic debugging + code review
Runtime qualitygstack /qa + Superpowers verification-before-completion
Organizational qualityOpenSpec /sync + /archive feeding into the long-term knowledge base

Relationship to Review Pipeline: Review Pipeline defines β€œhow to review once AI has written 80% of the code”; this stack provides the actionable tool division of labor to realize spec-conformance acceptance and runtime evidence closure.

Risks and Mitigations

RiskMitigation
Process too heavyEnable the full chain only for medium/high-risk changes; small changes take a lightweight path
Conflicting instructionsAGENTS.md spells out priority of responsibility
Duplicate artifactsOpenSpec change id as the primary index; other files cross-reference it
OpenSpec not syncedInclude /opsx:sync and /opsx:archive in the definition of done
Verification false positivesSuperpowers completion gate + gstack QA + CI must all pass together

Minimum Viable Combination (2–4 Week Pilot)

Enable only:

  • OpenSpec: propose, sync, archive
  • Superpowers: planning, TDD, debugging, verification-before-completion, code review
  • gstack: /plan-eng-review, /qa, /ship

Metrics: requirement clarification rounds, PR lead time, review defect count, test-failure fix rounds, pre/post-release defect count.

Full Delivery Chain

Intent β†’ Spec β†’ Plan β†’ TDD Build β†’ Review β†’ Runtime QA β†’ Ship β†’ Sync Specs β†’ Retro

This is exactly the watershed between β€œAI helping an individual write code” and β€œAI elevating the end-to-end software delivery system.” See SDD Tools Comparison for background on SDD tool selection.

References