Architecture of obra/superpowers
obra/superpowers is 218 source files holding 516 symbols across 8 modules, written mainly in Shell, JavaScript, Python. The largest module is tests, with 62 files, and 3 files are entry points into the dependency graph.
How superpowers fits together
Input enters through the coding agent: when a session starts, the using-superpowers bootstrap is loaded, and the skills trigger automatically as work begins. The skills directory holds the composable skills, and skills/brainstorming/scripts/server.cjs is one of the project's entry points. index.js is the package entry point, and .opencode/plugins/superpowers.js is the entry point for OpenCode. The .claude-plugin/plugin.json and .codex-plugin/plugin.json manifests register the plugin with Claude Code and Codex. The scripts directory holds helpers such as scripts/sync-to-codex-plugin.sh, and the tests directory holds the test suites, including a Node test for the brainstorm server. The output is a conversation flow: an approved design, then an implementation plan, then tasks that subagents work through while reviewing their own output.
Largest modules
- tests: 62 files and 8,759 lines of code
- skills: 13 files and 1,413 lines of code
- scripts: 5 files and 1,034 lines of code
- .hermes-plugin: 1 file and 98 lines of code
- .opencode: 1 file and 201 lines of code
- .pi: 1 file and 89 lines of code
- hooks: 1 file and 39 lines of code
- root: 1 file and 1 line of code
Languages
By file count: Shell 60 files, JavaScript 17 files, Python 6 files, TypeScript 2 files.
Documentation
Repowise documents superpowers in 38 pages generated from the source, 10 of them written explanations of the repository and its modules. Module guides include:
- skills/brainstorming/scripts: Debugging Skills
- root: Package Entry Point
- scripts: Release, Lint, and Packaging Scripts
- hooks: Session Start Hook
More on superpowers: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos