principal-pi-skills7.1.1
Five core principal engineering skills (architect, build, review, debug, git-ops) and passive Pi 1.6 verification/routing extensions.
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
Principal Pi Skills
Five core principal-engineering skills (architect, build, review, debug, git-ops), thirteen
named subagent definitions listed in principal-agents.json, and two passive Pi 1.6
extensions (bootstrap.ts, verify-before-settle.ts) built for fast, low-token coding loops on
256K–512K open-weight and frontier flash models.
- Zero extra Turn-1 tools: Both extensions are purely passive (
systemPromptOptions.sections,tool_call/tool_resulthooks, andbefore_agent_start/agent_endverification). - Cross-OS (macOS / Linux / Windows): Pure Node.js + Pi extensions; no Linux-only dependencies.
- Native
pi-daddybinding:principal-agents.jsonbindsbuild,review, anddebugto their verified delegated agent definitions with SHA-256 digests (pi-daddy >= 1.0.1).
Install
For the full ecosystem, follow Pi Daddy's ecosystem quickstart. It lists the package versions tested together and explains how to update an existing installation.
To install Principal on its own:
pi install npm:principal-pi-skills
If you use the standalone subagents outside Pi Daddy, install and check the agent definitions with one copy of the latest published helper:
npm exec --package=principal-pi-skills@latest --call "principal-pi-agents install && principal-pi-agents check"
Skills & Delegated Agents
Every word count below is verified by node scripts/check-word-budgets.mjs.
| Skill | Purpose | Execution | Words |
|---|---|---|---|
architect |
Design structure, boundaries, interfaces, and migrations | inline or subagent (agents/principal-architect.md, 334) |
312 |
plan |
Outcome contract, invariant-first breakdown, target files, and verification plan | inline or subagent (agents/principal-plan.md, 277) |
228 |
investigate |
Read-only codebase tracing with call paths and file references | subagent (agents/principal-investigate.md, 198) or inline |
148 |
build |
Scoped implementation with concrete verification and regression tests | inline or subagent (agents/principal-build.md, 1939) |
1879 |
refactor |
Behavior-preserving cleanup with characterization checks | inline or subagent (agents/principal-refactor.md, 151) |
136 |
test-engineer |
Adversarial edge-case, concurrency, and regression test suites | subagent (agents/principal-test-engineer.md, 205) or inline |
169 |
qa |
Uses the built change through its real interface as a user would; reproducible findings, no edits | subagent (agents/principal-qa.md, 201) or inline |
190 |
red-team |
Tries to show the delivery is wrong while its checks are green; counterexamples, no edits | subagent (agents/principal-red-team.md, 217) or inline |
211 |
review |
Cold, evidence-backed code review of diffs and behavior | subagent (agents/principal-review.md, 1432) or inline |
1294 |
review-security |
Cold read-only security audit (authz, injection, secrets, boundaries) | subagent (agents/principal-review-security.md, 181) or inline |
173 |
review-perf |
Cold read-only performance, scaling, and concurrency audit | subagent (agents/principal-review-perf.md, 170) or inline |
160 |
debug |
Reproduce, isolate root cause, apply minimal fix, add regression test | inline or subagent (agents/principal-debug.md, 1477) |
1283 |
orchestrator |
Multi-specialist coordinator: fits the crew to the task, routes findings, shares fanout and depth limits | subagent (agents/principal-orchestrator.md, 365) or inline |
340 |
git-ops |
Safe branching, commit hygiene, release prep, and recovery playbooks | inline | 2536 |
Named reviewers share a checkout using only read, grep, find and ls. Supply the candidate diff, test results and any research or memory excerpts approved for these reviewers as files. The coordinator owns executable follow-up checks and can send a separate test-engineer or build assignment when needed. On reviewed work, one independent reviewer checks the complete final code and tests. A subsequent change needs fresh sign-off. A blocked review remains visible in the handoff.
qa and red-team run the delivery with bash and no edit tools. qa uses it through its real interface the way a user would. red-team looks for inputs and conditions where it is wrong while its checks pass, and for ways the check itself was satisfied wrongly. Both create files only in a temporary directory outside the checkout, return findings with the commands that reproduce them, and never fix what they find. The orchestrator sends each finding to the specialist that owns the code at fault.
Workflow Prompts
Slash-command prompts shipped in prompts/:
/principal-feature <task>— design/build/verify/review workflow/principal-bugfix <symptom>— reproduce, root-cause debug, minimal fix, regression test/principal-refactor <scope>— behavior-preserving refactor with characterization checks/principal-review-branch [base]— cold branch diff review againstmain(or[base])/principal-deeper <task>— rewrite the task as a deeper (not bigger) version with an outside check, then confirm before starting
Passive Extensions
extensions/bootstrap.ts— Injectsbootstrap/BOOTSTRAP.mdinto Pi's structuredsystemPromptOptions.sections(preserving provider prompt-cache stability). Reinforces:- Concise 3–5 bullet pre-edit micro-plans naming target files and verification commands
- Batching 3+ read-only file inspections with Pi's native
codemode - Honest reporting of exact observed command output
extensions/verify-before-settle.ts— Passive guardrails during execution:- Workspace boundary guard: blocks destructive or runaway host scans (e.g.
find /) outside the project workspace - Deterministic thrash / edit-loop breaker: detects repeated identical test failures (
sameFailCount >= 2), injects a root-cause recovery steer, and emitsprincipal:thrash-detected:v1onpi.events(consumed bypi-daddySmart Auto-Escalation) - Verify-before-settle: reminds the agent to run verification after edits before claiming completion
- Workspace boundary guard: blocks destructive or runaway host scans (e.g.
Repository Layout
architect/SKILL.md inline architecture & design skill
build/SKILL.md implementation skill (generated from contracts/build.md.tmpl)
review/SKILL.md cold review skill (generated from contracts/review.md.tmpl)
debug/SKILL.md debugging skill (generated from contracts/debug.md.tmpl)
git-ops/SKILL.md git safety & release skill
agents/principal-*.md delegated agent definitions for build, review, debug
principal-agents.json SHA-256 binding manifest for pi-daddy
bootstrap/BOOTSTRAP.md task sizing and session operating habits (340 words)
extensions/bootstrap.ts structured system-prompt section injector
extensions/verify-before-settle.ts workspace guard, thrash detector, verification hook
prompts/principal-*.md workflow slash-command prompts
references/ shared research & checkpoint references
scripts/ contract generator, linter, pack check, word-budget check, CLI bins
Development
npm run generate # regenerate skills, agents, prompts, and principal-agents.json from contracts/
npm test # generate:check + unit tests + install tests + check:pack + lint:skills
node scripts/check-word-budgets.mjs