agentleFS
shinzoxDshinzoxD/knackbox/skills/coding/logging-observability/SKILL.md

logging-observability

Skill0 starsChanged 5 months agoApache-2.0View on GitHub

Design logging, metrics, and tracing that operators can use under

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 2

    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:

    If you cannot diagnose it at 3 a.m., you did not finish the feature.

    line 17
  2. Distinctive:

    Never log passwords, tokens, raw PII, or full payment payloads.

    line 63
  3. Very specific:

    Prefer logging errors with stable error_code over unique essay messages only.

    line 66

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

Logging & Observability

If you cannot diagnose it at 3 a.m., you did not finish the feature. Prefer high-cardinality-careful metrics, structured logs, and traces that connect them.

Three pillars (practical)

SignalUse for
MetricsSLIs, alerts, capacity
Logsrich context on discrete events
Traceslatency across services

Workflow

  1. Define user journeys and SLIs (availability, latency, error rate).
  2. Identify golden signals per service.
  3. Specify structured log fields (request_id, tenant, error codes) — never secrets.
  4. Trace critical paths; propagation headers.
  5. Alert on symptoms (SLO burn) more than raw CPU when possible.
  6. Dashboard sketch: RED/USE + business KPI.

Output format

## Observability plan: <service>

### SLIs / SLOs
…

### Metrics
…

### Logs (fields & levels)
…

### Traces
…

### Alerts
…

### Privacy / cardinality risks
…

Rules

  1. Never log passwords, tokens, raw PII, or full payment payloads.
  2. Bound cardinality (no unbounded user IDs as metric labels).
  3. Correlate with a request/trace ID across services.
  4. Prefer logging errors with stable error_code over unique essay messages only.
  5. Alerts need runbook links and human-actionable thresholds.
  6. Sampling traces is fine; always sample errors.

Edge cases

  • Batch jobs: progress metrics, last success timestamp.
  • Mobile/clients: privacy and volume constraints.
  • Multi-tenant: tenant in logs/metrics with care for isolation and cardinality.

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.