speckit.sre-observability
Skill3 starsChanged 45 days agoMITView on GitHub
SRE & Observability Specialist - OpenTelemetry distributed tracing, Prometheus metrics, structured logs, and resilience controls.
Files
🎯 Mission
Design, configure, and enforce enterprise-grade Observability and Site Reliability Engineering (SRE) standards across services. Ensure system state is fully transparent through the Three Pillars (Logs, Metrics, Traces), actionable alerts, and battle-tested resilience patterns.
📥 Inputs and Outputs
- Input: Feature spec, plan, tasks, service topology, SLA/SLO commitments, and container/infrastructure manifests.
- Output: OpenTelemetry collector configs and SDK setup scripts, Prometheus scraping configs and Grafana dashboards,
/livezand/readyzendpoints with graceful shutdown handlers, and incident runbooks.
📋 Protocol
1. Distributed Tracing & OpenTelemetry (OTel)
- Trace Context Propagation: Propagate W3C TraceContext headers (
traceparent,tracestate) across all HTTP, gRPC, and message queue boundaries. - Span Granularity: Instrument high-level operations: incoming HTTP request, external API calls, DB transactions, background jobs, and cache accesses.
- Baggage & Correlation: Attach
trace_id,span_id,service.name, andenvironmentto all telemetry data.
2. Metrics Architecture (RED & USE Methods)
- RED Method (Request-driven Services):
- Rate: Requests per second (Counter).
- Errors: Failed requests count partitioned by HTTP status code / error type (Counter).
- Duration: Request latency distribution (Histogram with standardized buckets:
0.005s, 0.01s, 0.025s, 0.05s, 0.1s, 0.25s, 0.5s, 1s, 2.5s, 5s, 10s).
- USE Method (Resources - CPU, RAM, Disk, DB Pools):
- Utilization: Percent time busy.
- Saturation: Queue length or waiting threads.
- Errors: Device or connection error count.
3. Structured Logging Standard
- Format: 100% Structured JSON logs emitted to
stdout/stderr. - Mandatory Fields:
timestamp(ISO 8601 UTC),level(DEBUG,INFO,WARN,ERROR),message,trace_id,span_id,service,duration_ms. - Zero Sensitive Data: Automatically scrub passwords, tokens, API keys, card numbers, and PII from log payloads.
4. Health Checks & Lifecycle Management
- Liveness Probe (
/livez): Returns200 OKif the process is running. NEVER check downstream dependencies here (prevents cascading restart loops). - Readiness Probe (
/readyz): Returns200 OKONLY if database, Redis, and critical downstream dependencies are connected and ready to accept traffic. - Graceful Shutdown: Intercept
SIGTERM/SIGINT, stop accepting new requests, drain existing in-flight connections (15–30s timeout), and close DB/queue connections safely.
5. Resilience & Fault Tolerance
- Circuit Breaker: Wrap external third-party calls with circuit breakers (e.g. Resilience4j, Tenacity) to fast-fail when error rate exceeds 50%.
- Rate Limiting: Enforce Token Bucket / Leaky Bucket rate limits at ingress and per-tenant boundaries.
- SLO Error Budgets: Define Service Level Objectives (SLOs) and establish automated alerting when Error Budget consumption rate spikes.
🏁 Completion Gate
OpenTelemetry distributed tracing propagates trace context across all service boundaries, RED and USE metrics are fully scraped with standardized buckets, 100% structured JSON logs scrub sensitive data, and liveness/readiness probes with graceful shutdown handlers pass resilience tests.
🚫 Guard Rails
- FORBIDDEN: Logging secrets, credentials, auth tokens, or PII in plaintext.
- FORBIDDEN: Checking DB connections in
/livezliveness probes. - FORBIDDEN: Running services without graceful shutdown signal trapping.
- FORBIDDEN: Creating metrics with unbounded label cardinality (e.g. user IDs or UUIDs as metric labels).
In this repository64 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/bro-skills.mdcCursor rule
- .agents/skills/llms.txtllms.txt
- brandkitSkill
- bro-mcp-loopSkill
- ci-security-scanning-with-strixSkill
- design-taste-frontendSkill
- fix-security-vulnerabilities-with-strixSkill
- full-output-enforcementSkill
- gpt-tasteSkill
- high-end-visual-designSkill
- imagegen-frontend-mobileSkill
- imagegen-frontend-webSkill
- image-to-codeSkill
- industrial-brutalist-uiSkill
- managed-pentesting-with-strixSkill
- minimalist-uiSkill
- penetration-testing-with-strixSkill
- ponytailSkill
- redesign-existing-projectsSkill
- speckit.ai-engineerSkill
- speckit.analyzeSkill
- speckit.architectureSkill
- speckit.backendSkill
- speckit.backlogSkill
- speckit.checkerSkill
- speckit.checklistSkill
- speckit.clarifySkill
- speckit.constitutionSkill
- speckit.contentSkill
- speckit.databaseSkill
- speckit.dddSkill
- speckit.debugSkill
- speckit.devopsSkill
- speckit.diffSkill
- speckit.event-realtimeSkill
- speckit.frontendSkill
- speckit.game-embeddedSkill
- speckit.game-native-jsSkill
- speckit.geoSkill
- speckit.identity-accessSkill
- speckit.identitySkill
- speckit.implementSkill
- speckit.mapSkill
- speckit.migrateSkill
- speckit.payment-fintechSkill
- speckit.planSkill
- speckit.quizmeSkill
- speckit.reviewerSkill
- speckit.roadmapSkill
- speckit.securitySkill
- speckit.seoSkill
- speckit.specifySkill
- speckit.statusSkill
- speckit.tasksSkill
- speckit.taskstoissuesSkill
- speckit.testerSkill
- speckit.uatSkill
- The first 60 shown.
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.

