observability

observability is a skill for Claude Code from atretyak1985/swarmery. It costs 41 tokens per session (764 once invoked), scanned A, original, Apache-2.0.

A guide for adding structured JSON logs and OpenTelemetry distributed tracing to services. Tracing follows a request across services, while correlating trace IDs with logs helps connect related events during investigation.

In plain words
What is it for?
Use it to instrument HTTP and WebSocket services, define log fields, name tracing spans, propagate trace context, and connect logs, traces, and metrics.
Why use it?
It provides consistent logging and trace context across service boundaries, making it easier to follow requests and diagnose failures. It also sets rules for avoiding secrets, personal data, and overly noisy logs.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the core plugin — 36 skills, 8 commands, 13 agents shipped together

Good fit Use it to instrument HTTP and WebSocket services, define log fields, name tracing spans, propagate trace context, and connect logs, traces, and metrics.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/atretyak1985/swarmery/observability
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add atretyak1985/swarmery --skill observability
Clone the repo
git clone --depth 1 https://github.com/atretyak1985/swarmery

Made for: Claude Code.

Or install core, the plugin that ships this one along with the rest of its 36 skills, 8 commands, 13 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for observability

README.md
[![agentmods](https://agentmods.dev/badge/skills/atretyak1985/swarmery/observability/github.svg)](https://agentmods.dev/skills/atretyak1985/swarmery/observability)
Your own site
<a href="https://agentmods.dev/skills/atretyak1985/swarmery/observability"><img src="https://agentmods.dev/badge/skills/atretyak1985/swarmery/observability/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for observability

Your own site · 80×15
<a href="https://agentmods.dev/skills/atretyak1985/swarmery/observability"><img src="https://agentmods.dev/badge/skills/atretyak1985/swarmery/observability.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 764 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.00764
Opus 5 $0.00020 $0.00382
Sonnet 5 $0.00008 $0.00153
Haiku 4.5 $0.00004 $0.00076

Measured 9d ago against content hash 8f791273faab, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

observability scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/core/skills/observability/SKILL.md · 59 lines

How it starts

The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Purpose

Instrument the project's services with structured logging and OpenTelemetry distributed tracing, and provide the patterns for correlating logs, traces, and metrics when diagnosing issues. Code-level instrumentation only — what to log, how to propagate trace context, how to correlate signals. Placeholders <mainApp> and <device> resolve from project.json.

Rules

  • Logs are JSON with required fields timestamp, level, service, message — plus trace_id/span_id when tracing is active.
  • NEVER log PII, passwords, tokens, API keys, or secrets; review every context field.
  • High-frequency per-message events (several Hz per device) log at DEBUG, never INFO; INFO is for summaries and state changes.
  • Span names are meaningful with domain-specific attribute keys (device.id, not id); no unbounded span attributes (request bodies, user input).
  • Propagate trace context at every service boundary (WebSocket, HTTP) — a missing injection breaks the trace and loses correlation.
  • Logging and tracing only: metrics, dashboards, and alerts belong to monitoring; Helm health probes and log routing belong to the project's infra pack skills.

Resources

  • Read resources/logging-and-tracing-patterns.md when instrumenting — the log format, Python/TypeScript logger wrappers, OTel span code, context propagation, the five-step correlation path, inputs/outputs and length budgets.
  • Read resources/checks-and-failure-modes.md before returning or when something misbehaves — self-check list, common mistakes, escalation triggers, worked examples, failure modes, related skills.

How to use

What it does

Adds structured logging and OpenTelemetry tracing to a service and shows how to follow one request across services: which fields every log line carries, how to name spans, how to pass trace context over a boundary, and how to jump from a slow trace to the log lines explaining it.

When to use it

  • Adding logging to a service and wanting a JSON format a log backend can parse.
  • Instrumenting with OTel spans, or a trace breaks mid-flow and needs context propagation.
  • Going from a trace ID to the log lines for that same request.
  • Reviewing log statements for leaked personal data, tokens, or secrets. (Metric/dashboard/alert work starts with monitoring instead.)

Read the full file on GitHub · 59 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 59 lines · 41 tokens per session scan A 8f791273faab

Subscribe to this mod's changes

observability is a skill published in the GitHub repository atretyak1985/swarmery (6 stars, last pushed 2d ago), licensed Apache-2.0. It adds 41 tokens to every session and 764 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

debugging

This skill should be used when a test is failing inexplicably, when a runtime error appears in production, when a bug reproduces unpredictably, or when two or more prior fix attempts have failed. Provides a 4-phase systematic debugging workflow — investigate, analyze patterns, form hypothesis, fix with test — to…

fakoli/fakoli-plugins · 102 tokens

typescript-testing

Select and run TypeScript SDK verification for packages, examples, type checks, linting, builds, Vitest suites, Effect v4 CLI tests, and runtime E2E tests. Use when adding tests, diagnosing TypeScript CI, choosing a focused test command, validating TypeScript package changes, or writing/porting CLI tests against…

ComposioHQ/composio · 95 tokens

potpie-cli

Use when the task is centered on running, explaining, configuring, or troubleshooting the potpie command: doctor, login, pot management, source registration, search, graph workbench reads/writes, and pot scope behavior.

potpie-ai/potpie · 50 tokens

sonarqube-mcp

Provides SonarQube and SonarCloud integration patterns via the Model Context Protocol (MCP) server. Enables quality gate monitoring, issue discovery and triaging, pre-push code analysis, and rule education directly in the agent workflow. Use when the user wants to check quality gates, search for Sonar issues, analyze…

giuseppe-trisciuoglio/developer-kit · 127 tokens

stall-reset

Reset CocoStall counters after an operator-approved recovery.

Snowflake-Labs/cocoplus · 14 tokens

stall-thresholds

Show or update CocoStall thresholds.

Snowflake-Labs/cocoplus · 13 tokens