My global configuration for Pi. For a
small task, you describe it in a sentence and the agent turns it into a plan.
For a bigger feature, you and the agent agree on what to build, and agents
build it ticket by ticket. Then they test it on the running app, before the
merge and again after deploy. Clone it to ~/.pi and Pi loads it as is.
Give your coding agent, such as Pi, Claude Code, Codex, or opencode, this prompt:
Read https://github.com/drsh4dow/pi-setup/blob/main/SETUP.md
and set up this Pi configuration on my machine.
The agent asks which optional tools you want, installs Pi and the tools with
mise, and runs mise run doctor until no check fails.
To do it yourself, follow the same steps in SETUP.md. Then start
pi and run /login.
Run /skill:setup-sh4dow-skills once in each repository. It records where the
issues live, where the domain docs are, and which checks the code must pass.
When the work fits in one session, describe it in a sentence or two and run
/restate-sharpened <task>. The agent says in a few sentences what you're
after, then works out what an expert would do that you didn't ask for. It
replies with what it added, how it would do the task, and the decisions that
are yours, numbered, each with its pick. It doesn't start until you answer.
Reply by number, like 1. agree. 2. drop it., and it does the work. Run it
with no task to sharpen the approach already in the chat. If the approach
needs a spec or more than one PR, use the feature workflow below instead.
- Agree on the problem. Alternate
/skill:grill-with-docswith prototypes until you and the agent describe the problem the same way. The agent writes each term you agree on intoGLOSSARY.mdand each decision into a short decision record (ADR). Then run/skill:to-specand/skill:to-tickets, which files the tickets under the spec. - Build it.
/implement-chunk <spec ticket>asks its questions first. Then it gives each ticket to a subagent, reviews and tests every PR, and hands you a few final PRs to merge. - Test it on the real app. Agents start your app and use it like a user,
through a skill in the repo called
verify-<app>. Create it with/skill:create-verification-skill. When the app changes, update it with/skill:maintain-verification-skill. - Check it after deploy.
implement-chunktests each merged ticket on the deployed app. If one fails, it tells you right away and attaches screenshots and logs. You decide on reverts and deploys.
When you come back to a long run, /skill:catchup tells you in plain words
what changed since your last message and lists every call waiting on you,
each with its pick, evidence, and risk. /skill:catchup-video shows the same
catch-up as a short narrated video.
To keep the codebase easy to work in:
/skill:improve-codebase-architecturefinds modules that expose more than they do./skill:create-formal-verification-skillwrites a formal model of a state machine, a retry loop, or a race, and checks every order of events./skill:maintain-formal-verification-skillupdates the model when the code changes./skill:statechartdraws the model as a chart, with each bug it finds as a numbered path of states./skill:correctturns a mistake agents keep making into a type, lint rule, or test./skill:reflectturns what a session taught into skill edits.
Most skills don't appear in /skill:. The agent loads them on its own when
they apply: principle-* skills when it writes code, how and why when it
reads code, and domain-modeling when you discuss terms. For the full list of
skills, extensions, and prompts, and who starts each, see
docs/inventory.md.
The default model is Opus 5.5 with high thinking and Fast mode. Codemode is on,
and code review also uses gpt-6.1-sol. agent/SYSTEM.md
holds only the guardrails. Everything else lives in skills. Shared defaults
are in agent/default.settings.json. Your own
agent/settings.json stays out of git.
vp run verify # everything CI runs
vp run test:e2e # live Pi tests, needs credentialsSee docs/development.md.
Many of the skills here started from pstack, Matt Pocock's skills, and Addy Osmani's agent-skills. They take a lot of their ideas and structure from those collections and are adapted to Pi. Browser automation builds on vercel-labs/agent-browser. MIT licensed.