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 continuous-profiling data with the `cx profiling` CLI — find which services use the most CPU or memory, which profile types a service has, what profiles can be filtered by, when usage spiked and which pod or version caused it, and which code paths and functions a
$ npx -y skills add coralogix/cx-cli --skill cx-profiling --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/cx-profilingContext preview
The summary Claude sees to decide when to auto-load this skill.
Query Coralogix continuous-profiling data with the `cx profiling` CLI — find which services use the most CPU or memory, which profile types a service has, what profiles can be filtered by, when usage spiked and which pod or version caused it, and which code paths and functions a
name: cx-profiling description: > Query Coralogix continuous-profiling data with the `cx profiling` CLI — find which services use the most CPU or memory, which profile types a service has, what profiles can be filtered by, when usage spiked and which pod or version caused it, and which code paths and functions a service spends its CPU or memory on (flame graphs). Use when the user asks "which services use the most CPU", "top memory consumers", "what is service X spending CPU on", "hot functions", "flame graph for a service", "why is this service using so much CPU", "memory allocations by function", "CPU spike by pod", "which version increased CPU", "continuous profiling", "profiling data", or wants to explore profiles of a service. For how much CPU or memory a service or pod uses and whether it is saturated, use `cx-service-catalog` instead. metadata: version: "0.1.0"
Use this skill to answer **continuous-profiling** questions — which services burn the most CPU or memory, and which functions inside a service are responsible — via the Coralogix profiling API. Requires the `profiles.cpu-profiles:Read` permission.
| Command | Purpose | Key flags | |---|---|---| | `cx profiling services` | Profiled services ranked by CPU+wall seconds (`cpu`) or allocated+heap bytes (`memory`) | `--category` (required), `--environment`, `--limit` (default 20, max 100), `--offset`, `--include-time-series` | | `cx profiling metadata <service>` | A service's language and which profile types have data | - | | `cx profiling filters <service>` | Label keys a service's profiles can be filtered by, with their values | `--profile-type` (required), `--filter`, `--max-values-per-key` (default 50) | | `cx profiling metrics <service>` | One profile type's usage over time, split by `service`, `pod`, or any label; highest totals first | `--profile-type` (required), `--sum-by` (default `service`), `--max-buckets` (default 60), `--limit` (default 10), `--filter` | | `cx profiling flame-graph <service>` | Decoded flame graph plus the top functions by self value | `--profile-type` (required), `--filter`, `--top-functions` (default 20), `--min-node-ratio` (default 0.01), `--max-depth`, `--show-kernel` |
`now-1h`-style relative expressions, or ISO-8601 timestamps.
`memory-allocation-objects`, `memory-heap-bytes`, `memory-heap-objects` (case-insensitive; `MEMORY_HEAP_BYTES` also works). Check `metadata` first — only types with `has_data: true` return anything.
`key=v1,v2` (any of the values), `key!=v1,v2` (none of them), `key:exists`, `key:not-exists`. Discover keys and values with `filters`.
only filter the services ranking honors.
`--offset` to use next. Time series are omitted unless `--include-time-series` is passed.
`--http-timeout`.
1. **Find the heavy services** (skip if the user named one):
cx profiling services --category cpu --limit 10 -o json cx profiling services --category memory --environment <env> --limit 10 -o json
2. **Check which profile types exist** for the service:
cx profiling metadata <service> -o json
3. **See what you can filter or split by** (pods, versions, environments, ...):
cx profiling filters <service> --profile-type cpu -o json
4. **Find when usage changed and who caused it** — split by `pod` or a label key from step 3:
cx profiling metrics <service> --profile-type cpu --sum-by pod --limit 5 -o json cx profiling metrics <service> --profile-type cpu --sum-by service.version --start now-24h -o json
5. **Find the code responsible** — start with the top functions, then the tree:
cx profiling flame-graph <service> --profile-type cpu --top-functions 10 -o json | jq '.top_functions'
cx profiling flame-graph <service> --profile-type cpu --filter k8s.pod.name=<pod> \
--min-node-ratio 0.05 --max-depth 20 -o json`memory` rows carry `total_memory_allocations_bytes` / `total_heap_bytes`. `last_active` is epoch seconds.
trimmed to `--limit`; `total_series` is how many the server returned. `unit` is `seconds`, `bytes`, or `objects` depending on the profile type.
**whole** tree, so it is unaffected by tree trimming. `tree` nodes carry `function`, `file`, `line`, `self`, `total`, `self_percent`, `total_percent`, and `children` (sorted by total, highest first). `omitted_subtrees` counts nodes dropped by `--min-node-ratio` / `--max-depth`. The server already prunes nodes under 0.1% of the total. Frames with no symbol show as their address or `unknown`. `warnings` (e.g. `maxBytes`) mean the server stopped reading profiles early, so the graph covers part of the range.
`flame-graph` is the expensive call, so narrow the service, profile type, time range, and filters before asking for one.
KB of JSON. Raise `--min-node-ratio` or set `--max-depth` for the tree, or read just `.top_functions`.
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,…