Skip to content

About

Structured AI-assisted Python development workflow for Claude Code — Beads (git-backed issue tracking) + Superpowers (plan-execute-verify lifecycle) with 13-phase verification

Resources

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

 

History

88 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Beadspowers: Python

Beadspowers is a Claude Code workflow for Python (post execution verification only) projects that combines Beads issue tracking with the Superpowers plan → execute → verify lifecycle, and enforces the order. Hand Claude a whole large feature and have Beadpowers turn it into an epic of tasks and sequence dependency, plan with ultracode, execute with ultracode, and verify using python's best practices.

Workflow Sequence Steps: This is the only thing you have to remember to use this workflow. Running it takes about as much effort as pressing Enter over and over. Because you still review every plan along the way, it never becomes a black box.

  1. Ask Claude Code to create a new worktree and branch.

  2. Drop in the PRD and say: workflow sequence plans <prd/spec file name>

    • This command creates a Beads epic with tasks, then puts the tasks in order so the ones other tasks depend on get planned and executed first.

    • Output: a sequence plan markdown file and a Beads epic with its tasks. To see them, type "show me the beads epic and its tasks".

  3. Take the sequence .md file it outputs and say: workflow writing plans <sequence file name>

    • This command writes the implementation plans for the first wave of tasks, meaning the tasks that don't depend on anything still unfinished.

    • First output (human in the loop): before it finalizes anything, the flow asks you to review the critical questions it found and interviews you about your plan. Your answers shape the final plans.

    • Final output: the first wave of plan files in docs/plans/, with each task in the epic labelled to show how far its plan got (for example drafted or approved).

  4. Clear the session.

  5. Take the plans it outputs and say: workflow execute plans <beads epic id>

    • This command runs the approved plans for the first wave, building the tasks in parallel where they don't touch the same files.

    • Verification: the Python code verification phases run on the new code. If your project uses another language, verification is skipped.

    • Output: the first wave of executed tasks, with the code committed on the branch, each task labelled with how far it got (for example done or blocked), and a completion report showing the whole epic's status and what to run next.

  6. Clear the session.

  7. Your Beads epic probably has many tasks, so you likely won't be done after one pass. The workflow will tell you whether to go back to workflow writing plans or workflow execute plans.

  8. Say: workflow ship epic

    • Ships the epic. It creates a CR, or ships locally if there is no package.

Workflow Diagram: Sequence, Plan, Execute, and Verify an epic worth of tasks in batch

The epic workflow is for work too big to drive one task at a time: a spec that turns into many tasks, some depending on others and some with open questions. Run one by one, that keeps you in the loop for every step and wastes the parallelism; run all at once with no structure, the agents collide on the same files and the decisions behind them get lost. So the pipeline turns a brainstormed spec (Superpowers) into a Beads epic whose tasks are sequenced into waves and given a plan depth — a full plan, a lite plan or a test-first task card — and answers the open questions with throwaway spikes before planning what depends on them. It then executes the approved plans as parallel Claude Code agents, each in its own git worktree (tasks that need you, such as smoke tests, run one at a time in the main session). Each task is built test-first and verified at a tier sized to its diff: ruff, mypy and pytest always, with review agents and a Codex adversarial pass added at the full tier. Beads labels record every task's progress, so an interrupted run resumes where it stopped; a budget gate shows the cost before each fan-out; and shipping opens one PR for the whole epic, which counts as shipped only after the merge is confirmed.

Epic-batch workflow

What's inside

  • .claude/rules/ — the router (0_Beads x Superpowers/beads-workflow-router.md) and the rules it enforces; start here.
  • .claude/Commands/workflow-commands/ — the single-task and epic-batch commands, plus the python-verification-* tiers.
  • .claude/agents/ — the review agents the full verification tier runs.
  • .claude/skills/ — troubleshooting skills, such as beads in a worktree.

Set up

  1. Install the system tools (the workflow is verified with beads 1.0.4):

    brew install jq gh
    gh auth login
    npm install -g @beads/bd
  2. Install the plugins, inside Claude Code:

    /plugin marketplace add steveyegge/beads
    /plugin install beads@beads-marketplace
    /plugin install superpowers@claude-plugins-official
    /plugin install commit-commands@claude-plugins-official
    /plugin marketplace add openai/codex-plugin-cc (optional for adversarial review)
    /plugin install codex@openai-codex (optional for adversarial review)
    
  3. Copy the workflow in. It works at either level, so pick one:

    • User level (recommended) — once, and it works in every project:

      cp -Rn /path/to/beadspowers-python/.claude/. ~/.claude/
    • Project level — only for one project, from its root:

      cp -Rn /path/to/beadspowers-python/.claude/. .claude/

    cp -n never overwrites a file you already have: it skips it silently and exits 1, so a same-named file already there keeps running, and re-copying never updates it. Avoid installing at both levels: a command that exists in both loads the user-level copy. Paths in the rules such as .claude/Commands/... mean ~/.claude/Commands/... after a user-level install.

  4. In each new project, run /beads:init before you start the workflow, then ask Claude to finish the beads setup. It follows the "Setting up a new project" steps in the workflow's beads.md rule (untracked export, ignored state files, a seeded Dolt remote) and fills in project values such as src/<your_package>/ as it works.

About

Structured AI-assisted Python development workflow for Claude Code — Beads (git-backed issue tracking) + Superpowers (plan-execute-verify lifecycle) with 13-phase verification

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors