@casualjim/pi-superpowers
v0.2.3
Published
Canonical Superpowers workflow skills and runtime guardrails for pi
Maintainers
Readme
pi-superpowers
Canonical Superpowers workflow skills and runtime guardrails for Pi.
Canonical Source
This package treats obra/superpowers as canonical for methodology and skill behavior. Pi-specific files adapt that behavior to Pi tools and package conventions.
Acknowledgements
This package uses obra/superpowers as the canonical source for Superpowers methodology and skill behavior.
The workflow-monitor runtime design also builds on prior work from coctostan/pi-superpowers-plus, especially its Pi TUI workflow strip, TDD/debug/verification monitor concepts, branch-safety reminders, and workflow state tracking. This package adapts those ideas to the current obra/superpowers skills, todo, and pi-subagents contracts.
Required Companion Packages
Install the runtime companion packages separately:
pi install npm:@juicesharp/rpiv-todo
pi install npm:pi-subagents@juicesharp/rpiv-todoprovides thetodotool used in place of canonical Superpowers task tracking guidance.pi-subagentsprovides thesubagenttool used for delegated implementation and review workflows.
Installation
pi install npm:@casualjim/pi-superpowersYou can also install directly from git:
pi install git:github.com/casualjim/pi-superpowersFor project-local installation, use Pi's local package install mode from your project so package settings stay with the repository.
What This Package Provides
- Mandatory Superpowers bootstrap injection.
- Canonical Superpowers skills adapted for Pi.
- Workflow monitor guardrails for phase, TDD, verification, and review reminders.
- Bundled read-only reviewer agent templates.
Tool Mapping
TodoWrite→todofrom@juicesharp/rpiv-todo.Task/ subagent workflow →subagentfrompi-subagents.Read/Write/Edit/Bash→ Piread/write/edit/bash.
Workflow Monitor Runtime
The bundled workflow monitor tracks the Superpowers phase strip in the Pi UI:
Brainstorm → Plan → Execute → Verify → Review → Finish
It records canonical artifacts and tool signals:
- Brainstorm artifacts:
docs/specs/YYYY-MM-DD-<topic>-design.md. - Plan artifacts:
docs/plans/YYYY-MM-DD-<feature>.md. todocreate/update signals execution progress.subagentcalls toworker,superpowers-spec-reviewer, andsuperpowers-code-reviewersignal delegated execution and review.
The monitor also provides runtime guardrails:
- Brainstorm/plan writes are limited to
docs/specs/anddocs/plans/. - TDD state warns on source edits before a failing test.
- Debug state warns on fixes before investigation or repeated failing fixes.
- Verification state becomes stale after source edits and gates completion actions such as
git commit,git push, andgh pr createuntil fresh verification passes.
Commands:
/workflow-next <phase> [artifact]starts a fresh session prefilled with the skill for the next phase, for example/workflow-next execute docs/plans/example.md./workflow-resetclears the persisted workflow monitor state for a new unrelated task.
Reviewer Agents
Canonical Superpowers review is read-only. This repo bundles reviewer templates in agents/:
agents/superpowers-spec-reviewer.mdagents/superpowers-code-reviewer.md
Users can copy those templates into their repository's .pi/agents/ directory to customize reviewer behavior. Project agents have higher priority in pi-subagents discovery, so repository-local copies can override the bundled/default behavior without changing global configuration.
Use the superpowers-spec-reviewer and superpowers-code-reviewer reviewer contracts, not the builtin review-and-fix reviewer agent.
Docker E2E Installation Recovery Test
The default test suite is unit/regression only:
npm testA dedicated real-Pi Docker integration test proves installation recovery end-to-end. It is a mise task so your configured mise/fnox environment can provide ZAI_API_KEY without the test harness inspecting the secret:
mise run test:integrationThis builds a Docker image that copies this repository into /workspace/pi-superpowers, installs the real Pi CLI, installs npm:@thesethrose/pi-zai-provider, uses zai/glm-5-turbo, and verifies the exact recovery commands for missing companion packages. The test assumes ZAI_API_KEY is provided by the caller and does not preflight or debug secrets.
fnox.toml and mise.toml are committed for local secret/tool environment setup, but .dockerignore excludes them from the Docker build context.
Architecture
pi-superpowers owns Superpowers behavior injection, Pi-adapted Superpowers skills, bundled reviewer templates, and workflow-monitor guardrails. It does not implement its own task tracker or subagent runtime; those are provided by the companion packages above.
