К основному содержанию
скилл CX Codex

cx-olly — скилл для Claude Code: чат с агентом Olly через cx CLI

Скилл подключает агента наблюдаемости Olly из Coralogix к вашему ИИ-кодингу: вопросы про алерты, метрики, логи и выгрузка артефактов через cx olly.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add coralogix/cx-cli --skill cx-olly -a claude-code
Открыть на GitHub

Что делает cx-olly

Скилл даёт агенту три команды: cx olly ask "message" отправляет сообщение агенту Olly, cx olly artifacts list показывает созданные артефакты, cx olly artifacts get <id> вытаскивает содержимое по идентификатору. Olly разбирает данные наблюдаемости, отвечает про алерты, метрики и логи, строит графики и отчёты. Ответ приходит вместе с Chat ID, и по нему можно продолжить разговор через --chat-id.

Запускать cx olly ask скилл советует в фоне и опрашивать на завершение: расследования Olly идут минутами. Внутри — таблица команд с флагами, разбор режима agent-to-agent, работа с артефактами и примеры сценариев. Для машиночитаемого вывода добавьте -o json или -o toon, дальше удобно фильтровать через jq. Модель выбирается флагом --model, среди доступных gpt-5.2 (по умолчанию), claude-sonnet-4-5, sonnet-4.6, gpt-5.4, claude-haiku-4-5.

Есть подвох с режимом agent-to-agent. Он по умолчанию false, потому что cx olly ask используют и люди. Если команду вызывает агент, флаг нужно передавать самому: без него ответы будут человекоориентированными, с графиками и таблицами. Флаг действует на каждый вызов отдельно — --chat-id его не запоминает, и на следующем ходу режим молча вернётся к обычному. Ещё cx olly не поддерживает мультипрофильный веер, нужен один профиль через -p <profile>. Таймаут ответа по умолчанию 900 секунд, для тяжёлых запросов его поднимают флагом --timeout.

Какие задачи решает

  • спросить у агента, какие алерты сработали за день
  • разобрать причину высокой задержки сервиса по логам и метрикам
  • выгрузить сгенерированный график или отчёт по ID артефакта
  • получить ответ Olly в JSON и отфильтровать его через jq
  • продолжить начатое расследование с сохранением контекста чата

Примеры запросов агенту

  • Спроси у Olly, почему сервис checkout показывает высокую задержку, и посмотри логи со строками 'checkout:'
  • Продолжи чат abc-123-def и уточни, что изменилось за последний час
  • Выведи список артефактов в JSON и достань содержимое первого

Как установить cx-olly

1Через Skills CLI (Vercel)

npx skills add coralogix/cx-cli --skill cx-olly -a claude-code

2Вручную: положить файлы

~/.claude/skills/cx-olly/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/cx-olly/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о cx-olly

Как установить cx-olly в Claude?

Выполните npx skills add coralogix/cx-cli --skill cx-olly -a claude-code. Скилл появится в ~/.claude/skills/cx-olly/SKILL.md.

Что делает cx-olly?

Учит агента работать с Observability Agent Olly через команды cx olly: задавать вопросы про алерты, метрики и логи, продолжать чат по Chat ID и забирать сгенерированные артефакты.

Зачем агенту флаг --agent-to-agent-mode?

По умолчанию он false, и ответы рассчитаны на человека — с графиками и таблицами. Агенту флаг даёт короткие ответы в стиле субагента, но передавать его нужно на каждом вызове: --chat-id режим не запоминает.

Исходный текст

SKILL.md · Apache-2.0
---
name: cx-olly
description: This skill should be used when the user asks to "chat with AI", "ask Olly", "ask the agent", "send message to AI", "continue a chat", "follow up on chat", "get artifact", "download artifact", "list artifacts", "retrieve generated content", "AI-generated charts", "AI analysis", "conversational observability", "natural language query", or wants to interact with the Coralogix Observability Agent (Olly) using the cx CLI.
metadata:
  version: "0.1.0"
---

# Olly Observability Agent Skill

Use this skill to interact with Coralogix's Observability Agent (Olly) via the `cx olly` CLI commands. Olly can analyze your observability data, answer questions about alerts, metrics, logs, and generate artifacts like charts and reports.

`cx olly ask` defaults `--agent-to-agent-mode` to **false**. **If you're an LLM/agent, pass `--agent-to-agent-mode`** - see "Agent-to-agent mode" below.

## CLI Commands

| Command | Purpose | Key flags |
|---|---|---|
| `cx olly ask "message"` | Send a message to the Observability Agent | `--chat-id`, `--model`, `--timeout`, `--agent-to-agent-mode` |
| `cx olly artifacts list` | List all generated artifacts | - |
| `cx olly artifacts get <id>` | Get artifact content by ID | - |

**Output format:** append `-o json` or `-o toon` for machine-readable output.

**Single-profile only:** `cx olly` commands do not support multi-profile fan-out. Use `-p <profile>` to specify a single profile.

## Running Olly (async by default)

**Run `cx olly ask` asynchronously by default:** launch it as a **background process and poll it for completion** rather than blocking on it. Olly investigations routinely take minutes, so this is the normal mode for `cx olly ask`.

Only run `cx olly ask` inline (foreground, blocking) for a short question you expect Olly to answer quickly — a quick lookup or a one-line follow-up. When in doubt, run it in the background.

## Chat Commands

### Start a new conversation

```bash
cx olly ask "What alerts fired today?" --agent-to-agent-mode
```

This creates a new chat and returns a response along with a **Chat ID** that you can use for follow-up questions.
Remove `--agent-to-agent-mode` if you don't have context to share (like quick access to source files) or if the created chat is only for human usage.

### Continue an existing chat

```bash
cx olly ask "Tell me more about the error rates" --chat-id <chat-id> --agent-to-agent-mode
```

Use `--chat-id` to continue a conversation and maintain context from previous messages. Background the follow-up too when it kicks off another investigation.

### Model selection

Available models include `gpt-5.2` (default), `claude-sonnet-4-5`, `sonnet-4.6`, `gpt-5.4`, `claude-haiku-4-5`.

```bash
cx olly ask "Explain this error" --model claude-sonnet-4-5 --agent-to-agent-mode
```

### Timeout

For complex queries that may take longer, increase Olly's response timeout
(default: 900 seconds):

```bash
cx olly ask "Deep analysis of last week's incidents" --timeout 1800 --agent-to-agent-mode
```

`--http-timeout <SECONDS>` (or `CX_HTTP_TIMEOUT`) sets the HTTP request
deadline for all CLI commands, including Olly. It is separate from the Olly
response timeout.

### Agent-to-agent mode

`--agent-to-agent-mode` defaults to `false`, since `cx olly ask` is used directly by humans as well as by agents. **If you're an LLM/agent, pass `--agent-to-agent-mode`** to opt into shorter, sub-agent-style responses: no charts/tables, clarifying questions instead of guessing, and reliance on your broader context.

```bash
cx olly ask "Analyze this for me" --agent-to-agent-mode
```

**It's per-call, not per-chat.** `--chat-id` does not remember it - re-pass `--agent-to-agent-mode` on every follow-up turn, or the mode silently flips back to human-facing mid-conversation.

## Artifacts

Olly can generate artifacts like query results, previews, and citations. Artifact IDs appear as links in the agent's response text.

### List all artifacts

```bash
cx olly artifacts list
cx olly artifacts list -o json
```

### Get artifact content

```bash
cx olly artifacts get <artifact-id>
cx olly artifacts get <artifact-id> -o json
```

The `artifacts get` command automatically:
1. Fetches artifact metadata
2. Downloads content from the presigned URL
3. **Decompresses gzip** content
4. **Parses JSON** and uses spill logic for large content
5. Saves non-JSON text to a temp file

Output behavior:
- **JSON content**: Displayed directly, or spilled to file if large
- **Text content**: Saved to temp file (e.g., `/tmp/cx_results_artifact_<id>_<hash>.txt`)

## Workflow Examples

### Investigate an issue

```bash
# Start investigation — run in the background and poll for completion
cx olly ask "Why is the checkout service showing high latency? Check logs with 'checkout:' strings and aws related metrics" --agent-to-agent-mode

# Follow up with the chat ID from the response — also background and poll
cx olly ask "What changed in the last hour?" --chat-id abc-123-def --agent-to-agent-mode

# Once the interaction has completed, get any generated charts
cx olly artifacts list -o json | jq '.[0].id'
cx olly artifacts get <artifact-id>
```

### Get JSON output for scripting

```bash
# Get response as JSON
cx olly ask "List top 5 error messages" -o json --agent-to-agent-mode | jq '.response'

# Parse artifacts
cx olly artifacts list -o json | jq '.[] | {id, filename, created_at}'
```

### Detailed analysis with specific model

```bash
cx olly ask "Perform root cause analysis for the outage on 2024-01-15" \
  --model claude-sonnet-4-5 \
  --timeout 1800 \
  --agent-to-agent-mode
```

## Key Principles

- **Async by default** - run `cx olly ask` as a background process and poll it for completion; only run inline (blocking) for short questions you expect Olly to answer quickly
- **Chat IDs enable context** - save the Chat ID from responses to continue conversations
- **Use `-o json` for scripting** - pipe to `jq` for filtering and extraction
- **Artifact IDs are in response text** - look for markdown links like `[Chart](https://...artifact_view/<id>)`
- **Single-profile only** - `cx olly` does not support multi-profile queries
- **Large artifacts auto-spill** - JSON content over the configured limit is saved to temp files
- **Check source code before asking** - give Olly concrete context from the source code if available, such as which metric to start investigating from, before calling it
- **Limit investigation scope** - guide Olly to the correct limited scope, for example limit to just logs or to specific time ranges
- **Pass `--agent-to-agent-mode` when calling as an LLM/agent** - it defaults to `false` (human-facing); agents should opt in for shorter, sub-agent-style responses

## Related Skills

- **`cx-telemetry-querying`** - for direct DataPrime/PromQL queries without AI agent assistance (covers logs, spans, metrics, RUM)
- **`cx-alerts`** - for managing alert definitions

© coralogix · Apache-2.0 · coralogix/cx-cli

Похожие скиллы

Всё по теме «DevOps и инфраструктура» →
groundcover-cli paymog Скилл учит агента дёргать Go-утилиту groundcover: смотреть логи, трейсы, метрики и события k8s, а ещё управлять мониторами и silences. CX Codex +1 8 900установок create-graph launchdarkly Скилл собирает графики по логам, трейсам, ошибкам, сессиям, метрикам и событиям, показывает превью прямо в чате и сохраняет их на дашборд. CX Codex +1 666установок elasticsearch-esql elastic Скилл учит агента писать и выполнять запросы ES|QL: сначала смотрит схему индексов, потом генерирует запрос и запускает его. CX Codex +1 4 800установок opentelemetry Claude MPM Team Скилл с паттернами OpenTelemetry: трейсы, метрики, логи, проброс контекста и пайплайны Collector. Пригодится, когда сервис пора инструментировать, а не гадать по логам. CX Codex +1 635установок opentelemetry-net-instrumentation Aaronontheweb Скилл подсказывает, как расставлять трассировку, метрики и логи в .NET-коде по спецификации OpenTelemetry. Пригодится, когда добавляете телеметрию в библиотеку или приложение. CX Codex +1 408установок dd-logs datadog-labs Скилл для работы с логами Datadog через CLI: поиск, архивы, метрики и фильтры исключений для контроля расходов. Пригодится, когда нужно разобрать инцидент или срезать счёт за индексацию. CX Codex +1 2 100установок

Из того же набора16

coralogix-docs Скилл ищет и читает официальную документацию Coralogix через cx docs search и cx docs fetch. Пригодится, когда нужно понять, как устроена платформа или как настроить интеграцию. CX Codex +1 3 700установок cx-cli Скилл учит агента работать с Coralogix CLI: парсить вывод утилиты cx, следить за обновлениями бинарника и безопасно запускать команды. CX Codex +1 3 500установок cx-alerts Скилл для работы с алертами Coralogix из терминала: список, создание, включение и выключение через cx alerts. Пригодится, когда дежурный разбирает сработавшие правила. CX Codex +1 3 600установок cx-cost-optimization Скилл помогает агенту находить причины перерасхода в Coralogix, пересматривать правила TCO и переводить телеметрию в архивное хранилище. CX Codex +1 3 300установок cx-data-pipeline Скилл для настройки парсинга, обогащения и Events2Metrics в Coralogix через CLI. Пригодится, когда логи надо превратить в поля и метрики. CX Codex +1 3 300установок cx-observability-setup Настраивает стек наблюдаемости Coralogix через CLI: сохраняет представления, создаёт коннекторы оповещений и вебхуки при подключении сервисов. CX Codex +1 3 400установок cx-dashboards Собирает дашборд Coralogix для сервиса по логам, спанам и метрикам, проверяет каждый запрос через cx CLI и разворачивает его в нужной папке. CX Codex +1 3 300установок cx-platform-admin Управляет доступом, ролями и API-ключами в аккаунте Coralogix. Пригодится для аудита прав и настройки списков разрешённых IP. CX Codex +1 3 200установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой