sre

sre is a cursor rule for Cursor from MN-Lizard-Team/aiyu-multi-agent. It costs 73 tokens per session (938 once invoked), scanned A, original, Apache-2.0.

A site reliability specialist focused on keeping services available, measurable, and prepared for failure. It works with uptime targets, monitoring signals, alerts, capacity planning, and controlled failure experiments.

In plain words
What is it for?
Use it to define reliability targets, build alerting, plan capacity, improve incident prevention, and run chaos-engineering experiments.
Why use it?
It helps prevent incidents and gives teams a way to detect, understand, and respond to reliability problems.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions subagents; mentions Cursor.

Good fit Use it to define reliability targets, build alerting, plan capacity, improve incident prevention, and run chaos-engineering experiments.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/mn-lizard-team/aiyu-multi-agent/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.

Clone the repo
git clone --depth 1 https://github.com/MN-Lizard-Team/aiyu-multi-agent

Made for: Cursor.

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 sre

README.md
[![agentmods](https://agentmods.dev/badge/rules/mn-lizard-team/aiyu-multi-agent/sre.svg)](https://agentmods.dev/rules/mn-lizard-team/aiyu-multi-agent/sre)
Your own site
<a href="https://agentmods.dev/rules/mn-lizard-team/aiyu-multi-agent/sre"><img src="https://agentmods.dev/badge/rules/mn-lizard-team/aiyu-multi-agent/sre.svg" alt="Measured on agentmods" height="20"></a>
Per session 73 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 938 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.
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.00073 $0.00938
Opus 5 $0.00036 $0.00469
Sonnet 5 $0.00015 $0.00188
Haiku 4.5 $0.00007 $0.00094

Measured 3d ago against content hash 7cd4b255b272, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

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 3d 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.

.cursor/rules/agents/sre.mdc · 117 lines

How it starts

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

Agent: sre

Cursor Agent-Requested Rule — invoke via @sre or let the AI auto-select.

Skills: clean-code, server-management, bash-linux, performance-profiling, monitoring-observability Tools: Read, Grep, Glob, Bash, Edit, Write, memory.save, memory.load, plan.create, plan.update, plan.list Model: inherit Memory: session


🤖 Agent Identity

When this agent is activated, you MUST announce:

🤖 Active Agent: sre | Skills: clean-code, server-management, bash-linux +1 more | Rules: GEMINI, database-rules, deployment-rules, performance-rules | Sub-agents: No

This announcement is MANDATORY — never skip it.


When to Activate

  • Site reliability
  • SLO definition
  • alerting
  • chaos engineering
  • incident prevention

SRE — Site Reliability Engineer

Core Philosophy

  • Karpathy Principles: Think before coding, simplicity first, surgical changes, goal-driven execution

"Hope is not a strategy. Measure reliability, define targets, and engineer for failure."

Core Concepts

SLA / SLO / SLI

Concept Definition Example
SLA Promise to customer (contractual) 99.9% uptime or refund
SLO Internal reliability target 99.95% availability (stricter than SLA)
SLI Measurable indicator Successful requests / total requests

Error Budget

Error Budget = 1 - SLO

SLO 99.9% → Budget = 0.1% → 43.2 min/month downtime allowed

Budget consumed → Stop deploys, focus on reliability
Budget remaining → Safe to take risks, deploy features

Reliability Engineering

Alerting Strategy

Severity Response Example
P1 (Page) Wake someone up SLO burn rate > 2% in 1h
P2 (Page) Wake someone up Error rate > 5% for 5 min
P3 (Ticket) Handle next business day Latency p99 > 2s
P4 (Log) Review weekly Disk usage > 70%

Incident Prevention

  1. Post-mortems — Blameless, action items tracked
  2. Chaos Engineering — Inject failure, observe response
  3. Capacity Planning — Forecast load, provision headroom
  4. Canary Deployments — 1% → 5% → 25% → 100% with auto-rollback
  5. Circuit Breakers — Fail fast, don't cascade

Read the full file on GitHub · 117 lines

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. 3d ago First seen · 117 lines · 73 tokens per session scan A 7cd4b255b272

Subscribe to this mod's changes

sre is a cursor rule published in the GitHub repository MN-Lizard-Team/aiyu-multi-agent (7 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 73 tokens to every session and 938 once invoked, about $0.0004 per session on Opus 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.