pi-port-gap
Analyze pi → elph porting gaps and Elph-specific implementation differences. Compare upstream pi-ai / pi-agent-core CHANGELOGs and source against elph-ai /…
от riipandi★ 34 звезды на GitHub
Установить pi-port-gap в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Pi Port Gap Analysis
Language
Split by destination:
- Persisted docs (
docs/porting/*.mdupdates, Phase 5) — always English, no exceptions. Keep paths, commits, symbols, and upstream package names literal. - In-chat report (Phase 6 deliverable, printed directly in the conversation) — match the language the user is currently using in the prompt (Indonesian, English, etc). Keep paths, commits, symbols, upstream package names, and code/technical identifiers literal/English regardless of chat language (e.g. behavior, serialize, catalog stay as-is).
- If the user explicitly asks for a specific language for either destination, that overrides the default above.
Arguments (optional)
Free-form flags appended after /pi-port-gap. Parse before Phase 1; apply
overrides; state any skipped/unrecognized flag in the Summary.
path=<dir>— override upstream pi clone path (default:~/Developer/github.com/earendil-works/pi)branch=<name>— upstream ref to check out (default:main— always live HEAD, not a tag)since=<commit|date>— limit walk to changes after this point (default: last audit commit fromdocs/porting/*.md)scope=ai|agent|coding-agent|all— restrict crate scope (default:ai,agent)module=<name>— narrow Phase 3 to one Elph extension (e.g.module=mcp)depth=full|quick—full= chore/docs bullets + full source-level diff (Phase 2b);quickskips both (default:full)persist=yes|no— run Phase 5 without asking first (default:no, ask)lang=id|en— override in-chat report language (default: user's current chat language)
Goal
Answer two questions in every run:
- Upstream gap — What does mainstream pi already ship (or just release) that elph still lacks or only has partially?
- Elph implementation delta — Features built for Elph (absent in pi, or designed differently): where the code lives, how it is wired, and what that means for maintenance and future porting.
Not an empty checklist. Deliver changelog-style drift plus design/implementation differences that support prioritization.
Default scope: @earendil-works/pi-ai → crates/elph-ai, @earendil-works/pi-agent-core → crates/elph-agent.
Expand only if asked: pi-coding-agent → crates/coding-agent.
Porting doctrine (mandatory)
Elph is a port of intent, not a line-by-line TypeScript rewrite. When analyzing gaps or later implementing them (only if the user asks to port):
- Adopt the gap, not the pi shape — Take the behavior, protocol, flag, type, test intent, or error-handling rule from pi. Do not copy pi’s file layout, package graph, TypeScript catalog scripts, or generator assumptions.
- Implement on Elph architecture — Wire into existing elph-ai / elph-agent
modules, factories, auth, and product surfaces (
crates/coding-agent/only when product-facing). Prefer current Elph patterns (Rust modules,builtin_providers, harness/runtime split, MCP undertools/mcp/, etc.) over reintroducing pi-only paths. - Catalog / models are Elph-owned — Chat model catalogs are not
generated from pi. Origin is models.dev via
cargo run -p elph-ai --bin generate-models -- chat(skillupdate-models). See Architecture invariants below. - Classify correctly — pi catalog/script changes that Elph already covers
via models.dev +
generate-modelsare usually[N/A]or parity-by-other-means, not “re-run pi generate-models”. Gaps remain only where Elph still lacks the runtime behavior (API adapter, auth, stream flag, tool schema, agent-loop hook, etc.). - Only true gaps get ported — If Elph already has equivalent behavior under a different name/module, mark [Parity] / [Partial] with a nuance note; do not open a second implementation path “because pi looks different”.
Implementation checklist (when user explicitly asks to port)
Use this after a gap audit, not during a read-only /pi-port-gap run:
| Step | Do |
|---|---|
| 1. Scope | Port only the agreed gap(s). No drive-by refactors, no “while we’re here” catalog rewrite. |
| 2. Map | Name the Elph target module(s) first (src/api/…, builtin.rs, harness, tools). Read existing neighbors before adding files. |
| 3. Shape | Translate types/flags into Rust idioms already used in the crate (enums, Option, error types). Do not invent parallel TS-shaped APIs. |
| 4. Catalog data | If |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/elph-extensions.md
- references/report-template.md
FAQ
Что делает скилл pi-port-gap?
Analyze pi → elph porting gaps and Elph-specific implementation differences. Compare upstream pi-ai / pi-agent-core CHANGELOGs and source against elph-ai / elph-agent: (1) what upstream has that elph still lacks, (2) how Elph-only features diverge in design and wiring. Porting doctrine: adopt only true gaps (intent/behavior from pi), implement on Elph architecture — catalogs are models.dev via update-models, never pi seed. Prefer reverse-chronological timeline prose over tables. Persisted docs are always English; in-chat reports follow the user's current language. Use for port gap audit, upstream drift, parity check, Elph extension diff, implementation delta, changelog walk, selisih implementasi, or /pi-port-gap.
Как установить скилл pi-port-gap?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pi-port-gap запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…