What problem does it solve? Working on the pi coding-agent orchestration substrate (extensions, agents, skills, prompts) requires accurate knowledge of pi's CLI modes, JSON event stream, extension API, and authoring contracts, which are scattered across installed docs and compiled dist files and drift between releases. ## Core Features & Use Cases - CLI and event-stream reference: Covers pi's interactive, -p print, and --mode json modes, the JSON-Lines event types, exit codes, and signal handling that the vendored subagent extension parses. - Extension API summary: Documents pi.registerTool, the full event catalog, ExtensionContext, pi.sendMessage steering modes, and the pi.events bus for extension authors. - Agent and skill authoring contracts: Specifies SKILL.md frontmatter rules, wrapper frontmatter fields, discovery precedence, prompt-template syntax, and settings precedence. - Use Case: Before modifying agent/extensions/subagent/index.ts or adding a new agent wrapper, load this skill to verify current event names, frontmatter whitelist fields, and the snapshot-bump procedure against the installed pi version. ## Quick Start Ask the pi-agent-expert subagent to explain how the JSON event stream works before changing the subagent extension's output parser.