Skip to content

Checking your reading list…

Retry

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Superpowers: Teaching AI Agents to Code Like Disciplined Engineers

Superpowers is an open-source plugin that injects software engineering workflows—requirements clarification, design, TDD, code review, and Git isolation—into AI coding agents like Claude Code, forcing them to follow disciplined processes instead of just generating code.

What Is Superpowers?

Superpowers is an open-source project that provides an "engineering skill pack" for AI coding agents. Rather than building another AI coding tool, it adds a layer of software engineering discipline on top of existing agents such as Claude Code, Codex CLI, Cursor, Gemini CLI, and OpenCode. The core idea: don't just make agents smarter—make them follow a rigorous engineering process before writing code.

Don't just let the agent write code; let it write code by following an engineering process.

Superpowers packages key engineering actions into composable Skills that guide agent behavior:

Requirements clarification

Solution design

Implementation planning

Test-driven development (TDD)

Systematic debugging

Git worktree isolation

Sub-agent collaboration

Code review

Branch cleanup

Applicable Scenarios

Developers using AI coding tools daily (Claude Code, Codex CLI, Cursor, Gemini CLI, OpenCode) who want agents to act like process-aware engineers.

Teams maintaining complex projects where uncontrolled agent changes create risk; Superpowers enforces design docs, plans, tests, reviews, and branch isolation.

Organizations wanting to codify engineering standards for agents —e.g., mandatory tests, small commits, pre-merge reviews, result verification.

Typical use cases: new feature development, complex bug fixes, refactoring, and medium-to-large tasks. For new pages or APIs, it guides requirement and design clarification; for tricky bugs, it enforces systematic diagnosis; for refactoring or multi-module work, it adds planning, testing, and review for control.

Technical Implementation

The architecture has three layers:

Top layer: AI coding tools (Claude Code, Codex CLI, Gemini CLI, Cursor, OpenCode). Superpowers does not replace them; it installs as a plugin/extension.

Middle layer: Superpowers core—a set of Skills, each mapping to an engineering workflow. The agent selects the appropriate Skill for the current scenario and executes its defined steps.

Bottom layer: The actual project environment—code repository, Git branches, test suites, design docs, implementation plans, PR/merge flows. Superpowers does not take over these tools; it guides the agent to use them in the correct order.

The typical injected workflow: Requirements clarification → Design → Planning → Development → Testing → Review → Cleanup .

Installation

Method 1: Via Claude Official Plugin Marketplace

In Claude Code, run:

/plugin install superpowers@claude-plugins-official

Restart Claude Code after installation.

Method 2: Via Superpowers Marketplace

# Add marketplace
/plugin marketplace add obra/superpowers-marketplace
# Install core plugin
/plugin install superpowers@superpowers-marketplace

Restart Claude Code, then run /reload-plugins if needed.

Demo: Adding a Mock Login Endpoint

Scenario: a frontend project without a backend needs a mock user login API. Without Superpowers, an agent might immediately write controller, service, and mapper files. With Superpowers, the flow is process-driven.

User invokes the brainstorming skill:

/superpowers:brainstorming I want to add a user login endpoint to the current project, requiring:
1. Username/password login
2. Return token on success
3. Clear error messages on failure
4. Include unit tests
5. Don't write code yet—help me design the solution first.

The agent enters a brainstorming flow: it asks clarifying questions (backend approach, UI entry points, post-login behavior) until it has enough information, then summarizes a design for user confirmation.

After design approval, it produces a design document and moves to an implementation planning phase, breaking the work into concrete steps before any code is written.

Summary

Superpowers makes AI agents work like professional engineers by packaging requirements clarification, design, task breakdown, TDD, code review, and branch cleanup into composable Skills. It shifts the paradigm from "agent writes code" to "agent follows an engineering process." The future of AI coding is not just prompt engineering—it's agent engineering.

Project repository:

https://github.com/obra/superpowers
About this article

For questions about attribution, corrections or content rights, please contactadmin@besthub.devand we will review it promptly.

Software Engineeringcode reviewtddGit worktreeClaude CodeAI coding agentsagent workflowSuperpowers

Discussion 0

Questions, practical examples and thoughtful responses.

Open full discussion