pi-prompting

pi-prompting is a skill for Claude Code from HK-hub/AgentSkills. It costs 31 tokens per session (703 once invoked), scanned A, original, MIT.

Internal guidance for writing prompts that Pi, an AI assistant, can follow reliably during coding, code review, diagnosis, and research tasks.

In plain words
What is it for?
Use it to structure Pi prompts with focused tasks, repository context, checklists, and exact output formats.
Why use it?
It helps turn broad requests into clear instructions with defined outcomes and evidence limits.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to structure Pi prompts with focused tasks, repository context, checklists, and exact output formats.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hk-hub/agentskills/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 HK-hub/AgentSkills --skill pi-prompting
Clone the repo
git clone --depth 1 https://github.com/HK-hub/AgentSkills

Made for: Claude Code.

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/hk-hub/agentskills/pi-prompting/github.svg)](https://agentmods.dev/skills/hk-hub/agentskills/pi-prompting)
Your own site
<a href="https://agentmods.dev/skills/hk-hub/agentskills/pi-prompting"><img src="https://agentmods.dev/badge/skills/hk-hub/agentskills/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/hk-hub/agentskills/pi-prompting"><img src="https://agentmods.dev/badge/skills/hk-hub/agentskills/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 703 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.00703
Opus 5 $0.00015 $0.00351
Sonnet 5 $0.00006 $0.00141
Haiku 4.5 $0.00003 $0.00070

Measured 7d ago against content hash e68d16864761, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 7d 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.

pi-prompting/SKILL.md · 48 lines

What it actually says

Pi Prompting

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:

  • 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.
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. 7d ago First seen · 48 lines · 31 tokens per session scan A e68d16864761

Subscribe to this mod's changes

pi-prompting is a skill published in the GitHub repository HK-hub/AgentSkills (6 stars, last pushed 23d ago), licensed MIT. It adds 31 tokens to every session and 703 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-09-03.

Related

Other skills, from other repositories

prompt-writer

Write maximally terse agent prompts from scratch. Use when creating agent specs, command prompts, or instruction sets with constitutional governance.

rp1-run/rp1 · 29 tokens

tersify-prompt

Rewrites agent-instruction prompts to be maximally terse while preserving full intent.

rp1-run/rp1 · 21 tokens

ai-engineering-toolkit

6 production-ready AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit (65-point checklist), eval harness building, and product sense coaching.

sickn33/agentic-awesome-skills · 47 tokens

guidance

Control LLM output with regex and grammars, guarantee valid JSON/XML/code generation, enforce structured formats, and build multi-step workflows with Guidance - Microsoft Research's constrained generation framework.

davila7/claude-code-templates · 38 tokens

outlines

Guarantee valid JSON/XML/code structure during generation, use Pydantic models for type-safe outputs, support local models (Transformers, vLLM), and maximize inference speed with Outlines - dottxt.ai's structured generation library.

davila7/claude-code-templates · 50 tokens

prompt-master

Generates optimized prompts for AI tools. Activates only when the user explicitly asks to write, fix, improve, or adapt a prompt for a specific AI tool (LLM, Cursor, Midjourney, image AI, video AI, coding agents, etc.). Does not activate for general conversation, coding tasks, document writing, or other…

nidhinjs/prompt-master · 78 tokens