setup
БесплатноБез исполняемых скриптовНе проверенGuides the user through configuring pi — provider, model, base URL, and API key. Use when the user asks to "setup pi", "configure pi", "pi setup", "set up pi…
от FradSer★ 598 звёзд на GitHubОб этом скилле
CRITICAL: User setup only — do not auto-invoke
This skill is for human-only setup. Never invoke it automatically. Only run when the user explicitly calls /pi:setup. Configure pi's provider, model, and endpoint so /pi:delegate and /pi:review can use them without repeating flags.
Before Execution: Check Installation
Settings-only flags (--list-models, --edit-config) do NOT require pi to be installed — handle them by their dedicated sections below and skip this gate. For all other invocations, check the install first:
command -v pi >/dev/null 2>&1
If not installed, guide the user:
npm install -g @earendil-works/pi-coding-agent
Or via the standalone installer:
curl -fsSL https://pi.dev/install.sh | sh
Then stop — do not proceed without pi installed.
Settings File
Both /pi:delegate and /pi:review read from the same settings chain:
- CLI flag (from
$ARGUMENTS) .claude/pi.local.json— project-specific overrides, gitignored.claude/pi.json— project shared defaults, committed~/.claude/pi.local.json— global user-wide defaults- pi's own defaults (pi decides its own default provider and model)
This skill writes to ~/.claude/pi.local.json (global, takes effect for all projects).
Settings file format
The settings file uses the named-endpoint format shared by /pi:delegate and /pi:review. All fields are optional — only override what you want to change.
Values can reference environment variables using $VAR or ${VAR} syntax — they are resolved at read time by /pi:delegate and /pi:review. This is useful for API keys: "apiKey": "$MY_API_KEY" reads from the environment variable at runtime.
{
"endpoints": {
"local-proxy": {
"provider": "openai",
"baseUrl": "http://10.10.0.195:8317/v1",
"models": ["gemini-3.6-flash-high", "gemini-3.6-pro"]
}
},
"defaultEndpoint": "local-proxy",
"defaultModel": "gemini-3.6-flash-high",
"thinking": "max",
"withPackages": false
}
Each endpoint key has:
provider(required) — pi's known provider name (openai,anthropic,google, etc.)baseUrl(optional) — custom API endpoint; when present it is written to~/.pi/agent/models.jsonat runtimeapiKey(optional) — API key or$ENV_VARreferencemodels— array of model IDs available via this endpoint
Top-level withPackages (default false) is the clean-mode escape hatch: when true, /pi:delegate and /pi:review load packages/skills/extensions from the pi CLI home (~/.pi, configured via pi install / pi list — not Claude Code plugins). Leave it false unless you intentionally want bridge tasks to inherit that interactive pi configuration.
Legacy flat fields (provider/model/baseUrl/apiKey) are still honored by the delegate skill as a fallback when no defaultEndpoint is set, but new setups should use the endpoint format.
--list-models flag
When $ARGUMENTS is exactly --list-models, read the current settings and show the effective configuration:
echo "=== Current pi configuration ==="
echo "Settings file: $HOME/.claude/pi.local.json"
if [ -f "$HOME/.claude/pi.local.json" ]; then
cat "$HOME/.claude/pi.local.json"
else
echo "(not configured — pi uses its defaults)"
fi
echo ""
echo "To configure, run: /pi:setup --endpoint <name> --provider <name> --model <id> [--base-url <url>]"
echo "Or use interactive mode: /pi:setup --edit-config"
Then stop — do not proceed to setup.
--edit-config flag
When $ARGUMENTS is exactly --edit-config (with an optional scope flag), open the settings file for editing. Three scopes matching the three priority tiers:
| Scope | Flag | Path | Git |
|---|---|---|---|
| Project personal | --edit-config (default) or --edit-config --local |
.claude/pi.local.json |
gitignored |
| Project shared | --edit-config --shared |
.claude/pi.json |
tracked |
| Global personal | --edit-config --global or --edit-config -g |
~/.claude/pi.local.json |
user home |
Shared scope (--shared) is committed to git — never put a literal apiKey in it; use a $ENV_VAR reference instead. Literal keys belong in the personal scopes.
# Detect scope
if "$ARGUMENTS" == *"--global"* || "$ARGUMENTS" == *"-g"*; then
CONFIG_PATH="$HOME/.claude/pi.local.json"
elif "$ARGUMENTS" == *"--shared"*; then
CONFIG_PATH=".claude/pi.json"
else
CONFIG_PATH=".claude/pi.local.json"
fi
# Create if not exists (seed matches the endpoint-based format)
mkdir -p "${CONFIG_PATH%/*}"
if [ ! -f "$CONFIG_PATH" ]; then
cat > "$CONFIG_PATH" << 'EOF'
{
"endpoints": {},
"defaultEndpoint": "",
"defaultModel": "",
"thinking": ""
}
EOF
fi
# Open in editor
${EDITOR:-vi} "$CONFIG_PATH"
Report: "Settings file created/opened at <path>. Changes take effect on the next /pi:delegate invocation." Then stop — do not proceed to setup.
--test flag
Wh
Установить setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(pi:*)Bash(jq:*)Bash(cat:*)Bash(mkdir:*)Bash(mv:*)Bash(echo:*)Bash(command -v:*)Bash(ls:*)Bash(vi:*)ReadWriteFAQ
Что делает скилл setup?
Guides the user through configuring pi — provider, model, base URL, and API key. Use when the user asks to "setup pi", "configure pi", "pi setup", "set up pi provider", "pi config", "change pi model", or invokes /pi:setup. Only run this skill when the user explicitly requests pi setup — never auto-invoke.
Как установить скилл setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл setup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic