بنقرة واحدة
pi-extension-lifecycle
Pi extension lifecycle and registration patterns.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Pi extension lifecycle and registration patterns.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Iterative multi-round codebase audit with diminishing-returns detection. Run 5-20+ rounds, each focusing on one specific area. Built from 19 rounds of dogfooding pi-crew on itself.
Pi TUI crew widget data sources, display priority, and rendering performance.
Multi-phase orchestration for planners and executors.
Spawn 3 adversarial subagents (Skeptic, Pragmatist, Critic) to evaluate a decision, architecture choice, or plan. Anti-anchoring: each role receives ONLY the question, not conversation history. Aggregates votes into consensus recommendation with dissent tracking. Use when facing critical decisions, architecture choices, security tradeoffs, or plan reviews where single-perspective analysis is insufficient.
Background worker, heartbeat, stale-run, crash-recovery, and deadletter workflow. Use when debugging stuck/dead workers or changing async run reliability.
Child Pi worker spawning, lifecycle callbacks, and failure modes.
| name | pi-extension-lifecycle |
| description | Pi extension lifecycle and registration patterns. |
| origin | pi-crew |
| triggers | ["add extension","register tools","session hooks","context API","extension lifecycle"] |
Use this skill when working on Pi extension registration or lifecycle behavior.
source/pi/packages/coding-agent/src/core/extensions/types.ts, loader.ts, runner.tssource/pi/packages/coding-agent/examples/extensions/src/extension/register.ts, src/extension/registration/*.tsexecute(toolCallId, params, signal, onUpdate, ctx) handler.ExtensionContext/ExtensionCommandContext after session replacement (newSession, fork, switchSession, reload). Do not retain old context references for later work.ctx.sessionManager.getSessionId() and pass it into pi-crew TeamContext.src/extension/registration/; keep index.ts minimal.Before registering tools or handling session lifecycle, verify:
If ANY answer is NO → Stop. Fix lifecycle issues before proceeding.
cd pi-crew
npx tsc --noEmit
npm test