Command Palette

Search for a command to run...

Назад к скиллам
скилл № 98648

Observability

Cross-session local telemetry (OTEL DuckDB store, session transcripts, ccusage): token burn, cost, latency, session activity, usage; read-only except clean…

БесплатноЗапускает вложенные скрипты
melodic-softwareот melodic-software★ 34 звезды на GitHub

Установить Observability в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Observability

Arguments. [week|session|day|month|since:DATE|all|clean|latency|compare|items|hooks] [--write] [--days N]. Full form: [scope|action] [--write]. Week (default), session, session:<id>, day, month, since:YYYY-MM-DD, all (any reporting scope takes --write), clean [--dry-run], latency [--days N|--since YYYY-MM-DD] [--budget EVENT=MS] [--transcript PATH], compare <session-a> <session-b>, items [--session-map FILE], hooks [--enabled FILE] <transcript.jsonl>...

Pre-computed context

ccusage availability: !command -v npx >/dev/null 2>&1 && echo "npx present" || echo "npx MISSING" This session: ${CLAUDE_SESSION_ID} OTEL collector (configured OTLP logs endpoint): !bash -c 'source "${CLAUDE_PLUGIN_ROOT}/skills/observability/otel/net-probe.sh" && collector_status' 2>/dev/null || echo unknown OTEL store: !bash "${CLAUDE_PLUGIN_ROOT}/skills/observability/scripts/probe-observability-state.sh" --otel-store 2>/dev/null || echo "unknown"

The OTEL store lines are the three hot files (<name>:<bytes>B or absent), then cold:<bytes>B (<n> files) or cold:absent, then last-prune:<UTC time> (<age>) or last-prune:never, then prune-task:<state> for the Windows ClaudeCodeOtelPrune task. A report states hot size (sum of the three files), cold size and last-prune age, and on Windows flags last-prune:never or an age over about 2 days (2d or more): the scheduled prune is not firing. Elsewhere no prune is scheduled, so the age only says when clean last ran. It also flags any prune-task: state other than provisioned or n/a (not Windows). The states are listed in context/operator-setup-retention.md.

Purpose

Single place to read Claude Code observability, where to read telemetry, how the collector/dashboard/store fit together, cross-session trend reports, and what one session did (which hooks ran and how long, what was refused, the event timeline). CC shorthand = Claude Code CLI. See context/operator-setup.md "Naming". Progressive disclosure lives in context/ (read on demand. Do not recap inline).

Read-only, never writes user-visible state except a report file under ${CLAUDE_PLUGIN_DATA}/reports/ (when --write is passed). Honors context/privacy.md. It reads Claude Code's own OTEL export and the session transcripts every session writes; it turns nothing on.

Not /harness-ops:known-issues. That skill tracks Anthropic product bugs and GitHub issues. This skill reads your captured telemetry and ops signals.

Context ladder (read on demand)

File When
context/read-routing.md Ad-hoc "which source for this question?"
context/otel-pipeline.md Collector/dashboard down, store empty, service health
context/otel-queries.md DuckDB SQL, Aspire CLI, views
context/operator-setup.md Install, env profile, retention scripts
context/operator-setup-collector-daemon.md Collector/Aspire service down or unhealthy, lifecycle repair
context/operator-setup-retention.md Prune mechanics, retention knobs, scheduled prune task
context/operator-setup-emission-privacy.md Emission tiers, content-capture keys, privacy toggle
context/data-sources.md ccusage, the per-session report, transcript hook timing, report queries
context/output-format.md Rendering scope reports and the per-session report
context/privacy.md Before any user-visible output

OTEL query and retention helpers live in otel/ (private backends) with stable entry points in scripts/. Machine provisioning owns the Collector configuration and all long-running service and dashboard lifecycle. A full wipe of the OTEL store is provisioning's documented reset; clean stays the age and size prune.

Where this machine's provisioning documents each part, from this plugin's options:

  • store reset: ${user_config.otel_store_reset_doc}
  • Collector configuration: ${user_config.otel_collector_config_ref}
  • dashboard stack: ${user_config.otel_dashboards_compose_ref}

We treat a value that is empty or still the literal placeholder token as no reference configured: name the part and point the user at their machine provisioning, never at a repository of your own guessing. The context/ files name these parts by option. Pointer: for how a skill body's ${user_config.*} token resolves, see https://code.claude.com/docs/en/plugins/manifest-reference#user-configuration.

Arguments

$ARGUMENTS. Scope filter OR action. First token chooses behavior:

Reporting scopes (default behavior)

Scope Window Use case
`ses
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Bash(${CLAUDE_SKILL_DIR}/scripts/build-dashboard.mjs:*)
  2. 02Bash("${CLAUDE_SKILL_DIR}/scripts/build-dashboard.mjs":*)

Вложенные файлы

  • context/data-sources.md
  • context/operator-setup-collector-daemon.md
  • context/operator-setup-emission-privacy.md
  • context/operator-setup-retention.md
  • context/operator-setup.md
  • context/otel-pipeline.md
  • context/otel-queries.md
  • context/output-format.md
  • context/privacy.md
  • context/read-routing.md
  • evals/evals.json
  • otel/cc-otel.sql
  • otel/cc-otel.test.sh
  • otel/hook-latency.sql
  • otel/item-rollup.sql
  • otel/lane-runs.sql
  • otel/lane-runs.test.sh
  • otel/net-probe.sh
  • otel/net-probe.test.sh
  • otel/otel-sql.sh
  • otel/prune-collector-lifecycle.sh
  • otel/prune-compact.sh
  • otel/prune-filter.awk
  • otel/prune-otel-store.sh
  • otel/prune-otel-store.test.sh
  • otel/session-compare.sql
  • otel/session-report.sql
  • otel/session-report.test.sh
  • reference/native-explain-usage.md
  • scripts/build-dashboard.mjs
  • scripts/build-dashboard.test.sh
  • scripts/clean.sh
  • scripts/clean.test.sh
  • scripts/hook-latency.sh
  • scripts/hook-latency.test.sh
  • scripts/hook-transcript-timing.sh
  • scripts/hook-transcript-timing.test.sh
  • scripts/item-rollup.sh
  • scripts/item-rollup.test.sh
  • scripts/probe-observability-state.sh

FAQ

Что делает скилл Observability?

Cross-session local telemetry (OTEL DuckDB store, session transcripts, ccusage): token burn, cost, latency, session activity, usage; read-only except clean. If bundled explain-usage resolves in this session, prefer it for session tokens. Use when 'claude observability', 'which hooks fired', 'tokens per work item', compare two sessions, what a session did.

Как установить скилл Observability?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Observability запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить Observability с