phoenix-cli-development
БесплатноБез исполняемых скриптовНе проверенDesign and implementation guide for the Phoenix CLI (`px`). Covers the noun-verb command structure, dual-audience design (humans and coding agents)…
от Arize-ai★ 12 510 звёзд на GitHubОб этом скилле
Phoenix CLI Design Specification
The Phoenix CLI (px) is a command-line interface for the Phoenix AI observability platform. It serves two distinct audiences simultaneously: humans typing commands in a terminal and coding agents (Claude Code, Cursor, Codex, Gemini CLI) executing commands programmatically.
This specification uses RFC 2119 keywords (MUST, SHOULD, MAY, etc.) to indicate requirement strength.
Command Structure: Noun-Verb
All commands MUST follow a noun-verb pattern, modeled after the GitHub CLI (gh):
px <resource> <action> [arguments] [options]
Resource names MUST be singular — they name the type of thing you're acting on, not how many:
px project list # not "px projects"
px project create # not "px create-project"
px trace get <trace-id>
px dataset get <name-or-id>
px auth status
Standard verbs
Commands SHOULD use these verbs consistently across all resources:
| Verb | Purpose | Takes argument? | Example |
|---|---|---|---|
list |
List/query multiple resources | No (uses flags) | px project list --limit 10 |
get |
Fetch a single resource by ID | Yes (required) | px trace get <trace-id> |
create |
Create a new resource | Varies | px project create --name foo |
update |
Modify an existing resource | Yes (required) | px project update <id> --name bar |
delete |
Remove a resource | Yes (required) | px project delete <id> |
Not every resource supports every verb — datasets MAY omit create via CLI if the primary flow is through the SDK. Commands SHALL only add verbs that make sense for the resource.
Additional verbs for specialized actions are RECOMMENDED when the standard set doesn't cover it:
px auth login,px auth statuspx self updatepx docs fetchpx api graphql <query>
Backward compatibility during migration
The CLI is evolving from a flat structure (px projects, px traces) toward full noun-verb. During the transition, both forms MAY coexist. When migrating an existing command:
- The new noun-verb form MUST be created as the primary command
- The old form SHOULD be kept as a hidden alias (Commander's
.alias()or a hidden command) so existing scripts don't break - Only the noun-verb form SHALL be documented going forward
Dual-Audience Design
The CLI MUST be equally usable by a person at a terminal and by a coding agent. Every command that outputs data MUST support --format:
pretty(default) — Human-readable tables and formattingjson— Indented JSON for human inspection of structured dataraw— Compact single-line JSON for piping intojqor agent consumption
Commands MAY support additional formats (e.g., --format text for prompts). The default MUST always be pretty.
Progress indicators MUST write to stderr. Agents SHOULD pass --no-progress to suppress them.
# Agent-friendly invocation
px trace list --format raw --no-progress | jq '...'
Semantic exit codes
Defined in src/exitCodes.ts. Commands MUST use the named constants and MUST NOT use bare numeric literals.
| Code | Constant | Meaning |
|---|---|---|
| 0 | SUCCESS |
Command completed successfully |
| 1 | FAILURE |
Unspecified or unexpected error |
| 2 | CANCELLED |
User cancelled (e.g., declined a confirmation) |
| 3 | INVALID_ARGUMENT |
Bad CLI flags, missing required args, invalid input |
| 4 | AUTH_REQUIRED |
Not authenticated or insufficient permissions |
| 5 | NETWORK_ERROR |
Failed to connect to server or network request |
| 6 | NOT_VERIFIED |
Ran, but could not verify the result it produces |
Interactive default with non-interactive mode
Commands MAY prompt interactively when a required value is missing or a confirmation is needed — this is the human-friendly default. The --no-input flag MUST suppress all prompts: both missing-value prompts and destructive-action confirmations. Non-interactive mode is also activated automatically when no TTY is attached (piped stdin).
In non-interactive mode, if a required value is missing, the command MUST exit immediately with ExitCode.INVALID_ARGUMENT and print the correct invocation. If a confirmation would have been shown, the command MUST proceed as if confirmed:
# Human: missing --name triggers interactive prompt
px project create
# Agent: all inputs as flags, no prompts
px project create --name my-project --format raw --no-input
# Human: gets "Are you sure?" prompt
px dataset delete my-dataset
# Agent: sk
Установить phoenix-cli-development в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл phoenix-cli-development?
Design and implementation guide for the Phoenix CLI (`px`). Covers the noun-verb command structure, dual-audience design (humans and coding agents), Commander.js patterns, configuration resolution, output formats, exit codes, and conventions for adding or modifying commands. Triggers when working on phoenix-cli commands — adding new commands, modifying existing ones, refactoring command structure, or reviewing CLI code. Also triggers on mentions of `px` commands, CLI design, or adding a new resource to the CLI.
Как установить скилл phoenix-cli-development?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл phoenix-cli-development запускает скрипты?
Нет, скилл состоит только из инструкций (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