Torque torque
Torque: a Claude Code skill that converts GSD (project management) and Superpowers (engineering discipline) into one coherent workflow. Prevents double-planning, conflicting subagent models, and overlapping design capture by providing a single routing decision at task start.
install
source · Clone the upstream repo
git clone https://github.com/mattjaikaran/torque
Claude Code · Install into ~/.claude/skills/
git clone --depth=1 https://github.com/mattjaikaran/torque ~/.claude/skills/mattjaikaran-torque-torque
manifest:
SKILL.mdsource content
Torque — GSD + Superpowers, United
Core Rule
Check for
.planning/ directory in the project root. This single check determines routing.
Primary Routing Table
| Scenario | exists? | System | Entry Point |
|---|---|---|---|
| New project (greenfield) | No → creates it | GSD | |
| Brownfield onboarding | No → creates it | GSD | then |
| New feature in GSD project | Yes | GSD | → → → |
| AI/LLM integration phase | Yes | GSD | → → → |
| Quick task in GSD project | Yes | GSD | |
| Trivial fix in GSD project | Yes | GSD | (inline, no subagents) |
| Standalone feature (no GSD) | No | SP | REQUIRED: → → |
| PRD-driven feature | Either | SP → GSD | → → or |
| Bug fix (any context) | Either | SP first | REQUIRED: ALWAYS first, then route fix through appropriate system |
| Code review (send) | Either | SP | REQUIRED: (fills GSD's missing review step) |
| Code review (receive) | Either | SP | — verify feedback before implementing blindly |
| Stress-test a plan | Either | SP | — interview until all ambiguity is resolved |
| Architecture improvement | Either | SP | — surface friction, propose refactors as RFC issues |
| Ship / PR creation | Yes | GSD | or (filters commits) |
| Ship (standalone) | No | SP | |
| Resume work | Yes | GSD | |
| Resume work | No | SP | Re-read plan files in |
Extended Routing (GSD 1.34+)
| Scenario | Entry Point | Notes |
|---|---|---|
| Spec refinement | | Socratic clarification of WHAT a phase delivers — produces SPEC.md before planning |
| AI/LLM design contract | | Framework selection, implementation guidance, evaluation strategy → AI-SPEC.md |
| AI eval audit | | Retroactive audit of AI phase evaluation coverage |
| Spike (feasibility test) | → | Throwaway experiment to validate approach before committing |
| Sketch (UI mockup) | → | Rapid HTML mockups with multi-variant exploration |
| UI/frontend phase | → | Design contract (UI-SPEC.md) before implementation |
| Security audit | | Verify threat mitigations post-implementation |
| Codebase intelligence | | Query, refresh, or inspect |
| Code review + auto-fix | → | Two-step: find issues, then fix atomically |
| Autonomous execution | | Runs all remaining phases: discuss → plan → execute |
| Parallel workstreams | | Manage concurrent work across features |
| Persistent debugging | | 4-phase debugging with knowledge base persistence |
| Phase assumptions | | Surface Claude's assumptions before planning |
| Nyquist validation | | Audit and fill validation gaps for a completed phase |
| Milestone audit | → | Verify intent delivered, fill gaps |
| Ship / PR creation | | Create PR, run review, prepare for merge |
| Clean PR branch | | Filter out commits for clean code review |
| Safe revert | | Roll back phase or plan commits using phase manifest |
| Project statistics | | Phases, plans, git metrics, timeline |
| Session report | | Token usage estimates and work summary |
| Docs generation | | Generate/update project docs verified against codebase |
| Changelog | (SP) | Auto-generate user-facing changelogs from git commits |
| Diagnostics | | Diagnose and repair directory issues |
| Post-mortem | | Investigate failed GSD workflows |
| Learnings extraction | | Extract decisions, patterns, surprises from completed phases |
Idea Capture & Backlog
| Scenario | Entry Point | Notes |
|---|---|---|
| Quick note | | Zero-friction idea capture — append, list, or promote |
| Add todo | | Capture task from conversation context |
| Check todos | | List pending todos and select one to work |
| Backlog idea | | Park an idea in 999.x numbering |
| Review backlog | | Promote backlog items to active milestone |
| Plant seed | | Forward-looking idea with trigger conditions |
| Explore idea | | Socratic ideation — think before committing |
Browser & E2E Testing
| Scenario | Entry Point | Notes |
|---|---|---|
| Test web app | (SP) | Playwright-based: screenshots, form fills, link checks |
| Full browser automation | (SP) | Auto-detect dev servers, write test scripts |
Two-Layer Model
- GSD = macro layer: project structure, milestones, phases, plans, state tracking, pause/resume
- Superpowers = micro layer: TDD, debugging methodology, verification, code review per task
GSD orchestrates WHAT to build and in what order. Superpowers enforce HOW to build each piece correctly.
Torque Commands
| Command | Purpose |
|---|---|
| Where am I? Single view across GSD + SP state |
| Verify GSD + SP installation and detect misconfigurations |
| Smart next-action — reads state, suggests one command |
| Upgrade path to Meridian |
Integration Rules (Summary)
- Plan location: GSD uses
, SP uses.planning/phases/
. Never mix.docs/plans/ - Brainstorming: Use
for GSD work,discuss-phase
for standalone only. Never both.brainstorming - Subagent execution: GSD
OR SPexecute-phase
. Never nested.subagent-driven-development - Debugging: SP
runs first for all bugs. GSD deviation Rule 1 covers only incidental executor bugs.systematic-debugging - Code review after GSD: Run
after GSD verify-work, before merge.requesting-code-review - Code review receiving: When receiving review feedback, use
to verify suggestions before implementing blindly.receiving-code-review - UI discipline: For frontend phases, run
to produce UI-SPEC.md before implementation, then/gsd:ui-phase
after./gsd:ui-review - AI discipline: For AI/LLM phases, run
to produce AI-SPEC.md before implementation, then/gsd:ai-integration-phase
after./gsd:eval-review - Spec before plan: For medium+ features, run
between discuss and plan to lock falsifiable requirements./gsd:spec-phase - Spike before commit: When feasibility is uncertain, run
before discuss-phase. Wrap findings with/gsd:spike
./gsd:spike-wrap-up - Ship cleanly: Use
or/gsd:ship
to create PRs that exclude/gsd:pr-branch
commits from code review..planning/ - Learnings persist: GSD captures execution patterns automatically. Review with
to inform future phases./gsd:intel
Anti-Patterns (Never Do These)
- Run
inside a GSD phase (usebrainstorming
)discuss-phase - Create
in a GSD project (usedocs/plans/
).planning/phases/ - Nest SP
inside GSDsubagent-driven-developmentexecute-phase - Skip
for bugs in GSD projectssystematic-debugging - Create
manually (use.planning/
)/gsd:new-project - Use
for multi-phase work (use full pipeline)/gsd:quick - Merge without code review (GSD has no review step built in)
- Run both
ANDdiscuss-phase
(pick one based onbrainstorming
existence).planning/ - Implement review feedback without verifying it first (use
)receiving-code-review - Skip spec refinement for ambiguous phases (use
between discuss and plan)/gsd:spec-phase - Build AI features without evaluation strategy (use
first)/gsd:ai-integration-phase - Push
commits in PRs (use.planning/
to filter them out)/gsd:pr-branch - Commit to a large approach without spiking first (use
for uncertain feasibility)/gsd:spike
Complexity Escalation
Trivial (typo, config) → /gsd:fast Small (< 30 min, < 5 files) → /gsd:quick Medium (single phase) → discuss → spec → plan → execute Large (multi-phase) → new-project or add-phase pipeline Uncertain feasibility → /gsd:spike first, then route by size AI/LLM integration → /gsd:ai-integration-phase → plan → execute → eval-review Autonomous (hands-off) → /gsd:autonomous
For detailed workflows and conflict resolution, load files from
references/. Workflow guides are in references/workflows.md.