Pi Prompting

作者 agents365-aibc55bf9869f3無授權條款81 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫5 天前更新

Internal guidance for composing prompts that Pi runs (DeepSeek by default) handle reliably for coding, review, diagnosis, and research tasks

僅含說明AI & Agents
AI 產生的概覽

指導如何撰寫 Pi 編碼代理能可靠執行的提示詞,涵蓋任務、輸出、依據與安全等區塊。

功能
此技能提供內部指引,用來撰寫傳送給 Pi 的提示詞;Pi 是配套的編碼代理,執行使用者設定的模型(例如 DeepSeek)。它定義預設提示詞配方,包含任務、輸出契約、依據規則與操作安全區塊,並為編碼、審查與研究任務提供額外區塊。它也說明提示詞形式的選擇、推理強度升級,以及在安裝 pi-subagents 時的子代理提示方式。產出是提示詞文字與檢查清單,而非檔案或程式碼。
適用情境
當配套轉送器需要就非平凡的編碼、審查、診斷或研究任務向 Pi 求助時使用。它用於在送出前組織這些請求,而非日常對話。
執行需求
不需要指令碼或套件,僅為說明性內容。它假定已設定 Pi 配套環境與模型,並可選擇安裝 pi-subagents 外掛。

Pi Prompting

Use this skill when pi:pi-companion-forwarder 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:

  • Prefer one clear task per Pi run. Split unrelated asks into separate runs.
  • Tell Pi what done looks like. Do not assume it will infer the desired end state.
  • State explicit grounding rules whenever an unsupported guess would degrade quality.
  • Use stable XML-style tag blocks so the prompt has obvious internal structure.
  • Keep prose short. Prefer numbered checklists over paragraphs for procedural work.

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:

  • Coding or debugging: add <completeness_contract> listing what counts as "done" (tests pass, lint clean, files touched).
  • Review or adversarial review: rely on the shipped prompts/adversarial-review.md and prompts/review.md. Do not hand-craft another review prompt.
  • Research or recommendation tasks: add a short <sources> block listing what Pi is allowed to consult.

How to choose prompt shape:

  • Use the built-in /pi:review or /pi:adversarial-review commands when the job is reviewing local git changes. Those prompts already carry the review contract.
  • Use task when the job is diagnosis, planning, research, or implementation and you need to control the prompt more directly.
  • Use 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:

  • Prefer explicit prompt contracts over vague nudges.
  • Do not raise reasoning (--effort high) by default — DeepSeek Flash will not benefit, and DeepSeek Pro takes longer. Tighten the prompt before escalating effort.
  • For tool-heavy or long-running tasks, ask Pi for brief outcome-based progress updates inside its working notes.
  • Keep claims anchored to observed evidence. If something is a hypothesis, mark it as such.

Prompt assembly checklist:

  1. Define the exact task and scope in <task>.
  2. State the output contract — JSON, bullet list, plain prose — and the maximum length.
  3. Decide whether Pi should keep going on its own judgment or stop for missing high-risk details.
  4. Add <grounding_rules> and <action_safety> only where the task needs them.
  5. Remove redundant instructions before sending the prompt.

Subagent-aware prompting

When pi-subagents is installed:

  • For tasks with parallel workstreams, prepend <available_pi_subagents> block before <task>.
  • Suggested agent routing: scout for exploration, researcher for web/docs, planner for design, worker for implementation, reviewer for code review.
  • Never suggest subagents in adversarial-review or stop-review-gate prompts (those need deterministic behavior).
  • The block is a suggestion, not a command — Pi decides whether to delegate.
  • For dedicated multi-task parallel execution, use /pi:parallel-rescue "task1" "task2" ... instead of manual prompt construction.

來源與署名

來源:agents365-ai/365-skills位於plugins/pi-plugin-cc/skills/pi-prompting提交bc55bf9

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架