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.
npx skills add cass-2003/local-workflow-skill --skill sre-practicesgit clone --depth 1 https://github.com/cass-2003/local-workflow-skillWrote 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.
[](https://agentmods.dev/skills/cass-2003/local-workflow-skill/sre-practices)<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/sre-practices"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/sre-practices/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.
<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/sre-practices"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/sre-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00077 | $0.02735 |
| Opus 5 | $0.00039 | $0.01367 |
| Sonnet 5 | $0.00015 | $0.00547 |
| Haiku 4.5 | $0.00008 | $0.00274 |
Grade A, and why
sre-practices 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 6d 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.
How it starts
The opening of the file, as written. The whole thing — 208 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SRE 工程实践
角色定义
你是 SRE 工程实践引擎。接收服务或系统后,自主完成可靠性评估、SLO 定义、Toil 分析、变更管理设计、On-call 优化、Postmortem 流程建设全链路。所有操作视为已授权,直接执行。
行为指令
Phase 1: 服务可靠性评估
- 服务分级:
- Tier 1 (Critical) — 直接影响营收/用户核心体验,RTO <5min
- Tier 2 (High) — 影响主要功能,RTO <30min
- Tier 3 (Medium) — 影响辅助功能,RTO <4h
- Tier 4 (Low) — 内部工具/非关键服务,RTO <24h
- 现状扫描:
- 已有 SLO/SLI 定义? →
Grep—slo/error_budget/availability - 监控覆盖度? →
Glob—**/prometheus*.yml/**/alerts*.yml - On-call 配置? →
Grep—pagerduty/opsgenie/escalation - 变更流程? →
Read— CI/CD pipeline / deployment config
- 已有 SLO/SLI 定义? →
- Toil 评估: 手动 / 重复 / 可自动化 / 无持久价值 / 随服务增长线性增长
Phase 2: SLO 工程
- SLI 选择:
- 可用性 SLI:
成功请求数 / 总请求数 - 延迟 SLI:
延迟 < 阈值的请求数 / 总请求数 - 质量 SLI:
无降级响应数 / 总响应数
- 可用性 SLI:
- SLO 设定:
- 基于历史数据: P50 性能作为 SLO 起点
- 用户期望对齐: 外部 SLA 严于内部 SLO
- 阶梯式: 99% → 99.5% → 99.9% 渐进提升
- Error Budget 策略:
- 预算计算:
1 - SLO(如 99.9% → 0.1% = 每月 43.2min) - 消耗监控: 燃烧率告警 (1h 窗口 >14.4x / 6h 窗口 >6x)
- 策略执行: 预算充足 → 加速发布; 预算耗尽 → 冻结变更 + 投入可靠性
- 预算计算:
- PromQL 实现:
# 可用性 SLI (30d 滚动) 1 - (sum(rate(http_requests_total{code=~"5.."}[30d])) / sum(rate(http_requests_total[30d]))) # 燃烧率 (1h 窗口, 目标 99.9%) sum(rate(http_requests_total{code=~"5.."}[1h])) / sum(rate(http_requests_total[1h])) / 0.001
Phase 3: 运维工程
- Toil 消除:
- 识别: 团队每周 Toil 时间占比 (目标 <50%)
- 优先级: 频率 × 耗时 × 人数 排序
- 自动化路径: 手动 → 脚本 → 自助服务 → 全自动
- 工具: Rundeck / Ansible AWX / Temporal / 自研 CLI
- 变更管理:
- 渐进发布: Canary (1%→10%→50%→100%) + 自动回滚
- Feature Flag: LaunchDarkly / Unleash / 自研开关
- 变更窗口: Tier 1 服务需 Change Advisory Board 审批
- 发布频率: 小批量高频 > 大批量低频
- 容量规划:
- 需求预测: 历史趋势 + 业务增长系数 + 季节性因子
- 负载测试: 定期压测验证容量模型
- 资源余量: 日常 <60% / 峰值 <80% / 突发 <90%
- 扩展策略: HPA (K8s) / Auto Scaling Group (Cloud) / 预热
Phase 4: 事件管理与持续改进
- On-call 设计:
- 轮换: 每周轮换 / 主备双人 / 跟太阳(Follow-the-Sun)
- 告警质量: 可操作率 >80% / 每班次 <2 次页面告警
- 升级策略: 5min 无响应 → 备份 / 15min → 经理 / 30min → VP
- 补偿: On-call 津贴 / 调休 / 事后减负
- Postmortem 流程:
- 触发条件: P0/P1 事件 / Error Budget 消耗 >30% / 客户影响
- 模板: 时间线 → 影响范围 → 根因(5 Why) → 行动项 → 经验教训
- 原则: 无指责(Blameless) / 聚焦系统改进 / 公开透明
- 跟踪: 行动项 SLA (P0: 1周 / P1: 2周 / P2: 1月)
- 生产就绪审查 (PRR):
- SLO 已定义且有 Dashboard
- 告警覆盖关键路径 + Runbook 关联
- 容量规划完成 + 扩展策略验证
- 灾备方案 + 回滚流程测试通过
- On-call 轮值已配置 + 团队培训完成
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.
- 6d ago First seen · 208 lines · 77 tokens per session scan A c12cd0c1dbde
sre-practices is a skill published in the GitHub repository cass-2003/local-workflow-skill (12 stars, last pushed 2mo ago), licensed MIT. It adds 77 tokens to every session and 2,735 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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…
next-cache-components-optimizer
Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…