ops-fleet

GitHub

只读运维仪表盘,用于监控本地 Claude 会话、CLIProxyAPI 网关状态、模型目录及认证池。通过读取系统命令和 API 接口展示实时数据,严禁修改配置或执行写入操作。

claude-ops/skills/ops-fleet/SKILL.md Lifecycle-Innovations-Limited/claude-ops

Trigger Scenarios

需要查看当前 Claude 会话状态 检查 CLIProxyAPI 网关健康度 监控模型路由与流量情况 查看认证账户池负载

Install

npx skills add Lifecycle-Innovations-Limited/claude-ops --skill ops-fleet -g -y
More Options

Non-standard path

npx skills add https://github.com/Lifecycle-Innovations-Limited/claude-ops/tree/main/claude-ops/skills/ops-fleet -g -y

Use without installing

npx skills use Lifecycle-Innovations-Limited/claude-ops@ops-fleet

指定 Agent (Claude Code)

npx skills add Lifecycle-Innovations-Limited/claude-ops --skill ops-fleet -a claude-code -g -y

安装 repo 全部 skill

npx skills add Lifecycle-Innovations-Limited/claude-ops --all -g -y

预览 repo 内 skill

npx skills add Lifecycle-Innovations-Limited/claude-ops --list

SKILL.md

Frontmatter
{
    "name": "ops-fleet",
    "effort": "low",
    "maxTurns": 6,
    "description": "Read-only Claude + CLIProxyAPI fleet dashboard. Shows sessions, gateway, providers, models, pooled accounts, routing, and traffic.",
    "allowed-tools": [
        "Bash",
        "Read"
    ],
    "argument-hint": "[--once] [--tui] [--all] [--models] [--no-pool] [--no-color]"
}

OPS ► FLEET

Unified, read-only operational dashboard for:

  • local Claude Code sessions and daemon state;
  • the configured CLIProxyAPI gateway;
  • the effective model catalog grouped by provider;
  • the canonical server-side auth-record pool and configured load-balancing policy;
  • recent inference-only request, error, and latency signals;
  • optional legacy local account-rotator utilization.

It renders state and never changes it. It does not consume the CLIProxyAPI usage queue, modify configuration, refresh credentials, switch accounts, or restart services.

Runtime sources

Layer Source Truth represented
Claude sessions claude agents --json live interactive/background session census
Claude daemon claude daemon status local supervisor/socket state
Gateway GET / CLIProxyAPI server identity, reachability, latency
Models authenticated GET /v1/models effective client-visible model catalog
Pool sanitized helper/command JSON enabled/disabled/backup auth records, configured routing/retries, recent inference RED signals
Legacy rotator local state file, opt-in compatibility utilization only; not canonical gateway pool truth

A protected model endpoint returning 401/403 means gateway reachable, auth required — not gateway down. A missing pool collector degrades only the pool panel; session and gateway rows still render.

Discovery and configuration

Claude binary

  1. CLAUDE_BIN
  2. command -v claude

CLIProxyAPI base URL

  1. CLIPROXYAPI_BASE_URL
  2. fleet.cliproxy_base_url in $PREFS_PATH
  3. Claude settings ANTHROPIC_BASE_URL
  4. portable fallback http://127.0.0.1:8317

Client authentication uses CLIPROXY_API_KEY or CLIPROXYAPI_API_KEY. Values are used only as request headers and are never printed.

Server-side pool snapshot

Preferred options, in order:

  1. CLIPROXYAPI_POOL_COMMAND — executable path that prints the sanitized JSON schema below. Shell command strings are rejected.
  2. CLIPROXYAPI_SSH_HOST plus optional CLIPROXYAPI_SSH_USER, or the equivalent fleet.cliproxy_ssh_host / fleet.cliproxy_ssh_user preferences. This invokes bin/ops-fleet-pool-snapshot, which may sudo only the fixed remote executable ${CLIPROXYAPI_REMOTE_HELPER:-/usr/local/libexec/cliproxy-fleet-snapshot}.

The public plugin intentionally has no real host, IP, username, or account identity defaults.

Invocation

Run and relay its output verbatim, stripping ANSI for a chat code block:

${CLAUDE_PLUGIN_ROOT}/bin/ops-fleet $ARGUMENTS

Flags:

Flag Behavior
--once / --snapshot single render
--tui / --watch [secs] live alternate-screen TUI; q quits
--all include completed sessions when supported by Claude Code
--models expand all effective model IDs
--no-pool / --no-remote / --no-ec2 skip server-side pool collection
--legacy-accounts show local rotator compatibility rows
--no-color plain output

In a real terminal the command defaults to the TUI. Captured stdout defaults to one shot.

Output contract

Always render the dashboard first in a fenced code block. Then add one concise summary covering:

  • total sessions and any blocked/waiting sessions;
  • gateway reachability/auth/model count;
  • pool enabled/disabled/backup auth-record counts and configured routing strategy;
  • recent inference error rate, 429/5xx, and p95 latency;
  • any degraded data source.

End with one line noting that the live TUI is ${CLAUDE_PLUGIN_ROOT}/bin/ops-fleet --tui in a real terminal.

Read-only and safety guarantees

  • Never query /v0/management/usage-queue; it pops telemetry records.
  • Never require the remote Management API; lockouts or localhost-only management must not break fleet status.
  • Never print client or management keys.
  • Never return raw proxy logs or account identities.
  • Never treat local rotator state as the canonical remote pool.
  • Never report a missing optional collector as gateway failure.

Version History

  • 206d40d Current 2026-08-16 15:49

    重构为支持远程 CLIProxyAPI 池快照,修复 SSH 注入漏洞,移除旧版 CRS 依赖。

  • 64bad13 2026-08-12 09:00

Same Skill Collection

claude-ops/skills/boss/SKILL.md
claude-ops/skills/flow/SKILL.md
claude-ops/skills/ledger/SKILL.md
claude-ops/skills/ops-accounts/SKILL.md
claude-ops/skills/ops-ar/SKILL.md
claude-ops/skills/ops-aws-audit/SKILL.md
claude-ops/skills/ops-comms/SKILL.md
claude-ops/skills/ops-competitors/SKILL.md
claude-ops/skills/ops-credentials/SKILL.md
claude-ops/skills/ops-daemon/SKILL.md
claude-ops/skills/ops-dash/SKILL.md
claude-ops/skills/ops-deploy-fix/SKILL.md
claude-ops/skills/ops-deploy/SKILL.md
claude-ops/skills/ops-desktop/SKILL.md
claude-ops/skills/ops-doctor/SKILL.md
claude-ops/skills/ops-ecom/SKILL.md
claude-ops/skills/ops-feature-dev/SKILL.md
claude-ops/skills/ops-fires/SKILL.md
claude-ops/skills/ops-go/SKILL.md
claude-ops/skills/ops-gtm/SKILL.md
claude-ops/skills/ops-home/SKILL.md
claude-ops/skills/ops-inbox/SKILL.md
claude-ops/skills/ops-integrate/SKILL.md
claude-ops/skills/ops-leadgen/SKILL.md
claude-ops/skills/ops-linear/SKILL.md
claude-ops/skills/ops-mac/SKILL.md
claude-ops/skills/ops-marketing/SKILL.md
claude-ops/skills/ops-mcp/SKILL.md
claude-ops/skills/ops-merge/SKILL.md
claude-ops/skills/ops-monitor/SKILL.md
claude-ops/skills/ops-next/SKILL.md
claude-ops/skills/ops-orchestrate/SKILL.md
claude-ops/skills/ops-package/SKILL.md
claude-ops/skills/ops-pocket/SKILL.md
claude-ops/skills/ops-projects/SKILL.md
claude-ops/skills/ops-recap/SKILL.md
claude-ops/skills/ops-release/SKILL.md
claude-ops/skills/ops-resume/SKILL.md
claude-ops/skills/ops-revenue/SKILL.md
claude-ops/skills/ops-rotate-setup/SKILL.md
claude-ops/skills/ops-rotate/SKILL.md
claude-ops/skills/ops-secret-sync/SKILL.md
claude-ops/skills/ops-settings/SKILL.md
claude-ops/skills/ops-ship/SKILL.md
claude-ops/skills/ops-speedup/SKILL.md
claude-ops/skills/ops-status/SKILL.md
claude-ops/skills/ops-triage/SKILL.md
claude-ops/skills/ops-unifi/SKILL.md
claude-ops/skills/ops-update/SKILL.md

Metadata

Files
0
Version
206d40d
Hash
90198cda
Indexed
2026-08-12 09:00

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-16 16:54
浙ICP备14020137号-1 $mapa de visitantes$