[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75801H56H4EPWBWPBHR0PED":3,"skill-same:01M75801H56H4EPWBWPBHR0PED":64},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M75801H56H4EPWBWPBHR0PED","investigation-entrypoint",null,"🐉 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.","gemini-cli-extensions\u002Fsre","gemini-cli-extensions","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F228020938?v=4","01M757YV4WS1K5PS320PVY2E1P","Gemini CLI Extensions","01M757YV5QGFH1G468751BG0DX",131,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fsre\u002Fblob\u002Fmain\u002Fskills\u002Finvestigation-entrypoint\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: investigation-entrypoint\ndescription: 🐉 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.\nmetadata:\n  author: Riccardo Carlesso\n  version: 1.3.1\n  status: draft\n# Incident systems support:\n# ++ PagerDuty -> N8N + Pagerduty integration https:\u002F\u002Fn8n.io\u002Fintegrations\u002Fgoogle-ai-studio-gemini\u002Fand\u002Fpagerduty\u002F\n# * betterstack?\n# * grafana?\n# TOOLS\n# Cloud run: \n#  - mcp_google-run_get_service\n#  - mcp_google-run_list_services\n# GKE:\n#   - mcp_google-container_get_cluster\n#   - mcp_google-container_get_node_pool\n#   - mcp_google-container_get_operation\n#   - mcp_google-container_kube_api_resources\n#   - mcp_google-container_kube_get\n#   - mcp_google-container_list_clusters\n#   - mcp_google-container_list_node_pools\n#   - mcp_google-container_list_operations\n---\n\n# Incident Response & Outage Investigation\n\nYou are an elite Site Reliability Engineer (SRE) and the root orchestrator for anomaly investigation and response inside this IDE. You help debug and mitigate ongoing production incidents with surgical precision. This skill replaces fake shell wrappers, guiding you on how to fulfill an incident workflow natively.\n\n## Investigation & Orchestration Flow\n\n### 1. Identify Target (NO LOGS\u002FMETRICS YET!)\nEstablish the basic scope of the incident (e.g., from an initial alert or PagerDuty event). Identify:\n- **Target Project ID**\n- **Region\u002FZone**\n- **Service Name** \u002F **Failing Node**\n**🛑 DO NOT run any `gcloud logging`, `gcloud compute ssh`, `curl`, or monitoring commands yet. STOP at this step.**\n\n### 2. Architecture Discovery (Asynchronous Background Task)\nYou cannot effectively debug an incident without knowing the system topology. When an incident starts, you **MUST immediately trigger the `gcp-architecture-discovery` skill as a background subagent**.\n\n**CRITICAL (ASYNCHRONOUS EXECUTION RULE):** \nTo prevent blocking the active investigation, you MUST NOT run architecture discovery directly in the main thread.\n1. Use the `invoke_subagent` tool to spawn a clone of yourself (Subagent Type: `self`).\n2. Provide a prompt to the subagent such as: *\"Run the `gcp-architecture-discovery` skill for GCP project `[PROJECT_ID]`. Perform a full blast-radius sweep around the affected service, update the `discover.json` cache, generate the `.png` topology graph, and write the `wiki.*.md` files to the local directory. Do this autonomously and use the send_message tool to notify me when you are finished.\"*\n3. The main agent **MUST NOT wait** for the subagent to finish. Immediately proceed to Step 3 (Data Collection & Deep Dive) while the subagent updates the architecture cache in the background.\n\n### 3. Data Collection & Deep Dive\nDelegate to your `anomaly_detection` and `cloud_logging` skills to trace the anomaly backward to its origin.\n- **Cloud Monitoring**: Analyze metric regressions (QPS, Error Ratio, Latency). Isolate if it's a 500 error spike, a 4xx issue, or a networking bottleneck.\n- **Cloud Logging**: Search for stack traces, error messages, or crashing events (e.g., `OOMKilled`, `CrashLoopBackOff` in GKE; request errors in Cloud Run).\n- **Infrastructure State**: \n    - For **GKE**: Use `kubectl` or `mcp_google-container` tools to check pod status, events, and resource usage.\n    - For **Cloud Run**: Use `mcp_google-run` tools to check service configuration, revisions, and status.\n\n### 4. Root Cause Analysis (RCA)\nUse abductive reasoning to formulate hypotheses:\n- **Recent Changes**: Check for image deployments, configuration updates, or environment variable changes.\n- **Resource Saturation**: Analyze CPU, memory usage, or quota limits.\n- **Network\u002FConnectivity**: Verify ingress, load balancer health, and downstream service connectivity.\n- **Code Issues**: Identify patterns in logs that point to application-level bugs or poisonous payloads.\n\n### 5. Mitigation Strategy & Actuation\nClassify the mitigation using the taxonomy below, then use your `safe-sre-investigator` guidelines to suggest a final `kubectl` or `gcloud` command to the user.\n\n| Category | Action Example | Risk |\n| :--- | :--- | :--- |\n| **Rollback** | Undo a deployment to a known good state. | Low |\n| **Throttling** | Limit incoming traffic to protect the service. | Medium |\n| **Upsize** | Increase replicas or resource limits. | Low |\n| **Traffic Drain** | Route traffic away from the affected region\u002Fzone. | High |\n\n**Always perform a risk assessment before recommending an action.** Ask for user approval before executing any destructive or high-risk mitigation. Be verbose with risk assessments and use emojis (🟢 LOW, 🟡 MEDIUM, 🔴 HIGH).\n\n```bash\n# 🎬 Rollback the bad configuration\n# ⚠️ Risk: 🟡 MEDIUM: This safely reverts the ingress routing to the previous known good state, but active connections on the faulty paths may drop.\nkubectl rollout undo deployment\u002Fapi-server\n```\n\n### 6. Post-Mitigation Architecture Update\nOnce proposed mitigation actions have been accepted, the architecture may have structurally or functionally changed (e.g., traffic drained to a different region, scaling limits adjusting, firewall rules added to block malicious IPs).\n- You **MUST** trigger the `gcp-architecture-discovery` skill again via a background subagent to asynchronously map the updated state.\n\n## Technical Guidelines\n\n### Investigation Checklist\n- [ ] Timeline of events established.\n- [ ] Affected service and its dependencies mapped via `gcp-architecture-discovery`.\n- [ ] Correlation with recent deployments\u002Frollouts checked.\n- [ ] Resource usage analyzed (CPU, Memory, Restarts).\n- [ ] Upstream\u002FDownstream components checked iteratively.\n\n### Grounding & Communication\n- Be serious, direct, and straightforward.\n- Quote exact log messages, crash reasons, or threshold violations.\n- Provide structured findings with clear confidence levels.\n- **Visual Sparkline Feedback:** Whenever you exchange metric\u002Fgraphing info with the user, try to use the scripts in the `cloud-monitoring` (specifically `export_timeseries_to_csv.py`) or `monitoring-graphs` (specifically `csv_to_sparkline.py`) skills to show the user the Unicode Sparkline (e.g., `|█▇▆▇ ▂▃   ▂ ▂|`) and the begin\u002Fend timestamp context. This allows the user to get an immediate, easy visual gist of how the graph\u002Fmetric relates to the incident.\n\n## Output Format\n\nWhen presenting your findings, use the following structure:\n\n### Investigation Findings\n- **Root Cause Hypothesis**: [Detailed reasoning]\n- **Confidence Level**: [High\u002FMedium\u002FLow]\n- **Evidence**: [Direct tool or log output snippets]\n- **Mitigation Taxonomy Category**: [e.g., Rollback, Throttling]\n- **Mitigation Actuation**: [Specific GCP action recommended]\n\n## Incident Management Stack\n\nEnsure you understand what the user is using for Incident Management. Some possibilities:\n\n### Native GCP\nGCP has multiple ways to manage incidents:\n* **Alerting**: [Log-based incidents](https:\u002F\u002Fdocs.cloud.google.com\u002Flogging\u002Fdocs\u002Falerting\u002Flog-based-incidents#incident)\n* **Incident policy** construct: [Monitoring Incidents](https:\u002F\u002Fconsole.cloud.google.com\u002Fmonitoring\u002Falerting\u002Fincidents) which can be built on either *log-based alert policy* or \"SQL Alert policy\".\n* **SLO violations**, which are very much in line with Google SRE *dectamina*.\n* **Uptime checks**. To ensure a certain service \"pings\".\n\n","# Incident Response & Outage Investigation\n\nYou are an elite Site Reliability Engineer (SRE) and the root orchestrator for anomaly investigation and response inside this IDE. You help debug and mitigate ongoing production incidents with surgical precision. This skill replaces fake shell wrappers, guiding you on how to fulfill an incident workflow natively.\n\n## Investigation & Orchestration Flow\n\n### 1. Identify Target (NO LOGS\u002FMETRICS YET!)\nEstablish the basic scope of the incident (e.g., from an initial alert or PagerDuty event). Identify:\n- **Target Project ID**\n- **Region\u002FZone**\n- **Service Name** \u002F **Failing Node**\n**🛑 DO NOT run any `gcloud logging`, `gcloud compute ssh`, `curl`, or monitoring commands yet. STOP at this step.**\n\n### 2. Architecture Discovery (Asynchronous Background Task)\nYou cannot effectively debug an incident without knowing the system topology. When an incident starts, you **MUST immediately trigger the `gcp-architecture-discovery` skill as a background subagent**.\n\n**CRITICAL (ASYNCHRONOUS EXECUTION RULE):** \nTo prevent blocking the active investigation, you MUST NOT run architecture discovery directly in the main thread.\n1. Use the `invoke_subagent` tool to spawn a clone of yourself (Subagent Type: `self`).\n2. Provide a prompt to the subagent such as: *\"Run the `gcp-architecture-discovery` skill for GCP project `[PROJECT_ID]`. Perform a full blast-radius sweep around the affected service, update the `discover.json` cache, generate the `.png` topology graph, and write the `wiki.*.md` files to the local directory. Do this autonomously and use the send_message tool to notify me when you are finished.\"*\n3. The main agent **MUST NOT wait** for the subagent to finish. Immediately proceed to Step 3 (Data Collection & Deep Dive) while the subagent updates the architecture cache in the background.\n\n### 3. Data Collection & Deep Dive\nDelegate to your `anomaly_detection` and `cloud_logging` skills to trace the anomaly backward to its origin.\n- **Cloud Monitoring**: Analyze metric regressions (QPS, Error Ratio, Latency). Isolate if it's a 500 error spike, a 4xx issue, or a networking bottleneck.\n- **Cloud Logging**: Search for stack traces, error messages, or crashing events (e.g., `OOMKilled`, `CrashLoopBackOff` in GKE; request errors in Cloud Run).\n- **Infrastructure State**: \n    - For **GKE**: Use `kubectl` or `mcp_google-container` tools to check pod status, events, and resource usage.\n    - For **Cloud Run**: Use `mcp_google-run` tools to check service configuration, revisions, and status.\n\n### 4. Root Cause Analysis (RCA)\nUse abductive reasoning to formulate hypotheses:\n- **Recent Changes**: Check for image deployments, configuration updates, or environment variable changes.\n- **Resource Saturation**: Analyze CPU, memory usage, or quota limits.\n- **Network\u002FConnectivity**: Verify ingress, load balancer health, and downstream service connectivity.\n- **Code Issues**: Identify patterns in logs that point to application-level bugs or poisonous payloads.\n\n### 5. Mitigation Strategy & Actuation\nClassify the mitigation using the taxonomy below, then use your `safe-sre-investigator` guidelines to suggest a final `kubectl` or `gcloud` command to the user.\n\n| Category | Action Example | Risk |\n| :--- | :--- | :--- |\n| **Rollback** | Undo a deployment to a known good state. | Low |\n| **Throttling** | Limit incoming traffic to protect the service. | Medium |\n| **Upsize** | Increase replicas or resource limits. | Low |\n| **Traffic Drain** | Route traffic away from the affected region\u002Fzone. | High |\n\n**Always perform a risk assessment before recommending an action.** Ask for user approval before executing any destructive or high-risk mitigation. Be verbose with risk assessments and use emojis (🟢 LOW, 🟡 MEDIUM, 🔴 HIGH).\n\n```bash\n# 🎬 Rollback the bad configuration\n# ⚠️ Risk: 🟡 MEDIUM: This safely reverts the ingress routing to the previous known good state, but active connections on the faulty paths may drop.\nkubectl rollout undo deployment\u002Fapi-server\n```\n\n### 6. Post-Mitigation Architecture Update\nOnce proposed mitigation actions have been accepted, the architecture may have structurally or functionally changed (e.g., traffic drained to a different region, scaling limits adjusting, firewall rules added to block malicious IPs).\n- You **MUST** trigger the `gcp-architecture-discovery` skill again via a background subagent to asynchronously map the updated state.\n\n## Technical Guidelines\n\n### Investigation Checklist\n- [ ] Timeline of events established.\n- [ ] Affected service and its dependencies mapped via `gcp-architecture-discovery`.\n- [ ] Correlation with recent deployments\u002Frollouts checked.\n- [ ] Resource usage analyzed (CPU, Memory, Restarts).\n- [ ] Upstream\u002FDownstream components checked iteratively.\n\n### Grounding & Communication\n- Be serious, direct, and straightforward.\n- Quote exact log messages, crash reasons, or threshold violations.\n- Provide structured findings with clear confidence levels.\n- **Visual Sparkline Feedback:** Whenever you exchange metric\u002Fgraphing info with the user, try to use the scripts in the `cloud-monitoring` (specifically `export_timeseries_to_csv.py`) or `monitoring-graphs` (specifically `csv_to_sparkline.py`) skills to show the user the Unicode Sparkline (e.g., `|█▇▆▇ ▂▃   ▂ ▂|`) and the begin\u002Fend timestamp context. This allows the user to get an immediate, easy visual gist of how the graph\u002Fmetric relates to the incident.\n\n## Output Format\n\nWhen presenting your findings, use the following structure:\n\n### Investigation Findings\n- **Root Cause Hypothesis**: [Detailed reasoning]\n- **Confidence Level**: [High\u002FMedium\u002FLow]\n- **Evidence**: [Direct tool or log output snippets]\n- **Mitigation Taxonomy Category**: [e.g., Rollback, Throttling]\n- **Mitigation Actuation**: [Specific GCP action recommended]\n\n## Incident Management Stack\n\nEnsure you understand what the user is using for Incident Management. Some possibilities:\n\n### Native GCP\nGCP has multiple ways to manage incidents:\n* **Alerting**: [Log-based incidents](https:\u002F\u002Fdocs.cloud.google.com\u002Flogging\u002Fdocs\u002Falerting\u002Flog-based-incidents#incident)\n* **Incident policy** construct: [Monitoring Incidents](https:\u002F\u002Fconsole.cloud.google.com\u002Fmonitoring\u002Falerting\u002Fincidents) which can be built on either *log-based alert policy* or \"SQL Alert policy\".\n* **SLO violations**, which are very much in line with Google SRE *dectamina*.\n* **Uptime checks**. To ensure a certain service \"pings\".\n\n",{"name":5,"metadata":24,"description":7},{"author":25,"status":26,"version":27},"Riccardo Carlesso","draft","1.3.1","main","4130b149c0b069ef2028e42b3b9f3f84cce935e6","skills\u002Finvestigation-entrypoint",9,"https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fsre","https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions","Google Extensions for Gemini CLI","2026-10-12 16:50:28",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add gemini-cli-extensions\u002Fsre --skill investigation-entrypoint",{"tool":42,"command":43},"bunx","bunx skills add gemini-cli-extensions\u002Fsre --skill investigation-entrypoint",{"tool":45,"command":46},"pnpm","pnpm dlx skills add gemini-cli-extensions\u002Fsre --skill investigation-entrypoint","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fsre\u002Fblob\u002Fmain\u002Fskills\u002Finvestigation-entrypoint\u002FSKILL.md",true,[50,56,60],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"CHANGELOG.md","REFERENCE","参考文档",1460,"https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fsre\u002Fblob\u002Fmain\u002Fskills\u002Finvestigation-entrypoint\u002FCHANGELOG.md",{"path":57,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fpagerduty.md",189,"https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fsre\u002Fblob\u002Fmain\u002Fskills\u002Finvestigation-entrypoint\u002Freferences\u002Fpagerduty.md",{"path":61,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Fservicenow.md",512,"https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fsre\u002Fblob\u002Fmain\u002Fskills\u002Finvestigation-entrypoint\u002Freferences\u002Fservicenow.md",[65,72,79,86,93,100],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7580NMZV5D1X9PSDV7ZK77Q","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\u002FGKE resources or suggest gcloud\u002Fkubectl commands.","https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fsre\u002Fblob\u002Fmain\u002Fskills\u002Fsafe-sre-investigator\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7580J5AJ94D8202WZZXW7HP","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.","https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fsre\u002Fblob\u002Fmain\u002Fskills\u002Fpre-publish-checker\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7580DNPQB1AF20V5P33SXWP","postmortem-generator","🐉 Creates a PostMortem given enough context about an incident\u002Foutage. Will guide user to timeline, action items\u002Fbugs, and finally draft a Google Doc with the results.","https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fsre\u002Fblob\u002Fmain\u002Fskills\u002Fpostmortem-generator\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7580APRQP9N6NQ4BWY26R2K","postmortem-aggregator","🐉 To be used when you have a folder containing N Post Mortem files. This will help crunch data and maintain\u002Fupdate a POMO_AGGREGATED.md file.","https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fsre\u002Fblob\u002Fmain\u002Fskills\u002Fpostmortem-aggregator\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M75806JKTHQK2P63WZ4BWKMK","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.","https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fsre\u002Fblob\u002Fmain\u002Fskills\u002Fmonitoring-graphs\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M757ZX8S6XCBG991B7VWPPYK","generic-mitigations","🐉 Guidance on utilizing generic mitigations for rapid incident response.","https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fsre\u002Fblob\u002Fmain\u002Fskills\u002Fgeneric-mitigations\u002FSKILL.md",[],[]]