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.
npx skills add romiluz13/pi-agent-skills --skill pi-ai-librarygit clone --depth 1 https://github.com/romiluz13/pi-agent-skillsWrote 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.
[](https://agentmods.dev/skills/romiluz13/pi-agent-skills/pi-ai-library)<a href="https://agentmods.dev/skills/romiluz13/pi-agent-skills/pi-ai-library"><img src="https://agentmods.dev/badge/skills/romiluz13/pi-agent-skills/pi-ai-library/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.
<a href="https://agentmods.dev/skills/romiluz13/pi-agent-skills/pi-ai-library"><img src="https://agentmods.dev/badge/skills/romiluz13/pi-agent-skills/pi-ai-library.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00090 | $0.00410 |
| Opus 5.5 | $0.00036 | $0.00164 |
| Sonnet 5.5 | $0.00018 | $0.00082 |
| Haiku 4.5 | $0.00009 | $0.00041 |
Grade A, and why
pi-ai-library 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 2mo 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.
What it actually says
Pi AI library (@mariozechner/pi-ai)
Grounding
pi-mono/packages/ai/README.md— primary API surface, providers list, examples.pi-mono/AGENTS.md— section Adding a New LLM Provider (packages/ai) (file checklist:types.ts,providers/,register-builtins.ts, tests, coding-agent touchpoints).pi-mono/packages/ai/src/— read only the specific provider or type files needed after narrowing via README.
Invariants
- Library scope is tool-capable models — stated in
pi-mono/packages/ai/README.mdopening note. - Provider work spans multiple files — follow
pi-mono/AGENTS.mdchecklist verbatim when changingpi-mono.
Workflows
- Call pattern: Use README Quick Start for
stream/complete/Context/Toolshapes; cite line ranges by re-reading the file, do not paraphrase signatures from memory. - New provider: Execute the AGENTS.md checklist in order; link each step to the listed paths.
Anti-patterns
- Do not document providers that appear only in other products; enumerate from
pi-mono/packages/ai/README.mdSupported Providers section.
What ships with it
1 file 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.
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.
- 2mo ago First seen · 28 lines · 0 tokens per session scan A 0482f4f5922d
pi-ai-library is a skill published in the GitHub repository romiluz13/pi-agent-skills (20 stars, last pushed 7mo ago), licensed MIT. It adds 90 tokens to every session and 410 once invoked, about $0.0004 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.
pi-ai-library compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pi-ai-libraryromiluz13/pi-agent-skills | Skill | 20 | 7mo ago | MIT | A | 90 | Claude Code |
| mem0-oss-to-platformmem0ai/mem0 | Skill | 69k | 3d ago | Apache-2.0 | A | 217 | Claude Code, Codex |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.2k | today | MIT | A | 78 | Claude Code |
| fastapi-router-pymicrosoft/skills | Skill | 3.2k | today | MIT | A | 46 | Claude Code |
| dev-runtimelangwatch/langwatch | Skill | 5.0k | today | Apache-2.0 | A | 172 | Claude Code |
| api-designericrisco/rsc-harness | Skill | 573 | today | MIT | A | 105 | Claude Code, Codex |
| migrate-segw-to-raparc-mcp/arc-1 | Skill | 254 | today | MIT | A | 106 | Claude Code |