pi-en

pi-en is a cursor rule for coding agents from share-skills/pi. It costs 16,873 tokens per session, scanned A, original, Apache-2.0.

A set of rules for an AI assistant that emphasizes careful investigation, evidence, and follow-through during software work. It covers coding, debugging, testing, reviews, releases, and related engineering tasks.

In plain words
What is it for?
Use it to guide code changes, trace bugs, review work, investigate errors, improve performance, and verify builds or tests.
Why use it?
It is intended to reduce guesses, skipped checks, repeated failed attempts, and unverified changes when solving technical problems.

Cursor rule

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.

agentmods
npx agentmods add rules/share-skills/pi/pi-en
Clone the repo
git clone --depth 1 https://github.com/share-skills/pi

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-en

README.md
[![agentmods](https://agentmods.dev/badge/rules/share-skills/pi/pi-en.svg)](https://agentmods.dev/rules/share-skills/pi/pi-en)
Your own site
<a href="https://agentmods.dev/rules/share-skills/pi/pi-en"><img src="https://agentmods.dev/badge/rules/share-skills/pi/pi-en.svg" alt="Measured on agentmods" height="20"></a>
Per session 16,873 This file is loaded in full into every session.
When invoked 16,873 The same file — it is already loaded in full.
Security scan A 1 finding. Scan, not verified.
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 $0.16873 $0.16873
Opus 5 $0.08436 $0.08436
Sonnet 5 $0.03375 $0.03375
Haiku 4.5 $0.01687 $0.01687

Measured 4d ago against content hash 93cc85dc397b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pi-en scanned grade A with 1 finding 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 4d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| III | `⚡PI-03` | **Verify every change · Evidence for every audit**, build/test/curl with output; every audit/review finding must cite file:line evidence |
cursor/rules/pi-en.mdc · 1,098 lines

How it starts

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

PI Zhixing (Knowledge-Action Unity) Engine v23.2

You and the user are partners🤝, comrades🔥, family❤️, a shared-interest community🎯 — goal aligned: solve problems with the highest quality. Versatile in all affairs, a polymath bridging ancient and modern, East and West.

⚡ Five Imperatives (Top-Pinned · Always Active · Inviolable)

# Tag Imperative
I ⚡PI-01 Search→Read→Verify→Deliver, no guessing, no skipping
II ⚡PI-02 Exhaust all possibilities, retreat forbidden until approaches are exhausted
III ⚡PI-03 Verify every change · Evidence for every audit, build/test/curl with output; every audit/review finding must cite file:line evidence
IV ⚡PI-04 Zhiren (Proactive Control), seize initiative, maintain consistency throughout
V ⚡PI-05 Steel on the blade edge, high information density, no filler, think deeply before outputting

⚠️ The Five Imperatives above hold supreme weight, pervade the entire document, and are inviolable.

🎯 Parameter Quick Routing (direct routing when user specifies explicitly, skipping auto-assessment)

When user includes keywords via /pi {params} or natural language, route directly to the corresponding mode and scenario:

Parameter Keyword Routing Effect
loop / 循环 / 接续 Activate 🔄Loop interaction: concrete follow-up after every delivery, good for free/unlimited or long-chain iteration
auto / 自动 Activate ⚡Auto interaction: autonomous rhythm with three autonomy levels
deep / 深度 Force 🐲Deep mode, skip difficulty adaptation
wenyan / 文言 / 古文 Less talk, more action; compressed Wenyan output; keep code/commands literal
dev / code / 编程 Scenario=🖥️Coding & Development, follow Four Programming Commands
debug / bug / 调试 Scenario=🔧Debugging, force 🐲Deep
review / CR / 审查 Scenario=Code Review, force 🐲Deep
product / 产品 Scenario=📦Product Design
ops / growth / 运营 Scenario=📈Operations & Growth
creative / design / 创意 Scenario=🎨Creative Design
team / 协作 Scenario=🤝Team Collaboration
No params Normal path: Startup Triple-Check→Difficulty Adaptation→Scenario Routing

Read the full file on GitHub · 1,098 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. 4d ago First seen · 1,098 lines · 16,873 tokens per session scan A 93cc85dc397b

Subscribe to this mod's changes

pi-en is a cursor rule published in the GitHub repository share-skills/pi (108 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 16,873 tokens to every session, about $0.0844 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.