From pi
Internal guidance for composing prompts that Pi runs handle reliably for coding, review, diagnosis, and research tasks. Provides a structured recipe with XML-style blocks for task definition, output contracts, grounding rules, and action safety.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pi:pi-promptingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill when `pi:pi-rescue` needs to ask Pi for help on a non-trivial coding or investigation task.
Use this skill when pi:pi-rescue needs to ask Pi for help on a non-trivial coding or investigation task.
Pi runs whatever model the user has configured. By default this plugin targets DeepSeek V4 (Pro for review, Flash for everyday tasks). The guidance below assumes the prompt may run on either a non-reasoning model (Flash) or a reasoning model (Pro). Bias toward concrete, numbered checklists rather than abstract instructions — both model classes follow those reliably.
Core rules:
Default prompt recipe:
<task>: the concrete job and the relevant repository or failure context. Include file paths.<output_contract> (or <structured_output_contract> for JSON): exact shape, ordering, and brevity requirements.<grounding_rules>: required for review, research, or anything that could drift into unsupported claims.<action_safety>: required for write-capable tasks — name the directories and file kinds Pi may touch.When to add extra blocks:
<completeness_contract> listing what counts as "done" (tests pass, lint clean, files touched).prompts/adversarial-review.md and prompts/review.md. Do not hand-craft another review prompt.<sources> block listing what Pi is allowed to consult.How to choose prompt shape:
/pi:review or /pi:adversarial-review commands when the job is reviewing local git changes. Those prompts already carry the review contract.task when the job is diagnosis, planning, research, or implementation and you need to control the prompt more directly.task --resume-last for follow-up instructions on the same Pi session. Send only the delta instruction instead of restating the whole prompt unless the direction changed materially.Working rules:
--effort high) by default — DeepSeek Flash will not benefit, and DeepSeek Pro takes longer. Tighten the prompt before escalating effort.Prompt assembly checklist:
<task>.<grounding_rules> and <action_safety> only where the task needs them.npx claudepluginhub agents365-ai/pi-plugin-cc --plugin piInternal contract forwarding tasks to the pi-companion runtime. Used only inside the pi:pi-rescue subagent to invoke a single task command and return stdout unchanged.
Generates well-structured, verifiable prompts using proven optimization techniques like task decomposition and iterative verification.
Guides structured prompt composition for Codex/GPT-5.4 in coding, review, diagnosis, and research tasks within Claude Code plugin.