Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cli-pi

БесплатноБез исполняемых скриптовНе проверен

Pi CLI executor for guarded headless coding, JSON/RPC integration, native skills/extensions, and community-package delegation.

MichelKerkmeesterот MichelKerkmeester★ 40 звёзд на GitHub

Об этом скилле

Pi CLI Orchestrator - Cross-AI Task Delegation

A Pi session MAY dispatch this skill. Pi has no in-process delegation of its own, so the CLI is the only way a Pi session can hand work out; being inside Pi is not a reason to refuse.

What still refuses: the shared runtime rejects a dispatch from inside a fan-out lineage, and one whose kind already appears in the dispatch stack. Those bound a runaway spawn chain and are unchanged. The sibling cli-X packets keep their own guards; this carve-out is Pi's alone.

Orchestrate Pi's terminal coding agent for headless coding, read-only tool-constrained reviews, JSON event-stream integrations, RPC clients, and Pi-native resource discovery. The pinned contract is the source for confirmed command behavior: Pi contract pin. Pi-native skills, prompt templates, and some package surfaces remain documented but unconfirmed unless a source says otherwise.

Core principle: use Pi for the surfaces it exposes, delegate research and review lineages to the shared runtime, validate the returned output, and keep the calling AI as conductor.


1. WHEN TO USE

Activation Triggers

  • Headless Pi dispatch: use when the task explicitly requests Pi, pi.dev, or the Pi coding agent.
  • Cross-AI validation: use for an independent implementation attempt, code review, or second opinion through Pi.
  • JSON event output: use when a caller needs Pi's line-delimited event stream.
  • RPC integration: use when a long-lived stdin/stdout protocol is explicitly requested.
  • Pi-native resources: use when the task concerns Pi skills, prompt templates, extensions, or installed packages.
  • Community package delegation: use when the task explicitly names pi-mcp-extension.

When NOT to Use

  • Pi is not installed or cannot be found on PATH.
  • The task is a small in-process change that the calling AI already understands.
  • The task requires a feature that belongs to the shared deep-loop runtime rather than this packet.
  • A community package is requested without approval to install or trust project-local files.

2. SMART ROUTING

The cli-external-orchestration hub routes a Pi dispatch here: the request names Pi, pi.dev or the Pi coding agent, or needs Pi's JSON event stream, an RPC client, an independent second opinion, or Pi-native skills, extensions and packages. hub-router.json scores that request, the winning workflowMode is cli-pi, and the hub loads this SKILL.md first. The hub root ROUTER.md names this packet's first leaves, so leaf selection stays in the hub router rather than in this file. command -v pi decides whether the route exists at all, and the probe runs before every dispatch. It loads references/cli-reference.md and assets/prompt-quality-card.md first on every run, before any intent selection. Read ROUTER.md before selecting skill-local resources; open only the matched files.


3. HOW IT WORKS

Execution Ownership

This packet owns provider-specific routing, the availability probe, and prompt construction. For research and review lineages, the shared deep-loop runtime owns process construction and execution. The runtime supports the cli-pi executor kind, and its fan-out command builder is implemented with print mode, a provider-qualified --model, and --thinking from reasoningEffort, so a lineage dispatches through the executor kind directly. That runner accepts only the research and review loop types, so a single build or doc dispatch uses the child dispatch envelope in providers-and-models.md §5. Do not add a packet-local wrapper, spawn path, or command builder.

Five providers are reachable: openai (the ChatGPT sign-in, named openai-codex before Pi 1.0), opencode-go, llmgateway (DevPass, the operator's LLM Gateway plan, metered per token with a 3x credit bonus), minimax and mistral (the operator's Mistral subscription, a Pi builtin, direct dispatch only). llmgateway is not a Pi builtin. It exists only because .pi/models.json declares it, and its setup, credentials and removal are in .pi/custom-providers.md.

Closed roster: non-roster models are FORBIDDEN. Dispatch ONLY the models in references/providers-and-models.md §2. That file is the single place the ids, thinking ceilings and per-provider id shapes are recorded, and this file names the providers without restating their models. The deep-loop fan-out hard-rejects any off-roster id (isPiModelAllowed over PI_SUPPORTED_MODELS). Even a direct pi --model invocation must not use an unlisted id. To add a fan-out model, amend the roster and PI_SUPPORTED_MODELS; a direct-dispatch-only row needs the roster alone.

The pinned contract confirms that headless

Полный SKILL.md на GitHub

Установить cli-pi в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash
Read
Glob
Grep

Вложенные файлы

README.mdROUTER.mdassets/prompt-quality-card.mdassets/prompt-templates.mdbenchmark/README.mdbenchmark/reports/2026-07-29--manual-testing-playbook--goal-hook/README.mdbenchmark/reports/2026-07-29--manual-testing-playbook--goal-hook/failed-runs.mdbenchmark/reports/2026-07-29--manual-testing-playbook--goal-hook/findings-and-recommendations.mdbenchmark/reports/2026-07-29--manual-testing-playbook--goal-hook/results.csvbenchmark/reports/2026-07-29--manual-testing-playbook--goal-hook/skill-benchmark-report.jsonbenchmark/reports/2026-07-29--manual-testing-playbook--goal-hook/skill-benchmark-report.mdbenchmark/reports/2026-07-29--manual-testing-playbook--goal-hook/source.mdbenchmark/reports/2026-08-08--manual-testing-playbook--agent-bridge/README.mdbenchmark/reports/2026-08-08--manual-testing-playbook--agent-bridge/failed-runs.mdbenchmark/reports/2026-08-08--manual-testing-playbook--agent-bridge/findings-and-recommendations.mdbenchmark/reports/2026-08-08--manual-testing-playbook--agent-bridge/results.csvbenchmark/reports/2026-08-08--manual-testing-playbook--agent-bridge/skill-benchmark-report.jsonbenchmark/reports/2026-08-08--manual-testing-playbook--agent-bridge/skill-benchmark-report.mdbenchmark/reports/2026-08-08--manual-testing-playbook--agent-bridge/source.mdbenchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/README.mdbenchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/failed-runs.mdbenchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/findings-and-recommendations.mdbenchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/results.csvbenchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/skill-benchmark-report.jsonbenchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/skill-benchmark-report.mdbenchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/source.mdbenchmark/reports/2026-08-08--manual-testing-playbook--git-preflight-advisory/README.mdbenchmark/reports/2026-08-08--manual-testing-playbook--git-preflight-advisory/failed-runs.mdbenchmark/reports/2026-08-08--manual-testing-playbook--git-preflight-advisory/findings-and-recommendations.mdbenchmark/reports/2026-08-08--manual-testing-playbook--git-preflight-advisory/results.csvbenchmark/reports/2026-08-08--manual-testing-playbook--git-preflight-advisory/skill-benchmark-report.jsonbenchmark/reports/2026-08-08--manual-testing-playbook--git-preflight-advisory/skill-benchmark-report.mdbenchmark/reports/2026-08-08--manual-testing-playbook--git-preflight-advisory/source.mdbenchmark/reports/2026-08-08--manual-testing-playbook--mcp-host-integration-2/README.mdbenchmark/reports/2026-08-08--manual-testing-playbook--mcp-host-integration-2/failed-runs.mdbenchmark/reports/2026-08-08--manual-testing-playbook--mcp-host-integration-2/findings-and-recommendations.mdbenchmark/reports/2026-08-08--manual-testing-playbook--mcp-host-integration-2/results.csvbenchmark/reports/2026-08-08--manual-testing-playbook--mcp-host-integration-2/skill-benchmark-report.jsonbenchmark/reports/2026-08-08--manual-testing-playbook--mcp-host-integration-2/skill-benchmark-report.mdbenchmark/reports/2026-08-08--manual-testing-playbook--mcp-host-integration-2/source.md

FAQ

Что делает скилл cli-pi?

Pi CLI executor for guarded headless coding, JSON/RPC integration, native skills/extensions, and community-package delegation.

Как установить скилл cli-pi?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cli-pi запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить cli-pi с