SKILL.md--- name: fp-cloud-cli description: |- The way to answer "how are my production AI agents doing?" and to run the team's agent-observability deployment on FailproofAI Cloud with `fp` — reach for it even on casual phrasing that names no tool. Trigger when the user wants to: • inspect agent telemetry — did agents error/fail/go flaky; sessions, events, latency, token usage, slowest models, sentiment; eval scores and quality drops; • operate the deployment — triage issues and audits; manage alerts, access, keys, settings, dashboards, queries; • manage Cloud enforcement — compose/test/backtest/publish regex or Jev policy versions, deploy them to machines or agents, inspect guardrails, promote, or roll back; • author, dry-run, deploy and backfill hosted code, LLM-judge or Jev evaluators. NOT for publishing policy packs (`failproofai-policy-publish`), deciding what to evaluate (`failproofai-eval-brainstorm`) or how (`failproofai-eval-author`), instrumenting an app (`failproofai-sdk`), or debugging the local collector/daemon. --- # FailproofAI Cloud CLI `fp` is a command-line client for a FailproofAI Cloud deployment. It authenticates either as a signed-in **user** or with a scoped **API key** (§2), and every command takes `--json`, so it's built to be driven by an agent. ## 1. Find how to invoke it Resolve this once, then reuse it for every call: 1. If `fp` is on `PATH` (`command -v fp`) → use **`fp`** (it's installed via pipx / uv tool / pip). This is the normal case. 2. Else, if you're in (or under) a repo with an `fp-cloud-cli/` directory containing the `fp_cli` package → run it from there with **`uv run fp`** (a local dev build). The first run after a code change prints `Building…`/`Installed…` on stderr — that's `uv`, not CLI output; ignore it. 3. Else the CLI isn't available here → tell the user to install it (`pipx install fp-cloud-cli` or `uv tool install fp-cloud-cli`) and stop. Don't try to reach the dashboard another way. Don't go spelunking in the CLI source tree for flags — if you're unsure of one, run `fp <group> <cmd> --help`. The source is not the documented contract and reading it wastes effort. Throughout this skill, `fp` means "whichever form you resolved." ## 2. The contract (the CLI enforces it, work with it, don't fight it) - **Global options go BEFORE the command:** `fp --json events`, never `fp events --json`. Globals are `--base-url`, `--org`, `--token`, `--api-key`, `--json`, `--insecure`/`--secure`, `--timeout`, `--quiet`/`-q`, `--no-color`. After the command they're a usage error. - **Two ways to authenticate, and they are not interchangeable:** | | How you supply it | What it is | |---|---|---| | **Session** | `fp login` (interactive; a browser link or an emailed one-time code) | a signed-in **user**, carrying that person's org memberships and permissions | | **API key** | `--api-key <key>`, or `FP_API_KEY` in the environment |