@abianbiya/specflow
SpecFlow for pi: outcome-first planning with configurable assurance, evaluation-safe review packets, a live cockpit panel, and the /specflow picker.
Package details
Install @abianbiya/specflow from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@abianbiya/specflow- Package
@abianbiya/specflow- Version
0.1.7- Published
- Sep 30, 2026
- Downloads
- 996/mo · 210/wk
- Author
- abianbiya
- License
- MIT
- Types
- extension, skill
- Size
- 166.9 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"skills": [
"./skills"
],
"extensions": [
"./extensions"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@abianbiya/specflow
Spec-driven development for pi — outcome-first SpecFlow workflow (staged new-app discovery or focused feature clarification → experience reference → executable approved-scope plan → iterative delivery and handoff) plus a live cockpit panel that shows where every spec stands and when the agent is waiting on your approval.
Installing this package gives you two things:
- The
specflowskill — staged new-app discovery, requirements, experience/technical design, and executable tasks for the approved delivery scope, in.specflow/specs/{feature}/, plus lifecycle guidance (complete, archive, list, resume). - The SpecFlow TUI extension — a live display for parsed phase, progress, next task, traceability/metadata warnings, and review-gate state. Its
/specflowmenu sends requests to the agent to execute a selected task, approve a recorded decision, validate, change settings, switch specs, or read documents. The extension itself never writes to.specflow/and does not enforce authorization or orchestrate execution; the agent must follow the skill and approvedtasks.mdscope.
Install
pi install npm:@abianbiya/specflow
Or try it without installing:
pi -e npm:@abianbiya/specflow
For development against a local checkout:
pi install -l /absolute/path/to/specflow-pi
Usage
- Ask for a new app: the agent conducts a staged interview across project foundations, requirements/behavior, experience/technical design, and executable tasks for the requested delivery target. For a whole-app request, it plans all agreed in-scope work across milestones before one plan review. It summarizes decisions between rounds and can recommend unchosen technologies for confirmation. Ask for an existing-project feature: the agent first inspects the repository and focuses questions on material unknowns.
- Live panel — the selected spec's name and status, a Requirements / Design / Tasks / Delivery phase rail, task progress bar and next action, updating within ~0.5 s of file edits. A pending review remains visible in the heading. Specs that are
completedorarchivedare retired: the panel stops following them and the/specflowlist stops showing them by default. Archives stay where they are — specflow never moves directories. /specflow— act on the active spec without leaving the terminal. The active spec's actions appear first, followed by a divider and the spec list. Selecting another spec opens its targeted action menu; choose ← Back or press Escape to return to the list.- Execute a task… — when the spec is active and ungated, pick an unfinished task (
▶ready,⏸blocked, with what it waits on); the selected task is sent to the agent. For hands-off whole-plan execution, ask the agent to execute the already approved plan through final handoff. - Approve gate and resume — sends your approval of only the recorded decision. For a plan review, the plan must state the requested execution scope separately from the still-unapproved authority; approval authorizes exactly that requested scope, not unlisted work. A prototype approval does not grant application implementation authority.
- Workflow settings… — choose assurance 1–10, delivery target, review cadence, or planning detail for this spec. Canceling sends nothing; selecting a value requests an agent edit, not application execution.
- Validate implementation / Open document… —
requirements.md,design.md,tasks.md, orproject.mdin a scrollable popup. Metadata errors remain visible instead of making a spec runnable by guesswork. - Mark complete… — offered when all active tasks are checked; asks the agent to verify delivery evidence and handoff before updating lifecycle status.
- Archive spec… — asks for a reason, then sends the in-place archive request to the agent.
- Hide/Show panel, Show/Hide finished, and the spec list to switch which spec the panel follows (Show finished also lists
completedandarchivedspecs so you can read one again)
- Execute a task… — when the spec is active and ungated, pick an unfinished task (
- The panel's next-action row names the first ready task or explains what is blocking progress. Traceability warnings remain available through validation, not in the compact cockpit.
resume/complete/archive— lifecycle routes from the skill; the panel reflects the reconciled state.
Workflow preferences
Defaults are assurance 2, delivery target mvp, review cadence milestone, and planning detail concise. Assurance controls evidence depth, delivery target describes the intended result, planning detail controls document explanation, and review cadence controls progress reporting inside authorized work; none substitutes for plan approval or limits new-app discovery. The agent merges skill defaults, .specflow/config.json, and per-spec config.json; explicit user instructions take precedence. Existing approved commitments are preserved. Evaluation mode uses isolated output and does not create executable task plans or authorize application edits.
{"assurance_level": 2, "delivery_target": "mvp", "review_cadence": "milestone", "planning_detail": "concise"}
Levels 1–2 focus on the main journey, 3–5 add common failures/recovery, 6–8 add risk-relevant operational checks, and 9–10 require explicit risk-to-evidence review. Levels do not add features or waive authorization, truthful output, or required regression checks. The numeric picker is not a graphical slider. See configuration for exact semantics. Settings are interpreted by the agent; the panel does not enforce tests or establish product acceptance.
Companion package
@abianbiya/speclet is the lightweight sibling: single-file specs for small features. Use SpecFlow for work that benefits from separate outcome, experience, and milestone records.
License
MIT