Sre On Call And Toil 标志

Sre On Call And Toil

社区
paulip114
sre-on-call-and-toil

在设计值班轮班和运维工作负荷(页面告警限制、中断、入职培训、团队超负荷)、通过安全自动化衡量并消除繁琐工作,或在组织中启动和发展 SRE 实践时使用。基于 Google SRE 实践。

Add to TypingMind

概览

发布者paulip114
代码仓库sre-practice-skills
技能名称sre-on-call-and-toil
星标数
64
复刻数
19
附带文件
仅含指令
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 paulip114 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Sre On Call And Toil AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/paulip114/sre-practice-skills/tree/main/sre-on-call-and-toil
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/paulip114/sre-practice-skills.git /tmp/sre-practice-skills
mkdir -p .claude/skills
cp -r /tmp/sre-practice-skills/sre-on-call-and-toil .claude/skills/sre-on-call-and-toil
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Sre On Call And Toil,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Sre On Call And Toil。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Sre On Call And Toil 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

On-Call, Toil and SRE Teams

Keep operational work bounded and shrinking so engineers spend most of their time on engineering, and build the team practices that sustain that.

Sustainable On-Call and Operational Load

On-call works when pages are rare, meaningful and manageable, and the rest of the team's time goes to engineering that makes pages rarer.

Targets to aim for

  • Ops work ≤ 50% of the team's time (on-call, tickets, toil, manual operations). The rest is engineering. When ops exceeds this, redirect the overflow to the development team or pause launches until it's back under control.
  • On-call ≤ 25% of any individual's time, which implies a rotation of roughly 8 people at one site, or 6 per site across two sites for 24/7 primary + secondary coverage.
  • At most ~2 incidents per 12-hour shift on average. Each real incident (handling, cleanup, postmortem) takes hours; more than that and quality drops. Zero for long stretches means skills atrophy — run drills.
  • Response time matches the SLO: a tight SLO needs minutes-level acknowledgment; a loose one can tolerate longer.
  • Multi-site rotations ("follow the sun") avoid night shifts but add handoff and communication cost.
  • Compensate out-of-hours on-call (time off or pay) and cap it so it stays bounded.

Rotation design checklist

  • Primary and secondary, with clear rules for when secondary takes over.
  • Escalation paths to developer on-call and dependency teams.
  • Explicit handoff at shift change (open issues, ongoing incidents, risky pushes).
  • Playbooks/runbooks linked from every alert.
  • Every page reviewed weekly: was it actionable? duplicated? fixable by automation?
  • Metrics tracked: pages/shift, incidents/shift, time-to-ack, out-of-hours pages, % pages with no action taken.

Psychological safety under pressure

Stress pushes people toward fast, intuitive, unverified action. Counter it with: clear escalation (asking for help is expected, not a failure), written procedures, and a culture where on-callers are trusted to act and not blamed for reasonable decisions.

Interrupts: separate them from project work

Interrupts include pages, tickets, and ongoing operational responsibilities (rollouts, flag changes, requests from other teams). Context switching destroys focus, so:

  • Assign one person to own interrupts for the shift (tickets as well as pages), and protect everyone else's project time.
  • The interrupt-holder does no project work that week; they work on reducing interrupts (fixing the causes of tickets, writing automation, improving docs).
  • Hand over explicitly between interrupt-holders.
  • If ticket volume needs more than one person, add a second dedicated person rather than spreading interrupts across the team.
  • Review tickets regularly: recurring types are toil to eliminate (Toil Reduction and Automation below).

Onboarding new on-callers

  • Learn the system by layers: request path, then dependencies, then failure modes. Use past postmortems as reading.
  • Shadow on-call, then reverse-shadow (newcomer leads, experienced person backs up).
  • Run "Wheel of Misfortune" role-plays: a game master replays a past incident, the trainee responds using real tools/dashboards, then the team debriefs.
  • Have trainees improve playbooks and dashboards as they learn — fresh eyes find gaps.
  • Use checklists of knowledge areas; certify readiness explicitly before joining the rotation.

Recovering from operational overload

Signs: constant firefighting, pages ignored, postmortems without follow-up, team morale low, ops > 50%. Overload can also be perceived — sudden changes in scope, unclear priorities or loss of autonomy can make a team feel overloaded even when measured load is moderate. Measure the load (tickets, pages, toil hours) and also ask the team; fix both the workload and the sources of uncertainty (clear priorities, explicit ownership, saying no to unplanned work).

Approach (often with an experienced SRE embedded for a few weeks):

  1. Learn the service and its context; identify the biggest sources of stress (top pages, top ticket types, riskiest manual procedures).
  2. Stop the bleeding by fixing what's on fire, but focus on reducing future work, not just doing today's.
  3. Introduce SLOs and an error budget policy so reliability vs. velocity becomes a data-driven conversation (sre-slos-and-error-budgets).
  4. Ensure postmortems are written and action items done.
  5. Rank toil and automate the top items.
  6. Leave behind written practices (on-call review, ticket review, postmortem process) so the team keeps improving.

Toil Reduction and Automation

What toil is

Toil is operational work that is:

  • Manual — a human runs it.
  • Repetitive — done again and again.
  • Automatable — a machine could do it (or the need could be designed away).
  • Tactical — interrupt-driven, reactive.
  • No enduring value — the service is no better afterwards.
  • Scales with the service — grows linearly with users, traffic or instances.

Not toil: overhead (meetings, HR), and engineering work that has lasting value, even if it's tedious. Some toil is unavoidable and even fine in small amounts; the problem is when it grows unchecked and crowds out engineering.

Budget: keep toil (plus other ops work) under ~50% of team time — see Targets to aim for above.

Procedure

  1. Identify. Sources: tickets by type, pages that needed a manual fix, runbook steps, requests from other teams, recurring calendar tasks, release/deploy steps. Ask the people doing it — they know.
  2. Measure. For each item: frequency, time per occurrence, number of people involved, error rate when done manually, growth rate. Track total toil hours per week as a team metric. Short surveys or ticket-time tags are enough to start.
  3. Prioritize by cost now × growth, risk of human error, and morale impact. Also weigh the engineering cost of the fix. Favor items that scale with growth.
  4. Choose the strongest remedy (in order of preference):
    • Eliminate the need: change the system so the work disappears (e.g. self-healing, fix the bug that causes the ticket).
    • Self-service: let requesters do it safely themselves via a tool or API.
    • Automate end-to-end.
    • Partially automate: scripts that do the steps but still need a human to start or confirm.
    • Document a clear runbook (only as a stepping stone).
  5. Roll out incrementally and measure toil before/after. Retire the old manual path.
  6. Re-evaluate quarterly; new toil appears as systems grow.

Automation maturity ladder

  1. No automation — manual everything.
  2. Externally maintained, system-specific scripts (one person's laptop).
  3. Externally maintained, generic automation shared by the team.
  4. Internally maintained, system-specific automation shipped with the service.
  5. Autonomous systems that need no human intervention (the system manages itself: auto-repair, auto-scaling, auto-failover).

Aim to move up the ladder; the best automation is the system not needing it.

Designing automation safely

Automation applies changes at machine speed, including mistakes, so build guard rails:

  • Idempotent operations — safe to rerun after partial failure.
  • Validate inputs; treat an empty or missing filter as an error, never as "everything".
  • Rate limits and blast-radius caps — refuse to act on more than N targets or more than X% of a fleet at once.
  • Cross-check intent with another source of truth before destructive actions (e.g. is this rack actually scheduled for decommission?).
  • Dry-run mode, logging of every action, and an easy kill switch.
  • Own it like production code: tests, review, monitoring, on-call.
  • Keep humans able to understand and take over: automation that nobody understands erodes operational skill.

Adopting SRE in an Organization

What SRE is

SRE treats operations as a software engineering problem. Core tenets:

  • Reliability targets are explicit (SLOs) and owned jointly with product; error budgets arbitrate between reliability and velocity.
  • Ops work is capped (~50%); the rest goes to engineering that reduces future ops work.
  • Toil is measured and eliminated; automation and self-healing are preferred.
  • Failure is normal; learning from it is blameless and structured.
  • Monitoring alerts humans only when action is needed.

Relation to DevOps: DevOps is a broad set of cultural principles (no silos, accept failure, gradual change, tooling and measurement). SRE is one concrete implementation of those principles, with specific practices and metrics. You can adopt SRE practices without a team called "SRE".

Starting with no SRE team

Practices that work for any team and pay off quickly, roughly in order:

  1. Define SLOs for one important service and agree an error budget policy (sre-slos-and-error-budgets, sre-slos-and-error-budgets).
  2. Make alerts SLO-based and reduce noise (sre-monitoring-and-alerting).
  3. Introduce blameless postmortems with tracked action items (sre-postmortem).
  4. Measure toil and start automating the biggest items (Toil Reduction and Automation above).
  5. Define incident roles and practise them (sre-incident-response).

Team lifecycle

  1. Seed — one or a few engineers apply SRE practices to a high-value service; prove value with measurable outcomes (fewer pages, SLOs met, faster releases).
  2. Form a team — charter, scope, on-call rotation of sustainable size (Rotation design checklist above), explicit engagement model with dev teams (sre-release-and-launch).
  3. Grow and split — as scope grows, split by service area or by platform vs. embedded; keep shared practices and tooling.
  4. Mature — invest in platforms and frameworks that make services reliable by default, so expertise scales beyond headcount.

Charter and engagement

Write a charter covering: mission, which services are in scope, what SRE does vs. what dev teams do, entry criteria for onboarding a service (PRR), exit criteria (when pager goes back to devs), and how priorities are set.

Staffing and skills

  • Hire for software engineering ability plus systems knowledge (networking, OS, distributed systems) and troubleshooting temperament.
  • Mix backgrounds; pair experienced operators with strong coders.
  • Keep a balance between project work and ops for everyone, to prevent burnout and keep skills current.

Communication and collaboration

  • Weekly production meeting per service: review pages and incidents since last meeting, upcoming changes and launches, SLO/budget status, outstanding postmortem action items, and toil/ticket trends. Rotate the chair; publish notes.
  • Keep dev and SRE priorities visible to each other; joint planning for reliability work.
  • Distributed teams: favor written communication, clear ownership, explicit handoffs, overlap hours for key meetings.

Leading the change

  • Start where pain is visible and measurable; show results with data before expanding.
  • Get explicit leadership sponsorship for the error budget policy and for protecting engineering time.
  • Change incrementally: one service, one practice at a time; adapt practices to your context rather than copying Google wholesale.
  • Expect and address resistance: explain the "why", involve affected teams in designing processes, and celebrate early wins.
  • Measure progress: SLO attainment, pages per shift, toil hours, postmortem action-item closure, deploy frequency, time to mitigate.

Sources

常见问题

Sre On Call And Toil AI 技能有什么作用?

在设计值班轮班和运维工作负荷(页面告警限制、中断、入职培训、团队超负荷)、通过安全自动化衡量并消除繁琐工作,或在组织中启动和发展 SRE 实践时使用。基于 Google SRE 实践。

为什么在 TypingMind 中使用 Sre On Call And Toil?

因为您只需安装一次,就能搭配任何模型使用。Sre On Call And Toil 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Sre On Call And Toil?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/paulip114/sre-practice-skills/tree/main/sre-on-call-and-toil。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Sre On Call And Toil?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Sre On Call And Toil 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Sre On Call And Toil 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Sre On Call And Toil AI 技能免费吗?

是的。paulip114 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇