obra-superpowers-agentic-workflow
```markdown
What this skill does
```markdown --- name: obra-superpowers-agentic-workflow description: Agentic skills framework for coding agents providing structured workflows for TDD, planning, debugging, and subagent-driven development triggers: - "set up superpowers for my coding agent" - "install superpowers skills framework" - "use superpowers workflow" - "help me plan this feature with superpowers" - "set up agentic development workflow" - "configure coding agent skills" - "add superpowers to claude code" - "use subagent driven development" --- # obra/superpowers Agentic Skills Framework > Skill by [ara.so](https://ara.so) — Daily 2026 Skills collection. Superpowers is a composable skills framework that gives coding agents (Claude Code, Cursor, Codex, OpenCode, Gemini CLI) structured workflows for software development. It enforces TDD, systematic debugging, design-first planning, and subagent-driven development — automatically, without manual prompting. ## What It Does - **Auto-triggers skills** based on what you're doing (planning, debugging, implementing) - **Enforces RED-GREEN-REFACTOR TDD** — writes failing tests first, always - **Runs subagent-driven development** — spawns fresh subagents per task with two-stage review - **Structures design before code** — Socratic brainstorming → spec → implementation plan → execution - **Manages git worktrees** for parallel isolated development branches ## Installation ### Claude Code (Official Marketplace) ```bash /plugin install superpowers@claude-plugins-official ``` ### Claude Code (via Custom Marketplace) ```bash /plugin marketplace add obra/superpowers-marketplace /plugin install superpowers@superpowers-marketplace ``` ### Cursor In Cursor Agent chat: ```text /add-plugin superpowers ``` Or search "superpowers" in the plugin marketplace UI. ### Codex Tell Codex in a session: ``` Fetch and follow instructions from https://raw.githubusercontent.com/obra/superpowers/refs/heads/main/.codex/INSTALL.md ``` ### OpenCode Tell OpenCode in a session: ``` Fetch and follow instructions from https://raw.githubusercontent.com/obra/superpowers/refs/heads/main/.opencode/INSTALL.md ``` ### Gemini CLI ```bash gemini extensions install https://github.com/obra/superpowers ``` Update later with: ```bash gemini extensions update superpowers ``` ### Update Any Platform ```bash /plugin update superpowers ``` ### Verify Installation Start a new session and say: ``` help me plan this feature ``` The agent should automatically invoke the `brainstorming` skill without being asked. --- ## Core Workflow (in order) ### 1. Brainstorming — Design Before Code **Triggers automatically** when you describe something to build. The agent will NOT write code immediately. Instead it: 1. Asks clarifying questions to extract a real spec 2. Presents the design in readable chunks for your approval 3. Only proceeds after you sign off **Example prompt:** ``` I want to add rate limiting to my API ``` The agent will ask: What kind of rate limiting? Per user or per IP? What limits? What happens on exceed? etc. --- ### 2. using-git-worktrees — Isolated Workspace **Triggers after design approval.** Creates a new git branch + worktree so implementation is isolated: ```bash # What the agent does internally: git worktree add ../my-project-feature-branch -b feature/rate-limiting cd ../my-project-feature-branch # runs project setup (npm install, bundle install, etc.) # verifies clean test baseline ``` --- ### 3. writing-plans — Bite-Sized Task Plans **Triggers with approved design.** Produces a plan where every task includes: - Exact file paths - Complete code to write - Verification steps (tests to run) - 2–5 minute estimated scope **Example plan output structure:** ```markdown ## Task 1: Add RateLimiter class - File: `src/middleware/rate_limiter.rb` - Write failing test first: `spec/middleware/rate_limiter_spec.rb` - Test: `bundle exec rspec spec/middleware/rate_limiter_spec.rb` - Expected: RED (test fails, class doesn't exist) ## Task 2: Implement token bucket algorithm - File: `src/middleware/rate_limiter.rb` - Write minimal code to pass test - Test: `bundle exec rspec spec/middleware/rate_limiter_spec.rb` - Expected: GREEN ``` --- ### 4. subagent-driven-development — Automated Execution **Triggers when you say "go" on the plan.** Dispatches a fresh subagent per task. Each task goes through two-stage review: 1. **Spec compliance** — did it follow the plan? 2. **Code quality** — is it clean, minimal, tested? Critical review issues block forward progress. Alternative: `executing-plans` runs tasks in batches with human checkpoints instead of subagents. --- ### 5. test-driven-development — RED-GREEN-REFACTOR **Triggers during any implementation task.** The strict cycle: ``` 1. Write a failing test 2. Run it — confirm RED 3. Write MINIMAL code to pass 4. Run it — confirm GREEN 5. Refactor if needed 6. Commit 7. Repeat ``` **Anti-pattern the agent will refuse:** - Writing code before tests - Writing more code than needed to pass the test - Skipping the "watch it fail" step If code was written before tests, the agent **deletes it** and restarts with tests. --- ### 6. requesting-code-review **Triggers between tasks.** The agent reviews work against: - The original plan spec - Code quality standards - Test coverage Severity levels: `critical` (blocks) / `major` (should fix) / `minor` (optional) --- ### 7. finishing-a-development-branch **Triggers when all tasks complete.** Presents options: - Merge to main - Open a PR - Keep branch for more work - Discard branch Then cleans up the worktree: ```bash git worktree remove ../my-project-feature-branch ``` --- ## Skills Reference ### Testing | Skill | What it does | |---|---| | `test-driven-development` | Enforces RED-GREEN-REFACTOR with anti-pattern detection | ### Debugging | Skill | What it does | |---|---| | `systematic-debugging` | 4-phase root cause process | | `verification-before-completion` | Confirms issue is actually fixed | ### Collaboration & Planning | Skill | What it does | |---|---| | `brainstorming` | Socratic design refinement before any code | | `writing-plans` | Detailed task-by-task implementation plans | | `executing-plans` | Batch execution with human checkpoints | | `dispatching-parallel-agents` | Concurrent subagent workflows | | `requesting-code-review` | Pre-merge review checklist | | `receiving-code-review` | Structured response to review feedback | | `using-git-worktrees` | Parallel isolated development branches | | `finishing-a-development-branch` | Merge/PR/discard decision + cleanup | | `subagent-driven-development` | Per-task subagents with two-stage review | ### Meta | Skill | What it does | |---|---| | `writing-skills` | Create new skills following best practices | | `using-superpowers` | Introduction to the skills system | --- ## Writing a Custom Skill Skills live in `skills/<skill-name>/SKILL.md`. To add one: ```bash # Fork the repo, create a branch git checkout -b skill/my-custom-skill # Create skill directory mkdir -p skills/my-custom-skill touch skills/my-custom-skill/SKILL.md ``` Follow the `writing-skills` skill format. Frontmatter structure: ```yaml --- name: my-custom-skill description: One line description triggers: - "phrase that activates this skill" - "another trigger phrase" --- ``` Then submit a PR to `obra/superpowers`. --- ## Common Patterns ### Starting a new feature from scratch ``` You: I want to build a CSV export feature for my Rails app Agent: [brainstorming skill activates] Agent: Let me ask a few questions... 1. What data should be exportable? 2. Should exports be synchronous or background jobs? 3. What format — standard CSV or with custom headers? ``` ### Resuming an existing plan ``` You: Let's continue the implementation plan Agent: [executing-plans or subagent-driven-development activates] Agent: Picking up at Task 3: Implement background job... ``` ### Debugging
Related in Writing & Docs
jax-development
IncludedUse this skill when the user is writing, debugging, profiling, refactoring, reviewing, benchmarking, parallelising, exporting, or explaining JAX code, or when they mention JAX, jax.numpy, jit, grad, value_and_grad, vmap, scan, lax, random keys, pytrees, jax.Array, sharding, Mesh, PartitionSpec, NamedSharding, pmap, shard_map, Pallas, XLA, StableHLO, checkify, profiler, or the JAX repo. It helps turn NumPy or PyTorch-style code into pure functional JAX, fix tracer/control-flow/shape/PRNG bugs, remove recompiles and host-device syncs, choose transforms and sharding strategies, inspect jaxpr/lowering/IR, and benchmark compiled code correctly.
nature-article-writer
IncludedDrafts, rewrites, diagnostically critiques, and style-calibrates primary research manuscripts for Nature and Nature Portfolio journals. Use when the user wants a Nature-style title, summary paragraph or abstract, introduction, results, discussion, methods, figure legends, presubmission enquiry, cover letter, reviewer response, or when a scientific draft sounds generic, jargon-heavy, structurally weak, or AI-ish and needs precise, broad-reader-friendly prose without inventing data, analyses, or references. Best for primary research articles and letters rather than reviews or press releases unless explicitly adapting one.
deckrd
IncludedDocument-driven framework that derives requirements, specifications, implementation plans, and executable tasks from goals through structured AI dialogue. Use when user says "write requirements", "create spec", "plan implementation", "derive tasks", "structure this feature", "break down into tasks", or "document this module". Also use for reverse engineering existing code into docs (/deckrd rev). Do NOT use for direct code writing — use /deckrd-coder after tasks are generated. Do NOT use when the user only wants to run or fix existing code without planning.
clinical-decision-support
IncludedGenerate professional clinical decision support (CDS) documents for pharmaceutical and clinical research settings, including patient cohort analyses (biomarker-stratified with outcomes) and treatment recommendation reports (evidence-based guidelines with decision algorithms). Supports GRADE evidence grading, statistical analysis (hazard ratios, survival curves, waterfall plots), biomarker integration, and regulatory compliance. Outputs publication-ready LaTeX/PDF format optimized for drug development, clinical research, and evidence synthesis.
handling-sf-data
IncludedSalesforce data operations with 130-point scoring. Use this skill to create, update, delete, bulk import/export, generate test data, and clean up org records using sf CLI and anonymous Apex. TRIGGER when: user creates test data, performs bulk import/export, uses sf data CLI commands, needs data factory patterns for Apex tests, or needs to seed/clean records in a Salesforce org. DO NOT TRIGGER when: SOQL query writing only (use querying-soql), Apex test execution (use running-apex-tests), or metadata deployment (use deploying-metadata).
accelint-ac-to-playwright
IncludedConvert and validate acceptance criteria for Playwright test automation. Use when user asks to (1) review/evaluate/check if AC are ready for automation, (2) assess if AC can be converted as-is, (3) validate AC quality for Playwright, (4) turn AC into tests, (5) generate tests from acceptance criteria, (6) convert .md bullets or .feature Gherkin files to Playwright specs, (7) create test automation from requirements. Handles both bullet-style markdown and Gherkin syntax with JSON test plan generation and validation.