# learningof-ai/superpowers architecture

> Architecture diagram of the GitHub repository learningof-ai/superpowers, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/learningof-ai/superpowers
- Repository: https://github.com/learningof-ai/superpowers

## Overview

Superpowers is a software-development methodology delivered to coding agents as composable skills and harness integrations. Its documented core workflow moves from clarifying a request and approving a design, through planning and task-based implementation, to review and completion; debugging and testing skills support work when needed. The repository also includes a visual brainstorming companion. README statements ground the workflow edges; the sampled source excerpts only partially show the companion runtime and do not expose most harness adapter internals.

Main entry points: [`skills/subagent-driven-development`](https://github.com/learningof-ai/superpowers/tree/main/skills/subagent-driven-development) (Subagent development), [`skills/brainstorming`](https://github.com/learningof-ai/superpowers/tree/main/skills/brainstorming) (Brainstorming), [`skills/writing-plans`](https://github.com/learningof-ai/superpowers/tree/main/skills/writing-plans) (Writing plans), [`skills/requesting-code-review`](https://github.com/learningof-ai/superpowers/tree/main/skills/requesting-code-review) (Code review)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Development workflow"]
  node_brainstorm["Brainstorming"]
  node_planning["Writing plans"]
  node_execution["Subagent development"]
  node_review["Code review"]
  node_completion["Branch completion"]
  node_plan_execution["Plan execution"]
end

subgraph group_support["Engineering skills"]
  node_debugging["Systematic debugging"]
  node_tdd["Test-driven development"]
  node_verification["Completion verification"]
  node_worktrees["Git worktrees"]
  node_review_response["Review response"]
  node_skill_authoring["Writing skills"]
  node_parallel_agents["Parallel agents"]
end

subgraph group_runtime["Agent integrations"]
  node_bootstrap_skill["Agent bootstrap"]
  node_harness_adapters["Harness adapters<br/>[superpowers.js]"]
  node_pi_adapter["Pi extension<br/>[superpowers.ts]"]
  node_visual_server["Visual companion server<br/>[server.cjs]"]
  node_visual_client["Companion browser client<br/>[helper.js]"]
end

node_developer(("Developer"))
node_agent(("Coding agent"))

node_developer -->|"requests work"| node_agent
node_agent -->|"loads bootstrap"| node_bootstrap_skill
node_bootstrap_skill -->|"triggers skill"| node_brainstorm
node_brainstorm -->|"elicits intent"| node_developer
node_brainstorm -->|"approved design"| node_planning
node_planning -->|"presents plan"| node_developer
node_planning -->|"starts implementation"| node_execution
node_execution -->|"delegates tasks"| node_plan_execution
node_execution -->|"inspects work"| node_review
node_review -.->|"reviewed work"| node_completion
node_execution -->|"uses agents"| node_parallel_agents
node_execution -->|"uses TDD"| node_tdd
node_agent -->|"uses when stuck"| node_debugging
node_agent -.->|"checks results"| node_verification
node_agent -.->|"isolates work"| node_worktrees
node_agent -.->|"handles feedback"| node_review_response
node_agent -.->|"authors skills"| node_skill_authoring
node_agent -.->|"runs through"| node_harness_adapters
node_agent -->|"runs through"| node_pi_adapter
node_brainstorm -.->|"offers companion"| node_visual_server
node_visual_server -->|"serves client"| node_visual_client

click node_brainstorm "https://github.com/learningof-ai/superpowers/tree/main/skills/brainstorming"
click node_planning "https://github.com/learningof-ai/superpowers/tree/main/skills/writing-plans"
click node_execution "https://github.com/learningof-ai/superpowers/tree/main/skills/subagent-driven-development"
click node_review "https://github.com/learningof-ai/superpowers/tree/main/skills/requesting-code-review"
click node_completion "https://github.com/learningof-ai/superpowers/tree/main/skills/finishing-a-development-branch"
click node_plan_execution "https://github.com/learningof-ai/superpowers/tree/main/skills/executing-plans"
click node_debugging "https://github.com/learningof-ai/superpowers/tree/main/skills/systematic-debugging"
click node_tdd "https://github.com/learningof-ai/superpowers/tree/main/skills/test-driven-development"
click node_verification "https://github.com/learningof-ai/superpowers/tree/main/skills/verification-before-completion"
click node_worktrees "https://github.com/learningof-ai/superpowers/tree/main/skills/using-git-worktrees"
click node_review_response "https://github.com/learningof-ai/superpowers/tree/main/skills/receiving-code-review"
click node_skill_authoring "https://github.com/learningof-ai/superpowers/tree/main/skills/writing-skills"
click node_parallel_agents "https://github.com/learningof-ai/superpowers/tree/main/skills/dispatching-parallel-agents"
click node_bootstrap_skill "https://github.com/learningof-ai/superpowers/tree/main/skills/using-superpowers"
click node_harness_adapters "https://github.com/learningof-ai/superpowers/blob/main/.opencode/plugins/superpowers.js"
click node_pi_adapter "https://github.com/learningof-ai/superpowers/blob/main/.pi/extensions/superpowers.ts"
click node_visual_server "https://github.com/learningof-ai/superpowers/blob/main/skills/brainstorming/scripts/server.cjs"
click node_visual_client "https://github.com/learningof-ai/superpowers/blob/main/skills/brainstorming/scripts/helper.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_brainstorm,node_planning,node_execution,node_review,node_completion,node_plan_execution toneBlue
class node_debugging,node_tdd,node_verification,node_worktrees,node_review_response,node_skill_authoring,node_parallel_agents toneAmber
class node_bootstrap_skill,node_harness_adapters,node_pi_adapter,node_visual_server,node_visual_client toneMint
class node_developer,node_agent toneIndigo
```

## Components

### Development workflow

- [Brainstorming](https://github.com/learningof-ai/superpowers/tree/main/skills/brainstorming): `skills/brainstorming`
- [Writing plans](https://github.com/learningof-ai/superpowers/tree/main/skills/writing-plans): `skills/writing-plans`
- [Subagent development](https://github.com/learningof-ai/superpowers/tree/main/skills/subagent-driven-development): `skills/subagent-driven-development`
- [Code review](https://github.com/learningof-ai/superpowers/tree/main/skills/requesting-code-review): `skills/requesting-code-review`
- [Branch completion](https://github.com/learningof-ai/superpowers/tree/main/skills/finishing-a-development-branch): `skills/finishing-a-development-branch`
- [Plan execution](https://github.com/learningof-ai/superpowers/tree/main/skills/executing-plans): `skills/executing-plans`

### Engineering skills

- [Systematic debugging](https://github.com/learningof-ai/superpowers/tree/main/skills/systematic-debugging): `skills/systematic-debugging`
- [Test-driven development](https://github.com/learningof-ai/superpowers/tree/main/skills/test-driven-development): `skills/test-driven-development`
- [Completion verification](https://github.com/learningof-ai/superpowers/tree/main/skills/verification-before-completion): `skills/verification-before-completion`
- [Git worktrees](https://github.com/learningof-ai/superpowers/tree/main/skills/using-git-worktrees): `skills/using-git-worktrees`
- [Review response](https://github.com/learningof-ai/superpowers/tree/main/skills/receiving-code-review): `skills/receiving-code-review`
- [Writing skills](https://github.com/learningof-ai/superpowers/tree/main/skills/writing-skills): `skills/writing-skills`
- [Parallel agents](https://github.com/learningof-ai/superpowers/tree/main/skills/dispatching-parallel-agents): `skills/dispatching-parallel-agents`

### Agent integrations

- [Agent bootstrap](https://github.com/learningof-ai/superpowers/tree/main/skills/using-superpowers): `skills/using-superpowers`
- [Harness adapters](https://github.com/learningof-ai/superpowers/blob/main/.opencode/plugins/superpowers.js): `.opencode/plugins/superpowers.js`
- [Pi extension](https://github.com/learningof-ai/superpowers/blob/main/.pi/extensions/superpowers.ts): `.pi/extensions/superpowers.ts`
- [Visual companion server](https://github.com/learningof-ai/superpowers/blob/main/skills/brainstorming/scripts/server.cjs): `skills/brainstorming/scripts/server.cjs`
- [Companion browser client](https://github.com/learningof-ai/superpowers/blob/main/skills/brainstorming/scripts/helper.js): `skills/brainstorming/scripts/helper.js`

### Other components

- **Developer**
- **Coding agent**

## Connections

- Developer → Coding agent: requests work (evidence: `README.md`)
- Coding agent → Agent bootstrap: loads bootstrap (evidence: `README.md`)
- Agent bootstrap → Brainstorming: triggers skill (evidence: `README.md`)
- Brainstorming → Developer: elicits intent (evidence: `README.md`)
- Brainstorming → Writing plans: approved design (evidence: `README.md`)
- Writing plans → Developer: presents plan (evidence: `README.md`)
- Writing plans → Subagent development: starts implementation (evidence: `README.md`)
- Subagent development → Plan execution: delegates tasks (evidence: `README.md`)
- Subagent development → Code review: inspects work (evidence: `README.md`)
- Code review → Branch completion: reviewed work
- Subagent development → Parallel agents: uses agents (evidence: `README.md`)
- Subagent development → Test-driven development: uses TDD (evidence: `README.md`)
- Coding agent → Systematic debugging: uses when stuck (evidence: `README.md`)
- Coding agent → Completion verification: checks results
- Coding agent → Git worktrees: isolates work
- Coding agent → Review response: handles feedback
- Coding agent → Writing skills: authors skills
- Coding agent → Harness adapters: runs through
- Coding agent → Pi extension: runs through (evidence: `README.md`)
- Brainstorming → Visual companion server: offers companion
- Visual companion server → Companion browser client: serves client (evidence: `skills/brainstorming/scripts/server.cjs`)
