pi-prompting

pi-prompting is a skill for Claude Code from Agents365-ai/pi-plugin-cc. It costs 31 tokens per session (835 once invoked), scanned A, original, Apache-2.0.

Guidance for writing prompts that another coding assistant, called Pi, can follow for coding, review, diagnosis, and research tasks. It recommends clearly scoped tasks, explicit success conditions, and structured output requirements.

In plain words
What is it for?
Preparing prompts for Pi to investigate problems, review code, write or change code, or research a topic.
Why use it?
It helps make requests understandable to models with different levels of reasoning ability. This reduces ambiguity about the task, evidence to use, and what the result should contain.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions subagents.

Part of the pi plugin — 3 skills, 8 commands, 1 agent, 3 hooks shipped together

Good fit Preparing prompts for Pi to investigate problems, review code, write or change code, or research a topic.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agents365-ai/pi-plugin-cc/pi-prompting
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Agents365-ai/pi-plugin-cc --skill pi-prompting
Clone the repo
git clone --depth 1 https://github.com/Agents365-ai/pi-plugin-cc

Made for: Claude Code.

Or install pi, the plugin that ships this one along with the rest of its 3 skills, 8 commands, 1 agent, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pi-prompting

README.md
[![agentmods](https://agentmods.dev/badge/skills/agents365-ai/pi-plugin-cc/pi-prompting/github.svg)](https://agentmods.dev/skills/agents365-ai/pi-plugin-cc/pi-prompting)
Your own site
<a href="https://agentmods.dev/skills/agents365-ai/pi-plugin-cc/pi-prompting"><img src="https://agentmods.dev/badge/skills/agents365-ai/pi-plugin-cc/pi-prompting/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pi-prompting

Your own site · 80×15
<a href="https://agentmods.dev/skills/agents365-ai/pi-plugin-cc/pi-prompting"><img src="https://agentmods.dev/badge/skills/agents365-ai/pi-plugin-cc/pi-prompting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 835 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.00835
Opus 5 $0.00015 $0.00417
Sonnet 5 $0.00006 $0.00167
Haiku 4.5 $0.00003 $0.00084

Measured 10d ago against content hash 070691b1b9c9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

pi-prompting scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/pi/skills/pi-prompting/SKILL.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

Read the full file on GitHub · 57 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 57 lines · 31 tokens per session scan A 070691b1b9c9

Subscribe to this mod's changes

pi-prompting is a skill published in the GitHub repository Agents365-ai/pi-plugin-cc (44 stars, last pushed 25d ago), licensed Apache-2.0. It adds 31 tokens to every session and 835 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

v4-best-practices

Use when working with deepseek-v4-pro or deepseek-v4-flash in thinking mode on multi-step or plan-driven tasks. Provides rules to prevent stale references, unverified plan assumptions, and vague plan output.

Hmbown/CodeWhale · 51 tokens

skill-meta-prompt

Craft better prompts using proven optimization techniques — use when your prompt needs refinement.

nyldn/claude-octopus · 19 tokens

deepseek-helper

A guide for using the DeepSeek API, a service that lets programs send requests to DeepSeek language models. It covers model choice, example requests, prompt improvements, cost estimates, and common API errors.

dongsheng123132/u-claw · 25 tokens

ai-workflow-architect

Designs AI systems, automations, and agent workflows for a business — identifying which manual work is worth automating, how to structure the system, which tools fit, and what could go wrong. Use this to automate part of an operation, design an agent or MCP workflow, reduce repetitive manual work, connect tools into a…

cbrock84/headcount · 89 tokens

cloudflare-workers-ai

Cloudflare Workers AI for serverless GPU inference. Use for LLMs, text/image generation, embeddings, or encountering AIERROR, rate limits, token exceeded errors.

secondsky/claude-skills · 39 tokens

nano-banana-prompting

This skill should be used when crafting prompts for Nano Banana Pro (Gemini image generation). Use when users want help writing image generation prompts, need guidance on prompt structure, or want to optimize their prompts for better results.

NikiforovAll/claude-code-rules · 51 tokens