# Pi AI Library

> Pi AI library (`@mariozechner/pi-ai`)

- Skill: `romiluz13/pi-ai-library` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add romiluz13/pi-ai-library`
- Raw SKILL.md: https://api.skillmd.com/api/skills/romiluz13/pi-ai-library/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: romiluz13 (https://skillmd.com/u/romiluz13)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/romiluz13/pi-ai-library

---


# Pi AI library (`@mariozechner/pi-ai`)

## Grounding

1. `pi-mono/packages/ai/README.md` — primary API surface, providers list, examples.
2. `pi-mono/AGENTS.md` — section **Adding a New LLM Provider (packages/ai)** (file checklist: `types.ts`, `providers/`, `register-builtins.ts`, tests, coding-agent touchpoints).
3. `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.md` opening note.
- Provider work spans multiple files — follow `pi-mono/AGENTS.md` checklist verbatim when changing `pi-mono`.

## Workflows

- **Call pattern**: Use README Quick Start for `stream` / `complete` / `Context` / `Tool` shapes; 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.md` **Supported Providers** section.

