gcp-playbooks
🐉 Use when you need to follow established SRE playbooks for GCP/GKE investigations, including infrastructure discovery and common mitigation steps.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-12
- Stars
- ★ 131
- Forks
- 9
01 前言 Front Matter
- name
- gcp-playbooks
- metadata
- { "author": "Riccardo", "status": "draft", "version": "0.0.3" }
- description
- 🐉 Use when you need to follow established SRE playbooks for GCP/GKE investigations, including infrastructure discovery and common mitigation steps.
02 资源文件 8
- 参考文档CHANGELOG.md1.2 KB
- 参考文档EVAL.md618 B
- 参考文档references/googleapis.com/cloudbuild.md620 B
- 参考文档references/googleapis.com/cloudresourcemanager.md3.8 KB
- 参考文档references/googleapis.com/container.md3.6 KB
- 参考文档references/googleapis.com/README.md709 B
- 参考文档references/googleapis.com/run.md3.6 KB
- 脚本scripts/report_errors_by_revision.py11.3 KB
03 SKILL.md 正文
GCP SRE Playbooks
Overview
This skill provides a collection of playbooks and reference materials for SREs to investigate and mitigate incidents on Google Cloud Platform. It focuses on mapping generic SRE concepts (discovery, mitigation, postmortem) to specific GCP/GKE actions.
Naming Convention
Playbooks follow a deterministic naming convention based on the GCP API service name, located in the references/googleapis.com/ directory.
Example: run.md (for run.googleapis.com).
Each file should also explicitly list the full API name at the top.
When to Use
- When starting an investigation and needing to discover the infrastructure.
- When following a specific mitigation strategy (e.g., rollback, traffic shifting).
- When a user asks for "GCP playbooks" or "SRE playbooks".
Available Playbooks
1. Infrastructure Discovery
Located at skills/gcp-playbooks/references/googleapis.com/README.md.
Use this to systematically identify the resources involved in an incident.
2. Cloud Run Mitigations
Located at skills/gcp-playbooks/references/googleapis.com/run.md.
Maps generic mitigations (rollback, fix forward, upsize, restart) to Cloud Run actions.
3. GKE Mitigations
Located at skills/gcp-playbooks/references/googleapis.com/container.md.
Maps generic mitigations (rollback, fix forward, upsize, quarantine, restart) to GKE / Kubernetes actions.
4. Cloud Build Investigation (Draft)
Located at skills/gcp-playbooks/references/googleapis.com/cloudbuild.md.
Core Pattern
- Identify the Scope: Use
gcp_resource_manageror the discovery playbook to find the relevant project and resources. - Consult the Playbook: Look for a matching playbook in
references/googleapis.com/using the short API name. - Execute Actions: Follow the gcloud/kubectl commands suggested in the playbook.
- Validate: Verify the state of the system after each action.
References
04 同仓库更多 Skills
safe-sre-investigator
🐉 Sets up and uses read-only Service Accounts for GCP and Kubernetes investigations using the principle of least privilege, and provides risk assessments for suggested commands. Use when asked to investigate GCP/GKE resources or suggest gcloud/kubectl commands.
pre-publish-checker
🐉 Thoroughly checks files for profanity, internal links, sensitive paths, and professionalism before publication. Use when preparing a codebase or extension for public release.
postmortem-generator
🐉 Creates a PostMortem given enough context about an incident/outage. Will guide user to timeline, action items/bugs, and finally draft a Google Doc with the results.
postmortem-aggregator
🐉 To be used when you have a folder containing N Post Mortem files. This will help crunch data and maintain/update a POMO_AGGREGATED.md file.
monitoring-graphs
🐉 Skill for generating high-quality, annotated incident graphs for post-mortems using Python. Use this when the user needs to visualize an outage, show error rates, or correlate metrics with incident milestones.
investigation-entrypoint
🐉 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.