error-budget-policy
Defines and applies an SLO error-budget policy that gates feature work versus reliability work based on remaining budget. Use when setting up SLOs or when high burn rate lacks a formal team response protocol.
- License 许可
- MIT
- 最近更新
- 2026-10-14
- Stars
- ★ 25
- Forks
- 3
01 前言 Front Matter
- name
- error-budget-policy
- metadata
- { "title": "Error Budget Policy" }
- description
- Defines and applies an SLO error-budget policy that gates feature work versus reliability work based on remaining budget. Use when setting up SLOs or when high burn rate lacks a formal team response protocol.
03 SKILL.md 正文
Error Budget Policy
An error budget without a policy is a number nobody acts on. The policy converts budget state into team behavior automatically, without requiring a manager decision each time.
Define the Budget
Error budget = (1 - SLO target) x window duration.
Example: 99.9% SLO over 30 days = 0.1% x 30 days x 24 hours = 43.2 minutes of allowed downtime.
Track budget as a percentage remaining, not as raw minutes. 'Budget: 34% remaining' is actionable. 'Budget: 14.7 minutes remaining' is not.
Four Policy States
Define exactly four states and the automatic team behavior each one triggers.
Green (budget above 50%)
Feature work proceeds at full velocity. No reliability-only sprints required. On-call improvements are encouraged but not mandatory. Treat this state as the reward for good reliability work.
Yellow (budget between 20% and 50%)
Feature work continues but every sprint must include at least one reliability or observability ticket. The team reviews burn rate trend weekly. No new non-critical migrations or risky deploys without IC sign-off.
Orange (budget between 0% and 20%)
Feature work is paused for engineers on the service. The team shifts to reliability work: fixing root causes of recent incidents, improving alert coverage, reducing toil. No new features ship until budget is back above 20%. Exception: security patches and compliance work.
Red (budget exhausted or SLO breach active)
Freeze all feature deploys immediately. Escalate to engineering lead and product manager. Convene a reliability review within 48 hours to decide: (a) improve reliability, or (b) formally lower the SLO to match actual capability. Do not silently operate below SLO.
Budget Consumption Rules
- Planned maintenance counts against the budget unless users were notified and no user-impacting errors occurred.
- Incidents caused by a dependency consume budget. Track them separately and use the data in vendor reviews.
- Budget does not roll over month to month. Surplus in January does not excuse a breach in February.
Burn-Rate Alerting
State colors describe where the budget is; burn-rate alerts catch how fast it is moving. Alert on multiples of the sustainable burn rate (1x = exactly exhausting the budget over the window). The standard multiwindow setup for a 30-day window:
- Page: 14.4x burn over 1 hour (2% of the monthly budget gone in an hour).
- Page: 6x burn over 6 hours (5% of the budget gone in six hours).
- Ticket: 1x burn over 3 days (10% of the budget consumed at a slow, steady leak).
Pair each long window with a short window (typically 1/12 the duration) so alerts stop firing once the burn stops. Without burn-rate alerts, a fast outage can eat the entire budget before the weekly state review ever sees it.
Governance
- Publish the current budget state in the team's Slack channel weekly. One line: service name, SLO, budget remaining, state color.
- Review SLO targets annually. An SLO that is always green without effort is set too low.
- Product and engineering agree on the policy in writing before it is enforced. Policy surprises cause more damage than missed SLOs.
Deliverable
Produce a written error budget policy document containing: the SLO and window per service tier, the budget math shown (target, window, allowed bad minutes or bad events), the four states with their numeric boundaries and the automatic team behavior each triggers, the burn-rate alert thresholds and where they page versus ticket, the budget consumption rules (maintenance, dependencies, no rollover), and the sign-off line where engineering and product both agree before enforcement begins. The document should let a new on-call engineer determine the current state and the required behavior without asking anyone.
Quality bar
- Every state boundary is a number, not an adjective - "below 20%" not "getting low."
- Each state names an automatic behavior a team can execute without a manager's decision.
- Burn-rate alerts exist for fast, medium, and slow burns, each routed to page or ticket.
- The policy is signed by both engineering and product before it gates anything.
- The state calculation is automated and published on a fixed cadence.
Do / Don't
- Do: automate the state calculation and publish it. Manual tracking fails within two months.
- Do: tie the policy to a real window (rolling 30 days is standard). Calendar month windows create perverse incentives at month-end.
- Don't: let teams renegotiate the policy during an Orange or Red state. That is when pressure to bend it is highest and discipline matters most.
- Don't: apply the same SLO to every endpoint. Tier your services: critical, standard, best-effort. Different tiers, different policies.
04 同仓库更多 Skills
zone-2-cardio-plan
Use when someone asks to build a steady-state cardio plan, train an aerobic base or Zone 2, structure easy or endurance weekly cardio, train by heart-rate zones, or improve resting heart rate, VO2, or endurance. Builds a heart-rate-zone aerobic training block with session structure, modality choice, and progression. General fitness guidance, not medical advice. Do NOT use to design a strength or lifting program (use Strength Training Plan), high-intensity interval conditioning, HIIT, or circuits (use Conditioning & HIIT Program), or a mobility/flexibility routine (use Mobility Routine).
youtube-script-writer
Writes retention-engineered long-form YouTube scripts on a hook/body/payoff architecture - a first-30-seconds hook that survives the retention cliff, a beat-sheet body with mini-hooks and bridges, timed pattern interrupts, and a payoff that over-delivers - with B-roll and editing cues marked inline. Use when someone says "script my next video", "my retention graph dies at the start", "tighten this draft", or "outline a video on X". Do NOT use for the 3-second opener of TikTok, Reels, or Shorts - use video-hook-writer instead; do NOT use for spoken voiceover synced to on-screen tutorial actions - use narration-script instead; do NOT use for a sales demo built on a buyer's discovery notes - use demo-script instead; do NOT use to design the thumbnail and title - use thumbnail-concept instead.
win-back-campaign
Designs segmented win-back email sequences for dormant users - dormancy tiers, a three-beat sequence with a single proportional incentive, and a suppression rule - and measures success by re-activation, not opens. Use when someone says "our users went quiet", "design a win-back campaign", "how do I re-engage lapsed customers", "should we email people who haven't logged in for months", or lifecycle messaging has stopped landing with a lapsed segment. Do NOT use for recovering an unfinished checkout - use abandoned-cart-sequence instead. Do NOT use for diagnosing and fixing why active customers cancel - use churn-reduction instead. Do NOT use for building always-on onboarding or nurture flows - use email-drip-builder instead.
wikipedia-style
Writes neutral, verifiable, encyclopedic prose following Wikipedia's core content policies and manual of style - NPOV, inline citations, notability-backed claims, and a strict ban on promotional language. Use when someone asks "write this like a Wikipedia article", "draft a Wikipedia page for this company or person", "make this neutral and encyclopedic", or "why does my article draft keep getting rejected". Do NOT use for persuasive or opinion writing - use op-ed-writer instead; for thesis-driven academic papers, use academic-essay; for verifying claims in existing text, use fact-checker.
whitepapers
Structures and writes authoritative B2B whitepapers - a standalone executive summary, a data-sized problem statement, methodology, evidence-driven findings, recommendations, and a soft call to action - flagging every claim that needs a real citation. Use when a marketer asks "write a whitepaper on this topic", "turn our research into a lead-gen asset", "make this credible enough for executives", or a draft reads like a product pitch instead of analysis. Do NOT use for customer-story-driven proof - use case-study-builder instead; for policy audiences, use policy-brief.
white-space-analysis
Finds unmet market gaps by ranking jobs-to-be-done on importance versus satisfaction, overlaying them against current solutions and workarounds, and validating that each gap is real, winnable, and worth winning. Use when someone asks "where are the gaps in this market", "what's underserved here", "where should we play next", or is hunting for product, feature, or market-entry opportunities. Do NOT use for profiling competitors and building battle cards - use competitive-intelligence instead; for putting a dollar figure on an identified opportunity - use market-sizing instead; for extracting jobs-to-be-done from raw customer interviews - use jtbd-extractor instead.