/polymath-sre:error-budget-policyfrom polymath-sre
Author an error-budget policy — what happens when budget is healthy, eroding, or exhausted; named consequences not vibes.
Ships in polymath-sre. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Pin the actions tied to error-budget state. Output is a one-page policy a team can point to.
Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.
polymath-sre:slo-design. No SLO: stop and run that first; a policy over an undefined budget is not a policy.[TBD: approver role] and list it in the summary, never invent a person.Current state (when consumption data exists) — run the script, don't eyeball it:
python3 "${POLYMATH_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/skills/slo-design/scripts/error-budget.py" --slo 99.5 --window-days 28 --consumed-minutes 140
# request-based SLI: --requests 2000000 --failed 7300
Quote its Consumed: and State: lines in the policy header.
Three states:
Per state, name the consequence:
Document the named approver (a role, e.g. "VP Eng", not a person).
Document the off-ramp — how the team gets out of an exhausted state. Usually: SLO compliance for 14 consecutive days, or a budget reset following a major incident postmortem.
SLO trust — once a quarter, review whether the SLO threshold still matches user expectations. Don't move the threshold to fit the budget; either accept the work or renegotiate the threshold with stakeholders.
Error-budget policy: refund-service (SLO: 99.5% / 28d)
State: HEALTHY (< 50% of the 3h 21m 36s budget used)
- Feature work proceeds as planned.
- Standard release cadence.
State: ERODING (50–100% of budget used)
- Mandatory: every PR includes a reliability or test improvement.
- No "risky" launches (defined: schema changes, dependency upgrades,
new external integrations).
- Feature flags required for new features; must be rollable < 1m.
- Daily 5-min standup on burn-rate.
State: EXHAUSTED (> 100% of budget used)
- Feature freeze. Reliability and rollback hardening only.
- Exceptions require VP Eng sign-off; reason recorded.
- Resume normal work after 14 consecutive days of compliant SLO.
Quarterly review:
- Does the 99.5% threshold still match what users need?
- Is the SLI definition still right (latency cutoff, success codes)?
Anti-pattern guard:
We do not move the SLO threshold to "fit" the consumed budget.
If the SLO is genuinely wrong, we renegotiate with stakeholders
in writing, not via a config tweak.
What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/capacity-planTurn a demand projection into a capacity plan — constrained resource, headroom date, scaling triggers, and cost; not forecasting the demand itself (demand-forecast)./chaos-experimentDesign a chaos experiment — hypothesis, blast radius, abort criteria, observation, rollback; small-radius first./demand-forecastModel capacity demand — growth (linear/compound/seasonal), translate to resource needs + headroom, and flag the lead time before a saturation breach.Other plugins' skills for the same job
npx claudepluginhub mohammadbafkar/polymath --plugin polymath-sre