@casualjim/pi-superpowers

Canonical Superpowers workflow skills and runtime guardrails for pi

Package details

extensionskill

Install @casualjim/pi-superpowers from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@casualjim/pi-superpowers
Package
@casualjim/pi-superpowers
Version
0.2.3
Published
Apr 27, 2026
Downloads
604/mo · 553/wk
Author
casualjim
License
MIT
Types
extension, skill
Size
344.1 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "extensions/bootstrap.ts",
    "extensions/workflow-monitor.ts"
  ],
  "skills": [
    "skills"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

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-todo provides the todo tool used in place of canonical Superpowers task tracking guidance.
  • pi-subagents provides the subagent tool used for delegated implementation and review workflows.

Installation

pi install npm:@casualjim/pi-superpowers

You can also install directly from git:

pi install git:github.com/casualjim/pi-superpowers

For 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

  • TodoWritetodo from @juicesharp/rpiv-todo.
  • Task / subagent workflow → subagent from pi-subagents.
  • Read / Write / Edit / Bash → Pi read / 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.
  • todo create/update signals execution progress.
  • subagent calls to worker, superpowers-spec-reviewer, and superpowers-code-reviewer signal delegated execution and review.

The monitor also provides runtime guardrails:

  • Brainstorm/plan writes are limited to docs/specs/ and docs/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, and gh pr create until 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-reset clears 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.md
  • agents/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 test

A 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:integration

This 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.