🔒 Prerequisites (Mandatory)
This skill operates WITHIN the SDD framework. Before starting any technical execution:
0. Mode Check: Verify .hub-mode and apply token-distiller guidelines.
- Context Check: Rehydrate state by reading
.specs/project/STATE.md, .specs/project/MEMORY.md, and .specs/project/LEARNINGS.md.
- Spec Check: Does the
spec.md file exist with clear requirements and Acceptance Criteria (ACs)? (BDD mandatory for Medium+).
- Plan Check: Does the
plan.md file define the architecture, schemas, and include Mermaid diagrams?
- Contract Check: Was the
contract.md file established with validation sensors?
- Task Check: Is the task list in
.specs/project/tasks.md (or feature-specific) detailed and atomized?
Observability Expert
"If you can't measure it, you can't manage it." — Peter Drucker. The focus here is on transforming raw data into actionable insights and resilient systems.
Goal
Empower the agent to design and implement high-performance observability ecosystems using the pillars of Logs, Metrics, and Tracing. The skill ensures that the system is transparent for the operations team, allowing rapid failure detection, root cause analysis, and evolution based on real usage data.
Workflow (4 Phases)
Phase 1: INSTRUMENT — Coding for Visibility
- Map Context: Identify crucial metadata (TraceID, UserID, TenantID) that must accompany each operation.
- Logging Design: Apply the Structured Logging (JSON) standard at critical code points (API entry, queries, errors).
- SDK Setup: Suggest the integration of OpenTelemetry SDKs for automatic capture of spans and system metrics.
Phase 2: COLLECT — Telemetry Orchestration
- Data Pipeline: Design data flow from application to storage (e.g., OTel Collector -> Prometheus/Loki).
- Sampling Strategy: Define sampling strategies for traces to balance cost and visibility at high scale.
- Metrics Export: Configure export of standard metrics (RED: Rate, Errors, Duration) and business metrics.
Phase 3: VISUALIZE — Dashboards & Insights
- Dashboard Layout: Design panels that tell a story (from macro to micro).
- SLI/SLO Mapping: Translate business requirements into monitorable technical indicators.
- Correlation: Ensure that by clicking an error in the log, it's possible to jump directly to the related trace.
Phase 4: REACT — Incident and Alert Management
- Alerting Rules: Define alerts based on Error Budget burn rate instead of simple static thresholds.
- Actionable Alerts: Ensure every alert has a link to a fix playbook or diagnostic dashboard.
- Feedback Loop: Use performance data to suggest code or infrastructure optimizations.
Quality Rules
- Structured-First: Every production log MUST be emitted in structured format (JSON).
- Vendor Agnostic: Prefer open standards (OpenTelemetry, Prometheus) over proprietary cloud solutions.
- Trace Propagation: Every call between services must propagate the trace context header (W3C Trace Context).
- Actionable Only: Do not create alerts that do not require immediate action; avoid alert fatigue.
Prohibited
- NEVER log sensitive data (PII, passwords, tokens) in plain text.
- NEVER use pure strings for system logs; use fixed keys to facilitate search.
- NEVER ignore telemetry storage cost; use sampling when necessary.
- NEVER consider a system "production-ready" without a defined and monitored SLO.
Reference Documentation
This skill includes detailed reference documentation:
- Structured Logging — JSON patterns and contextual metadata.
- Metrics & Tracing — Practical guide to OpenTelemetry and Prometheus.
- SLIs, SLOs & Alerting — Data-driven reliability methodology.
- Framework Monitoring — Specific monitoring for FastAPI and Django (Prometheus/Grafana).
Output Structure
Execution of this skill results in the following standardized artifacts:
| Artifact |
Format |
Description |
| Logging Schema |
.json |
Definition of fields and types for structured logs. |
| OTel Blueprint |
Mermaid |
Diagram of context collection and propagation pipeline. |
| SLO Report |
.md |
Formal definition of indicators, objectives, and error budgets. |
| Alerting Policy |
.yaml |
Alerting rules and notification guidelines. |
version: "2.3.0"
feature_id: "HUB-ALIGNMENT"
phase: "VERIFY"
status: "COMPLETED"
last_update: "2026-05-06T13:16:19.375595Z"
evidence_checksum: "8e52f6a"
1---2name: observability-expert3description: Skill for SRE and Observability specialist. Focuses on Structured Logs, OpenTelemetry, SLIs/SLOs, and proactive monitoring to ensure system resilience.4---56## 🔒 Prerequisites (Mandatory)7This skill operates WITHIN the **SDD** framework. Before starting any technical execution:80. **Mode Check**: Verify `.hub-mode` and apply `token-distiller` guidelines.91. **Context Check**: Rehydrate state by reading `.specs/project/STATE.md`, `.specs/project/MEMORY.md`, and `.specs/project/LEARNINGS.md`.102. **Spec Check**: Does the `spec.md` file exist with clear requirements and Acceptance Criteria (ACs)? (BDD mandatory for Medium+).113. **Plan Check**: Does the `plan.md` file define the architecture, schemas, and include **Mermaid** diagrams?124. **Contract Check**: Was the `contract.md` file established with validation sensors?135. **Task Check**: Is the task list in `.specs/project/tasks.md` (or feature-specific) detailed and atomized?1415---16# Observability Expert1718> "If you can't measure it, you can't manage it." — Peter Drucker. The focus here is on transforming raw data into actionable insights and resilient systems.1920---2122## Goal2324Empower the agent to design and implement high-performance observability ecosystems using the pillars of **Logs, Metrics, and Tracing**. The skill ensures that the system is transparent for the operations team, allowing rapid failure detection, root cause analysis, and evolution based on real usage data.2526---2728## Workflow (4 Phases)2930### Phase 1: INSTRUMENT — Coding for Visibility311. **Map Context**: Identify crucial metadata (TraceID, UserID, TenantID) that must accompany each operation.322. **Logging Design**: Apply the **Structured Logging** (JSON) standard at critical code points (API entry, queries, errors).333. **SDK Setup**: Suggest the integration of **OpenTelemetry** SDKs for automatic capture of spans and system metrics.3435### Phase 2: COLLECT — Telemetry Orchestration361. **Data Pipeline**: Design data flow from application to storage (e.g., OTel Collector -> Prometheus/Loki).372. **Sampling Strategy**: Define sampling strategies for traces to balance cost and visibility at high scale.383. **Metrics Export**: Configure export of standard metrics (RED: Rate, Errors, Duration) and business metrics.3940### Phase 3: VISUALIZE — Dashboards & Insights411. **Dashboard Layout**: Design panels that tell a story (from macro to micro).422. **SLI/SLO Mapping**: Translate business requirements into monitorable technical indicators.433. **Correlation**: Ensure that by clicking an error in the log, it's possible to jump directly to the related trace.4445### Phase 4: REACT — Incident and Alert Management461. **Alerting Rules**: Define alerts based on **Error Budget** burn rate instead of simple static thresholds.472. **Actionable Alerts**: Ensure every alert has a link to a fix playbook or diagnostic dashboard.483. **Feedback Loop**: Use performance data to suggest code or infrastructure optimizations.4950---5152## Quality Rules5354- **Structured-First**: Every production log **MUST** be emitted in structured format (JSON).55- **Vendor Agnostic**: Prefer open standards (**OpenTelemetry**, **Prometheus**) over proprietary cloud solutions.56- **Trace Propagation**: Every call between services must propagate the trace context header (W3C Trace Context).57- **Actionable Only**: Do not create alerts that do not require immediate action; avoid alert fatigue.5859## Prohibited6061- **NEVER** log sensitive data (PII, passwords, tokens) in plain text.62- **NEVER** use pure strings for system logs; use fixed keys to facilitate search.63- **NEVER** ignore telemetry storage cost; use sampling when necessary.64- **NEVER** consider a system "production-ready" without a defined and monitored SLO.6566---6768## Reference Documentation6970This skill includes detailed reference documentation:71721. **[Structured Logging](references/structured-logging.md)** — JSON patterns and contextual metadata.732. **[Metrics & Tracing](references/metrics-and-tracing.md)** — Practical guide to OpenTelemetry and Prometheus.743. **[SLIs, SLOs & Alerting](references/sli-slo-alerting.md)** — Data-driven reliability methodology.754. **[Framework Monitoring](references/framework_monitoring.md)** — Specific monitoring for FastAPI and Django (Prometheus/Grafana).7677---7879## Output Structure8081Execution of this skill results in the following standardized artifacts:8283| Artifact | Format | Description |84|----------|---------|-----------|85| **Logging Schema** | `.json` | Definition of fields and types for structured logs. |86| **OTel Blueprint** | Mermaid | Diagram of context collection and propagation pipeline. |87| **SLO Report** | `.md` | Formal definition of indicators, objectives, and error budgets. |88| **Alerting Policy** | `.yaml` | Alerting rules and notification guidelines. |899091---9293<!-- @sdd-state -->94```yaml95version: "2.3.0"96feature_id: "HUB-ALIGNMENT"97phase: "VERIFY"98status: "COMPLETED"99last_update: "2026-05-06T13:16:19.375595Z"100evidence_checksum: "8e52f6a"101```