observability
Skill8 starsChanged 10 months agoApache-2.0View on GitHub
Add or change observability instrumentation (structured logging, OpenTelemetry traces/spans, RED metrics, dashboards, alerts). Use when adding logs/metrics/traces to code, defining telemetry field contracts, or building monitoring runbooks. NOT for diagnosing existing issues with existing telemetry (use debug); NOT for security-specific logging concerns (use security).
59 other projects use a version of this.
Adopted by
Most recently taken up by
- Mark-Life/agent-skillstheir own version, first seen Oct 5, 2026
- fmind/dottheir own version, first seen Oct 5, 2026
- domengabrovsek/agent-configtheir own version, first seen Oct 2, 2026
- aprameyak/coding-skillstheir own version, first seen Oct 2, 2026
- kapadias/nonnatheir own version, first seen Oct 1, 2026
- AsiaOstrich/universal-dev-standardstheir own version, first seen Sep 30, 2026
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.
itallstartedwithaideaSkillparallel-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
JohnJBorenSkillci-cd
CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies
Also in 8 projects that use this
AnthropicSkillincident-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
zebbernSkillcaching
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-foundationSkillarchitecture-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
mmondoraSkillfinops
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
Other versions59 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 59
- openai/plugins★ 7.3ksame name
- TheBeardedBearSAS/claude-craft★ 106same name
- proyecto26/system-design-skills★ 85same name
- AsiaOstrich/universal-dev-standards★ 76same name
- DevelopersGlobal/ai-agent-skills★ 69same name
- nahid-sparktales/agent-dispatcher★ 59same name
- opensearch-project/opensearch-agent-skills★ 56same name
- korchard333/claude-power-platform-community★ 49same name
- itallstartedwithaidea/agent-skills★ 39same name
- nimadorostkar/Claude-Skills-collection★ 28same name
49 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 12 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 42 edited versions we read keep these.
12
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
- Distinctive: line 33
Add guardrails (PII rules, label cardinality rules, sampling/log levels).
- Very specific: line 34
Verify correlation in a failure case (error log includes traceId.
- Distinctive: line 42
When context or time is constrained, these are the load-bearing steps:
- Distinctive: line 62
Start with the user-impact boundaries:
- Distinctive: line 90
Prefer stable, low-cardinality attributes.
- Distinctive: line 95
Add a few domain metrics that align with product intent (tables created, orders completed, etc.).
- Very specific: line 96
Avoid high-cardinality labels (no userId, no unbounded IDs).
- Distinctive: line 101
PII discipline: never log secrets; be explicit about what IDs are safe to log.
- Distinctive: line 102
Log once: avoid logging the same error in every layer.
- Distinctive: line 103
Sample intentionally: if you sample traces, keep error traces at higher priority.
- Distinctive: line 105
Decision linkage: no metric without a named decision and action threshold.
- Distinctive: line 116
If you use OpenTelemetry, you can enrich logs with the active span context:
- Distinctive: line 135
Prefer consumer-visible tests for behavior.
- Distinctive: line 147
When applying this skill, return:
“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.
Files
Observability (Instrumentation + Verification)
Overview
Make observability consistent and actionable: every boundary emits traces, metrics, and structured logs that correlate via IDs and stable fields.
This is intentionally opinionated: you should be able to answer “what happened?” with log → trace → metrics within a minute.
Inputs / Outputs
Inputs: Boundary code to instrument; service name; existing instrumentation (if any); correlation IDs in use.
Outputs: Instrumented code (traces, metrics, structured logs); field contract (stable keys); verification commands. Consumed by debug (for triage) and finish (for spot-check).
Workflow
- Name the decision this telemetry will inform (for example: keep current architecture, tune a timeout, roll out a migration).
- Define the unit of work (one trace): HTTP request, gRPC call, job run, queue message, WebSocket action.
- Define the measurement ladder:
- 3 leading indicators (move within days)
- 3 lagging outcomes (move within weeks/months)
- owner + review cadence + trigger for action
- Instrument end-to-end:
- traces: spans around the unit of work + key downstream calls
- metrics: RED for the boundary + a few domain metrics
- logs: structured JSON that includes correlation IDs
- Declare the field contract (stable keys).
- Add guardrails (PII rules, label cardinality rules, sampling/log levels).
- Verify correlation in a failure case (error log includes
traceId; trace contains downstream spans; metrics show error rate). - Define the operating ritual:
- where metrics/logs/traces are reviewed
- who decides and who executes follow-up
- what threshold triggers rollback/escalation
Minimum viable execution
When context or time is constrained, these are the load-bearing steps:
- Name the decision (step 1) — every metric needs a named decision it informs.
- Instrument RED at boundaries (step 4) — request count, error count, duration histogram per boundary.
- Add trace ID correlation to logs (step 4-5) — structured logs must include
traceIdfor log → trace linkage. - Verify correlation in a failure case (step 7) — error log includes traceId, trace shows downstream spans, metrics reflect the error.
Steps that can be cut under pressure: measurement ladder (step 3), domain-specific metrics, operating ritual (step 8).
Clarifying Questions
- What decision does this telemetry inform (keep current architecture, tune a timeout, roll out a migration, etc.)?
- What boundaries need instrumentation (HTTP handlers, gRPC methods, DB clients, consumers, jobs, WebSockets)?
- Is there existing telemetry infrastructure (OpenTelemetry, Prometheus, Grafana, Datadog, etc.)?
- What correlation IDs already exist in the system (traceId, requestId, sessionId)?
- Are there PII/privacy constraints on what can be logged or labeled?
- Who will review these metrics, and how often (owner + cadence)?
Chooser (What To Instrument)
Start with the user-impact boundaries:
- HTTP handlers: one root span per request + RED metrics per route template.
- gRPC methods: one root span per RPC + RED metrics per service/method.
- DB/cache clients: child spans per query/command; include target system and operation.
- Async jobs / schedulers: one root span per run; metrics for runs/success/failure/duration.
- Event consumers: one root span per message (or per batch); include message type and dedupe/idempotency metadata.
- WebSockets: session context + per-action spans; metrics for connections, messages, disconnect reasons.
Field Contract (Opinionated Defaults)
Logs (structured JSON)
Include these keys where applicable:
service: stable service/app identifierenv: environment (local/dev/staging/prod)traceId,spanId: correlation IDs (when tracing exists)requestId: if you use a separate request ID (often equalstraceId)op: operation name (route template, RPC method, job name)userId/actorId: only if policy allows; never as a metric labeldurationMs: for timing logs (prefer metrics for aggregates)err: structured error (type/code, message, stack for unknown failures)
Spans (traces)
- Name spans by operation (
HTTP GET /api/foo,grpc PlayerService/GetProfile,redis GET gateway:...). - Set attributes for routing and outcome (status code, error code, retry count).
- Prefer stable, low-cardinality attributes; avoid raw request bodies.
Metrics (RED + domain)
- RED for each boundary (per route/RPC): request count, error count, duration histogram.
- Add a few domain metrics that align with product intent (tables created, orders completed, etc.).
- Avoid high-cardinality labels (no
userId, no unbounded IDs); use logs/traces for per-entity detail.
Guardrails (Prevent “Telemetry Debt”)
- Cardinality discipline: metric label values must be bounded sets; default to route templates, not raw URLs.
- PII discipline: never log secrets; be explicit about what IDs are safe to log.
- Log once: avoid logging the same error in every layer; log at the boundary with enough context.
- Sample intentionally: if you sample traces, keep error traces at higher priority.
- Always end spans: long-running work should have explicit shutdown and cancellation semantics.
- Decision linkage: no metric without a named decision and action threshold.
Common failure modes
- Adds high-cardinality labels to metrics (user IDs, request bodies, unbounded strings) — causes metric explosion and storage/query issues.
- Instruments everything instead of focusing on RED metrics at boundaries — creates noise that makes real signals harder to find.
- Missing trace ID correlation — logs, traces, and metrics exist independently with no way to connect them for a single request.
- Defines metrics without a named decision, owner, or action threshold — the metric exists but nobody knows what to do when it changes.
Minimal TypeScript Snippet (Trace IDs in Logs)
If you use OpenTelemetry, you can enrich logs with the active span context:
import { context, trace } from '@opentelemetry/api';
export function getTraceLogFields(): { traceId?: string; spanId?: string } {
const span = trace.getSpan(context.active());
if (!span) return {};
const { traceId, spanId } = span.spanContext();
return { traceId, spanId };
}Testing / Verification
- Exercise a failing request and verify:
- the error log includes
traceId - the trace contains downstream span(s)
- boundary RED metrics reflect the error
- the error log includes
- Prefer consumer-visible tests for behavior; treat telemetry verification as a local/dev smoke check unless the project already has telemetry assertions.
References
- Deeper checklists:
references/checklists.md - TypeScript instrumentation snippets:
references/snippets/typescript.md - Related patterns:
Application metrics,Log aggregation,Distributed tracing,Health Check API,Audit logging,Exception tracking,Log deployments and changes - Boundary tests:
testing - Typed errors + explicit lifetimes:
typescript
Output Template
When applying this skill, return:
- The decision being informed and the measurement ladder (leading/lagging, owner, cadence, trigger).
- The instrumentation plan (which boundaries, what telemetry, what fields).
- The minimal code changes (where to start spans, where to log, what metrics to add).
- The verification steps (how to reproduce and correlate log → trace → metrics).
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
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.

