observability

observability is a skill for Claude Code, Codex from byerlikaya/claude-starter-kit. It costs 62 tokens per session (877 once invoked), scanned A, original, MIT.

A production troubleshooting guide based on logs, metrics, and traces. Logs record events, metrics show changing numbers, and traces follow a request across services.

In plain words
What is it for?
Use it when adding logging or metrics, tracing requests, investigating errors, or checking that logs do not expose personal data or secrets.
Why use it?
It makes it easier to determine what happened, where it happened, and why during a production problem.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it when adding logging or metrics, tracing requests, investigating errors, or checking that logs do not expose personal data or secrets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/byerlikaya/claude-starter-kit/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 byerlikaya/claude-starter-kit --skill observability
Clone the repo
git clone --depth 1 https://github.com/byerlikaya/claude-starter-kit

Made for: Claude Code, Codex.

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/byerlikaya/claude-starter-kit/observability/github.svg)](https://agentmods.dev/skills/byerlikaya/claude-starter-kit/observability)
Your own site
<a href="https://agentmods.dev/skills/byerlikaya/claude-starter-kit/observability"><img src="https://agentmods.dev/badge/skills/byerlikaya/claude-starter-kit/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/byerlikaya/claude-starter-kit/observability"><img src="https://agentmods.dev/badge/skills/byerlikaya/claude-starter-kit/observability.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 877 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.00062 $0.00877
Opus 5 $0.00031 $0.00439
Sonnet 5 $0.00012 $0.00175
Haiku 4.5 $0.00006 $0.00088

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

claude-starter/skills/observability/SKILL.md · 53 lines

How it starts

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

Observability

Trigger phrases: "observability", "structured logging", "structured log", "add a trace", "add a metric", "correlation id", "add logging"

Goal: to be able to answer "what happened, where, why" during a production incident by looking at the logs. It is stack-agnostic; when you need a framework-specific library/format, do a web search.

Three signals

  • Log — event record (structured/JSON, leveled).
  • Metric — numeric time series (request count, latency, error rate, resource usage).
  • Trace — a request's journey across services (spans + correlation id).

Checklist

  • Logs are structured (JSON/key-value), not string interpolation
  • Every log line carries a correlation id (request/trace id)
  • Levels are correct: the DEBUG/INFO/WARN/ERROR distinction is meaningful
  • No PII/secret is logged (password, token, card, national/ID number, email body)
  • Error logs carry context (input summary, user/resource id — not PII); the stack trace does not leak to the user
  • Critical business metric + infrastructure metric are emitted (where applicable)
  • The correlation id is propagated across service-to-service calls (header/propagation)

How

  1. Structured logger — set up/use one whose output is machine-readable (JSON). Search for the library the framework recommends.
  2. Correlation id: generate it at the entry point (HTTP middleware / message consumer) or take it from the incoming X-Request-Id/trace header; put it in the log context; propagate it to downstream calls.
  3. Level discipline: INFO = business event, WARN = expected-but-noteworthy, ERROR = needs intervention. DEBUG is off/sampled in production.
  4. Context fields: event, correlation_id, user_id (not PII, an opaque id), duration_ms, outcome. Do not embed them in free text.
  5. Metrics: at minimum RED (Rate, Errors, Duration) or USE; plus business-critical counters. Search for the framework's metrics library.
  6. Trace (in a distributed system): start/end spans, bind the correlation id to the trace id.

Read the full file on GitHub · 53 lines

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 · 53 lines · 62 tokens per session scan A fc4af1c0fc2a

Subscribe to this mod's changes

observability is a skill published in the GitHub repository byerlikaya/claude-starter-kit (22 stars, last pushed today), licensed MIT. It adds 62 tokens to every session and 877 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-30.

Related

Other skills, from other repositories

manage-skills

A maintenance workflow for checking whether project verification skills still cover the code and rules that changed during a session.

sangrokjung/claude-forge · 54 tokens

review-loop

Run the adversarial verification loop — implement, then hand the change to a fresh checker that did not write it, fix what it finds, and re-dispatch until APPROVE. Use before claiming any behavioural change is done, and on requests like "review loop", "adversarial review", "independent review", "get this verified"…

sangrokjung/claude-forge · 100 tokens

systematic-debugging

Structured debugging methodology — use before proposing fixes for any error or failure. Covers: code bugs, build errors, deploy failures, config conflicts, dependency issues, infra problems. Also use when previous fix attempts failed or root cause is unclear.

sangrokjung/claude-forge · 53 tokens

debug-systematic

Systematic 4-phase debugging methodology for complex, intermittent, or mysterious issues. Use when investigating bugs, race conditions, or unexplained failures.

travisjneuman/.claude · 33 tokens

debugging-strategies

Master systematic debugging techniques, profiling tools, and root cause analysis to efficiently track down bugs across any codebase or technology stack. Use when investigating bugs, performance issues, or unexpected behavior.

sangrokjung/claude-forge · 43 tokens

diagnose

Disciplined diagnosis loop for hard bugs and performance regressions. Reproduce → minimise → hypothesise → instrument → fix → regression-test. Use when user says "diagnose this" / "debug this", reports a bug, says something is broken/throwing/failing, or describes a performance regression.

stevesolun/ctx · 66 tokens