Many of my agent skills are strict workflows: steps, branches, loops.
Yesterday, I built pi-prompt-machine, a Pi extension for expressing prompts as Mermaid state machines. It progressively reveals one prompt at a time, advancing only when the current state is complete.
pi.dev/packages/pi-...
pi.dev
Pi Coding Agent
A terminal-based coding agent