pi-skill-playbook
Pi extension for passive, human-mediated Agent Skill playbooks.
Package details
Install pi-skill-playbook from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-skill-playbook- Package
pi-skill-playbook- Version
0.1.3- Published
- May 25, 2026
- Downloads
- not available
- Author
- eiei114
- License
- MIT
- Types
- extension
- Size
- 44.1 KB
- Dependencies
- 1 dependency · 1 peer
Pi manifest JSON
{
"extensions": [
"./extensions/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
Pi Skill Playbook
Pi Skill Playbook is a Pi extension that guides Agent Skill usage flows with visible, human-mediated playbooks.
MVP scope:
/playbook list/playbook start <playbook-id> [--run <name>]/playbook resume <run-id>/playbook status [run-id]/playbook done/playbook choose <outcome>- strict YAML validation
- active run widget below the editor
- marker-based auto advance for single-outcome steps
- local run state in
.pi/playbook-runs/
Deferred after scaffold:
/playbook import-web/playbook record
Install from npm
pi install npm:pi-skill-playbook
Install from GitHub
pi install git:github.com/eiei114/pi-skill-playbook
Or with a full Git URL:
pi install git+https://github.com/eiei114/pi-skill-playbook.git
Install locally
Clone the repository first, then run Pi from the checkout:
git clone https://github.com/eiei114/pi-skill-playbook.git
cd pi-skill-playbook
npm install
pi -e .
Or install as a local Pi package:
pi install /path/to/pi-skill-playbook
Add a playbook to a project
MVP uses manual sample copy:
mkdir -p .pi/playbooks
cp /path/to/pi-skill-playbook/samples/feature-development.yml .pi/playbooks/feature-development.yml
Add personal run state to the target repo's .gitignore:
.pi/playbook-runs/
Use
/playbook list
/playbook start feature-development --run my-feature
/playbook done
/playbook choose pass
/playbook status
The widget displays the current step, exact skill command, completion criteria, and outcome labels.
Auto advance
Playbooks default to autoAdvance: auto.
When a user explicitly runs the current step skill with /skill:<name>, Pi Skill Playbook injects a short prompt that asks the assistant to leave a visible completion marker:
PLAYBOOK_OUTCOME: ready-for-prd
If the current step has exactly one outcome, a valid marker advances the run automatically. If the step has multiple outcomes, the marker is shown as a suggestion and the user must confirm with /playbook choose <outcome>.
Optional playbook setting:
autoAdvance: auto # default: marker can advance single-outcome steps
autoAdvance: suggest # marker only suggests /playbook done or /playbook choose
autoAdvance: off # no prompt injection or completion detection