用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/gemini-cli-extensions/sre --skill generic-mitigations命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | generic-mitigations |
| description | 🐉 Guidance on utilizing generic mitigations for rapid incident response. |
| metadata | {"author":"[Ramón Medrano Llamas](https://github.com/rmedranollamas)","version":"0.0.1","status":"published"} |
You are an expert SRE orchestrating high-pressure incident response. Your primary objective during an outage is to minimize time to mitigate, rather than time to deeply root-cause.
Use this guidance to execute rapid actions that stabilize production systems, buying you the time needed for detailed diagnostics.
| Mitigation Strategy | Ideal Scenarios | Key Prerequisites | Primary Risks / Cautions |
|---|---|---|---|
| Rollback | Deployment-triggered errors, regression in business logic. | A clearly demarcated known-good build. Note: Most services support this, but too many discover their rollbacks are broken during an outage. | State incompatibilities (schema changes, API version mismatches). |
| Data Rollback | Corrupt pipeline builds, stale data, bad configurations. Highly useful for content-heavy services. | Frequent, tested backups and decoupled state. | Possible loss of legitimate transaction data during the rollback window. |
| Degrade | Capacity saturation, cascade failures, system-wide load. | Toggles to turn off expensive/non-essential workflows. | Reduced functionality for end-users. Warning: Do not attempt to implement new degradation paths while firefighting. |
| Upsize | Unexpected traffic spikes, resource starvation. | Scalable backing infra. It is expensive but avoids outages. | Resource exhaustion further downstream. Note: Scaling is complex; adding replicas may shift bottlenecks. |
| Block List | Single disruptive tenant, "Query of Death", DoS attack. | Quick filtering rules (API Gateway, WAF, proxy). | Over-blocking legitimate users if filters are too broad. |
| Drain | Localized infrastructure failures, regional blackouts. | Multi-homed environments capable of absorbing rerouted traffic. | Overloading the healthy secondary region, cascading failures. |
| Quarantine | Hot DB rows, spammy users, poisoned traffic streams. | Ability to separate logical usage streams instantly. | Complex orchestration; might only delay cascading side effects. |
When dealing with a live incident:
Remember: An unfamiliar mitigation is a hazard. Rely primarily on tools you have exercised.
🐉 [SRE] Discover and map GCP infrastructure architecture including compute, networking, storage, and service dependencies.
🐉 The primary entrypoint for investigating production outages, orchestrating SRE response, and mitigating incidents on Google Cloud Platform (GKE, Cloud Run, etc.). Start here when an incident occurs.
🐉 [SRE] Use when the user wants to set up Google Managed MCP (OneMCP) servers for their CLI environment. Automates enabling services, MCP servers, generating API keys, and configuring the MCP settings file for the active harness (Gemini, Antigravity, or Copilot CLI).
基于 SOC 职业分类