Skip to content

pi-stack-ops documentation

pi-stack-ops is a Pi package for maintainers who want one change split into a spec/ADR PR plus small implementation PRs. Use it when the work needs durable decisions, reviewable slices, validation evidence, and a clean handoff between Pi sessions.

Use plain one-off edits when the change is tiny and does not need a spec, ADR, or stacked review.

Choose your path

First 30 minutes

Run these from the repository where you want to use Stack Ops:

stack-ops doctor
stack-ops init
stack-ops status

Expected status shape after init:

stack-ops status

Phase: idle
Stack: none
Slice: none
Branch: unknown
Plan: none
Gates: unknown

Blockers:
none

Next:
- /draft <idea-or-source>

Then start in Pi:

/draft admin-audit-logging: record admin user changes in an audit log
/new
/discuss docs/specs/admin-audit-logging.md
/new
/plan docs/specs/admin-audit-logging.md

The /new steps are optional for tiny demos, but they are the normal handoff pattern for real stacks. They keep each phase from inheriting too much stale context.

After /plan, inspect .pi/stack-ops/plans/ before any implementation starts.

What gets committed

Path Commit it? Why
docs/specs/<stack>.md or another durable spec path Yes Reviewers need the product scope, acceptance criteria, and non-goals.
docs/adrs/<decision>.md or another ADR path Yes Architecture decisions should survive local sessions.
Implementation changes on slice branches Yes Each slice PR carries one reviewable change.
.pi/stack-ops/plans/ No Plans are code-bound and local to the current repository state.
.pi/stack-ops/summaries/ No Session handoffs may include local context.
.pi/stack-ops/validation/ No Keep evidence local; summarize relevant results in PR bodies.
.pi/stack-ops/state.json and session.json No Runtime state is local and may include session identifiers.

Human approval checkpoints

Stop for maintainer approval after /discuss before /plan, before accepting product or architecture scope changes, before marking PRs ready, and before any merge command. Approval must be a direct current-session message that names the exact action and target. Stack Ops can prepare evidence; it does not own the decision.

Workflow at a glance

Idea -> durable spec/ADR PR -> local plan -> one slice PR at a time -> validation -> PR readiness -> guarded merge

Useful next pages: Quickstart, Your first stack, CLI reference, Workflow prompt reference, State files, and CI integration.