arey-pi
A Pi package for canonical Gherkin specs, non-negotiable TDD, spec synchronisation, AI harness readiness, and senior-quality software delivery.
Package details
Install arey-pi from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:arey-pi- Package
arey-pi- Version
0.6.3- Published
- Jun 8, 2026
- Downloads
- 1,251/mo · 1,251/wk
- Author
- alereyleyva
- License
- MIT
- Types
- extension, skill, prompt
- Size
- 1,011.4 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./extensions/arey-pi/index.ts"
],
"skills": [
"./skills"
],
"prompts": [
"./prompts"
],
"image": "https://cdn.jsdelivr.net/gh/alereyleyva/arey-pi@main/assets/arey-pi-logo.png"
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
Arey Pi
Arey Pi is an opinionated Pi package for spec-centred, TDD-driven software delivery.
It defines a way of working where canonical specs preserve intent, tests execute that intent, production code stays replaceable, and engineering quality is non-negotiable.
Core thesis
Specs are durable. Tests are executable truth. Code is disposable.
Arey Pi is designed for projects that should remain understandable, testable, rebuildable, and safe for humans and agents to evolve over time.
What Arey Pi enforces
Arey Pi is built around these guarantees:
- behaviour is captured in canonical Gherkin specs;
- database projects keep canonical DBML specs precisely synchronised;
- TDD is mandatory for production behaviour changes;
- tests must be meaningful, reviewed, kept outside production source directories, and strengthened with coverage or mutation testing where risk warrants it;
- architecture and code must meet a senior engineering quality bar;
- significant technical decisions are captured in high-quality ADRs;
- specs, tests, code, DBML, ADRs, glossary, and architecture docs stay synchronised;
- README files, docs, AGENTS.md, skills, prompts, rules, agents, commands, and tooling instructions are kept synchronised when affected;
- quality tooling is part of Definition of Done, not optional polish;
- work is incremental and uses Conventional Commits;
- AI harness setup is treated as a first-class project rule.
Package contents
agents/ # Arey Pi subagent role definitions for pi-subagents
assets/ # Package assets, including the package image used by Pi
docs/ # Package documentation
extensions/ # Pi extension for doctor, bootstrap, workflow runtime, and guardrails
prompts/ # Reusable Pi prompt workflows
rules/ # Arey Pi operating rules
skills/ # On-demand Arey Pi workflows and instructions
templates/ # Bootstrap templates for AGENTS.md, specs, ADRs, DBML, glossary, and reports
The rules are the policy layer. The extension turns the policy into project setup commands, always-on workflow context, and safe mutation guardrails. The skills and prompts provide focused entry points for targeted work. The agents define specialist roles for subagent-backed delivery.
Arey Pi currently includes prompt templates and skills for project readiness, feature specs, strict Red-Green-Refactor, spec drift repair, ADR review, and adversarial engineering review.
Current subagent architecture
Arey Pi is designed to work with pi-subagents.
The core delivery topology is:
tech-lead
├── spec-author
├── tdd-implementer
├── spec-syncer
├── engineering-reviewer
└── project-evaluator
The intended daily experience is conversational. Users describe the work they want done, and the parent agent acts as the tech lead behind the scenes. It classifies the request, selects the matching Arey Pi workflow, and uses specialist subagents when available for specs, TDD implementation, spec sync, and engineering review.
The package includes an extension that can install those definitions into the project-local pi-subagents discovery path automatically.
Installation
Install Arey Pi:
pi install npm:arey-pi
For project-local installation:
pi install -l npm:arey-pi
For subagent-backed workflows, also install pi-subagents:
pi install npm:pi-subagents
Usage today
Audit a repository against Arey Pi readiness with the prompt workflow:
/assess-project
Or load the readiness skill directly:
/skill:project-readiness
Arey Pi also ships an extension with native setup commands, always-on workflow context injection, and simple protected-file guardrails.
When the Arey Pi agents are available to pi-subagents, the project evaluator runtime name is:
arey-pi.project-evaluator
Extension-backed workflow
Arey Pi includes a polished extension-backed setup and runtime harness:
/arey-doctor # check package, subagent, prompt, skill, and project readiness setup
/arey-bootstrap # full safe bootstrap: agents, AGENTS.md, specs, docs, and templates
/arey-bootstrap --agentsmd # create a starter AGENTS.md if missing
/arey-bootstrap --specs # scaffold starter specs directories and glossary
/arey-bootstrap --docs # scaffold starter docs directory
/arey-bootstrap --full # explicit alias for the default full bootstrap
/arey-bootstrap --force # overwrite selected project-local agents and scaffold files
When the package is installed, Arey Pi automatically injects quiet harness context behind the scenes on every agent turn. The parent agent infers the work mode, acts as orchestrator, uses specialist subagents when available, applies the relevant delivery guidance, and enforces simple event-based guardrails for protected env files.
See:
docs/README.mdfor the package documentation index;docs/commands.mdfor setup commands, runtime harness behaviour, and guardrails;docs/adoption.mdfor adopting Arey Pi in an existing repository;docs/workflows.mdfor workflow expectations;docs/workflow-diagram.mdfor the visual framework workflow;docs/pi-subagents.mdfor optimisedpi-subagentsusage;docs/templates.mdfor bootstrap template details.
Development
Arey Pi uses Bun as its package manager and Biome for extension formatting and linting.
bun install
bun run format
bun run test
bun run check
bun run check runs Biome linting, TypeScript type checking, and Bun tests.
Rule categories
Arey Pi rules are organised as:
rules/
├── core/ # principles, work modes, DoD, conflict handling
├── specs/ # Gherkin, DBML, spec sync, language style
├── engineering/ # TDD, test quality, code quality, tooling, rebuildability
├── architecture/ # architecture memory and ADR quality
├── workflow/ # agent workflows, documentation sync, AI harness, commits
└── assessment/ # project readiness
See rules/README.md for the full policy index.
Status
Arey Pi is pre-1.0.
The policy layer, readiness workflow, documentation sync rule, core subagent role definitions, professional setup extension commands, bootstrap scaffolding, always-on workflow context injection, focused prompts, TDD/spec-sync/review skills, protected env-file guardrails, and extension-core tests exist.
Next improvements include custom Arey Pi tools, more granular workflow events, and deeper enforcement through Pi extension hooks.
