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

cx-slos — скилл для Claude Code: SLO в Coralogix через CLI

Скилл для работы с SLO в Coralogix: показывает цели и error budget, создаёт и правит определения через cx slos.

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

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

Скилл учит агента обращаться с SLO в Coralogix через CLI cx slos. Список и карточка отдельного SLO, проверка attainment против targetThresholdPercentage, создание, замена и удаление определений из JSON — всё это агент делает сам, без похода в веб-интерфейс.

Команды простые: cx slos list, cx slos get <id>, cx slos create --from-file <path>, cx slos update --from-file <path>, cx slos delete <id>. Вывод переводится в JSON флагом -o json, а -p <profile> можно повторить, чтобы сравнить SLO между окружениями. Запись требует --yes в неинтерактивном режиме — без него агент упрётся в подтверждение. Советую не писать JSON руками, а снять шаблон через cx slos get <existing-slo-id> -o json, поправить поля и отправить обратно: так сохраняется форма, которую ждёт API.

Отдельно про алерты. update и delete возвращают effectedSloAlertIds — список затронутых алертов. Удаление SLO может заглушить привязанные к нему алерты, так что этот список стоит просмотреть до подтверждения. Разбираться с причиной пробоя дальше помогает скилл cx-telemetry-querying.

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

  • посмотреть все SLO с целями и окнами расчёта
  • понять, сколько error budget осталось у сервиса
  • создать SLO из JSON-файла, не собирая поля вручную
  • заменить определение SLO и увидеть, какие алерты это затронет
  • сравнить SLO между окружениями через несколько профилей

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

  • покажи все SLO и их цели
  • сколько error budget осталось у SLO <slo-id>
  • создай SLO из файла slo.json

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

1Через Skills CLI (Vercel)

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

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

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

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

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

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

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установок cx-cases Ведёт кейсы Coralogix через CLI: назначить, подтвердить, закрыть, поменять приоритет и посмотреть таймлайн событий. CX Codex +1 2 900установок cx-infra Скилл даёт агенту доступ к ресурсам инфраструктуры Coralogix через CLI cx infra: типы, здоровье, сырые данные и изменения конфигурации. CX Codex +1 2 500установок cx-service-catalog Скилл учит агента вытаскивать метрики сервисов, баз данных, JVM и подов Kubernetes из Service Catalog Coralogix через cx service-catalog. CX Codex +1 2 400установок cx-ai-center Отвечает на вопросы о ваших AI-приложениях и агентах: что спрашивают пользователи, сколько стоят токены, где сработали гардрейлы. И управляет конфигом AI Center. CX Codex +1 2 200установок

Похожие

slo-architect claude-code-skills Скилл помогает проектировать, проверять и сопровождать SLO, SLI и error budget. Подойдёт, когда нужны расчёты burn rate и правила алертов. 458установок observability-service-reliability elastic Помогает выбрать SLI, назначить достижимую цель и вести SLO в Elastic Observability через API Kibana. Пригодится, когда алерты шумят, а бюджет ошибок не сходится. CX Codex +1 1 000установок monitoring-observability ahmedasmar Скилл для настройки мониторинга и наблюдаемости: стратегия метрик, алерты, дашборды, SLO и разбор инцидентов. CX Codex +1 493установок groundcover-cli paymog Скилл учит агента дёргать Go-утилиту groundcover: смотреть логи, трейсы, метрики и события k8s, а ещё управлять мониторами и silences. CX Codex +1 8 900установок promql-cli samber Скилл учит агента гонять PromQL через CLI promql-cli: instant- и range-запросы, поиск метрик, вывод таблицей, CSV, JSON или графиком. CX Codex +1 4 400установок agents-debug aws-agentcore Скилл читает трейсы и логи AgentCore и находит причину ошибок, таймаутов и сбоев вызовов инструментов. Пригодится, когда агент отвечает неправильно или CLI не запускается. CX Codex +1 2 000установок

Рядом в теме «DevOps и инфраструктура»

Всё по теме «DevOps и инфраструктура» →

Вопросы о cx-slos

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

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

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

Даёт агенту команды cx slos для просмотра, создания, обновления и удаления определений SLO в Coralogix, а также для проверки целей и error budget.

Какие команды требуют подтверждения?

create, update и delete — это операции записи, в неинтерактивном режиме им нужен флаг --yes.

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

SKILL.md · Apache-2.0
---
name: cx-slos
description: >
  Manage Coralogix SLO (Service Level Objective) definitions with the `cx slos`
  CLI — list and inspect SLOs, check whether targets and error budgets are
  healthy, and create, update, or delete SLO definitions from JSON. Use when the
  user asks to "list SLOs", "check SLO status", "is an SLO breaching", "error
  budget", "create an SLO", "update an SLO", "delete an SLO", or "service level
  objective".
metadata:
  version: "0.1.0"
---

# SLO Management Skill

An **SLO** (Service Level Objective) defines a reliability target for a service —
e.g. "99.9% of requests succeed over 28 days". Use this skill to inspect SLO
definitions, judge whether they are healthy, and manage their lifecycle.

## CLI Commands

| Command | Purpose |
|---|---|
| `cx slos list` | List all SLO definitions |
| `cx slos get <id>` | Get a single SLO by ID |
| `cx slos create --from-file <path>` | Create an SLO from a JSON definition [requires `--yes`] |
| `cx slos update --from-file <path>` | Replace an SLO definition from JSON [requires `--yes`] |
| `cx slos delete <id>` | Delete an SLO [requires `--yes`] |

- All commands support `-o json` for structured output and `-p <profile>` (repeatable) for multi-profile fan-out.
- `create`/`update` read from `--from-file <path>`, or `-` for stdin (the default).
- `create`, `update`, and `delete` are write operations and require `--yes` in non-interactive / agent mode.

## SLO Definition

The fields surfaced on every SLO:

| Field | Meaning |
|---|---|
| `name` | Human-readable SLO name |
| `description` | Optional description |
| `targetThresholdPercentage` | The objective, e.g. `99.9` |
| `sloType` | `SLO_TYPE_REQUEST` (request-based) or `SLO_TYPE_WINDOW` (window-based) |
| `sloTimeFrame` | Rolling window, e.g. `SLO_TIME_FRAME_7_DAYS`, `SLO_TIME_FRAME_28_DAYS` |
| `productType` | The pillar the SLO is computed from, e.g. `SLO_PRODUCT_TYPE_APM` |

## Monitoring SLO Health

```bash
# All SLOs with their target and window
cx slos list -o json | jq '[.[] | {name, targetThresholdPercentage, sloType, sloTimeFrame}]'

# Inspect a single SLO in full
cx slos get <slo-id> -o json
```

Compare the live attainment against `targetThresholdPercentage` to judge whether
the SLO is healthy or burning error budget. A **request-based** SLO measures the
fraction of good events; a **window-based** SLO measures the fraction of good time
windows. After triage, pivot to the `cx-telemetry-querying` skill to find the root
cause of a breach in logs, spans, or metrics.

## Creating and Updating SLOs

The safest way to author an SLO is to round-trip an existing one — template from the
exact field shape that `get` returns rather than hand-writing JSON:

```bash
# Template from an existing SLO, edit, then create
cx slos get <existing-slo-id> -o json > slo.json
# Edit slo.json: change name, targetThresholdPercentage, sloType, sloTimeFrame, etc.
cx slos create --from-file slo.json --yes

# Replace an existing definition
cx slos update --from-file slo.json --yes
```

`update` and `delete` report the alert IDs they affect (`effectedSloAlertIds`), so
review that list — changing or removing an SLO can disable the alerts attached to
it.

## Key Principles

- **Check attainment vs. target, not just existence** — an SLO at 99.91% against a
  99.9% target has almost no error budget left and needs attention before it breaches.
- **Round-trip definitions** — template create/update payloads from `cx slos get`
  rather than hand-writing JSON, to keep the exact field shape the API expects.
- **`create`/`update`/`delete` need `--yes`** in agent / non-interactive mode.
- **Watch affected alerts** — `update`/`delete` return `effectedSloAlertIds`; deleting
  an SLO can silence its alerts.
- **Multi-profile fan-out** with `-p <profile>` (repeatable) to compare SLOs across environments.

## Related Skills

- **`cx-alerts`** — the alert definitions that fire when an SLO's error budget burns.
- **`cx-telemetry-querying`** — investigate the logs, spans, and metrics behind an SLO breach.
- **`cx-cases`** — triage the cases that group the alert events raised against a service.

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

Смотрите также

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

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