[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7580NMZV5D1X9PSDV7ZK77Q":3,"skill-same:01M7580NMZV5D1X9PSDV7ZK77Q":86},{"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},"01M7580NMZV5D1X9PSDV7ZK77Q","safe-sre-investigator",null,"🐉 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.","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\u002Fsafe-sre-investigator\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: safe-sre-investigator\ndescription: 🐉 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.\nmetadata:\n    author: Riccardo Carlesso\n    version: 1.0.8 \n    status: draft\n# See CHANGELOG.md for version history\n---\n\n# Safe SRE Investigator\n\nThis skill helps set up and use dedicated read-only Service Accounts for investigating GCP and Kubernetes resources.\nIt provides wrapper scripts `safe_gcloud` and `safe_kubectl` to ensure commands are run with these limited-privilege accounts.\nWhen suggesting commands, it includes a risk assessment.\n\n\n## Core Tasks\n\n1.  **Setup GCP:** Initialize the GCP service account and `safe_gcloud` script.\n2.  **Setup Kubernetes:** Initialize the Kubernetes service account and `safe_kubectl` script for a specific cluster.\n3.  **Suggest Commands:** Provide `gcloud` or `kubectl` commands with risk assessments.\n\n## 1. Setup GCP (`safe_gcloud`)\n\nWhen first using this skill for a project, or if the user asks for setup, guide them through the one-time setup process for GCP access.\n\n**Action:** Ask the user for the Project ID.\n\n**Script:** Run the setup script:\n```bash\nbash .\u002Fscripts\u002Fsetup_safe_sre_investigator.sh PROJECT_ID\n```\n*   This script is idempotent.\n*   It creates `~\u002Fbin\u002Fsafe_gcloud`.\n*   The user might need to re-source their shell profile.\n*   IAM roles are in `references\u002Fiam_roles.md`.\n\n## 2. Setup Kubernetes (`safe_kubectl`)\n\nThis setup must be run for EACH Kubernetes cluster you want to investigate.\n\n**Action:** Ask the user for the Cluster Name and Cluster Location (Zone or Region).\n\n**Script:** Run the setup script:\n```bash\nbash .\u002Fscripts\u002Fsetup_safe_kubectl.sh CLUSTER_NAME CLUSTER_LOCATION\n```\n*   This script needs to be run with user credentials that have permissions to create ServiceAccounts and ClusterRoleBindings in the target cluster.\n*   It creates a read-only ServiceAccount in the cluster and generates a dedicated kubeconfig in `~\u002F.kube\u002Fsafe-investigator-configs\u002F`.\n*   It also creates `~\u002Fbin\u002Fsafe_kubectl`.\n*   The K8s roles are in `references\u002Fk8s_readonly_role.yaml`.\n\n## 3. Suggesting Commands\n\nWhen the user asks for a command:\n\n*   **GCP:** Use `safe_gcloud PROJECT_ID \u003Cgcloud commands>`.\n*   **Kubernetes:** Use `safe_kubectl CLUSTER_NAME -- \u003Ckubectl commands>`.\n*   **Risk Assessment:** ALWAYS include a risk assessment block. See `references\u002Frisk_assessment.md`.\n*   **Write Operations:** For commands requiring write access, provide the standard `gcloud` or `kubectl` command and warn the user to run it with their own credentials, noting the risks.\n\n**Example `safe_gcloud`:**\n\n```bash\n# 🎬 Check GKE cluster status\n# ⚠️ Risk: ⚪ NONE: This is a read-only operation.\nsafe_gcloud my-project container clusters list\n```\n\n**Example `safe_kubectl`:**\n\n```bash\n# 🎬 List pods in the default namespace\n# ⚠️ Risk: ⚪ NONE: This is a read-only operation.\nsafe_kubectl my-cluster -- get pods -n default\n```\n\n## Bundled Resources\n\n*   `scripts\u002Fsetup_safe_sre_investigator.sh`: GCP setup.\n*   `scripts\u002Fsafe_gcloud_wrapper.sh`: Template for `~\u002Fbin\u002Fsafe_gcloud`.\n*   `scripts\u002Fsetup_safe_kubectl.sh`: Kubernetes setup.\n*   `scripts\u002Fsafe_kubectl_wrapper.sh`: Template for `~\u002Fbin\u002Fsafe_kubectl`.\n*   `references\u002Fiam_roles.md`: GCP IAM roles.\n*   `references\u002Fk8s_readonly_role.yaml`: Kubernetes ClusterRole definition.\n*   `references\u002Frisk_assessment.md`: Risk assessment format.\n","# Safe SRE Investigator\n\nThis skill helps set up and use dedicated read-only Service Accounts for investigating GCP and Kubernetes resources.\nIt provides wrapper scripts `safe_gcloud` and `safe_kubectl` to ensure commands are run with these limited-privilege accounts.\nWhen suggesting commands, it includes a risk assessment.\n\n\n## Core Tasks\n\n1.  **Setup GCP:** Initialize the GCP service account and `safe_gcloud` script.\n2.  **Setup Kubernetes:** Initialize the Kubernetes service account and `safe_kubectl` script for a specific cluster.\n3.  **Suggest Commands:** Provide `gcloud` or `kubectl` commands with risk assessments.\n\n## 1. Setup GCP (`safe_gcloud`)\n\nWhen first using this skill for a project, or if the user asks for setup, guide them through the one-time setup process for GCP access.\n\n**Action:** Ask the user for the Project ID.\n\n**Script:** Run the setup script:\n```bash\nbash .\u002Fscripts\u002Fsetup_safe_sre_investigator.sh PROJECT_ID\n```\n*   This script is idempotent.\n*   It creates `~\u002Fbin\u002Fsafe_gcloud`.\n*   The user might need to re-source their shell profile.\n*   IAM roles are in `references\u002Fiam_roles.md`.\n\n## 2. Setup Kubernetes (`safe_kubectl`)\n\nThis setup must be run for EACH Kubernetes cluster you want to investigate.\n\n**Action:** Ask the user for the Cluster Name and Cluster Location (Zone or Region).\n\n**Script:** Run the setup script:\n```bash\nbash .\u002Fscripts\u002Fsetup_safe_kubectl.sh CLUSTER_NAME CLUSTER_LOCATION\n```\n*   This script needs to be run with user credentials that have permissions to create ServiceAccounts and ClusterRoleBindings in the target cluster.\n*   It creates a read-only ServiceAccount in the cluster and generates a dedicated kubeconfig in `~\u002F.kube\u002Fsafe-investigator-configs\u002F`.\n*   It also creates `~\u002Fbin\u002Fsafe_kubectl`.\n*   The K8s roles are in `references\u002Fk8s_readonly_role.yaml`.\n\n## 3. Suggesting Commands\n\nWhen the user asks for a command:\n\n*   **GCP:** Use `safe_gcloud PROJECT_ID \u003Cgcloud commands>`.\n*   **Kubernetes:** Use `safe_kubectl CLUSTER_NAME -- \u003Ckubectl commands>`.\n*   **Risk Assessment:** ALWAYS include a risk assessment block. See `references\u002Frisk_assessment.md`.\n*   **Write Operations:** For commands requiring write access, provide the standard `gcloud` or `kubectl` command and warn the user to run it with their own credentials, noting the risks.\n\n**Example `safe_gcloud`:**\n\n```bash\n# 🎬 Check GKE cluster status\n# ⚠️ Risk: ⚪ NONE: This is a read-only operation.\nsafe_gcloud my-project container clusters list\n```\n\n**Example `safe_kubectl`:**\n\n```bash\n# 🎬 List pods in the default namespace\n# ⚠️ Risk: ⚪ NONE: This is a read-only operation.\nsafe_kubectl my-cluster -- get pods -n default\n```\n\n## Bundled Resources\n\n*   `scripts\u002Fsetup_safe_sre_investigator.sh`: GCP setup.\n*   `scripts\u002Fsafe_gcloud_wrapper.sh`: Template for `~\u002Fbin\u002Fsafe_gcloud`.\n*   `scripts\u002Fsetup_safe_kubectl.sh`: Kubernetes setup.\n*   `scripts\u002Fsafe_kubectl_wrapper.sh`: Template for `~\u002Fbin\u002Fsafe_kubectl`.\n*   `references\u002Fiam_roles.md`: GCP IAM roles.\n*   `references\u002Fk8s_readonly_role.yaml`: Kubernetes ClusterRole definition.\n*   `references\u002Frisk_assessment.md`: Risk assessment format.\n",{"name":5,"metadata":24,"description":7},{"author":25,"status":26,"version":27},"Riccardo Carlesso","draft","1.0.8","main","4130b149c0b069ef2028e42b3b9f3f84cce935e6","skills\u002Fsafe-sre-investigator",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 safe-sre-investigator",{"tool":42,"command":43},"bunx","bunx skills add gemini-cli-extensions\u002Fsre --skill safe-sre-investigator",{"tool":45,"command":46},"pnpm","pnpm dlx skills add gemini-cli-extensions\u002Fsre --skill safe-sre-investigator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fsre\u002Fblob\u002Fmain\u002Fskills\u002Fsafe-sre-investigator\u002FSKILL.md",true,[50,56,60,64,68,72,76,82],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"BUGS.md","REFERENCE","参考文档",196,"https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fsre\u002Fblob\u002Fmain\u002Fskills\u002Fsafe-sre-investigator\u002FBUGS.md",{"path":57,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":58,"sourceHtmlUrl":59},"CHANGELOG.md",1044,"https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fsre\u002Fblob\u002Fmain\u002Fskills\u002Fsafe-sre-investigator\u002FCHANGELOG.md",{"path":61,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Femail_to_admin.md",2462,"https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fsre\u002Fblob\u002Fmain\u002Fskills\u002Fsafe-sre-investigator\u002Freferences\u002Femail_to_admin.md",{"path":65,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fiam_roles.md",1373,"https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fsre\u002Fblob\u002Fmain\u002Fskills\u002Fsafe-sre-investigator\u002Freferences\u002Fiam_roles.md",{"path":69,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fiam_roles.txt",220,"https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fsre\u002Fblob\u002Fmain\u002Fskills\u002Fsafe-sre-investigator\u002Freferences\u002Fiam_roles.txt",{"path":73,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Frisk_assessment.md",1925,"https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fsre\u002Fblob\u002Fmain\u002Fskills\u002Fsafe-sre-investigator\u002Freferences\u002Frisk_assessment.md",{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"scripts\u002Fsafe_gcloud_wrapper.sh","SCRIPT","脚本",1635,"https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fsre\u002Fblob\u002Fmain\u002Fskills\u002Fsafe-sre-investigator\u002Fscripts\u002Fsafe_gcloud_wrapper.sh",{"path":83,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":84,"sourceHtmlUrl":85},"scripts\u002Fsetup_safe_sre_investigator.sh",6114,"https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fsre\u002Fblob\u002Fmain\u002Fskills\u002Fsafe-sre-investigator\u002Fscripts\u002Fsetup_safe_sre_investigator.sh",[87,94,101,108,115,122],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"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":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"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":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"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":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"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":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":19},"01M75801H56H4EPWBWPBHR0PED","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.","https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fsre\u002Fblob\u002Fmain\u002Fskills\u002Finvestigation-entrypoint\u002FSKILL.md",[],[],{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"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",[],[]]