agentleFS
HaiTrieu0902HaiTrieu0902/agent-skills-kit/skills/observability/SKILL.md

observability

Skill0 starsChanged 8 months agoMITView on GitHub

Production observability — structured logging, metrics, distributed tracing (OpenTelemetry), SLOs, and actionable alerting. Use when instrumenting a service, debugging production behavior, or setting up monitoring.

59 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use parallel-agent-orchestration, ci-cd and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • itallstartedwithaideaSkill

    parallel-agent-orchestration

    Parallel Agent Orchestration is the discipline of dispatching, coordinating, and aggregating results from multiple concurrent subagents to dramatically accelerate complex tasks.

    Also in 3 projects that use this

  • JohnJBorenSkill

    ci-cd

    CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies

    Also in 8 projects that use this

  • AnthropicSkill

    incident-response

    Run an incident response workflow — triage, communicate, and write postmortem. Trigger with "we have an incident", "production is down", an alert that needs severity assessment, a status update mid-incident, or when writing a blameless postmortem after resolution.

    Also in 16 projects that use this

  • zebbernSkill

    caching

    Caching strategies — invalidation, TTL guidelines, cache keys, cache layers, and when not to cache. Use when implementing or reviewing caching logic.

    Also in 3 projects that use this

  • terrene-foundationSkill

    architecture-decisions

    Architecture decision guides for Kailash SDK including framework selection (Core SDK vs DataFlow vs Nexus vs Kaizen), runtime selection (Async vs Sync), database selection (PostgreSQL vs SQLite), node selection, and test tier selection. Use when asking about 'which framework', 'choose framework', 'which runtime', 'which database', 'which node', 'architecture decision', 'when to use', 'Core SDK vs DataFlow', 'PostgreSQL vs SQLite', 'AsyncLocalRuntime vs LocalRuntime', or 'test tier selection'.

    Also in 3 projects that use this

  • mmondoraSkill

    finops

    Cloud cost management as an architectural discipline. Unit economics, right-sizing, GCP free tier optimization, budget alerts, serverless-first. Use when making infrastructure decisions, estimating costs, or optimizing cloud spending.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 42 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never log secrets or PII; redact at the logging boundary.

    line 33
  2. Very specific:

    Prefer histograms for latency (so you get p50/p95/p99), not averages — averages hide tail pain.

    line 42
  3. Very specific:

    Use OpenTelemetry — a vendor-neutral standard for traces/metrics/logs, so you aren't locked to one backend.

    line 46
  4. Distinctive:

    Every alert must be actionable and link to a runbook.

    line 54

“Common” is measured: kept by at least 6 in 10 of the 42 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Observability

Logs tell you what happened, metrics tell you how much, traces tell you where.

Overview

Observability is the ability to ask new questions about a running system without shipping new code. You get it by instrumenting for the three signals and correlating them. Monitoring watches known failures; observability lets you investigate unknown ones.

The Three Signals

SignalAnswersShape
Logs"What exactly happened in this request?"Structured (JSON) events with context
Metrics"How many / how fast, over time?"Cheap numeric aggregates, time series
Traces"Where did the time/failure go across services?"Spans linked by a trace ID

Correlate them: put the trace ID in logs and metrics so you can pivot between signals for one request.

Structured Logging

  • Emit JSON, not free text — machine-queryable fields, not string-grepping.
  • Attach context to every line: request id, trace id, user/tenant, operation.
  • Log decisions and errors, not noise. One good event beats ten redundant ones.
  • Never log secrets or PII; redact at the logging boundary.

Metrics: RED & USE

MethodForTrack
REDRequest-driven servicesRate, Errors, Duration
USEResources (CPU, disk, queues)Utilization, Saturation, Errors

Prefer histograms for latency (so you get p50/p95/p99), not averages — averages hide tail pain. Watch cardinality: high-cardinality labels (user id, url with ids) explode metric cost — keep them in logs/traces instead.

Tracing

  • Use OpenTelemetry — a vendor-neutral standard for traces/metrics/logs, so you aren't locked to one backend.
  • Propagate context across service boundaries so a request is one connected trace.
  • Instrument the boundaries that matter: inbound handlers, outbound calls, DB queries, queue work.

SLOs & Alerting

  • Define SLIs (e.g. % of requests < 300ms) and an SLO target (e.g. 99.9%); the gap is your error budget.
  • Alert on symptoms users feel (error rate, latency, budget burn) — not on causes (high CPU) that may not affect anyone.
  • Every alert must be actionable and link to a runbook. Noisy alerts get ignored, then real ones get missed.

Anti-Patterns

❌✅
print / unstructured logsStructured JSON with trace/request ids
Averages for latencyHistograms → p95/p99
Alert on CPU/memory directlyAlert on user-facing symptoms + SLO burn
High-cardinality metric labelsKeep ids in logs/traces, not metric dimensions
Vendor-locked instrumentationOpenTelemetry, swap backends freely
Logging secrets/PIIRedact at the boundary

Instrument for the question you'll wish you could ask at 3 a.m.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.