AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Observability

skill-melodic-software-claude-code-plugins-observability · by melodic-software

Read and report on locally captured Claude Code telemetry — OTEL DuckDB store, collector, optional Aspire dashboard, hook-event JSONL, ccusage — with cross-session trend reports and store pruning. Use when: 'claude observability', 'OTEL', 'collector', 'token burn rate', 'hook latency', 'cost breakdown', 'how am I doing'; read-only except the explicit clean action.

No reviews yet
0 installs
15 views
0.0% view→install

Install

$ agentstack add skill-melodic-software-claude-code-plugins-observability

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-melodic-software-claude-code-plugins-observability)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
12d ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Observability? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Pre-computed context

Current branch: !git branch --show-current 2>/dev/null || echo "unknown" Repo slug: !git rev-parse --show-toplevel 2>/dev/null | sed 's|.*/||' || echo "unknown" ccusage availability: !command -v npx >/dev/null 2>&1 && echo "npx present" || echo "npx MISSING" Hook event log: !f="$(git rev-parse --show-toplevel 2>/dev/null || pwd)/.claude/observability/hook-events.jsonl"; if [[ -f "$f" ]]; then echo "$(wc -l /dev/null || echo unknown OTEL store: !d="${CC_OTEL_STORE:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)/.claude/observability/otel}"; for f in cc-logs.json cc-metrics.json cc-traces.json; do if [[ -f "$d/$f" ]]; then echo "$f:$(wc -c /dev/null || echo 0)B"; else echo "$f:absent"; fi; done 2>/dev/null || echo "unknown"

Purpose

Single place to read Claude Code observability — where to read telemetry, how the collector/dashboard/store fit together, and cross-session trend reports. CC shorthand = Claude Code CLI — see [context/operator-setup.md](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](context/privacy.md).

Not /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](context/read-routing.md) | Ad-hoc "which source for this question?" | | [context/otel-pipeline.md](context/otel-pipeline.md) | Collector/dashboard down, store empty, service health | | [context/otel-queries.md](context/otel-queries.md) | DuckDB SQL, Aspire CLI, views | | [context/operator-setup.md](context/operator-setup.md) | Install, env profile, retention scripts | | [context/data-sources.md](context/data-sources.md) | JSONL + ccusage jq (batch reports) | | [context/output-format.md](context/output-format.md) | Rendering scope reports | | [context/privacy.md](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.

Arguments

$ARGUMENTS — scope filter OR action. First token chooses behavior:

Reporting scopes (default behavior)

| Scope | Window | Use case | |---|---|---| | session | current session only | quick check before /clear | | day | last 24 hours | end-of-day review | | week (default) | last 7 days | weekly retro complement | | month | last 30 days | trend evaluation | | since:YYYY-MM-DD | from explicit date | post-launch evaluation | | all | no filter | full history |

Optional second token: --write (persist report to ${CLAUDE_PLUGIN_DATA}/reports/claude-observability-.md instead of stdout).

When the scope is week or larger, optionally offer a self-contained HTML dashboard rendering the same multi-metric trend report alongside the markdown (session/day stay markdown; markdown remains the durable record).

Maintenance actions

| Action | Args | Effect | |---|---|---| | clean | [--keep-days N] (default 30) [--dry-run] [--quiet] | Prune JSONL + OTEL store — see [context/read-routing.md](context/read-routing.md) "Retention" and scripts/clean.sh |

Action invocation: /observability clean [flags].

clean requires explicit user confirmation before running when invoked by the model — show --dry-run output first unless user already passed --dry-run or explicitly ordered cleanup.

Ad-hoc telemetry reads (no special action)

When the user asks to inspect traces, logs, metrics, or hook data outside a scope report:

  1. Read [context/read-routing.md](context/read-routing.md) — pick source
  2. Read [context/otel-queries.md](context/otel-queries.md) or [context/data-sources.md](context/data-sources.md) — run queries
  3. Apply [context/privacy.md](context/privacy.md) — redact before responding

Workflow — scope reports

0. Dispatch — action vs scope

If $1 == "clean": shift, delegate to scripts/clean.sh "$@" and return its exit code.

if [[ "${1:-}" == "clean" ]]; then
  shift
  exec bash "${CLAUDE_PLUGIN_ROOT}/skills/observability/scripts/clean.sh" "$@"
fi
SCOPE="${1:-week}"
case "$SCOPE" in
  session|day|week|month|all) ;;
  since:*) ;;
  *) echo "Unknown scope: $SCOPE. Use session|day|week|month|since:YYYY-MM-DD|all|clean" >&2; exit 1 ;;
esac

1. Gather data sources

Read [context/data-sources.md](context/data-sources.md). Summary:

| Source | Path | What it provides | |---|---|---| | ccusage | MCP or CLI | Token counts, cost USD, billing blocks | | Hook event log | .claude/observability/hook-events.jsonl (project-relative; present only if the consumer's hooks emit it) | Hook duration, exit codes | | OTEL store | $CC_OTEL_STORE/*.json → DuckDB | Logs, metrics, spans — [context/otel-queries.md](context/otel-queries.md) | | Auto-memory | ~/.claude/.../memory/feedback_*.md | User-correction patterns | | Git / GH | git log, gh pr list | Activity context |

2–5. Compute, privacy, render, output

Unchanged — [context/data-sources.md](context/data-sources.md), [context/privacy.md](context/privacy.md), [context/output-format.md](context/output-format.md).

Cross-references

  • /known-issues — CC product bugs (not telemetry reads)

Gotchas

  • Empty stores are normal on first run — degrade gracefully
  • session_id drift — use cwd + branch + time proximity
  • Stop hook unreliability — do not rely on Stop for aggregation
  • cc_spans / cc_traces — views skip bind until cc-traces.json has content

What this skill does NOT do

  • Does not track GitHub bugs — use /known-issues
  • Does not modify code — read-only
  • Does not replace built-in /insights or your own retrospective workflow
  • Does not write to memory unless user explicitly saves

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.