observability-sre

observability-sre is a skill for Claude Code, Codex from majiayu000/spellbook. It costs 47 tokens per session (3,336 once invoked), scanned A, original, MIT.

A set of practices for seeing how a running service behaves through metrics, logs, and traces. Site Reliability Engineering, or SRE, is the work of keeping services dependable for users.

In plain words
What is it for?
Use it to design monitoring, logging, tracing, service-level objectives, alerts, and incident-response processes with tools such as Prometheus, Grafana, and OpenTelemetry.
Why use it?
It helps teams detect user-facing failures, understand incidents, and set measurable reliability targets instead of guessing from internal machine statistics.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to design monitoring, logging, tracing, service-level objectives, alerts, and incident-response processes with tools such as Prometheus, Grafana, and OpenTelemetry.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/majiayu000/spellbook/observability-sre
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add majiayu000/spellbook --skill observability-sre
Clone the repo
git clone --depth 1 https://github.com/majiayu000/spellbook

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for observability-sre

README.md
[![agentmods](https://agentmods.dev/badge/skills/majiayu000/spellbook/observability-sre/github.svg)](https://agentmods.dev/skills/majiayu000/spellbook/observability-sre)
Your own site
<a href="https://agentmods.dev/skills/majiayu000/spellbook/observability-sre"><img src="https://agentmods.dev/badge/skills/majiayu000/spellbook/observability-sre/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for observability-sre

Your own site · 80×15
<a href="https://agentmods.dev/skills/majiayu000/spellbook/observability-sre"><img src="https://agentmods.dev/badge/skills/majiayu000/spellbook/observability-sre.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,336 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 333
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.03336
Opus 5.5 $0.00019 $0.01334
Sonnet 5.5 $0.00009 $0.00667
Haiku 4.5 $0.00005 $0.00334

Measured 2mo ago against content hash b791d165ca94, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

observability-sre scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/observability-sre/SKILL.md · 464 lines

How it starts

The opening of the file, as written. The whole thing — 464 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Observability & Site Reliability Engineering

Core Principles

  • Three Pillars — Metrics, Logs, and Traces provide holistic visibility
  • Observability-First — Build systems that explain their own behavior
  • SLO-Driven — Define reliability targets that matter to users
  • Proactive Detection — Find issues before customers do
  • Blameless Culture — Learn from failures without blame
  • Automate Toil — Reduce repetitive operational work
  • Continuous Improvement — Each incident makes systems more resilient
  • Full-Stack Visibility — Monitor from infrastructure to business metrics

Hard Rules (Must Follow)

These rules are mandatory. Violating them means the skill is not working correctly.

Symptom-Based Alerts Only

Alert on user-facing symptoms, not internal infrastructure metrics.

# ❌ FORBIDDEN: Alerting on internal metrics
- alert: CPUHigh
  expr: cpu_usage > 70%
  # Users don't care about CPU, they care about latency

- alert: MemoryHigh
  expr: memory_usage > 80%
  # Internal metric, may not affect users

# ✅ REQUIRED: Alert on user experience
- alert: APILatencyHigh
  expr: slo:api_latency:p95 > 0.200
  annotations:
    summary: "Users experiencing slow response times"

- alert: ErrorRateHigh
  expr: slo:api_errors:rate5m > 0.001
  annotations:
    summary: "Users encountering errors"

Low Cardinality Labels

Loki/Prometheus labels must have low cardinality (<10 unique labels).

# ❌ FORBIDDEN: High cardinality labels
labels:
  user_id: "usr_123"      # Millions of values!
  order_id: "ord_456"     # Millions of values!
  request_id: "req_789"   # Every request is unique!

# ✅ REQUIRED: Low cardinality only
labels:
  namespace: "production"  # Few values
  app: "api-server"        # Few values
  level: "error"           # 5-6 values
  method: "GET"            # ~10 values

# High cardinality data goes in log body:
logger.info({
  user_id: "usr_123",      # In JSON body, not label
  order_id: "ord_456",
}, "Order processed");

Read the full file on GitHub · 464 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 464 lines · 47 tokens per session scan A b791d165ca94

Subscribe to this mod's changes

observability-sre is a skill published in the GitHub repository majiayu000/spellbook (301 stars, last pushed 2d ago), licensed MIT. It adds 47 tokens to every session and 3,336 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

observability-sre compared with skills from other repositories

observability-sre next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
observability-sremajiayu000/spellbookSkill3012d agoMITA47Claude Code, Codex
cao-session-managementawslabs/cli-agent-orchestratorSkill1.8ktodayApache-2.0B83Claude Code
workflowzhinkgit/embeddedskillsSkill825yesterdayMITA65Claude Code
agent-deckasheshgoplani/agent-deckSkill1.3ktodayMITA63Claude Code, Codex
pneuma-sessionpandazki/pneuma-skillsSkill1622d agoMITA127Claude Code, Codex
fast-resumeangristan/fast-resumeSkill198todayMITA50Claude Code, Codex
lov-finder-actionlovstudio/skillsSkill72yesterdayMITA36Claude Code