/odin-infra:promql-clifrom ODIN Infra
Executes PromQL queries against a Prometheus HTTP API and returns results in table, CSV, JSON, or graph format. Useful for debugging latency, error, or saturation signals.
Ships in ODIN Infra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Field | Bound contract |
|---|---|
| Trigger | User asks to execute or investigate PromQL, or to debug latency, error, or saturation signals against a Prometheus server. |
| Authority | Read-only. No file, VCS, credential, paid, published, deployed, or remote mutation. HTTP GET queries to the Prometheus HTTP API only. |
| Side effect | Evaluates PromQL queries through the Prometheus HTTP API. Reads metrics, writes nothing. |
| Done | Query results in the requested format, or a classified failure diagnosis, are returned to the user. |
http://prometheus:9090.15s, 1m.GET <server_url>/api/v1/query?query=<urlencoded_query>, appending &time=<unix_time> only when a time value is supplied. For a range query, first choose step as the supplied step interval or 15s when one is not supplied; the step interval is required for range queries. Then use GET <server_url>/api/v1/query_range?query=<urlencoded_query>&start=<unix_start>&end=<unix_end>&step=<step>. Set the Accept header to application/json. Do not send credentials unless the user supplies them explicitly. Done when: the HTTP request is constructed with all supplied parameters.status: "success", extract the data.result array and render it in the requested format. If the HTTP status is 200 and status: "error", extract errorType and error from the response body. If the HTTP status is non-200, classify by status code. If the request timed out or the connection failed, classify accordingly. Done when: the result is classified as success or a named failure class.On connection failure, the server is unreachable or DNS resolution fails; report the URL and the connection error, and do not retry silently. On a query syntax error, the Prometheus API returns status: "error" with errorType: "bad_data"; report the error field verbatim and do not attempt to rewrite the query. On an empty result set, the query executed successfully but returned no series; report the empty result and suggest checking label selectors or the time range. On timeout, the request exceeded the 30-second client timeout or the server returned a timeout error; report the timeout and suggest narrowing the time range or adding label filters. On authentication failure, the server returned 401 or 403; report that credentials are required or invalid, and do not retry with different credentials. On a server error, the server returned 5xx; report the status code and response body, and suggest retrying after the server recovers.
No partial results are returned on failure. No files are written.
Query results in the requested format (table, csv, json, or graph). On failure, a diagnosis that names the failure class and includes the server error message or connection error. The output is chat-only; no file or remote state is modified.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub outlinedriven/odin-claude-plugin --plugin odin-infra13 skills in this plugin
/analysis-artifactsUse when the user requests a deep dive, exploratory analysis, or data analysis on BigQuery. Not for credential, publish, deploy, or irreversible changes./ci-cdUse when setting up or modifying CI/CD pipelines, quality gates, test runners, or deployment pipeline configuration through workflow files. Not for triggering a deployment./ci-fixUse when "CI is red", "fix the checks", or "make CI green", one check needs classifying, or a bounded sweep runs. Not for deploys, credentials, or rerun-as-fix. Non-CI bugs: use strike-the-root./consult-deploymentUse when the user asks to rank deployment platforms and stacks against their product with quantitative trade-offs. Not for source or remote mutation./cost-reductionUse when a measured cost surface needs one-change-at-a-time reduction under frozen guardrails. Not for speed-only optimization: use optimize./dbt-model-indexUse when a human-curated dbt model index must guide BigQuery SQL for a warehouse question. Not for discovering undocumented models or executing warehouse changes.Other plugins' skills for the same job