howaboua-pi-stuff: Skill for Claude Code

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

pi-stuff-tool-contracts is a skill for Claude Code, Codex from IgorWarzocha/howaboua-pi-stuff. It costs 27 tokens per session (257 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 Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is IgorWarzocha/howaboua-pi-stuff's own configuration. It tells Claude Code and Codex 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/.pi/skills/pi-stuff-tool-contracts/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/IgorWarzocha/howaboua-pi-stuff

Made for: Claude Code, Codex.

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 257 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.00257
Opus 5 $0.00014 $0.00129
Sonnet 5 $0.00005 $0.00051
Haiku 4.5 $0.00003 $0.00026

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

.pi/skills/pi-stuff-tool-contracts/SKILL.md · 18 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.

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 to find likely duplication, then inspect the final registered schemas, prompt metadata, system-prompt additions, and model-visible results for each active mode. Run the owning package's direct check after changes.

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. 10d 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 (359 stars, last pushed yesterday), licensed MIT. It adds 27 tokens to every session and 257 once invoked, about $0.0001 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.