Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Superpowers

Superpowers

Superpowers is a development workflow skill package for AI coding tools; it makes the AI clarify requirements and make plans before writing code, reducing the number of repeated revisions.


Common dilemmas of AI coding

After describing a requirement, the AI immediately starts writing code, and only after hundreds of lines does it realize the direction is wrong -- edge cases unhandled, interface style mismatched, key logic misunderstood.

Then back-and-forth modifications; sometimes more time is spent on corrections than on the initial coding.

What's more troublesome is complex requirements involving multiple modules and phased implementation; the AI drifts off track as it writes, and by the time you notice, many files have been changed and even rolling back is a hassle.


Root cause of the problem

The default behavior of AI coding tools after receiving a requirement is to start writing code directly.

This is fine for simple tasks, but for slightly more complex requirements, "writing directly" skips a key step: clarifying the requirements.

However ambiguous the requirements are, it all eventually becomes problems in the code. The AI won't proactively ask follow-up questions, nor does it have a systematic implementation plan; it just moves forward based on its current understanding and goes back to fix things when it drifts.

If we can have the AI clarify requirements, list an implementation plan, confirm boundaries before writing code, and only then start, the whole process becomes much more stable.


What is Superpowers

Superpowers is a development workflow skill package for AI coding tools.

It organizes the key stages of software development -- requirement analysis, implementation planning, test-driven development, code review, branch management -- into skill files. Once installed in an AI coding tool, the AI automatically triggers the corresponding workflow at the right time, without needing manual prompts each time.

In one sentence: install a development methodology on the AI so it works according to a process, rather than starting to write as soon as it receives a requirement.

Projects Information
GitHub repository https://github.com/obra/superpowers
License MIT
Supported tools Claude Code、Cursor、Codex CLI、Codex App、Gemini CLI、GitHub Copilot CLI

Workflow overview

Superpowers' core process is divided into four stages, each with clear goals and outputs; the AI does not skip any step.

Superpowers Workflow Diagram

Stage Name What it does Output
1 Requirement analysis The AI asks questions in return, clarifies ambiguities, and presents the design in segments for confirmation Confirmed requirements document
2 Implementation planning Break the work into concrete 2-5 minute tasks, each including files, code, and verification methods An executable task list
3 Execute tasks Execute tasks one by one, and after each task do a double-round check (specification + quality) Verified code
4 Deliver code Confirm all tasks are complete, the code conforms to the design spec, and quality is acceptable Deliverable code

Installation method

Different AI coding tools have different installation methods; choose the appropriate one for your tool.

Claude Code (recommended method)

Claude Code can be installed directly from the official plugin marketplace.



# Install from official plugin market (recommended)

/plugin install superpowers@claude-plugins-official

It can also be installed from Superpowers' own marketplace.



# Add Superpowers market

/plugin marketplace add obra/superpowers-marketplace



# Install from Superpowers market

/plugin install superpowers@superpowers-marketplace

Cursor

Enter the command in Cursor's Agent dialog to install.



# Enter in the Agent dialogue box

/add-plugin superpowers

You can also search for superpowers in the plugin marketplace to install.

Codex CLI



# Open plugin management interface

/plugins



# Search superpowers, select Install Plugin

Gemini CLI



# Install via extension

gemini extensions install https://github.com/obra/superpowers

Each tool needs to be installed separately; installing in Claude Code doesn't mean it's in Cursor too.

Tool Installation method Whether an extra marketplace is needed
Claude Code /plugin install The official marketplace is fine; Superpowers' marketplace also works
Cursor /add-plugin Or search in the plugin marketplace Not required
Codex CLI /plugins Search and install in the UI Not required
Gemini CLI gemini extensions install Not required

The actual experience after installation

After installation, there's no need to learn new commands or change work habits; just describe requirements as usual, and Superpowers will intervene automatically in the background.

When starting a new feature

After you describe a requirement, the AI won't immediately start writing code.

It will first ask you a few questions in return, clarify ambiguities, and present the design in segments for your confirmation.

This stage is called brainstorming, aiming to align requirements before starting. Only after you confirm does the AI move to the next step.

Entering the implementation phase

After requirements are confirmed, the AI generates an implementation plan, breaking the work into concrete 2-5 minute tasks.

Each task includes: which files are involved, what code to write, and how to verify.

The plan is granular to the point where "a junior engineer could execute it given this description" -- this design is so that subagents can reliably execute each step, reducing misunderstanding during execution.

Execution stage

After the plan is confirmed, the AI executes the tasks one by one.

After each task, two rounds of checks are done: first whether it conforms to the design spec, then code quality.

Problems found are resolved within the current task, not carried forward.

You don't need to watch over the whole execution; just let the AI run, and if it gets stuck it will pause and come to you.

Verify the installation

For example, if we type in Claude Code:



设计一个好看的手机产品宣传页

you'll see superpowers:brainstorming, which means the installation succeeded:

A typical beginner scenario: developing a Todo App from scratch

Suppose we want to implement a Todo app with CRUD support (React + local storage).

Traditional direct prompting approach:



用 React 帮我写一个 Todo App。

The AI usually generates a large amount of code at once; it looks feature-complete on the surface, but may have the following problems:

Superpowers' structured approach is completely different: it doesn't let the AI enter the coding phase immediately, but proceeds through the following steps:


Core workflows in detail

Superpowers provides three core workflows, each covering a different part of development.

Test-driven development (TDD)

The test-driven-development skill forces the AI to follow the RED-GREEN-REFACTOR sequence.

First write a failing test, watch it fail, then write the minimum code to make it pass, and finally refactor.

If the AI writes code before writing tests, this skill requires it to delete and start over.

Step Name What it does
RED Write a failing test First write a test case that currently fails, clarifying the expected behavior
GREEN Write minimum code to pass Write only the minimum code needed to pass the test, no more
REFACTOR Refactor Optimize code structure under test protection, ensuring tests still pass

For projects without a TDD habit, this process may feel a bit uncomfortable, but it does reduce cases of finding bugs later and having to go back and fix them.

Git Worktree isolation

using-git-worktrees automatically creates an isolated working branch after the design is confirmed.

This way the AI's code changes don't directly pollute the main branch, which is useful for parallel tasks or when rollback is needed.

Git Worktree is a native Git feature that lets you check out multiple branches into different directories in the same repository at the same time, more git stash + git checkout cleaner.

Systematic debugging

The systematic-debugging skill makes the AI follow a 4-step troubleshooting process when encountering problems, rather than guessing.

When encountering an error, first locate the root cause, then handle it, rather than starting to change code and hoping for the best.

Step What it does Why
1. Reproduce the problem Confirm it can be reproduced reliably, record the trigger conditions A bug that cannot be reproduced cannot have its fix verified
2. Locate the root cause Narrow down step by step to find the specific code line causing the problem Treat-the-symptom-not-the-cause fixes introduce new problems
3. Implement the fix Modify the code targeting the root cause Minimize the scope of changes
4. Verify the fix Confirm the problem is resolved and no new problems were introduced Ensure the fix is effective

A few things to know before using

The process is longer

After installing Superpowers, even simple requirements go through requirement analysis and planning before coding starts.

If you're just fixing a small bug or adding a line of configuration, this process seems redundant.

Superpowers is suitable for feature development with some complexity; for simple tasks just let the AI write directly, no need to apply this whole process.

Requires your participation in early discussions

The brainstorming stage requires you to answer questions and confirm the plan.

If you expect to "throw it at the AI and let it run fully automatically", this design may make you uncomfortable.

Superpowers is positioned as human-AI collaborative development, not fully automatic code generation.

Experience varies across tools

The README mentions Claude can run for two hours without deviating from the plan, but this performance varies by tool, project, and task complexity, so the actual experience may differ.

Points to note Description Applicable scenarios
Longer process Simple requirements are also analyzed before starting Feature development of medium or higher complexity
Need to participate in discussions The brainstorming stage requires you to confirm the plan Developers willing to spend time on upfront alignment
Experience differences Different tools and projects perform differently All users should be aware