add-command
Use this skill when the user asks to "add a command", "implement cx <something>", "new subcommand", "new CLI command", "add a new…
Query Coralogix infrastructure resources with the `cx infra` CLI: resource types, filterable attributes, resource lists, health, raw data and configuration changes. Use when the user asks to "show resource types", "list infrastructure resources", "what resources of this kind are
$ npx -y skills add coralogix/cx-cli --skill cx-infra --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/cx-infraContext preview
The summary Claude sees to decide when to auto-load this skill.
Query Coralogix infrastructure resources with the `cx infra` CLI: resource types, filterable attributes, resource lists, health, raw data and configuration changes. Use when the user asks to "show resource types", "list infrastructure resources", "what resources of this kind are
name: cx-infra description: > Query Coralogix infrastructure resources with the `cx infra` CLI: resource types, filterable attributes, resource lists, health, raw data and configuration changes. Use when the user asks to "show resource types", "list infrastructure resources", "what resources of this kind are monitored", "is this resource healthy", "why is this resource critical", "which health policy is failing", "when did this resource go critical", "get raw resource data", "find resources by name", "filter resources by service or environment", "critical hosts in a region", "what can I filter resources by", "resources in this cluster or namespace", "which resources changed recently", "what changed in this resource", "configuration drift", "did anything change before the incident", "what was this config last week", or wants to explore infrastructure resources. metadata: version: "0.2.0"
All commands live under `cx infra resources` and are read-only. Run `cx infra resources <command> --help` for flags.
"Infrastructure monitoring is not enabled for this team" means the team has no infrastructure data. Stop and say so. Do not retry or change filters.
A stderr line starting `warning: ... could not verify that infrastructure monitoring is enabled` is informational: the enablement check itself failed and the command still ran.
| Command | Answers | |------------------|----------------------------------------------------------------| | `types` | which `(category, type)` pairs exist | | `filters` | which attributes can be filtered on, and their accepted values | | `list` | which resources match, with their health policies | | `health-history` | daily health per resource, oldest first | | `raw-data` | the raw resource document, now or at a past time | | `config-changes` | which resources changed configuration in a window | | `config-diff` | what changed, field by field |
call. Pass them all in one call, not one call each. Over 100, the CLI refuses. Split into batches.
Only `types`, `filters` and `list` fan out across profiles. From a multi-profile `list`, use the row's `profile` to pick the one to query.
`name` or its `Service` value.
1. `filters` first. Attribute names and values differ per type, so never guess. Per attribute: `kind` (`string` is free text, `status` a fixed set), `values` (the accepted set) and `wildcard` (whether `*` works). 2. `list` with the filters:
the two groups are ANDed. `--match-all OS=linux --match-any Health=Critical --match-any Region=eu-west-1` means `OS=linux AND (Health=Critical OR Region=eu-west-1)`.
matches. In `--match-all` all must, which only makes sense for wildcards: `--match-all 'Name=*alert*,*processing*'`.
attributes (no `--match-all Category=...`). At least one filter or scope flag is required.
are not. Quote wildcards so the shell leaves `*` alone.
flags. They need both `--category` and `--type`, and cannot mix with `--match-*`. `--match-all 'Name=*web*'` does what `--name-filter web` does. 3. Zero rows is an answer. Don't retry. A wrong attribute or value is refused with the accepted ones listed.
`list -o json` is an envelope: `{total_count, returned_count, resources}`. The other commands return plain arrays or objects.
`--end-row` which is exclusive). Keep paging while `start_row + returned_count < total_count`.
`counts_by_profile`).
`healthy`, `critical` or `pending` (not evaluated yet). A critical policy says why a resource is critical. No extra call needed.
with `status` one of `Healthy`, `Critical` or `Unmonitored`. The two sets of statuses have different casing.
stderr gives the count. Returned ids are normalized, so they may not string-match the ones sent.
rather than treating the two as the same.
cx infra resources list --match-all Health=Critical -o json \
| jq '.resources[] | {name, failing: [.health_policies[] | select(.status == "critical") | .name]}'
cx infra resources health-history "1001234:host_id=i-abc" "1001234:host_id=i-def" -o json \
| jq '.[] | {resource_id, critical: [.health_history[] | select(.status == "Critical") | .timestamp]}'`raw-data -o json` returns `{version_timestamp, raw_data}`.
time. `version_timestamp` says whi
The observability backbone for AI agents and engineering teams. Connect your agents to live logs, traces, metrics, dashboards, and alerts so they can investigate incidents, explain what changed, and reason about production with real operational context.
Use this skill when the user asks to "add a command", "implement cx <something>", "new subcommand", "new CLI command", "add a new…
Use this skill when the user asks to "add a skill", "create a skill", "new skill", "write a skill for", "skill for cx…
Creates GitHub pull requests with auto-generated summaries. Use this skill whenever the user wants to create a PR, open a pull…
Use this skill when the user asks to "run tests", "test this", "check if tests pass", "cargo test", "run clippy", "lint this",…
Search and read official Coralogix platform documentation using **`cx docs search`** and **`cx docs fetch`**. Use when the user…
Use this skill for any question or action about the user's AI/GenAI applications or agents — their behavior, prompts/responses,…