Pi Coding Agent
Embed Pi in a Node script, configure its tools and sessions, write Pi extensions, or integrate through print/JSON/RPC modes. Covers the current @earendil-works/pi-coding-agent SDK, model runtime, resource loading and package distribution. Use for Pi SDK/extension work; ordinary interactive use needs no SDK integration.
Install
npx skills add mizchi/skills --skill pi-coding-agentgit clone --depth 1 https://github.com/mizchi/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/pi-coding-agent ~/.claude/skills/pi-coding-agentPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Pi coding agent
Use Node 24+. Checked 2026-11-16 against
`@earendil-works/pi-coding-agent@1.5.2` and the
[upstream SDK guide](https://github.com/earendil-works/pi/blob/main/packages/coding-agent/docs/sdk.md).
The historical `@mariozechner/pi-coding-agent` package is a different, older
published generation (0.73.1). Keep an existing consumer pinned until its API
migration is tested; changing only the import scope does not migrate it.
## Install and create a session
```sh
pnpm add @earendil-works/pi-coding-agent
```
```ts
import { createAgentSession, SessionManager } from '@earendil-works/pi-coding-agent';
const { session } = await createAgentSession({
cwd: process.cwd(),
tools: ['read', 'grep', 'find', 'ls'],
sessionManager: SessionManager.inMemory(),
});
const unsubscribe = session.subscribe((event) => {
if (event.type === 'message_update' && event.assistantMessageEvent.type === 'text_delta') {
process.stdout.write(event.assistantMessageEvent.delta);
}
});
try {
await session.prompt('Explain the files in this workspace');
} finally {
unsubscribe();
session.dispose();
}
```
Without overrides, the SDK discovers resources, settings and credentials and
creates persistent sessions. Pass `SessionManager.inMemory()` when disk history
is unwanted. Use a temporary `agentDir` and explicit resource loader for isolated
tests; do not let tests discover the user's installed extensions.Details
- Skill name
pi-coding-agent- Repository
- mizchi/skills
- Path
pi-coding-agent/SKILL.md- Repo updated
- 18 November 2026
FAQ
What does the Pi Coding Agent skill do?
Embed Pi in a Node script, configure its tools and sessions, write Pi extensions, or integrate through print/JSON/RPC modes. Covers the current @earendil-works/pi-coding-agent SDK, model runtime, resource loading and package distribution. Use for Pi SDK/extension work; ordinary interactive use needs no SDK integration.
How do I install the Pi Coding Agent skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add mizchi/skills --skill pi-coding-agent. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Pi Coding Agent popular?
It lives in mizchi/skills, which has 423 GitHub stars and 6 forks.
Related skills
Actions CI Tuning
423mizchi/skills
Use when auditing or improving GitHub Actions workflows for a project. Covers cache setup (npm/pnpm/yarn), job parallelism, shard-based test splitting, artifact handling pitfalls, and Playwright-specific patterns. Trigger on: slow CI, cache miss, flaky shard jobs, merge-reports failures, or an explicit 'tune CI' request.
AI Index
423mizchi/skills
Method and tooling for measuring how AI-generated a piece of prose reads, in Japanese or English. Two layers — a deterministic lint for removable surface tells (scripts/slopscore.py, no API) and a judgment layer of typed probabilistic questions (Jev noul/score) for the tells that survive editing. Includes measured human/AI baselines, a gap-first calibration procedure, and labeled fixtures. Use when building or calibrating an AI-likeness score, or when a draft needs a defensible number rather than a vibe. For writing guidance use natural-writing-ja / natural-writing-en instead.
Apm Usage
423mizchi/skills
Reference for APM manifests, installation, targeted updates, deployment paths and lockfiles. Invoke when the user explicitly asks about APM or apm.yml, or an unfamiliar APM command/error needs exact CLI details. Do not automatically invoke for every project that happens to have installed skills.
Translate Programming Language
423mizchi/skills
Plan and execute language-to-language server or application migrations with behavior parity. Use when porting modules, services, APIs, or runtimes between programming languages; generating source-runtime oracles and fixtures; generating migrated parity tests; detecting runtime, standard-library, serialization, numeric, encoding, time, regex, or protocol differences; building temporary compatibility layers; accumulating migration knowledge; benchmarking; shadow testing; canarying; or planning cutover and rollback.
Otel Node
423mizchi/skills
Set up or debug OpenTelemetry in a Node.js service, including compatible SDK/API versions, ESM load order, bundled auto-instrumentation, async context propagation and exporter verification. Use when adding instrumentation or investigating missing spans. See opentelemetry for signal and span design.
Ts2moonbit Migration
423mizchi/skills
Migrate a TypeScript codebase to MoonBit on the `js` target while keeping the same JavaScript API contract, using the mizchi/js split binding modules, mizchi/x (cross-target async backend: process/fs/http/ws), and mizchi/npm_typed (npm bindings). Use when porting a TS library, Node service, npm package, or Cloudflare Worker to MoonBit and the existing JS/TS consumers, `.d.ts`, and tests must keep working unchanged.
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.