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 when the user asks about AI Center Coding Agents data, wants to reproduce or extend the Coding Agents dashboards, or asks questions about usage, cost, tokens, sessions, tools, code impact, users, models, spans, or logs for Claude Code, Codex, Cursor, Gemini CLI,
$ npx -y skills add coralogix/cx-cli --skill cx-coding-agents --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/cx-coding-agentsContext preview
The summary Claude sees to decide when to auto-load this skill.
Use this skill when the user asks about AI Center Coding Agents data, wants to reproduce or extend the Coding Agents dashboards, or asks questions about usage, cost, tokens, sessions, tools, code impact, users, models, spans, or logs for Claude Code, Codex, Cursor, Gemini CLI,
name: cx-coding-agents description: | Use this skill when the user asks about AI Center Coding Agents data, wants to reproduce or extend the Coding Agents dashboards, or asks questions about usage, cost, tokens, sessions, tools, code impact, users, models, spans, or logs for Claude Code, Codex, Cursor, Gemini CLI, or Copilot CLI. metadata: version: "1.0.0" internal: true
Use this skill as the entry point for any investigation or data question about AI Center Coding Agents. It identifies which data source each agent uses and tells you which reference files to load before querying.
| Agent | Data Type | Source Identifier | |---|---|---| | Claude Code | Metrics | `claude_code_*` metric family | | Claude Code (session text) | Logs | `source ai_sessions_claude` | | Codex | Logs | `service.name == 'codex_cli_rs'` or `'codex-app-server'` | | Codex (latency) | Spans | `$l.serviceName == 'codex_cli_rs'` or `'codex-app-server'` | | Cursor | Spans | `$l.serviceName == 'cursor-agent'` | | Gemini CLI | Metrics | `gemini_cli_*` metric family | | Copilot CLI (direct OTel) | Spans | `$l.serviceName == 'github-copilot'` or `tags['otel.scope.name'] == 'github.copilot'` | | GitHub Copilot Collector | Metrics | `github_copilot_*` metric family |
---
Load the agent reference first, then the shared query-language files it depends on:
| Agent | Agent Reference | Shared References | |---|---|---| | Claude Code (metrics) | `references/claude-code.md` | `references/promql-guidelines.md` + `references/metrics-querying.md` | | Claude Code (sessions) | `references/claude-code.md` | `references/dataprime-reference.md` + `references/logs-querying.md` | | Codex | `references/codex.md` | `references/dataprime-reference.md` + `references/logs-querying.md` + `references/spans-querying.md` | | Cursor | `references/cursor.md` | `references/dataprime-reference.md` + `references/spans-querying.md` | | Gemini CLI | `references/gemini-cli.md` | `references/promql-guidelines.md` + `references/metrics-querying.md` | | Copilot CLI (direct OTel) | `references/copilot-cli.md` | `references/dataprime-reference.md` + `references/spans-querying.md` | | GitHub Copilot Collector | `references/copilot-cli.md` | `references/promql-guidelines.md` + `references/metrics-querying.md` | | Cross-agent comparison | All agent references | All shared references |
---
All query commands (`cx metrics`, `cx logs`, `cx spans`, `cx dataprime`) are read-only. They never modify data and can be run freely without `--yes`.
---
| Command | Purpose | When to Use | |---|---|---| | `cx metrics search --name '<pattern>'` | Find metrics by name | Discover available `claude_code_*`, `gemini_cli_*`, `github_copilot_*` metrics | | `cx metrics query '<expr>'` | Instant PromQL query | Point-in-time metric snapshot | | `cx metrics query-range '<expr>'` | Range PromQL query (time series) | Claude Code, Gemini CLI, GitHub Copilot Collector trends | | `cx logs '<dataprime_query>'` | Log query | Claude Code session text, Codex logs | | `cx spans '<dataprime_query>'` | Span query | Cursor, Codex latency, Copilot CLI direct OTel | | `cx dataprime query '<query>'` | Raw DataPrime query | When you need an explicit `source logs` or `source spans` in the query |
**Output format:** append `-o toon` to any command when passing results to an agent or further processing.
**Multi-profile:** use `-p <profile>` (repeatable) to fan out across profiles simultaneously.
---
Identify the requested agent and analysis goal. If any required scope is missing, ask before querying:
> If the user says "GitHub Copilot Codex", clarify whether they mean Codex or Copilot CLI. AI Center has separate Codex and Copilot CLI dashboards.
Use the same data source as the corresponding dashboard whenever possible:
---
Use `increase(metric[<range>])` for counters over the selected window. Common label filter pattern:
{user_email="<user>",model="<model>",cx_application_name="<app>",cx_subsystem_name="<subsystem>"}App/subsystem filter pattern:
| filter $l.applicationName == '<application>' && $l.subsystemName == '<subsystem>'
---
When comparing agents:
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,…