observability

observability is a skill for Claude Code, Codex from int2t05/engineering-skills. It costs 63 tokens per session (1,687 once invoked), scanned A, original, MIT.

Production observability workflow for adding logs, metrics, alerts, and other signals that show what software is doing while it runs.

In plain words
What is it for?
Use it when adding a production feature, external integration, queue, retry, or service, or when defining monitoring and alerting for runtime behavior.
Why use it?
It helps engineers answer operational questions and investigate failures without reconstructing events from incomplete evidence.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the engineering-skills plugin — 48 skills, 1 agent, 1 hook shipped together

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.

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

Made for: Claude Code, Codex.

Or install engineering-skills, the plugin that ships this one along with the rest of its 48 skills, 1 agent, 1 hook.

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/int2t05/engineering-skills/observability.svg)](https://agentmods.dev/skills/int2t05/engineering-skills/observability)
Your own site
<a href="https://agentmods.dev/skills/int2t05/engineering-skills/observability"><img src="https://agentmods.dev/badge/skills/int2t05/engineering-skills/observability.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,687 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00063 $0.01687
Opus 5 $0.00032 $0.00843
Sonnet 5 $0.00013 $0.00337
Haiku 4.5 $0.00006 $0.00169

Measured 4d ago against content hash 4d37100d40d9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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.

skills/09-operate/observability/SKILL.md · 101 lines

How it starts

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

Observability and Instrumentation

Code you can't observe is code you can't operate. Instrumentation is written alongside the feature, the same way tests are — if a feature ships without telemetry, the first user-reported bug becomes archaeology instead of a query.

When to use

  • Building a feature that will run in production (new service, endpoint, background job, external integration).
  • A production incident took too long to diagnose because the system couldn't tell what happened.
  • Adding or reviewing alerting rules.
  • Reviewing a PR that adds I/O, retries, queues, or cross-service calls.

Not for: Diagnosing a live failure (use debugging) or profiling measured slowness (use performance). Observability is what makes those skills fast next time.

Steps

1. Define "working" before instrumenting

Write down 2–4 questions an on-call engineer will ask about this feature. Every signal you add must answer one of them — if you can't name the questions, you'll log everything and learn nothing.

If the service has no SLO, define one before setting alert thresholds. An SLO turns "is it healthy?" from a feeling into a number — see references/slo-methodology.md for SLI definition, error budgets, and burn-rate alerting.

2. Pick the right signal per question

  • Structured log — "what happened in this specific case?" (per-event; grows with traffic)
  • Metric — "how often / how fast, in aggregate?" (fixed per series; cheap to query)
  • Trace — "where did time go across services?" (per-request; usually sampled)

Rule of thumb: metrics tell you that something is wrong, traces tell you where, logs tell you why.

3. Structured logging

Log events, not prose. Every line is a JSON object with a stable event name and machine-readable fields.

// BAD: string interpolation — unqueryable, inconsistent
logger.info(`Payment ${id} failed for user ${userId} after ${n} retries`);

// GOOD: stable event name + structured fields
logger.warn({ event: 'payment_failed', paymentId: id, provider: 'stripe',
              errorCode: err.code, attempt: n }, 'payment failed');

Read the full file on GitHub · 101 lines

Files

What ships with it

5 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. 4d ago First seen · 101 lines · 63 tokens per session scan A 4d37100d40d9

Subscribe to this mod's changes

observability is a skill published in the GitHub repository int2t05/engineering-skills (3 stars, last pushed 3d ago), licensed MIT. It adds 63 tokens to every session and 1,687 once invoked, about $0.0003 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-08-31.