observability
Installation
SKILL.md
Observability
Discipline for production telemetry, structured logging, and distributed tracing at system boundaries.
When an application fails in production (such as intermittent timeouts, memory leaks, or third-party API rejections), bugs cannot be reproduced locally without runtime operational data. Relying on unstructured console.error calls produces unsearchable log dumps that lack request context, entity identifiers, and execution duration.
observability integrates telemetry into codebase-design and /implement.
The Four Rules of Observability
1. Instrument at Seams and I/O Boundaries
Telemetry belongs at the edges and seams of your system, never scattered through pure domain functions:
- Where to instrument: HTTP handlers, background job processors, database repository adapters, queue listeners, and external API clients.
- Where to keep clean: Pure mathematical calculations, domain entity validation, and in-memory business algorithms should remain free of logging clutter.