cx-profiling

cx-profiling is a skill for Claude Code, Codex from coralogix/cx-cli. It costs 188 tokens per session (1,914 once invoked), scanned A, original, Apache-2.0.

A continuous-profiling query tool shows which services and code paths use the most CPU or memory over time. Profiling samples a running program to reveal where its resources are being spent.

In plain words
What is it for?
Use it to rank services by CPU or memory use, inspect usage over time, filter profile data, and view flame graphs. A flame graph is a visual breakdown of the functions consuming resources.
Why use it?
It helps locate resource-heavy services, functions, pods, or versions without relying only on guesses from logs. It can also show when usage increased and which labels or environments were involved.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to rank services by CPU or memory use, inspect usage over time, filter profile data, and view flame graphs. A flame graph is a visual breakdown of the functions consuming resources.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/coralogix/cx-cli/cx-profiling
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add coralogix/cx-cli --skill cx-profiling
Clone the repo
git clone --depth 1 https://github.com/coralogix/cx-cli

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cx-profiling

README.md
[![agentmods](https://agentmods.dev/badge/skills/coralogix/cx-cli/cx-profiling/github.svg)](https://agentmods.dev/skills/coralogix/cx-cli/cx-profiling)
Your own site
<a href="https://agentmods.dev/skills/coralogix/cx-cli/cx-profiling"><img src="https://agentmods.dev/badge/skills/coralogix/cx-cli/cx-profiling/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cx-profiling

Your own site · 80×15
<a href="https://agentmods.dev/skills/coralogix/cx-cli/cx-profiling"><img src="https://agentmods.dev/badge/skills/coralogix/cx-cli/cx-profiling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 188 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,914 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 25 Oct 2026
  • Snyk pass 25 Oct 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00188 $0.01914
Opus 5.5 $0.00075 $0.00766
Sonnet 5.5 $0.00038 $0.00383
Haiku 4.5 $0.00019 $0.00191

Measured 1mo ago against content hash bdbafa70e1a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cx-profiling scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cx-profiling/SKILL.md · 137 lines

How it starts

The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Profiling Skill

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.

CLI Commands

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
  • All commands are read-only and support -o json / -o toon.
  • Every command takes --start / --end (default now-1h / now): now, now-1h-style relative expressions, or ISO-8601 timestamps.
  • --profile-type is one of cpu, wall, memory-allocation-bytes, 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.
  • --filter is repeatable and filters AND together: key=v1,v2 (any of the values), key!=v1,v2 (none of them), key:exists, key:not-exists. Discover keys and values with filters.
  • services --environment matches deployment.environment.name; it is the only filter the services ranking honors.
  • services pages through the ranking: when a page is full the CLI prints the --offset to use next. Time series are omitted unless --include-time-series is passed.
  • flame-graph can take ~40 s on large services; don't set a short --http-timeout.

Read the full file on GitHub · 137 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 137 lines · 188 tokens per session scan A bdbafa70e1a1

Subscribe to this mod's changes

cx-profiling is a skill published in the GitHub repository coralogix/cx-cli (244 stars, last pushed today), licensed Apache-2.0. It adds 188 tokens to every session and 1,914 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-26.

Related

cx-profiling compared with skills from other repositories

cx-profiling next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cx-profilingcoralogix/cx-cliSkill244todayApache-2.0A188Claude Code, Codex
lastlight-debugnearform/lastlightSkill51todayMITA138Claude Code
debugging-workflowsCrowdStrike/foundry-skillsSkill38todayMITA90Claude Code
pipefy-observabilitypipefy/ai-toolkitSkill54todayApache-2.0A38Claude Code
debuggingasgarovf/locusaiSkill238mo agoMITB29Claude Code
feishuHmbown/CodeWhaleSkill41k4d agoMITA33Claude Code, Codex
interviewHmbown/CodeWhaleSkill41k4d agoMITA40Claude Code, Codex