standard-dev-workflow — 8-phase pipeline for any non-trivial dev task
User-locked 2026-05-24. Sub-agents wherever possible. Default to this pipeline; deviate only with explicit reason recorded.
When to invoke
- Starting any non-trivial implementation (3+ steps, multiple files, design-required)
- Starting a planning session ("plan X", "design Y")
- Starting research ("research X", "what's the literature on Y")
- Bug investigation ("fix this", "debug X", "why is Y failing")
- Architecture review needed
- Refactor with side effects
When NOT to invoke
- Single-file 1-line edits (just do it)
- Routine probe / status / report responses
- Hot-fixes <5 lines with clear root cause
- The task is already mid-pipeline (don't restart unless explicitly needed)
The 8 phases (in order, all sub-agent-dispatched where possible)
Phase 1 — Prompt engineering (Opus)
Goal: rewrite the user's raw ask into a well-scoped task spec.
- Opus (main session OR dispatched sub-agent) rewrites with: required-reading list, tool-use clause, verification clause, noise-calibration spec, ScholarEval scoring if research-claim
- Output: a self-contained task spec future sub-agents can execute without back-and-forth
Phase 2 — Plan (Opus + superpowers:writing-plans + skill discovery)
Goal: produce a written implementation plan.
- Load
superpowers:writing-plans skill
- Opus drafts plan
- Read
docs/skill_index.md — for each plan step, surface which skill encodes the discipline
- Output: numbered-step plan with skill-per-step + risk + verification gate per step
Phase 3 — Research (current web sources + Gemini/agy + Opus, parallel)
Goal: ground the plan in current literature + best practices.
- Use available web-research tools for authoritative recent literature (research papers, GitHub repositories, and relevant technical writing from the last 90-180 days)
- Optionally dispatch Gemini for 3rd-opinion read on the plan: post-2026-06-18, the
gemini CLI is unavailable for this tier (Google One/unpaid cutoff) — substitute agy (antigravity via agy_dispatch.sh, Gemini 3.5 Flash High) for the Google-opinion seat. See the peer-review council's seat-9 for the invocation pattern.
- Update the plan with sourced findings — anything ADDED / CONTRADICTED / SUPERSEDED in published practice gets folded in
- Output: revised plan with cited sources + flagged "the lit says X, our plan says Y, reconcile"
Phase 4 — Council review
Goal: surface conflicts / blind spots in the plan via 9-seat global LLM council.
- Pass the plan + research findings to council with verbatim question
- ScholarEval 8-dim scoring if any research-claim component
- Update plan with chairman synthesis recommendations
- Output: plan v2 with council-flagged risks resolved or explicitly accepted
Phase 5 — Implementation (codex preferred, cursor for wiring / long-running)
Goal: execute the plan.
- codex (gpt-5.5 default): preferred for FRONTIER coding work, peer-review audits, bounded multi-file writes with spec
- cursor (auto-mode): preferred for BASIC WIRING + LONG JOBS — unlimited tokens until Sept 2026 on auto-mode, so multi-file refactors / content writes / dispatch-script generation
- For any long-running background/job-runner script: cite whatever this repo's job-runner-authoring skill is in the dispatch prompt, if one exists
- For skill summarization: use
use-skill-review v2 ritual
- Output: implemented diff with verification commands
Phase 6 — Code review (Opus + Sonnet via code-review:code-review skill)
Goal: catch what codex/cursor missed.
- Dispatch
code-review:code-review skill OR sonnet-tier Agent with explicit review brief
- Opus for high-stakes / architecture / security review; Sonnet for routine review
- 3-way audit pattern when warranted (Claude + codex + gemini on same scope — agree=ship, dissent=investigate)
- Output: green-light OR specific patches needed
Phase 7 — Architecture / deep research (Gemini, when needed)
Goal: heavy architectural decisions OR specialized research that exceeds ordinary web research.
use-gemini (agy with --sandbox, read-only); --approval-mode plan is gemini-CLI-era and dead post-2026-06-18
- Or dispatch Gemini for 3rd-opinion deep research where Opus plus authoritative sources surfaced unclear answers
- Output: architectural recommendation OR resolved research question
Phase 8 — Debug (Opus + codex via debug skill)
Goal: when something broke or behavior is unexpected.
- Load
superpowers:systematic-debugging skill
- Opus + codex pair: Opus reasons + codex audits + Opus reasons again
- Check any project-local known-bug-class notes first, if this repo keeps one
- If it's a new bug class worth remembering: record it wherever this project tracks that
- Output: root cause identified + fix verified + notes updated if novel
Hard rules (no exceptions)
- Use sub-agents wherever possible. Main session is orchestrator; sub-agents do the work. Conserves context for orchestration + reflection.
- Phase 1 is mandatory for any task that survived "is this trivial?" check. Don't skip the explicit prompt/spec drafting pass thinking it's overhead.
- Phase 4 (council review) is mandatory for any plan that costs >$50 to execute OR touches a public-ship surface. Below $50 + internal-only, Phase 4 is advisory.
- codex vs cursor decision: codex for FRONTIER reasoning / peer-review / spec-driven; cursor for BULK WIRING / multi-file content writes / long-running unlimited-token jobs. Don't waste cursor's unlimited budget on small audits.
- Phase 6 (code review) is mandatory before any commit that changes >50 lines OR touches money-handling / API-key-handling / production code.
Tool-tier routing table
| Task surface |
Tier 1 |
Tier 2 |
Tier 3 |
| Frontier coding / peer-review audit |
codex (gpt-5.5) |
gemini-3.1-pro |
Opus |
| Bulk multi-file refactor / wiring |
cursor (auto, unlimited until Sept 2026) |
codex |
sonnet sub-agent |
| Architecture review |
Gemini/agy (post-2026-06-18: agy_dispatch.sh substitutes gemini CLI) |
Opus |
peer-review council |
| Debug single bug |
Opus + codex pair |
Sonnet + codex |
gemini |
| Bug-class novel detection |
Opus |
codex audit |
project bug-notes query |
| Research / lit scan |
available web-research tools + authoritative sources |
gemini deep-research |
council ScholarEval |
| Plan review |
9-seat council |
gemini 3rd-opinion |
Opus self-audit |
| Code review |
code-review skill (Opus) |
sonnet sub-agent |
codex 2nd-opinion |
Anti-patterns
| Anti-pattern |
Fix |
| Skipping Phase 1 → vague prompts to sub-agents → they drift |
Always write the task spec first |
| Skipping Phase 3 → reproducing internal wisdom that's superseded externally |
Research current authoritative sources first; reconcile literature vs plan before Phase 4 |
| Skipping Phase 4 on >$50 plans → expensive walkbacks |
Council review pays for itself at >$50 |
| Burning cursor's unlimited-tokens budget on 100-line edits |
Use codex for small spec-driven work; reserve cursor for bulk |
| Codex frontier reasoning on simple wiring |
Use cursor or codex-spark for cheap mechanical work |
| Opus reviewing every commit (over-spend on context) |
Sonnet sub-agent for routine; Opus for high-stakes |
| Debugging without checking prior known-bug notes first |
Always check what's already known before debugging from scratch |
| Sub-agent dispatched without verbatim spec → vague output |
Phase 1 produces the spec; pass it through unchanged |
Sub-agent dispatch template (Phase 5)
When delegating implementation:
CONTEXT: <task spec from Phase 1, verbatim>
PLAN: <plan from Phases 2-4 with council fixes folded in>
SKILLS TO LOAD FIRST: <list per docs/skill_index.md>
IMPLEMENTATION:
VERIFICATION:
SECRET-HANDLING: secret-hygiene discipline — use env-var reads, never hardcode keys
LONG-RUNNING JOB (if applicable): cite this repo's job-runner/driver-authoring skill, if one exists, for crash-safety and completion-signal discipline
REPORT: what was done, verification result, any deferred items + why
Sibling skills
superpowers:writing-plans — Phase 2 plan structure
superpowers:subagent-driven-development — Phase 2 + Phase 5 sub-agent execution
- Available web-research tools — Phase 3 current-source research
use-gemini — Phase 5/6/7 delegation tool
code-review:code-review — Phase 6
superpowers:systematic-debugging — Phase 8
- Secret-hygiene discipline applies across all phases
use-skill-review — when a skill in the rotation needs refresh per its trigger criteria
What this skill REFUSES to do
- Skip Phase 1 on non-trivial tasks. Vague prompts to sub-agents waste their tokens + miss requirements.
- Allow main session to do work sub-agents could do. Orchestrator role — delegate everything possible.
- Use Opus where Sonnet/Haiku would suffice. Tier the model to the task; Opus is for opus-grade reasoning.
- Skip Phase 4 council review on >$50 plans. Council pays for itself; bypass needs documented rationale.
- Wait for user when ACT-discipline applies. Act on reversible + sub-$150 + non-public + non-destructive; ask otherwise.
Quick reference (the 8-line checklist)
□ 1. Write the task spec (Opus explicit prompt/spec drafting pass)
□ 2. Plan with superpowers + list per-step skills (Opus)
□ 3. Research current authoritative sources + Gemini → update plan
□ 4. Peer-review council (9-seat) → fold fixes into plan
□ 5. Implement: codex (frontier) OR cursor (wiring/long, unlimited Sept 2026)
□ 6. Review: code-review skill (Opus for high-stakes, Sonnet routine)
□ 7. Architecture: use-gemini (agy with --sandbox, read-only); --approval-mode plan is gemini-CLI-era and dead post-2026-06-18
□ 8. Debug: Opus + codex pair + known-bug-class query first
1---2name: standard-dev-workflow3description: The 8-phase standard development pipeline locked-in by user 2026-05-24. Use WHEN starting any non-trivial implementation, planning, research, or debug task. Triggers on intent phrases — "let's build X", "implement X", "design X", "plan X", "research X", "fix this bug", "debug Y". The 8 phases (in order): (1) rewrite the task into a well-scoped spec with Opus, (2) Opus plans using superpowers + lists relevant skills, (3) current web research + Gemini + Opus update the plan, (4) a peer-review council flags conflicts → update plan, (5) codex (preferred) or cursor (long/wiring jobs, unlimited tokens until Sept 2026) implements, (6) Opus + Sonnet review codex work via a code-review skill, (7) Gemini for architecture/deep-research review when needed, (8) Debug = Opus + codex pair. Use sub-agents wherever possible to conserve main-session context.4---56# standard-dev-workflow — 8-phase pipeline for any non-trivial dev task78User-locked 2026-05-24. Sub-agents wherever possible. Default to this pipeline; deviate only with explicit reason recorded.910## When to invoke1112- Starting any non-trivial implementation (3+ steps, multiple files, design-required)13- Starting a planning session ("plan X", "design Y")14- Starting research ("research X", "what's the literature on Y")15- Bug investigation ("fix this", "debug X", "why is Y failing")16- Architecture review needed17- Refactor with side effects1819## When NOT to invoke2021- Single-file 1-line edits (just do it)22- Routine probe / status / report responses23- Hot-fixes <5 lines with clear root cause24- The task is already mid-pipeline (don't restart unless explicitly needed)2526## The 8 phases (in order, all sub-agent-dispatched where possible)2728### Phase 1 — Prompt engineering (Opus)29**Goal**: rewrite the user's raw ask into a well-scoped task spec.30- Opus (main session OR dispatched sub-agent) rewrites with: required-reading list, tool-use clause, verification clause, noise-calibration spec, ScholarEval scoring if research-claim31- Output: a self-contained task spec future sub-agents can execute without back-and-forth3233### Phase 2 — Plan (Opus + `superpowers:writing-plans` + skill discovery)34**Goal**: produce a written implementation plan.35- Load `superpowers:writing-plans` skill36- Opus drafts plan37- Read `docs/skill_index.md` — for each plan step, surface which skill encodes the discipline38- Output: numbered-step plan with skill-per-step + risk + verification gate per step3940### Phase 3 — Research (current web sources + Gemini/agy + Opus, parallel)41**Goal**: ground the plan in current literature + best practices.42- Use available web-research tools for authoritative recent literature (research papers, GitHub repositories, and relevant technical writing from the last 90-180 days)43- Optionally dispatch Gemini for 3rd-opinion read on the plan: **post-2026-06-18, the `gemini` CLI is unavailable for this tier** (Google One/unpaid cutoff) — substitute `agy` (antigravity via `agy_dispatch.sh`, Gemini 3.5 Flash High) for the Google-opinion seat. See the peer-review council's seat-9 for the invocation pattern.44- Update the plan with sourced findings — anything ADDED / CONTRADICTED / SUPERSEDED in published practice gets folded in45- Output: revised plan with cited sources + flagged "the lit says X, our plan says Y, reconcile"4647### Phase 4 — Council review48**Goal**: surface conflicts / blind spots in the plan via 9-seat global LLM council.49- Pass the plan + research findings to council with verbatim question50- ScholarEval 8-dim scoring if any research-claim component51- Update plan with chairman synthesis recommendations52- Output: plan v2 with council-flagged risks resolved or explicitly accepted5354### Phase 5 — Implementation (codex preferred, cursor for wiring / long-running)55**Goal**: execute the plan.56- **codex** (gpt-5.5 default): preferred for FRONTIER coding work, peer-review audits, bounded multi-file writes with spec57- **cursor** (auto-mode): preferred for BASIC WIRING + LONG JOBS — unlimited tokens until Sept 2026 on auto-mode, so multi-file refactors / content writes / dispatch-script generation58- For any long-running background/job-runner script: cite whatever this repo's job-runner-authoring skill is in the dispatch prompt, if one exists59- For skill summarization: use `use-skill-review` v2 ritual60- Output: implemented diff with verification commands6162### Phase 6 — Code review (Opus + Sonnet via `code-review:code-review` skill)63**Goal**: catch what codex/cursor missed.64- Dispatch `code-review:code-review` skill OR sonnet-tier Agent with explicit review brief65- Opus for high-stakes / architecture / security review; Sonnet for routine review66- 3-way audit pattern when warranted (Claude + codex + gemini on same scope — agree=ship, dissent=investigate)67- Output: green-light OR specific patches needed6869### Phase 7 — Architecture / deep research (Gemini, when needed)70**Goal**: heavy architectural decisions OR specialized research that exceeds ordinary web research.71- `use-gemini` (agy with `--sandbox`, read-only); `--approval-mode plan` is gemini-CLI-era and dead post-2026-06-1872- Or dispatch Gemini for 3rd-opinion deep research where Opus plus authoritative sources surfaced unclear answers73- Output: architectural recommendation OR resolved research question7475### Phase 8 — Debug (Opus + codex via debug skill)76**Goal**: when something broke or behavior is unexpected.77- Load `superpowers:systematic-debugging` skill78- Opus + codex pair: Opus reasons + codex audits + Opus reasons again79- Check any project-local known-bug-class notes first, if this repo keeps one80- If it's a new bug class worth remembering: record it wherever this project tracks that81- Output: root cause identified + fix verified + notes updated if novel8283## Hard rules (no exceptions)84851. **Use sub-agents wherever possible.** Main session is orchestrator; sub-agents do the work. Conserves context for orchestration + reflection.862. **Phase 1 is mandatory** for any task that survived "is this trivial?" check. Don't skip the explicit prompt/spec drafting pass thinking it's overhead.873. **Phase 4 (council review) is mandatory** for any plan that costs >$50 to execute OR touches a public-ship surface. Below $50 + internal-only, Phase 4 is advisory.884. **codex vs cursor decision**: codex for FRONTIER reasoning / peer-review / spec-driven; cursor for BULK WIRING / multi-file content writes / long-running unlimited-token jobs. Don't waste cursor's unlimited budget on small audits.895. **Phase 6 (code review) is mandatory** before any commit that changes >50 lines OR touches money-handling / API-key-handling / production code.9091## Tool-tier routing table9293| Task surface | Tier 1 | Tier 2 | Tier 3 |94|---|---|---|---|95| Frontier coding / peer-review audit | codex (gpt-5.5) | gemini-3.1-pro | Opus |96| Bulk multi-file refactor / wiring | cursor (auto, unlimited until Sept 2026) | codex | sonnet sub-agent |97| Architecture review | Gemini/agy (post-2026-06-18: `agy_dispatch.sh` substitutes gemini CLI) | Opus | peer-review council |98| Debug single bug | Opus + codex pair | Sonnet + codex | gemini |99| Bug-class novel detection | Opus | codex audit | project bug-notes query |100| Research / lit scan | available web-research tools + authoritative sources | gemini deep-research | council ScholarEval |101| Plan review | 9-seat council | gemini 3rd-opinion | Opus self-audit |102| Code review | code-review skill (Opus) | sonnet sub-agent | codex 2nd-opinion |103104## Anti-patterns105106| Anti-pattern | Fix |107|---|---|108| Skipping Phase 1 → vague prompts to sub-agents → they drift | Always write the task spec first |109| Skipping Phase 3 → reproducing internal wisdom that's superseded externally | Research current authoritative sources first; reconcile literature vs plan before Phase 4 |110| Skipping Phase 4 on >$50 plans → expensive walkbacks | Council review pays for itself at >$50 |111| Burning cursor's unlimited-tokens budget on 100-line edits | Use codex for small spec-driven work; reserve cursor for bulk |112| Codex frontier reasoning on simple wiring | Use cursor or codex-spark for cheap mechanical work |113| Opus reviewing every commit (over-spend on context) | Sonnet sub-agent for routine; Opus for high-stakes |114| Debugging without checking prior known-bug notes first | Always check what's already known before debugging from scratch |115| Sub-agent dispatched without verbatim spec → vague output | Phase 1 produces the spec; pass it through unchanged |116117## Sub-agent dispatch template (Phase 5)118119When delegating implementation:120121> CONTEXT: <task spec from Phase 1, verbatim>122> PLAN: <plan from Phases 2-4 with council fixes folded in>123> SKILLS TO LOAD FIRST: <list per docs/skill_index.md>124> IMPLEMENTATION: <step-by-step from plan>125> VERIFICATION: <gate per step from plan>126> SECRET-HANDLING: secret-hygiene discipline — use env-var reads, never hardcode keys127> LONG-RUNNING JOB (if applicable): cite this repo's job-runner/driver-authoring skill, if one exists, for crash-safety and completion-signal discipline128> REPORT: <a> what was done, <b> verification result, <c> any deferred items + why129130## Sibling skills131132- `superpowers:writing-plans` — Phase 2 plan structure133- `superpowers:subagent-driven-development` — Phase 2 + Phase 5 sub-agent execution134- Available web-research tools — Phase 3 current-source research135- `use-gemini` — Phase 5/6/7 delegation tool136- `code-review:code-review` — Phase 6137- `superpowers:systematic-debugging` — Phase 8138- Secret-hygiene discipline applies across all phases139- `use-skill-review` — when a skill in the rotation needs refresh per its trigger criteria140141## What this skill REFUSES to do1421431. **Skip Phase 1** on non-trivial tasks. Vague prompts to sub-agents waste their tokens + miss requirements.1442. **Allow main session to do work sub-agents could do.** Orchestrator role — delegate everything possible.1453. **Use Opus where Sonnet/Haiku would suffice.** Tier the model to the task; Opus is for opus-grade reasoning.1464. **Skip Phase 4 council review on >$50 plans.** Council pays for itself; bypass needs documented rationale.1475. **Wait for user when ACT-discipline applies.** Act on reversible + sub-$150 + non-public + non-destructive; ask otherwise.148149## Quick reference (the 8-line checklist)150151```152□ 1. Write the task spec (Opus explicit prompt/spec drafting pass)153□ 2. Plan with superpowers + list per-step skills (Opus)154□ 3. Research current authoritative sources + Gemini → update plan155□ 4. Peer-review council (9-seat) → fold fixes into plan156□ 5. Implement: codex (frontier) OR cursor (wiring/long, unlimited Sept 2026)157□ 6. Review: code-review skill (Opus for high-stakes, Sonnet routine)158□ 7. Architecture: use-gemini (agy with --sandbox, read-only); --approval-mode plan is gemini-CLI-era and dead post-2026-06-18159□ 8. Debug: Opus + codex pair + known-bug-class query first160```