agentleFS
aethroxaethrox/doctrine/skills/observability/SKILL.md

observability

Skill18 starsChanged 3 months agoMITView on GitHub

Discipline for making a service's health answerable without reading its code, structured logging, the four golden signals (latency, errors, traffic, saturation), and an SLI/SLO/error-budget definition with alerts that link a runbook. Use when adding logging to a service, instrumenting metrics or tracing, defining what "healthy" means for a service, setting up alerts, or when the user asks how to monitor, debug in production, or know if something is broken.

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 9 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

  • 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

  • cryptofish7Skill

    ci-cd-pipeline

    Analyze a repo and maintain its GitHub Actions CI/CD pipeline. Detects language, tooling, test frameworks, Docker, and deploy targets, then adds or removes workflow actions to match the project's current state. Use when the user asks to "add CI/CD", "update CI", "review pipeline", "set up GitHub Actions", "audit CI", "improve CI/CD", or any request about CI/CD pipelines, GitHub Actions workflows, or continuous integration.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 42 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every log line is a structured record (JSON or the platform's structured format), not a hand-built string.

    line 12
  2. Distinctive:

    Every log line inside a request/job carries a correlation ID (trace ID / request ID) so a slow request, its trace, and its log lines can be …

    line 13
  3. Very specific:

    Never log a secret, full payload, or PII field directly.

    line 15
  4. Distinctive:

    Every service exposes these four, regardless of what else it tracks:

    line 20
  5. Distinctive:

    If a service cannot state its SLI and SLO in one sentence, it is not ready to call itself monitored.

    line 36
  6. Distinctive:

    Every alert that can page a human links a runbook: what this alert means, what to check first, what mitigates it, when to escalate.

    line 41

“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

A service is not done until someone who has never read its code can answer "is it healthy right now" from its telemetry alone. That means structured logs that a platform can index and correlate, the four golden signals tracked per service, and an explicit SLO with an error budget, not "we'll notice if it breaks."

Phase 1: Structured logging

  • Every log line is a structured record (JSON or the platform's structured format), not a hand-built string; fields are queryable and indexable; a concatenated string is only greppable.
  • Every log line inside a request/job carries a correlation ID (trace ID / request ID) so a slow request, its trace, and its log lines can be joined without copy-pasting timestamps.
  • Log levels mean something consistent across the codebase: error = needs human attention, warn = degraded but self-recovering, info = significant state change (request completed, job started), debug = development-time detail, off by default in production.
  • Never log a secret, full payload, or PII field directly; log its presence or a redacted/hashed form (same redaction discipline as diagnosing-bugs and secure-coding).
  • Log the outcome, not just the attempt: "started X" without a matching "X succeeded / X failed (reason)" leaves a gap no dashboard can fill in later.

Phase 2: The four golden signals

Every service exposes these four, regardless of what else it tracks:

SignalWhat it measuresTypical source
Latencytime to serve a request: track success and failure latency separately, a fast failure skews the average down and hides a real slowdownrequest duration histogram
Errorsrate of failed requests (5xx, exceptions, failed jobs)error counter / request outcome
Trafficdemand on the system (requests/sec, queue depth, jobs/min)request or throughput counter
Saturationhow full the constrained resource is (CPU, memory, connection pool, queue length)resource utilization gauge

For an API or service boundary specifically, the same four collapse into the RED method (Rate, Errors, Duration) as the minimum viable dashboard for that endpoint.

Phase 3: SLI, SLO, error budget

  • SLI (Service Level Indicator): the specific, measurable signal: "proportion of requests completed in under 300ms", "proportion of requests returning non-5xx." Pick SLIs from Phase 2's signals; don't invent a new metric nobody dashboards.
  • SLO (Service Level Objective): a target on that SLI over a window: "99.9% of requests succeed, measured over 30 days." The number is a product/business decision (how much unreliability users tolerate), not a technical maximum.
  • Error budget: 1 − SLO over the window. It is spent by every failure, deploy-caused or not. A team with budget left ships faster; a team that has burned its budget freezes risky changes until it recovers. This is what turns "reliability" from a vague goal into a concrete, checkable number that also unblocks shipping speed when things are healthy.
  • If a service cannot state its SLI and SLO in one sentence, it is not ready to call itself monitored; "we have dashboards" is not the same as "we know what healthy means."

Phase 4: Alerting and runbooks

  • Alert on symptom, not cause: alert when the SLO is at risk (error budget burn rate, latency SLI breach) rather than on every underlying anomaly; cause-based alerts multiply noise and train people to ignore pages.
  • Every alert that can page a human links a runbook: what this alert means, what to check first, what mitigates it, when to escalate. An alert with no runbook is a 3am guessing game.
  • Tune alert thresholds against the error budget's burn rate, not a fixed absolute number picked once and forgotten; a slow burn over days and a fast burn over minutes are different incidents needing different urgency.

Done when

  • Logs are structured, correlated by request/trace ID, and carry no secret or raw PII.
  • The service exposes latency (success/failure split), errors, traffic, and saturation.
  • The service has a stated SLI and SLO, and the error budget is a number someone could quote.
  • Every human-paging alert links a runbook, and thresholds are tied to error-budget burn rate, not an arbitrary constant.
  • Generated prose uses commas, colons, periods, or reworded sentences instead of em dashes.

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.