Skip to content

Superpowers for Everyone, Agent Agnostic Skills, not just Claude Code, but supporting tools for GitHub Copilot, OpenCode, Gemini, Cursor, etc.

License

Notifications You must be signed in to change notification settings

complexthings/superpowers

 
 

Repository files navigation

Superpowers

A comprehensive skills library of proven techniques, patterns, and workflows for AI coding assistants.

This is a fork and extension of Jesse Vincent's incredible Superpowers for Claude Code. Jesse's groundbreaking work and his amazing blog post introduced the concept of systematic, reusable skills for AI agents. This fork extends that vision to support agent-agnostic workflows across GitHub Copilot, Cursor, Gemini, and other AI coding assistants.

What You Get

  • Testing Skills - TDD, async testing, anti-patterns
  • Debugging Skills - Systematic debugging, root cause tracing, verification
  • Collaboration Skills - Brainstorming, planning, code review, parallel agents
  • Development Skills - Git worktrees, finishing branches, subagent workflows
  • Meta Skills - Creating, testing, and sharing skills
  • Utility Commands - /skills to discover available skills, /use-skill to load them

Plus:

  • Universal Prompts - Work across Claude, GitHub Copilot, Cursor, Gemini, and other AI assistants
  • Automatic Integration - Skills activate automatically when relevant
  • Consistent Workflows - Systematic approaches to common engineering tasks

Installation

Quick Install (Recommended)

Install Superpowers globally with one command:

curl -fsSL https://raw.githubusercontent.com/complexthings/superpowers/main/install.sh | bash

Security Note: Always review scripts before running:

curl -fsSL https://raw.githubusercontent.com/complexthings/superpowers/main/install.sh -o install.sh
cat install.sh
bash install.sh

The installer will:

  1. Install to ~/.agents/superpowers (global, works everywhere)
  2. Set up universal aliases: superpowers and superpowers-agent
  3. Install slash commands for GitHub Copilot, Cursor, Windsurf
  4. Optionally update project files (AGENTS.md, CLAUDE.md, GEMINI.md)

After installation, you can use Superpowers from anywhere:

superpowers --help
superpowers find-skills
superpowers use-skill systematic-debugging

Installed slash commands:

  • /brainstorm (or /brainstorm-with-superpowers) - Interactive design refinement
  • /write-skill (or /write-a-skill) - Create new skills with TDD
  • /skills - Discover available skills
  • /use-skill - Load and apply a specific skill
  • /write-plan - Create implementation plans
  • /execute-plan - Execute plans in batches

Manual Installation

If you prefer manual installation or need project-specific setup, see .agents/INSTALL.md.

Alternative: Claude Code Plugin

For Claude Code users, Jesse Vincent's original implementation is available via plugin:

/plugin marketplace add obra/superpowers-marketplace
/plugin install superpowers@superpowers-marketplace

Claude Code commands:

  • /superpowers:brainstorm - Interactive design refinement
  • /superpowers:write-plan - Create implementation plan
  • /superpowers:execute-plan - Execute plan in batches

Learn more: Superpowers for Claude Code by Jesse Vincent

Quick Start

Discovering Skills

List all available skills:

/skills

Or run directly:

superpowers find-skills

Search for specific skills:

superpowers find-skills | grep -i <topic>

Using Skills

Load a specific skill:

/use-skill superpowers:brainstorming

Or run directly:

superpowers use-skill superpowers:brainstorming

Common Workflows

Brainstorm a design:

/brainstorm-with-superpowers

Create a new skill:

/write-a-skill

Automatic Skill Activation

Skills activate automatically when relevant. For example:

  • test-driven-development activates when implementing features
  • systematic-debugging activates when debugging issues
  • verification-before-completion activates before claiming work is done

Slash Commands & Skill Priority

Superpowers ships slash-command prompts for OpenCode, Claude Code, GitHub Copilot, Cursor, Gemini, and Codex so every agent can load the exact same skill definitions. Each command is a thin wrapper around superpowers use-skill <name>, so skill discovery always walks the same hierarchy before running anything. This section is the canonical reference for where those commands live in the repo and how the loader resolves conflicts.

Skill priority pipeline (first match wins):

  1. ./skills/ or .agents/skills/ inside the workspace (project-specific overrides)
  2. .claude/skills/ inside the repo if present (repo-wide Claude overrides)
  3. Personal skills in ~/.agents/skills/ (user-level customizations)
  4. Bundled Superpowers skills in ~/.agents/superpowers/skills/ (system defaults)

When any slash command runs—no matter which agent it originates from—it invokes the CLI, which enforces the ordering above. Add a brainstorming skill under ./skills/ and every tool immediately picks it up without modifying prompt files. The tables below list the commands per agent, their descriptions, and the source file in this repo, along with links to each host tool’s documentation for creating custom slash commands.

OpenCode

Command Description Source file
/brainstorm Refine ideas into designs through Socratic questioning .opencode/command/brainstorm.md
/write-plan Create detailed implementation plans .opencode/command/write-plan.md
/execute-plan Execute plans in batches with review checkpoints .opencode/command/execute-plan.md
/write-skill Create new skills following TDD methodology .opencode/command/write-skill.md
/skills Discover and search available skills .opencode/command/skills.md
/use-skill Load a specific skill by name .opencode/command/use-skill.md
/setup-skills Initialize project with skills documentation .opencode/command/setup-skills.md

Docs: OpenCode custom commands

Claude Code

Command Description Source file
/brainstorm Run the brainstorming skill for Socratic design sessions commands/brainstorm.md
/write-plan Create a detailed implementation plan via writing-plans commands/write-plan.md
/execute-plan Execute implementation plans in batches commands/execute-plan.md
/finding-skills List and search available skills commands/finding-skills.md
/using-a-skill Load a specific skill by name commands/using-a-skill.md
/setup-skills Initialize project with skills documentation commands/setup-skills.md

Docs: Claude Code custom slash commands

GitHub Copilot

Command Description Source file
/brainstorm-with-superpowers Refine ideas into designs with the brainstorming skill .github/prompts/superpowers-brainstorming.prompt.md
/write-a-skill Follow the writing-skills workflow to create a new skill .github/prompts/superpowers-writing-skills.prompt.md
/skills Discover and search all skills .github/prompts/superpowers-skills.prompt.md
/use-skill Load a specific skill by name .github/prompts/superpowers-use-skill.prompt.md
/setup-skills Initialize project with skills documentation .github/prompts/superpowers-setup-skills.prompt.md

Docs: VS Code Copilot prompt files

Cursor

Command Description Source file
/brainstorm-with-superpowers Guide brainstorming with collaborative questioning .cursor/commands/brainstorm-with-superpowers.md
/write-a-skill Apply the writing-skills TDD workflow .cursor/commands/write-a-skill.md
/skills Show all skills with search tips .cursor/commands/skills.md
/use-skill Load any skill via the CLI .cursor/commands/use-skill.md
/setup-skills Initialize project with skills documentation .cursor/commands/setup-skills.md

Docs: Cursor custom commands

Gemini

Command Description Source file
/brainstorm-with-superpowers Refine ideas into designs with the brainstorming skill .gemini/commands/brainstorm-with-superpowers.toml
/write-a-skill Follow the writing-skills workflow to create a new skill .gemini/commands/write-a-skill.toml
/skills Discover and search all skills .gemini/commands/skills.toml
/use-skill Load a specific skill by name .gemini/commands/use-skill.toml
/setup-skills Initialize project with skills documentation .gemini/commands/setup-skills.toml

Docs: Gemini CLI custom slash commands

Codex

Command Description Source file
/brainstorm-with-superpowers Run brainstorming with optional topic arguments .codex/prompts/brainstorm.md
/write-a-skill Create a new skill using writing-skills .codex/prompts/write-skill.md
/skills List and search available skills .codex/prompts/skills.md
/use-skill Load a specific skill by name .codex/prompts/use-skill.md
/setup-skills Initialize project with skills documentation .codex/prompts/setup-skills.md

Docs: OpenAI Codex custom slash commands

Every table points to files that simply shell out to superpowers-agent use-skill, so the shared priority order above applies automatically across all integrations.

What's Inside

Skills Library

Testing (skills/testing/)

  • test-driven-development - RED-GREEN-REFACTOR cycle
  • condition-based-waiting - Async test patterns
  • testing-anti-patterns - Common pitfalls to avoid

Debugging (skills/debugging/)

  • systematic-debugging - 4-phase root cause process
  • root-cause-tracing - Find the real problem
  • verification-before-completion - Ensure it's actually fixed
  • defense-in-depth - Multiple validation layers

Collaboration (skills/collaboration/)

  • brainstorming - Socratic design refinement
  • writing-plans - Detailed implementation plans
  • executing-plans - Batch execution with checkpoints
  • dispatching-parallel-agents - Concurrent subagent workflows
  • requesting-code-review - Pre-review checklist
  • receiving-code-review - Responding to feedback
  • using-git-worktrees - Parallel development branches
  • finishing-a-development-branch - Merge/PR decision workflow
  • subagent-driven-development - Fast iteration with quality gates

Meta (skills/meta/)

  • writing-skills - Create new skills following best practices
  • sharing-skills - Contribute skills back via branch and PR
  • testing-skills-with-subagents - Validate skill quality
  • using-superpowers - Introduction to the skills system
  • finding-skills - Discover and search available skills
  • using-a-skill - Load and apply specific skills

MCP Replacement Skills

Context Efficiency - These skills replace MCP integrations with local code execution, reducing context usage by ~98% per Anthropic's code-execution-with-mcp guidance.

Context-7 (skills/context-7/)

  • context-7 - Library documentation search via Context-7 API
    • Search for libraries and fetch documentation
    • Text-format responses for efficient parsing
    • Node.js scripts for cross-platform compatibility
    • Environment variable for API key management
    • Setup: export CONTEXT7_API_KEY="your-key" or create .env file
    • Usage: node skills/context-7/scripts/search.js "query"
    • Docs: node skills/context-7/scripts/get-docs.js /library/path --topic=feature

Playwright (skills/playwright-skill/)

  • playwright-skill - Browser automation without MCP overhead
    • Write custom Playwright scripts for specific tasks
    • run.js executor handles module resolution
    • Progressive disclosure (full API reference loads on-demand)
    • Visible automation by default for debugging
    • Setup: cd skills/playwright-skill/scripts && npm install && npx playwright install
    • Usage: node skills/playwright-skill/scripts/run.js ./your-script.js
    • Reference: Load references/API_REFERENCE.md for advanced features

Why Skills Instead of MCPs:

  • Context reduction: 150k tokens → 2k tokens (~98.7% savings)
  • Progressive disclosure: Load tools on-demand vs upfront
  • In-environment filtering: Process data before hitting model context
  • State persistence: Reusable scripts, intermediate results
  • Cross-platform: Node.js runs on Linux, Mac, Windows

Dependencies:

  • Node.js 18+ (for native fetch support)
  • Context-7: API key from https://context7.com
  • Playwright: npm install in scripts/ directory

Commands

Commands are thin wrappers that activate the corresponding skill:

  • brainstorm.md - Activates the brainstorming skill
  • write-plan.md - Activates the writing-plans skill
  • execute-plan.md - Activates the executing-plans skill
  • finding-skills.md - Activates the finding-skills utility
  • using-a-skill.md - Activates the using-a-skill utility

How It Works

For Agent-Agnostic Installation:

  1. Bootstrap Process - Installs prompts and instructions globally
  2. Skill Discovery - Finds skills across system, personal, and project locations
  3. Priority Resolution - Project skills override personal skills override system skills
  4. Universal Integration - Works with OpenCode, GitHub Copilot, Cursor, Gemini, and other AI assistants

For Claude Code Plugin:

  1. SessionStart Hook - Loads the using-superpowers skill at session start
  2. Skills System - Uses Claude Code's first-party skills system
  3. Automatic Discovery - Claude finds and uses relevant skills for your task
  4. Mandatory Workflows - When a skill exists for your task, using it becomes required

Philosophy

  • Test-Driven Development - Write tests first, always
  • Systematic over ad-hoc - Process over guessing
  • Complexity reduction - Simplicity as primary goal
  • Evidence over claims - Verify before declaring success
  • Domain over implementation - Work at problem level, not solution level

Contributing

Skills live directly in this repository. To contribute:

  1. Fork the repository
  2. Create a branch for your skill
  3. Follow the writing-skills skill for creating new skills
  4. Use the testing-skills-with-subagents skill to validate quality
  5. Submit a PR

See skills/writing-skills/SKILL.md for the complete guide.

Updating

Automatic Updates (Default)

Superpowers automatically checks for and applies updates during bootstrap by default:

superpowers-agent bootstrap

Auto-update behavior:

  • ✓ Fetches latest changes from GitHub main branch
  • ✓ Only updates if repository is clean (no local modifications)
  • ✓ Intelligently reinstalls only changed integrations (cursor, copilot, etc.)
  • ✓ Skips update if not on main branch or network unavailable

Skip auto-update for a single run:

superpowers-agent bootstrap --no-update

Manual Updates

Update anytime with the dedicated update command:

superpowers-agent update

This command:

  • Pulls latest changes from GitHub
  • Detects which integration files changed
  • Reinstalls only affected integrations
  • Shows summary of what was updated

Update without reinstalling integrations:

superpowers update --no-reinstall

Configuration

Disable auto-update permanently:

superpowers-agent config-set auto_update false

When disabled, bootstrap will show an "Update Available" message instead of auto-updating.

Re-enable auto-update:

superpowers config-set auto_update true

View current configuration:

superpowers config-get

Configuration is stored in ~/.agents/superpowers/.config.json and persists across updates.

Claude Code Plugin

For Claude Code plugin users:

/plugin update superpowers

Credits

This project builds on Jesse Vincent's Superpowers for Claude Code. Jesse's pioneering work introduced the concept of systematic, reusable skills for AI agents. Read his excellent blog post: Superpowers for Claude Code

This fork extends that vision to support agent-agnostic workflows across multiple AI coding assistants.

License

MIT License - see LICENSE file for details

Support

About

Superpowers for Everyone, Agent Agnostic Skills, not just Claude Code, but supporting tools for GitHub Copilot, OpenCode, Gemini, Cursor, etc.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 70.5%
  • Shell 25.0%
  • TypeScript 4.5%