agentleFS
albkuealbkue/my-skill/skills/observability/SKILL.md

observability

Skill0 starsChanged 32 days agoMITView on GitHub

Instrument and monitor running backend services for production readiness. Use when adding or reviewing logs, metrics, dashboards, alerts, SLOs/error budgets, health checks, tracing, or day-2 runbooks for a service - e.g. "what metrics should this Kafka consumer expose", "design alerts for our orders API", "is this SLO healthy", "write a runbook for consumer lag". Do NOT use for pre-launch deployment planning (backend-deployment) or root-cause analysis of an active incident (backend-debugging).

103 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use gitops, background-jobs 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.
  • kcns008Skill

    gitops

    GitOps Agent (Flow) — manages ArgoCD applications, Helm charts, Kustomize overlays, deployment strategies (canary, blue-green, rolling), multi-cluster GitOps, and drift detection for Kubernetes and OpenShift clusters.

    Also in 5 projects that use this

  • YepAPISkill

    background-jobs

    Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

    Also in 5 projects that use this

  • Mushfiqur-Rahman-RobinSkill

    rag-systems

    Best practices for building Retrieval-Augmented Generation systems — chunking, embedding, hybrid retrieval, reranking, indexing, caching, evaluation, observability — plus a catalog of RAG patterns and when each applies.

    Also in 3 projects that use this

  • ffsshhttiikkSkill

    chaos-engineering

    Resilience testing through controlled experiments

    Also in 6 projects that use this

  • jholhewresSkill

    dora-metrics

    Calculate DORA metrics from git + deploy logs

    Also in 3 projects that use this

  • wpankSkill

    caching

    Caching strategies, invalidation, eviction policies, HTTP caching, distributed caching, and anti-patterns. Use when designing cache layers, choosing eviction policies, debugging stale data, or optimizing read-heavy workloads.

    Also in 6 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 85 edited versions we read keep these.

  • 5

    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. Very specific:

    Read the my-skill plugin's docs/workflow-profile.md.

    line 32
  2. Distinctive:

    Ask for tooling, environment, and past incident history.

    line 33
  3. Distinctive:

    Write dashboard design: one row per user journey, key metric → supporting metric.

    line 36
  4. Very specific:

    Add a logging hygiene pass: log at the moment you handle or fail, include request/consumer/correlation IDs, never log secrets or PII raw.

    line 40
  5. Distinctive:

    Never invent the monitoring stack, cloud provider, or alert channel.

    line 66
  6. Distinctive:

    Never log or alert with secrets, tokens, or PII content.

    line 67
  7. Distinctive:

    Keep runbook actions production-safe: read-only checks first, reversible actions only.

    line 69

“Common” is measured: kept by at least 6 in 10 of the 85 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

Purpose

Make production services observable day-2: the right metrics/logs/traces for the actual failure modes, dashboards a teammate can read, alerts that select actionable signal from noise, SLOs that reflect user experience, and runbooks that turn an alert into a first action.

When to use

  • "What should this service/consumer/endpoint be monitored for?"
  • Adding or improving logging (levels, correlation/request IDs, redaction) in a service.
  • Designing dashboards, alerts, paging thresholds, or SLOs/error budgets.
  • Writing or reviewing a runbook entry for a known failure mode (alert → check → action).
  • Health-check and readiness/liveness design for deploys.

When not to use

  • Something is broken right now → backend-debugging.
  • Planning how a change ships → backend-deployment (its verification/monitoring section stays there for that change).
  • Reviewing code quality → backend-code-review.

Context intake

  • Monitoring stack, alert channel, and on-call reality (detect first; never invent the tooling). Detect or confirm before starting (ask at most what is genuinely needed):
  • Which context: one of the contexts defined in docs/workflow-profile.md ("Contexts")? Read docs/active-context.md first: if Current names a context set within the last day, use it, apply its rules, and do not ask. Otherwise fall back to the active roles and projects in docs/workflow-profile.md; ask when it could be two different contexts.
  • What is the desired output: a plan, code, a review, tests, documentation, a deployment plan, or research notes? Confirm if ambiguous.

Workflow

  1. Read the my-skill plugin's docs/workflow-profile.md. If it is missing, contradicts this request, or was last updated more than ~3 months ago, confirm or update it with Sothy before applying any role, project, or stack assumptions.
  2. Ask for tooling, environment, and past incident history; never assume a monitoring stack.
  3. Inventory the user journey first: list the 2–4 golden signals per surface (latency p50/p95/p99, traffic/error rate, saturation) and the business metrics behind them.
  4. Map each to concrete instrumentation: metric names/labels (beware high-cardinality explosion), log line + level, trace spans, Kafka consumer lag / offset metrics, DB pool + Redis hit-rate metrics.
  5. Write dashboard design: one row per user journey, key metric → supporting metric; mark which panel answers "is the user OK" vs "is the component OK".
  6. Design alerts with: symptom-based triggers (user-visible) over cause-based ones, concrete threshold + for duration, severity/page vs ticket, and the linked first-runbook-questions.
  7. SLOs target a minimal viable set: pick 1–2 user-journey SLOs, compute error budget, define the review cadence; skip SLO theater for small teams unless asked.
  8. Produce the runbook table: alert → meaning → first three checks (concrete queries/commands) → likely actions → escalation.
  9. Add a logging hygiene pass: log at the moment you handle or fail, include request/consumer/correlation IDs, never log secrets or PII raw.

Adaptation rules

  • Instrumentation план adapts per profile stack: Spring Micrometer, FastAPI metrics, Kafka lag monitoring - names and labels follow the actual tooling.
  • Alert volume scales to team reality: no paging targets for hours nobody is on-call.
  • Same golden-signals-first discipline for any service type (API, consumer, pipeline).

Inputs needed

  • The service/component and what user-facing thing it protects (orders, search, exports).
  • Stack and where it runs (Spring Boot/FastAPI/Go; Docker/K8s/VM; PostgreSQL/Redis/Kafka).
  • Existing tooling if any: Prometheus/Grafana, CloudWatch, Datadog, ELK — never invent their tooling; ask.
  • Known failure modes or past incidents worth guarding against.
  • Who is paged (on-call reality: is anyone truly on-call at a startup/small team?).

Output contract

  • Service surface — user journeys and what protects them.
  • Metrics/instrumentation plan — service → tools with names and labels (flag cardinality risk).
  • Dashboard wire-up — described per row: journey, panels, layout logic.
  • Alert catalog — table: alert, metric + threshold + duration, severity, action link.
  • SLO proposal — journeys, targets, error budget, review cadence (only when asked or applicable).
  • Runbook draft — table of alert → meaning → checks → actions → escalation.
  • Gaps and risks — blind spots that remain (e.g., no trace stack, sampling too thin).

Rules and constraints

  • Symptom alerts (user-visible pain) come before cause alerts (CPU, restarts); if list gets long, cut, don't add noise.
  • Never invent the monitoring stack, cloud provider, or alert channel. Ask if unknown; propose candidates only after they answer.
  • Never log or alert with secrets, tokens, or PII content; redact or hash identifiers.
  • SLOs are commitments made by a team — recommend only what Sothy's team can realistically honor; question paging for hours no one is on-call.
  • Keep runbook actions production-safe: read-only checks first, reversible actions only.
  • One responsibility = observability; don't re-derive the fix (that's backend-debugging) or the ship plan (that's backend-deployment).

Quality checklist

  • Alerts are symptom-based, thresholded, and actionable.
  • Metric labels avoid cardinality explosion.
  • Runbook covers: alert -> meaning -> first checks -> action -> escalation.
  • Monitoring stack confirmed with Sothy; remaining blind spots listed.

Examples

  1. Request: "What metrics and alerts do we need for our new Kafka consumer writing to Postgres?" Behavior: Golden signals for the write path (consumer lag, poll-vs-process rate, DB insert latency/error rate, DLQ offset growth), concrete metric names with labels, lag-based page alert with for window, dashboard rows, runbook table starting with kafka-consumer-groups --describe. Ask which alerting tool they use before writing config.
  2. Request: "Write a runbook for the 500s-spike alert." Behavior: One page: what it means (likely causes in one line), first three read-only checks with exact queries/commands, decision tree (new deploy → rollback; DB errors → check pool/lock metrics), escalation owner placeholder. Output applies this skill's runbook-table format.

Lessons learned

Record improvements after real usage (maintained via continuous-improvement). Format:

  • <date> -- <what happened> -> <change made to this SKILL.md>

(empty -- entries appear after real usage)

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.