howaboua-pi-stuff: Skill for Cursor

.cursor/skills/pi-stuff-tool-contracts/SKILL.md

pi-stuff-tool-contracts is a skill for Cursor from IgorWarzocha/howaboua-pi-stuff. It costs 27 tokens per session (470 once invoked), scanned A, original, MIT.

Guidance for reviewing or changing a tool that lets an AI model use a Pi extension. It covers general tool design, prompt caching, and checking how much source text tools may expose.

In plain words
What is it for?
Use it when migrating or reviewing Pi extension tools. It provides a script for estimating source-line token costs and instructions for running the owning package’s checks.
Why use it?
It helps prevent outdated APIs, duplicated tool descriptions, and unnecessary prompt or token costs. It also reminds you to inspect the final schemas and model-visible output instead of relying only on estimates.

Skill for Cursor

Written for Cursor: installed under .cursor/.

This is IgorWarzocha/howaboua-pi-stuff's own configuration. It tells Cursor how to work on howaboua-pi-stuff itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything howaboua-pi-stuff configures →

Reuse

Borrowing it

Nothing to install: this file belongs to IgorWarzocha/howaboua-pi-stuff. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/IgorWarzocha/howaboua-pi-stuff/main/.cursor/skills/pi-stuff-tool-contracts/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/IgorWarzocha/howaboua-pi-stuff

Made for: Cursor.

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-stuff-tool-contracts

README.md
[![agentmods](https://agentmods.dev/badge/skills/igorwarzocha/howaboua-pi-stuff/pi-stuff-tool-contracts/github.svg)](https://agentmods.dev/skills/igorwarzocha/howaboua-pi-stuff/pi-stuff-tool-contracts)
Your own site
<a href="https://agentmods.dev/skills/igorwarzocha/howaboua-pi-stuff/pi-stuff-tool-contracts"><img src="https://agentmods.dev/badge/skills/igorwarzocha/howaboua-pi-stuff/pi-stuff-tool-contracts/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-stuff-tool-contracts

Your own site · 80×15
<a href="https://agentmods.dev/skills/igorwarzocha/howaboua-pi-stuff/pi-stuff-tool-contracts"><img src="https://agentmods.dev/badge/skills/igorwarzocha/howaboua-pi-stuff/pi-stuff-tool-contracts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 470 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00027 $0.00470
Opus 5.5 $0.00011 $0.00188
Sonnet 5.5 $0.00005 $0.00094
Haiku 4.5 $0.00003 $0.00047

Measured 1mo ago against content hash c6aeffc1c24c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pi-stuff-tool-contracts 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/tool-token-lines.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.cursor/skills/pi-stuff-tool-contracts/SKILL.md · 33 lines

What it actually says

Discover and load applicable general agent tool design guidance before tool work. Load prompt caching guidance too when the active tool vector or system-prompt metadata changes.

Inspect retained Notebook bindings before writing measurement tooling. Reuse piStuffTokenCount when available with existing package prompt and schema builders.

Use scripts/tool-token-lines.mjs as this repo's preliminary migration and copy-cost probe. If its dependency is absent, install it once:

(cd .pi/skills/pi-stuff-tool-contracts/scripts && bun install --frozen-lockfile --ignore-scripts)
node .pi/skills/pi-stuff-tool-contracts/scripts/tool-token-lines.mjs <extension-file-or-directory>

Add --json for machine-readable output. The helper rejects known obsolete TypeBox, Pi package-scope, and removed custom-tool API markers before reporting an o200k token proxy over detected source lines.

The proxy is not the emitted schema or prompt payload. It can miss dynamic strings, imported schemas, conditional modes, and provider serialization. Use it only to locate likely duplication.

Validate the changed boundary

For wording-only edits, compare before-and-after prompt text and serialized schemas for affected modes using existing builders and token tooling. Review the diff for preserved instructions and constraints, and run focused checks. A small Notebook cell is enough; do not build an SDK harness, launch comparison sessions, or add tests merely because the text is model-facing.

For changes to schema shape, registration, prompt assembly, routing, or provider serialization:

  • Capture before-and-after emitted schemas and prompt additions for the affected modes and conditional tool sets, including final provider rewrites. Reuse existing capture tooling first.
  • Inspect assembled output across extension boundaries. Source proxies and passing functional tests do not prove the emitted contract.
  • New probes need a concrete risk that existing checks cannot resolve. Missing captures limit the claims you can make; they do not automatically justify a new harness.
  • Check affected model-visible results and run the owning package's relevant checks.

Measure schema and prompt text separately. Label source proxies as proxies, not emitted-payload or task-cost savings. Delete temporary captures and probes after validation.

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · +5 lines c6aeffc1c24c
  2. 1mo ago Changed · +10 lines 774e0e44099c
  3. 2mo ago First seen · 18 lines · 27 tokens per session scan A 0e94ef806be2

Subscribe to this mod's changes

pi-stuff-tool-contracts is a skill published in the GitHub repository IgorWarzocha/howaboua-pi-stuff (413 stars, last pushed yesterday), licensed MIT. It adds 27 tokens to every session and 470 once invoked, about $0.0001 per session on Opus 5.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

pi-stuff-tool-contracts compared with skills from other repositories

pi-stuff-tool-contracts next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pi-stuff-tool-contractsIgorWarzocha/howaboua-pi-stuffSkill413yesterdayMITA27Cursor
autoreviewopenclaw/clawhubSkill9.5kyesterdayMITA17Claude Code, Codex
agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skillsSkill2.2k5d agoMITA115Claude Code, Codex
omh-code-reviewrlaope/oh-my-hermesSkill5.2ktodayMITA48Claude Code, Codex
revdiff-planumputun/revdiffSkill945yesterdayMITA84Claude Code
explore-unknownsdzhng/skillsSkill1.4k2d agoMITA162Claude Code, Codex
re0-mergeLilMGenius/paperthinSkill1.4k4d agoMITA70Claude Code