add-command
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 for any question involving telemetry data: "investigate an issue", "debug a problem", "find out why something is slow", "check error rates", "analyze user behavior", "understand a production incident", "query telemetry data", "look at logs", "search logs", "find
$ npx -y skills add coralogix/cx-cli --skill cx-telemetry-querying --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/cx-telemetry-queryingContext preview
The summary Claude sees to decide when to auto-load this skill.
Use this skill for any question involving telemetry data: "investigate an issue", "debug a problem", "find out why something is slow", "check error rates", "analyze user behavior", "understand a production incident", "query telemetry data", "look at logs", "search logs", "find
name: cx-telemetry-querying description: | Use this skill for any question involving telemetry data: "investigate an issue", "debug a problem", "find out why something is slow", "check error rates", "analyze user behavior", "understand a production incident", "query telemetry data", "look at logs", "search logs", "find errors", "find stack traces", "filter by severity", "check traces", "examine spans", "investigate request latency", "debug service-to-service calls", "look up a trace ID", "analyze RUM data", "query rum.events", "check frontend performance", "frontend errors", "Core Web Vitals", "JavaScript exceptions", "query metrics", "check CPU usage", "run a PromQL query", "check error rate", "look up a metric", "check memory usage", "how do I write a DataPrime query", "DataPrime syntax", or wants to answer questions using observability data from logs, metrics, traces, RUM, or APM. metadata: version: "0.2.1"
Use this skill as the entry point for any investigation, debugging, or data question that may be answered from telemetry data. It helps you decide **where** the relevant signal lives (metrics, logs, traces, RUM) and tells you **which reference files to load** before querying.
Before querying, load the reference files for the chosen pillar:
| Pillar | Load these files | |---|---| | Logs | `references/dataprime-reference.md` + `references/logs-querying.md` | | Spans / Traces | `references/dataprime-reference.md` + `references/spans-querying.md` | | Metrics | `references/promql-guidelines.md` + `references/metrics-querying.md` | | RUM (frontend) | `references/dataprime-reference.md` + `references/rum-querying.md` + `references/rum-fields.md` | | DataPrime syntax only | `references/dataprime-reference.md` |
---
All query commands (`cx logs`, `cx spans`, `cx metrics`, `cx dataprime`, `cx search-fields`) are read-only and work in `--read-only` mode. They never modify data and can be run freely without `--yes`.
---
Use this table for obvious cases where one pillar is the clear first choice:
| Question Type | First Choice | Fallback | |---|---|---| | UI behavior, page load, frontend errors | RUM | Traces (if backend-related) | | Endpoint latency, throughput, error rates | Metrics | Traces (for per-request detail) | | Service-to-service dependencies, request flow | Traces | Logs (for debug output) | | Specific error messages, stack traces | Logs | Traces (for request context) | | Infrastructure health (CPU, memory, disk) | Metrics | - | | Business events (purchases, signups) | Depends - see Discovery Workflow | - |
For **ambiguous questions** (e.g., "How much money did users spend last week?"), the signal could live in any pillar. Follow the Discovery Workflow below.
---
When the answer could reside in multiple pillars, run discovery in parallel to find the best source.
Check if a relevant metric exists:
cx metrics search --name '*transaction*' cx metrics search --name '*payment*' cx metrics search --name '*revenue*' cx metrics search --description "total purchase amount"
If a matching metric is found, load `references/promql-guidelines.md` + `references/metrics-querying.md` and continue.
Use semantic field search to find relevant DataPrime paths:
cx search-fields "transaction amount" --dataset logs cx search-fields "payment total" --dataset spans cx search-fields "purchase value" --dataset logs --limit 10
If you know a concrete value that should appear in the data but don't know which field holds it, use value search instead. It returns the matching field keys alongside sample values, which also lets you infer the field's type (string, numeric, enum, etc.):
cx search-fields "payment_failed" -s value --dataset logs cx search-fields "grpc.status.UNAVAILABLE" -s value --dataset spans cx search-fields "eu-west-1" -s value --dataset all
**Requirements:** `cx search-fields` needs a Coralogix API key or OAuth on the active profile. If credentials are missing, prompt the user to run `cx profiles add <name>`.
If matching fields are found:
When discovery results are ambiguous or you need to validate what a metric/field actually represents, search the codebase:
This confirms the semantic meaning and helps you choose the right pillar.
Based on discovery results, pick the pillar with the clearest signal, load its reference files (see [Loading References](#loading-references)), then query.
---
**If your initial route yields no results, pivot to another pillar.**
Example pivot paths:
Do not stop after one failed attempt. Try at least two pillars before concluding the data does not exist.
---
| Command | Purpose | When to Use | |---|---|---| | `cx schema` | Output the full command tree as JSON | Discover all available commands and their flags | | `cx metrics search --name <pattern>` | Find metrics by name | First step for metrics discovery | | `cx metrics search --description <text>` | Semantic metric search | When you know what you want but not the name | | `cx search-fields "<text>"
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,…