# learn-by-exploration/ai-powerhouse architecture

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

- Interactive diagram: https://gitdiagram.com/learn-by-exploration/ai-powerhouse
- Repository: https://github.com/learn-by-exploration/ai-powerhouse

## Overview

#### Purpose and Runtime

AI Powerhouse is a Claude Code distribution layer: it curates upstream Claude-related repositories as git submodules and exposes selected agents, skills, commands, hooks, and rules through a collision-safe `~/.claude` installation. It is a Bash-driven CLI repository, not an application service. Core entry points are `master/install.sh` and `master/uninstall.sh`.

#### Source-Collection Boundary

The repository root contains upstream content as independently versioned submodules, plus a local `master/` integration layer. Installable sources include `everything-claude-code/`, `superpowers/`, `get-shit-done/`, `wshobson-agents/`, `anthropics-skills/`, and others. Some submodules are deliberately browse-only references, such as `autoresearch/`, `awesome-claude-code/`, and `pm-workspace/`; they do not contribute installed tools.

Pinned source provenance is maintained in `submodule-hashes.lock`. `scripts/verify-submodules.sh` validates local submodule revisions, while `scripts/update-hashes.sh` refreshes the lock after upstream updates.

#### Installer as Integration Engine

`master/install.sh` is the primary control plane. It discovers supported upstream layouts, creates Claude Code target directories, and symlinks source Markdown assets into the target with source-specific prefixes. Prefixing establishes the central compatibility boundary: upstream names are translated into a shared namespace, avoiding collisions across providers.

The installer supports default, full, Ruflo-enabled, backup, local-target, and dry-run modes. It targets `~/.claude` by default, or `master/.claude` for local installation. It preserves pre-existing real files and replaces only its own symlinks. Absolute symlinks mean the clone location becomes runtime-critical.

#### Installed Claude Code Surface

The resulting runtime surface is Claude Code’s conventional filesystem contract: agents, skills, commands, rules, hooks, and session instructions under `~/.claude`. The local bootstrap and routing assets are:
- `master/CLAUDE.md`
- `master/skills/agent-routing/SKILL.md`
- `master/skills/se-lifecycle/SKILL.md`
- `master/agents/se-systems-engineer.md`

`master/CLAUDE.md` causes routing behavior to be available at session start; most installed assets remain on-demand rather than always loaded.

#### Routing and Workflow Layers

The routing skill in `master/skills/agent-routing/SKILL.md` is the top-level dispatch stage: it maps a user task to specialist tools from upstream providers. The lifecycle skill and systems-engineer agent add an ISO/IEC/IEEE 15288-oriented engineering workflow, with reference material in `docs/se-15288.md`.

Typical flow is: Claude Code session starts → local instruction/routing context loads → task is classified → a prefixed agent, skill, or command is invoked → that source asset operates in the user’s repository. This project does not execute those workflows itself; it installs and names their definitions.

#### Optional External-Service Boundaries

Most tools are static Markdown integrations with no required service. Optional functionality crosses external boundaries:
- `claude-mem/` provides cross-session memory through an MCP server, using Bun and configured in Claude Code settings.
- `claude-task-master/` supplies task-lifecycle MCP integration.
- `ruflo/` is opt-in because its hooks depend on the `claude-flow` MCP server and add runtime overhead.
- `plantuml-skill/` can render via the Kroki API; `drawio-skill/` may use draw.io desktop CLI.

#### Removal and Operational Safety

`master/uninstall.sh` reverses the integration by removing Powerhouse-owned prefixed symlinks and manifest-related artifacts while leaving unrelated `~/.claude` content intact. Installation and removal both support dry-run behavior. Repository-level quality gates focus on reproducible submodule state and installation verification, reflected in `.github/workflows/test-install.yml`, `scripts/verify-submodules.sh`, and `submodule-hashes.lock`.

Main entry points: [`master/install.sh`](https://github.com/learn-by-exploration/ai-powerhouse/blob/main/master/install.sh) (Installer), [`master/skills/agent-routing/SKILL.md`](https://github.com/learn-by-exploration/ai-powerhouse/blob/main/master/skills/agent-routing/SKILL.md) (Agent routing), [`master/skills/se-lifecycle/SKILL.md`](https://github.com/learn-by-exploration/ai-powerhouse/blob/main/master/skills/se-lifecycle/SKILL.md) (SE lifecycle), [`master/agents/se-systems-engineer.md`](https://github.com/learn-by-exploration/ai-powerhouse/blob/main/master/agents/se-systems-engineer.md) (Systems engineer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_sources["Curated sources"]
  node_upstream_submodules[("Upstream submodules<br/>source collection")]
  node_submodule_lock["Pinned revisions<br/>lockfile"]
  node_verify_submodules["Revision verifier<br/>Bash script"]
  node_update_hashes["Lock refresher<br/>Bash script<br/>[update-hashes.sh]"]
end

subgraph group_integration["Integration layer"]
  node_installer["Installer<br/>Bash CLI<br/>[install.sh]"]
  node_uninstaller["Uninstaller<br/>Bash CLI<br/>[uninstall.sh]"]
  node_install_modes["Install modes<br/>CLI behavior<br/>[install.sh]"]
  node_install_ci["Installation quality gate<br/>GitHub Actions workflow<br/>[test-install.yml]"]
end

subgraph group_runtime["Claude Code runtime"]
  node_session_instructions["Session instructions<br/>Claude instruction<br/>[CLAUDE.md]"]
  node_claude_home[("Claude filesystem<br/>runtime target")]
  node_installed_assets["Prefixed tool definitions<br/>agents, skills, commands"]
  node_routing_skill["Agent routing<br/>routing skill<br/>[SKILL.md]"]
  node_lifecycle_skill["SE lifecycle<br/>workflow skill<br/>[SKILL.md]"]
  node_systems_engineer["Systems engineer<br/>specialist agent"]
  node_se_reference["15288 reference<br/>documentation<br/>[se-15288.md]"]
  node_user_repository["User repository<br/>execution context"]
end

subgraph group_optional["Optional integrations"]
  node_mcp_integrations{{"Memory and task MCP<br/>optional MCP"}}
  node_ruflo{{"Ruflo hooks<br/>optional hooks"}}
  node_rendering_tools{{"Diagram rendering<br/>optional external tools"}}
end

node_upstream_submodules -->|"pinned by"| node_submodule_lock
node_verify_submodules -->|"checks"| node_submodule_lock
node_update_hashes -->|"refreshes"| node_submodule_lock
node_install_ci -->|"runs"| node_verify_submodules
node_upstream_submodules -->|"asset source"| node_installer
node_installer -->|"supports"| node_install_modes
node_installer -->|"creates links in"| node_claude_home
node_installer -->|"prefixes and symlinks"| node_installed_assets
node_session_instructions -->|"installed into"| node_claude_home
node_routing_skill -->|"installed into"| node_claude_home
node_lifecycle_skill -->|"installed into"| node_claude_home
node_systems_engineer -->|"installed into"| node_claude_home
node_session_instructions -->|"loads at session start"| node_routing_skill
node_routing_skill -->|"dispatches"| node_installed_assets
node_routing_skill -.->|"can select"| node_lifecycle_skill
node_lifecycle_skill -->|"uses"| node_systems_engineer
node_systems_engineer -->|"references"| node_se_reference
node_installed_assets -->|"operate in"| node_user_repository
node_uninstaller -->|"removes owned links from"| node_claude_home
node_ruflo -.->|"optional installation"| node_claude_home
node_mcp_integrations -.->|"configured for"| node_claude_home
node_rendering_tools -.->|"used by optional skills"| node_installed_assets

click node_submodule_lock "https://github.com/learn-by-exploration/ai-powerhouse/blob/main/submodule-hashes.lock"
click node_verify_submodules "https://github.com/learn-by-exploration/ai-powerhouse/blob/main/scripts/verify-submodules.sh"
click node_update_hashes "https://github.com/learn-by-exploration/ai-powerhouse/blob/main/scripts/update-hashes.sh"
click node_installer "https://github.com/learn-by-exploration/ai-powerhouse/blob/main/master/install.sh"
click node_uninstaller "https://github.com/learn-by-exploration/ai-powerhouse/blob/main/master/uninstall.sh"
click node_install_modes "https://github.com/learn-by-exploration/ai-powerhouse/blob/main/master/install.sh"
click node_session_instructions "https://github.com/learn-by-exploration/ai-powerhouse/blob/main/master/CLAUDE.md"
click node_routing_skill "https://github.com/learn-by-exploration/ai-powerhouse/blob/main/master/skills/agent-routing/SKILL.md"
click node_lifecycle_skill "https://github.com/learn-by-exploration/ai-powerhouse/blob/main/master/skills/se-lifecycle/SKILL.md"
click node_systems_engineer "https://github.com/learn-by-exploration/ai-powerhouse/blob/main/master/agents/se-systems-engineer.md"
click node_se_reference "https://github.com/learn-by-exploration/ai-powerhouse/blob/main/docs/se-15288.md"
click node_install_ci "https://github.com/learn-by-exploration/ai-powerhouse/blob/main/.github/workflows/test-install.yml"

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_upstream_submodules,node_submodule_lock,node_verify_submodules,node_update_hashes toneBlue
class node_installer,node_uninstaller,node_install_modes,node_install_ci toneAmber
class node_session_instructions,node_claude_home,node_installed_assets,node_routing_skill,node_lifecycle_skill,node_systems_engineer,node_se_reference,node_user_repository toneMint
class node_mcp_integrations,node_ruflo,node_rendering_tools toneRose
```

## Components

### Curated sources

Pinned upstream submodules.

- **Upstream submodules**: source collection · Installable and browse-only Claude-related repositories.
- [Pinned revisions](https://github.com/learn-by-exploration/ai-powerhouse/blob/main/submodule-hashes.lock): lockfile · Records approved submodule provenance. · `submodule-hashes.lock`
- [Revision verifier](https://github.com/learn-by-exploration/ai-powerhouse/blob/main/scripts/verify-submodules.sh): Bash script · Validates local submodule revisions against the lock. · `scripts/verify-submodules.sh`
- [Lock refresher](https://github.com/learn-by-exploration/ai-powerhouse/blob/main/scripts/update-hashes.sh): Bash script · Refreshes pinned revisions after upstream updates. · `scripts/update-hashes.sh`

### Integration layer

Bash installation and removal control plane.

- [Installer](https://github.com/learn-by-exploration/ai-powerhouse/blob/main/master/install.sh): Bash CLI · Discovers layouts and creates collision-safe prefixed symlinks. · `master/install.sh`
- [Uninstaller](https://github.com/learn-by-exploration/ai-powerhouse/blob/main/master/uninstall.sh): Bash CLI · Removes only Powerhouse-owned links and artifacts. · `master/uninstall.sh`
- [Install modes](https://github.com/learn-by-exploration/ai-powerhouse/blob/main/master/install.sh): CLI behavior · Default, full, Ruflo, backup, local-target, and dry-run modes. · `master/install.sh`
- [Installation quality gate](https://github.com/learn-by-exploration/ai-powerhouse/blob/main/.github/workflows/test-install.yml): GitHub Actions workflow · Verifies reproducible submodule state and installation behavior. · `.github/workflows/test-install.yml`

### Claude Code runtime

Installed filesystem contract and routing.

- [Session instructions](https://github.com/learn-by-exploration/ai-powerhouse/blob/main/master/CLAUDE.md): Claude instruction · Bootstraps routing behavior at session start. · `master/CLAUDE.md`
- **Claude filesystem**: runtime target · ~/.claude by default; master/.claude for local installation.
- **Prefixed tool definitions**: agents, skills, commands · Symlinked Markdown assets retain provider-specific namespaces.
- [Agent routing](https://github.com/learn-by-exploration/ai-powerhouse/blob/main/master/skills/agent-routing/SKILL.md): routing skill · Classifies tasks and dispatches specialist tools. · `master/skills/agent-routing/SKILL.md`
- [SE lifecycle](https://github.com/learn-by-exploration/ai-powerhouse/blob/main/master/skills/se-lifecycle/SKILL.md): workflow skill · Adds an ISO/IEC/IEEE 15288-oriented workflow. · `master/skills/se-lifecycle/SKILL.md`
- [Systems engineer](https://github.com/learn-by-exploration/ai-powerhouse/blob/main/master/agents/se-systems-engineer.md): specialist agent · `master/agents/se-systems-engineer.md`
- [15288 reference](https://github.com/learn-by-exploration/ai-powerhouse/blob/main/docs/se-15288.md): documentation · `docs/se-15288.md`
- **User repository**: execution context · Invoked definitions operate here, not in this repository.

### Optional integrations

Opt-in external-service-backed tools.

- **Memory and task MCP**: optional MCP · claude-mem and claude-task-master provide optional runtime integrations.
- **Ruflo hooks**: optional hooks · Requires claude-flow MCP and adds runtime overhead.
- **Diagram rendering**: optional external tools · PlantUML may use Kroki; draw.io may use its desktop CLI.

## Connections

- Upstream submodules → Pinned revisions: pinned by
- Revision verifier → Pinned revisions: checks
- Lock refresher → Pinned revisions: refreshes
- Installation quality gate → Revision verifier: runs
- Upstream submodules → Installer: asset source
- Installer → Install modes: supports
- Installer → Claude filesystem: creates links in
- Installer → Prefixed tool definitions: prefixes and symlinks
- Session instructions → Claude filesystem: installed into
- Agent routing → Claude filesystem: installed into
- SE lifecycle → Claude filesystem: installed into
- Systems engineer → Claude filesystem: installed into
- Session instructions → Agent routing: loads at session start
- Agent routing → Prefixed tool definitions: dispatches
- Agent routing → SE lifecycle: can select
- SE lifecycle → Systems engineer: uses
- Systems engineer → 15288 reference: references
- Prefixed tool definitions → User repository: operate in
- Uninstaller → Claude filesystem: removes owned links from
- Ruflo hooks → Claude filesystem: optional installation
- Memory and task MCP → Claude filesystem: configured for
- Diagram rendering → Prefixed tool definitions: used by optional skills
