Superpowers

Agentic Skills Framework & Software Development Methodology

obra/superpowers — 102.7k stars

agent37.club

What Is Superpowers?

A structured development methodology for AI coding agents

Superpowers is a plugin system that equips Claude Code and other AI agents with composable "skills" — structured instructions that enforce disciplined software development practices.

  • Created by Jesse Vincent at Prime Radiant
  • MIT licensed, fully open source
  • 14 composable skills in the core library
  • Available on Claude Code marketplace (Jan 2026)

Core Insight

AI agents are capable but undisciplined. The bottleneck isn't intelligence — it's process. Superpowers provides the missing methodology.

# Repo structure
skills/          # 14 skill definitions
agents/          # Subagent configs
commands/        # CLI commands
docs/            # Platform docs
hooks/           # Integration hooks

Four Foundational Principles

The philosophy that drives every skill

01

Test-Driven Development

Tests precede implementation. Always. No exceptions. Code written before tests gets deleted.

02

Systematic Over Ad-Hoc

Process-driven development replaces intuition-based coding. Every phase has explicit rules.

03

Complexity Reduction

Simplicity is the primary design objective. YAGNI and DRY enforced at every stage.

04

Evidence Over Claims

Verification required before declaring success. No "I think it works" — prove it.

These aren't suggestions. They're enforced constraints baked into skill definitions. The AI literally cannot proceed without satisfying them.

The Seven-Phase Workflow

From idea to merged code, fully orchestrated

1. Brainstorming

Socratic questioning to refine the idea. Design presented in reviewable sections. User approval required before proceeding.

2. Git Worktrees

Isolated workspace on a new branch. Project setup auto-detected. Clean test baseline established.

3. Planning

Work decomposed into 2-5 minute tasks with exact file paths, complete code specs, and verification steps.

4. Execution

Subagents dispatched per task. Two-stage review: spec compliance first, then code quality.

5. TDD Enforcement

RED-GREEN-REFACTOR cycles. Failing test required before any implementation code is written.

6. Code Review

Pre-merge review against plan specs. Issues reported by severity level.

7. Branch Completion

All tests verified. Merge/PR options presented. Workspace cleaned up.

Skills Architecture

14 composable skills organized by domain

SkillDomain
brainstormingCollaboration
writing-plansPlanning
executing-plansPlanning
test-driven-developmentTesting
systematic-debuggingDebugging
verification-before-completionQuality
requesting-code-reviewReview
SkillDomain
receiving-code-reviewReview
using-git-worktreesWorkflow
finishing-a-development-branchWorkflow
subagent-driven-developmentCoordination
dispatching-parallel-agentsCoordination
using-superpowersSystem
writing-skillsExtensibility

Skill File Anatomy

Each skill lives in skills/skill-name/SKILL.md

---
name: test-driven-development
description: Use when implementing any
  feature or bugfix, before writing
  implementation code
---

# Overview
Write the test first. Watch it fail.
Write minimal code to pass.

# When to Use
- Always for features and fixes
- Rare exceptions need human approval

# The Iron Law
No production code without a failing
test first. Violation = DELETE and
start over.

# Red-Green-Refactor Cycle
# Common Rationalizations
# Red Flags

Key Sections

  • Frontmatter — YAML with name + description (trigger conditions)
  • Overview — Core principle in 1-2 sentences
  • When to Use — Symptom-based triggers
  • Core Pattern — Before/after comparisons
  • Common Mistakes — Specific errors and fixes
  • Red Flags — Self-check violations

Critical Detail

The description field determines when the skill gets loaded. It must describe triggering conditions, not summarize the workflow. Bad descriptions = skills that never activate.

How Skills Get Loaded

Claude Search Optimization (CSO)

Skills are not always loaded. The AI agent searches skill descriptions when it encounters a relevant situation, deciding in real-time which skills to read.

The Description is Everything

Descriptions answer: "Should I read this right now?" They must state triggers and symptoms — not workflow steps.

Anti-pattern

# BAD: summarizes workflow
description: Guides the agent through
  red-green-refactor TDD cycles

# GOOD: states trigger condition
description: Use when implementing any
  feature or bugfix, before writing
  implementation code

Keyword Strategy

  • Error messages the agent might search for
  • Symptoms: "flaky", "hanging", "race condition"
  • Tool names and library references
  • Synonyms for common problems

Size Constraints

TypeMax Words
Getting-started150
Frequently-loaded200
Other skills500

Token-efficient by design. Cross-reference other skills rather than repeating content.

Phase 1: Brainstorming

Nine steps from rough idea to approved design

1. Explore project context (files, docs, commits)

2. Offer visual companion if applicable

3. Ask clarifying questions (one per message)

4. Propose 2-3 approaches with tradeoffs

5. Present design in reviewable sections

6. Write design document, commit to git

7. Spec review loop (max 3 iterations)

8. User reviews written spec

9. Transition to writing-plans skill

The Hard Gate

"Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action until you have presented a design and the user has approved it."

Key Techniques

One question at a time (prevents cognitive overload). Multiple choice preferred. Ruthless scope discipline with YAGNI. "Simple" projects still require designs.

The terminal state is always invoking writing-plans. No other exit path allowed.

Phase 2: Git Worktrees

Isolated workspaces for safe development

Why Worktrees?

Standard branches require switching context and losing state. Worktrees create parallel directories on separate branches — the main workspace stays untouched.

Directory Priority

  • 1. Check for existing .worktrees/ directory
  • 2. Consult CLAUDE.md for preferences
  • 3. Ask the user if neither exists

Safety Verification

# MUST verify before creating
git check-ignore .worktrees/

# If NOT ignored, add first:
echo ".worktrees/" >> .gitignore
git add .gitignore
git commit -m "Ignore worktrees"

# Then create the worktree
git worktree add \
  .worktrees/feature-x -b feature-x

After Setup

Auto-detect project type (npm, cargo, poetry). Run setup. Run baseline tests. Never proceed with failing tests.

Phase 3: Writing Plans

Decomposing work into executable tasks

Plan Header

# Feature: User Auth
# Goal: JWT-based login

Architecture:
  Stateless auth with refresh
  token rotation...

Stack: Express, jsonwebtoken, bcrypt
Skills: test-driven-development

Task Format

Each task takes 2-5 minutes and follows TDD:

  • Exact file paths (creates, modifications, tests)
  • Complete code snippets (not vague descriptions)
  • Specific test commands with expected outputs
  • Conventional commit messages

Task Example

## Task 3: Password hashing

Files:
  CREATE src/auth/hash.ts
  CREATE tests/auth/hash.test.ts

Test (write first):
  test('hashes password', () => {
    const hash = hashPassword('pw')
    expect(hash).not.toBe('pw')
  })

Run: npm test -- hash
Expected: 1 failing (RED)

Implementation: ...
Commit: "feat(auth): add hash"

Design principle: Each file has one responsibility. Files that change together live together. If multiple subsystems exist, they get separate plans.

Phase 4: Subagent-Driven Development

Fresh agent per task, two-stage review after each

Main Agent (Foreman)extracts tasks, coordinates
Implementer Subagentfresh context per task
Spec Compliance Reviewerdoes it match requirements?
Code Quality Revieweris it well-built?
Fix & Verify Loopiterate until clean

Why Fresh Agents?

Long conversations degrade AI output quality. Fresh agents have no context pollution from previous tasks — each operates at peak capability.

Status Protocol

DONETask complete, tests pass
DONE_WITH_CONCERNSComplete but has notes
NEEDS_CONTEXTMissing information
BLOCKEDCannot proceed

Never force retries without addressing the underlying issue.

Phase 5: The TDD Iron Law

No production code without a failing test first

RED

Write a minimal failing test that captures one requirement. Run it. Confirm it fails for the right reason.

GREEN

Write the simplest possible code to make the test pass. Nothing more. Verify no regressions.

REFACTOR

Clean up while keeping tests green. Improve design without changing behavior. Commit.

The Nuclear Option

Code written before tests is automatically deleted. The skill instructs the agent to rm the file and restart. This seems extreme but eliminates the #1 TDD failure mode.

Common Rationalizations (Countered)

ExcuseReality
"It's too simple to test"Simple code gets complex fast
"I'll add tests after"Tests-after never prove it works
"Just a quick prototype"Prototypes become production
"Tests slow me down"Debugging slows you more
"The framework handles it"Framework bugs are your bugs
"I already know it works"Prove it. Run the test.

The skill includes 12 rationalizations with counters — each discovered through real AI agent testing.

Phases 6-7: Review & Completion

Quality gates before any code gets merged

Code Review Process

  • Spec compliance review comes first — does it match requirements?
  • Code quality review comes second — is it well-built?
  • Order matters: quality fixes must not violate spec
  • Issues reported by severity level
  • Implementer fixes, reviewer re-checks

Why Two Stages?

A single review mixes concerns. Separating spec from quality prevents "improved" code that no longer meets requirements.

Branch Completion

  • All tests verified passing
  • Merge or PR options presented
  • Workspace cleaned up
  • Summary of changes generated

Model Selection Strategy

Task TypeModel Tier
Mechanical, well-specifiedCheaper/faster
Multi-file integrationStandard
Architecture & reviewMost capable

Reserve capability for complexity. Don't waste expensive models on boilerplate.

Writing Skills: The Meta-Skill

TDD applied to process documentation itself

RED Phase

Create pressure scenarios. Run subagents without the skill. Document exactly how they fail:

  • What choices agents make
  • Verbatim rationalizations they offer
  • Which pressures trigger violations

GREEN Phase

Write minimal skill addressing only those specific failures. Run scenarios again — agents should now comply.

REFACTOR Phase

Agents find new rationalizations. Add explicit counters for each loophole. Build rationalization tables. Re-test until bulletproof.

# Skill file structure
skills/
  my-skill/
    SKILL.md       # Required
    reference.*    # Optional heavy ref

# SKILL.md anatomy
---
name: my-skill-name
description: Use when [trigger]
---
# Overview     1-2 sentences
# When to Use  symptom bullets
# Core Pattern before/after
# Quick Ref    scannable table
# Mistakes     errors + fixes
# Red Flags    self-check list

Key Constraint

Descriptions must start with Use when... and describe symptoms, never workflow. Bad: "Guides through TDD". Good: "Use when implementing any feature or bugfix".

Anti-Rationalization Engineering

The hardest problem: AI agents that argue back

AI agents are excellent rationalizers. Given any rule, they'll find creative justifications for violating it. Superpowers treats this as a first-class engineering problem.

Techniques

  • Close every loophole explicitly — don't just state the rule; forbid specific workarounds
  • Address spirit vs. letter — add foundational principles that cut off entire categories
  • Red flags checklist — help agents self-check when tempted
  • Rationalization tables — map every excuse to a counter-argument

Example: TDD Skill

# Common Rationalizations table

| Excuse | Reality |
"It's trivial"
  -> Trivial code gets complex fast

"I'll add tests after"
  -> Tests-after can't prove causation

"Just exploring"
  -> Exploration code becomes prod

# Red Flags
[ ] Writing code before tests
[ ] Tests that can't fail
[ ] Skipping the RED verify step
[ ] Multiple features per cycle

This approach uses psychological weight through repetition. The same core rule is stated multiple times in different contexts, making it harder for the agent to "forget".

Systematic Debugging

Four-phase root cause analysis, not guessing

1

Reproduce

Confirm the bug exists. Create a minimal reproduction. Document exact steps and expected vs. actual behavior.

2

Hypothesize

Form specific, testable hypotheses about root cause. List at least 3 candidates before investigating any.

3

Investigate

Test each hypothesis systematically. Gather evidence. Narrow down to root cause through elimination.

4

Fix & Verify

Write a test that reproduces the bug (RED). Fix it (GREEN). Verify no regressions. Commit.

Without This Skill

AI agents default to "shotgun debugging" — changing things randomly until something works. This leads to accidental fixes that break other things.

With This Skill

The agent follows a rigorous diagnostic process. Root causes are identified before solutions are attempted. Fixes are verified against the original bug report.

Notice how Phase 4 feeds back into the TDD skill — skills are composable. Debugging's fix phase triggers TDD's red-green-refactor cycle.

Verification Before Completion

The skill that prevents "it works on my machine"

AI agents have a dangerous tendency to declare success prematurely. This skill enforces evidence-based completion.

  • All tests must actually pass (not "should pass")
  • The agent must run the tests, not just claim it did
  • Output must be verified against expectations
  • Edge cases must be explicitly tested
  • No "I'm confident this works" without proof

The Anti-Pattern

"I've reviewed the code and it looks correct" is not verification. Running the test suite and seeing green output is verification.

Verification Checklist

# Before declaring DONE:

[ ] Tests exist for all new code
[ ] Test suite actually executed
[ ] All tests pass (screenshot/log)
[ ] No regressions in existing tests
[ ] Edge cases covered
[ ] Error handling verified
[ ] Changes match spec exactly
[ ] Commit message is conventional

# If ANY box unchecked:
Status: NOT DONE
# Fix, re-run, re-verify.

Platform Integration

One framework, many AI coding tools

PlatformInstallation
Claude CodeOfficial marketplace (one click)
CursorPlugin marketplace search
CodexManual installation
OpenCodeManual installation
Gemini CLIManual installation

Claude Code Marketplace

Official inclusion since January 2026. One-click install automatically enables skill activation during agent workflows. Biggest driver of adoption.

Repo Language Mix

Shell       57.8%  ||||||||||||
JavaScript  30.1%  ||||||
HTML         5.2%  |
Python       3.8%  |
TypeScript   2.3%  |

Primarily Shell + markdown. Skills are just text files — no compilation, no runtime, no dependencies. The "code" is the methodology itself.

This is a key architectural choice: skills work with any AI agent that can read markdown, making the framework inherently portable.

The Autonomous Loop

Hours of unattended, reliable coding

"Claude working autonomously for a couple hours at a time without deviating from the plan"

This is the endgame: you brainstorm, approve a design, approve a plan, then walk away. The agent executes tasks via subagents, reviews each one, fixes issues, and commits — all without human intervention.

What Makes It Possible

  • Detailed plans remove ambiguity
  • Fresh subagents prevent context drift
  • Two-stage review catches errors
  • TDD enforcement ensures correctness
  • Status protocol handles blockers

The Result

Each skill addresses one failure mode. Together, they create a system where autonomous operation is safe because every risk has a mitigation.

Real Example: Brainstorming Session

What it looks like in practice

# You type:
"I need user authentication"

# Agent responds (Phase 1):
Q1: What type of auth?
  a) Username/password
  b) OAuth (Google, GitHub)
  c) Magic link (email)
  d) All of the above

# You pick: a + b

Q2: Session management?
  a) JWT (stateless)
  b) Server-side sessions
  c) JWT + refresh tokens

# You pick: c

Q3: Need role-based access?
  a) No, just authenticated/not
  b) Yes, admin + user
  c) Yes, custom roles

# Agent then presents design...

What's Happening

  • One question per message (prevents overload)
  • Multiple choice where possible (faster decisions)
  • Each question narrows scope
  • Agent never assumes an answer

Without Brainstorming

The agent would immediately scaffold a full auth system with JWT, sessions, OAuth, roles, and email verification — whether you needed all that or not.

YAGNI in Action

By asking first, the agent builds exactly what's needed. If you only need password auth, that's all you get. No premature abstraction.

Real Example: Plan Execution

Subagent dispatch in action

# Main agent extracts tasks from plan
Task 1: Create password hash utility
Task 2: Create user model with validation
Task 3: Create login endpoint
Task 4: Create JWT token generation

# For each task:
==> Dispatch implementer subagent with full task spec
    Implementer: Asks 0-2 clarifying questions
    Implementer: Writes failing test (RED)
    Implementer: Verifies test fails
    Implementer: Implements minimal code (GREEN)
    Implementer: Verifies test passes
    Implementer: Commits changes
    Implementer: Reports DONE

==> Dispatch spec reviewer subagent
    Reviewer: Checks against plan requirements
    Reviewer: Reports PASS or issues

==> Dispatch quality reviewer subagent
    Reviewer: Checks code quality, patterns, edge cases
    Reviewer: Reports PASS or issues

==> Move to next task

Skill Composability

Skills reference each other, creating emergent workflows

brainstormingexits to writing-plans
writing-plansreferences TDD, worktrees
executing-plansinvokes subagent-driven-dev
subagent-driven-developmenttriggers TDD, code review
finishing-a-development-branchcalls verification

Design Pattern

Skills don't embed other skills' content. Instead, they cross-reference — "invoke the writing-plans skill" rather than duplicating planning logic.

  • Keeps each skill under 500 words
  • Prevents inconsistency from duplication
  • Skills can be updated independently
  • New skills can plug into existing chains

The Chain

brainstorm → plan → worktree → execute → TDD → review → finish

Each arrow is a skill handoff. Each skill has a defined terminal state that invokes the next.

Before vs. After Superpowers

The difference in AI coding behavior

Without SuperpowersWith SuperpowersImpact
Starts coding immediatelyBrainstorms and gets approval firstBuilds the right thing
One long messy sessionIsolated worktree per featureSafe experimentation
Vague "I'll implement this"2-5 min tasks with exact specsPredictable progress
Tests after (or never)Tests first, alwaysProvable correctness
Context degrades over timeFresh subagent per taskConsistent quality
"It should work"Evidence-based verificationActual confidence
No review before mergeTwo-stage review per taskFewer bugs ship
Loses focus after 30 minHours of autonomous work10x throughput

The Growth Story

From blog post to 102k stars in 5 months

Oct 2025

Jesse Vincent publishes "Superpowers: How I'm Using Coding Agents" blog post. Open sources the skills framework.

Nov-Dec 2025

Word of mouth on Hacker News and Twitter. Early adopters find dramatic improvements in AI coding quality.

Jan 2026

Official Claude Code marketplace inclusion. One-click install drives massive adoption. Stars cross 40k.

Mar 2026

102,700 stars. 6,800+ forks. 24 contributors. One of the highest weekly star gainers on GitHub.

Why It Went Viral

  • Solves real pain — everyone using AI coding hit the same walls
  • Zero friction — marketplace install, works immediately
  • Visible results — before/after difference is obvious
  • Open source — MIT license, no lock-in
  • Platform agnostic — not tied to one tool
  • Extensible — write your own skills

+1,867 stars in a single day (March 16, 2026)

Architecture Insight

Why "just text files" is the right choice

Superpowers has no runtime. No compilation. No framework code. The entire system is markdown files that AI agents read and follow.

This is intentional

  • Portable — any AI that reads markdown works
  • Inspectable — you can read every skill in plain English
  • Forkable — customize by editing text, not code
  • Debuggable — when the agent misbehaves, read what it was told
  • Versionable — standard git workflows for skill evolution

The Paradigm

Traditional software: code tells computers what to do.

Superpowers: text tells AI what to do.

The skill files are the program. The AI agent is the runtime. Markdown is the programming language.

Superpowers Lab

An experimental companion repo (obra/superpowers-lab) tests new skills and techniques before they graduate to the core library.

Writing Your Own Skills

Extending the framework for your team

The Process

# 1. Create the directory
mkdir skills/my-skill

# 2. Write SKILL.md
---
name: my-deployment-checklist
description: Use when deploying to
  production or staging environments
---

# Overview
Enforce pre-deploy checks...

# When to Use
- Agent mentions "deploy" or "release"
- Changes to CI/CD configuration
- Version bumps

# Core Pattern
...checklist items...

Deployment Checklist

  • Pressure test first — run agents without the skill, document failures
  • Write minimal skill — address only observed failures
  • Test with skill present — confirm it fixes the issues
  • Find new rationalizations — add counters
  • Re-test until bulletproof

Team-Specific Skills

Companies are writing skills for their specific workflows: deployment checklists, API design standards, database migration patterns, PR conventions, security review requirements.

Key Takeaways

Process > Intelligence

The bottleneck in AI coding isn't model capability. It's methodology. Better process beats bigger models.

Text as Program

Skills are markdown files. The AI is the runtime. This makes the system portable, inspectable, and forkable.

Anti-Rationalization

AI agents argue back. Treating rationalization as a first-class engineering problem is Superpowers' key innovation.

Composable Skills

14 skills chain together into a complete workflow. Each handles one failure mode. Together they enable autonomous coding.

The big lesson: We've been trying to make AI smarter. Superpowers shows we should be making AI more disciplined. The same model, given structure, produces dramatically better results.

Superpowers

Agentic Skills Framework & Software Development Methodology

github.com/obra/superpowers

MIT License — 102.7k stars — 14 skills

agent37.club