Skip to content
Back to search

google-plugins

MarketplaceWorks with Claude CodeOfficial: GoogleGitHubIncomplete

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today

Check it deeper on your machine

It has changed since its scan on 11 Nov 2026. Its scripts were only partly scanned.

As a Claude Code plugin, install it and then ask Claude Code:

/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/google/skills with scanskillsafety

Or from a terminal, clone it and run it:

git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/google/skills'

It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/google-skills/badge.svg)](/listings/google-skills)

HTML

<a href="/listings/google-skills"><img src="/api/listings/google-skills/badge.svg" alt="findsafeskills safety rating" /></a>

Install

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

npx skills add google/skills

When prompted, select specific skills or all skills, the target agents to configure, and the installation scope (project or global).

If `npx` is not available in your environment, install [Node.js](https://nodejs.org/en/download), which includes `npm` and `npx`.

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

.claude-plugin/marketplace.json · Manifest · 162 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. {
  2. "name": "google-plugins",
  3. "owner": {
  4. "name": "Google LLC"
  5. },
  6. "metadata": {
  7. "version": "0.0.1",
  8. "description": "A central repository of official skills and prescriptive plugins designed to provide a high-performance experience for building and deploying agentic applications across Google products and technologies."
  9. },
  10. "plugins": [
  11. {
  12. "name": "alloydb",
  13. "source": {
  14. "source": "github",
  15. "repo": "GoogleCloudPlatform/alloydb-plugin",
  16. "ref": "0.2.0"
  17. },
  18. "description": "Create, connect, and interact with an AlloyDB for PostgreSQL database and data."
  19. },
  20. {
  21. "name": "alloydb-omni",
  22. "source": {
  23. "source": "github",
  24. "repo": "GoogleCloudPlatform/alloydb-omni-plugin",
  25. "ref": "0.2.2"
  26. },
  27. "description": "Create, connect, and interact with an AlloyDB Omni database and data."
  28. },
  29. {
  30. "name": "bigquery",
  31. "source": {
  32. "source": "github",
  33. "repo": "GoogleCloudPlatform/bigquery-data-analytics-plugin",
  34. "ref": "0.2.5"
  35. },
  36. "description": "Data Analytics skills for BigQuery."
  37. },
  38. {
  39. "name": "bigtable",
  40. "source": {
  41. "source": "github",
  42. "repo": "GoogleCloudPlatform/cloud-bigtable-ecosystem",
  43. "ref": "v0.4.0"
  44. },
  45. "description": "Connect, query, and interact with Cloud Bigtable."
  46. },
  47. {
  48. "name": "cloud-sql-mysql",
  49. "source": {
  50. "source": "github",
  51. "repo": "GoogleCloudPlatform/cloud-sql-mysql-plugin",
  52. "ref": "0.2.0"
  53. },
  54. "description": "Connect and interact with a Cloud SQL for MySQL database and data."
  55. },
  56. {
  57. "name": "cloud-sql-postgresql",
  58. "source": {
  59. "source": "github",
  60. "repo": "GoogleCloudPlatform/cloud-sql-postgresql-plugin",
  61. "ref": "0.4.0"
  62. },
  63. "description": "Create, connect, and interact with a Cloud SQL for PostgreSQL database and data."
  64. },
  65. {
  66. "name": "cloud-sql-sqlserver",
  67. "source": {
  68. "source": "github",
  69. "repo": "GoogleCloudPlatform/cloud-sql-sqlserver-plugin",
  70. "ref": "0.2.0"
  71. },
  72. "description": "Connect to Cloud SQL for SQL Server."
  73. },
  74. {
  75. "name": "data-agent-kit",
  76. "source": {
  77. "source": "github",
  78. "repo": "GoogleCloudPlatform/data-agent-kit-plugin",
  79. "ref": "1.0.0"
  80. },
  81. "description": "This plugin provides a specialized suite of skills for data engineers and database practitioners working on Google Cloud. It acts as an expert assistant, allowing you to use natural language prompts in your preferred coding agent to architect complex data pipelines, transform data with dbt, write Spark and BigQuery SQL notebooks, and orchestrate end-to-end workflows across GCP's data ecosystem."
  82. },
  83. {
  84. "name": "dataproc",
  85. "source": {
  86. "source": "github",
  87. "repo": "GoogleCloudPlatform/dataproc-plugin",
  88. "ref": "0.1.0"
  89. },
  90. "description": "Skills for Dataproc."
  91. },
  92. {
  93. "name": "db-context-engineering",
  94. "source": {
  95. "source": "git-subdir",
  96. "url": "GoogleCloudPlatform/db-context-enrichment",
  97. "path": "plugin",
  98. "ref": "v0.7.2"
  99. },
  100. "description": "Context Engineering Agent for generating and maintaining QueryData / Conversational Analytics API context sets (templates, facets, value searches) for natural language to SQL tasks. Works with AlloyDB, Cloud SQL for MySQL, Cloud SQL for PostgreSQL, and Spanner."
  101. },
  102. {
  103. "name": "firestore-native",
  104. "source": {
  105. "source": "github",
  106. "repo": "GoogleCloudPlatform/firestore-native-plugin",
  107. "ref": "0.3.4"
  108. },
  109. "description": "Connect and interact with Cloud Firestore."
  110. },
  111. {
  112. "name": "google-cloud-developer",
  113. "source": "./plugins/cloud/google-cloud-developer",
  114. "description": "Core Google Cloud guidance for coding agents: first-project onboarding, authentication and credential selection, and safety-critical validation for gcloud CLI commands. Includes the Google Developer Knowledge MCP server for grounded, up-to-date Google Cloud documentation."
  115. },
  116. {
  117. "name": "google-cloud-storage",
  118. "source": {
  119. "source": "github",
  120. "repo": "GoogleCloudPlatform/google-cloud-storage-plugin",
  121. "ref": "3.0.1"
  122. },
  123. "description": "Vetted Google Cloud Storage skills for your coding agent."
  124. },
  125. {
  126. "name": "knowledge-catalog",
  127. "source": {
  128. "source": "github",
  129. "repo": "GoogleCloudPlatform/knowledge-catalog-plugin",
  130. "ref": "0.5.4"
  131. },
  132. "description": "Skills for Knowledge Catalog."
  133. },
  134. {
  135. "name": "looker",
  136. "source": {
  137. "source": "github",
  138. "repo": "GoogleCloudPlatform/looker-plugin",
  139. "ref": "0.3.11"
  140. },
  141. "description": "Connect to Looker."
  142. },
  143. {
  144. "name": "oracledb",
  145. "source": {
  146. "source": "github",
  147. "repo": "GoogleCloudPlatform/oracledb-plugin",
  148. "ref": "0.2.7"
  149. },
  150. "description": "Connect, query, and interact with Oracle Databases and their data within Gemini CLI."
  151. },
  152. {
  153. "name": "spanner",
  154. "source": {
  155. "source": "github",
  156. "repo": "GoogleCloudPlatform/spanner-plugin",
  157. "ref": "0.3.6"
  158. },
  159. "description": "Connect and interact with Spanner data using natural language."
  160. }
  161. ]
  162. }
README.md · README · 295 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. # Agent Skills
  2. [![Install via skills.sh](https://img.shields.io/badge/skills.sh-install-green)](https://skills.sh/google/skills)
  3. This repository contains [Agent Skills](https://agentskills.io/home) for Google
  4. products and technologies, including [Google Cloud](https://cloud.google.com).
  5. ## Installation
  6. ```bash
  7. npx skills add google/skills
  8. ```
  9. When prompted, select specific skills or all skills, the target agents to
  10. configure, and the installation scope (project or global).
  11. If `npx` is not available in your environment, install
  12. [Node.js](https://nodejs.org/en/download), which includes `npm` and `npx`.
  13. ## Updating Skills
  14. To update previously installed skills to the latest versions, run the following
  15. command.
  16. ```bash
  17. npx skills update
  18. ```
  19. This command gives you an option to also remove obsolete skills.
  20. ## Available Skills
  21. <!-- BEGIN SKILLS -->
  22. - **Getting started with Google Cloud**
  23. - [**Authenticating and Authorizing to Google Cloud (IAM)**](./skills/cloud/google-cloud-recipe-auth)
  24. - [**Google Cloud Recipe: Foundation Builder**](./skills/cloud/google-cloud-recipe-foundation-builder)
  25. - [**Onboarding to Google Cloud**](./skills/cloud/google-cloud-recipe-onboarding)
  26. - **Multi-product solution skills**
  27. - [**Google Cloud solution-architecture workflow**](./skills/cloud/google-cloud-solution-architecture)
  28. - [**Agent Gateway multi-agent security**](./skills/cloud/google-cloud-solution-multi-agent-security)
  29. - [**Agentic analytics across cloud providers and data types**](./skills/cloud/google-cloud-solution-agentic-analytics-spark-knowledge-catalog)
  30. - [**Borderless open data lakehouse agentic AI system**](./skills/cloud/google-cloud-solution-agentic-ai-borderless-data-lakehouse)
  31. - [**Build and deploy AI agents on Google Cloud**](./skills/cloud/google-cloud-solution-build-deploy-agents)
  32. - [**Data science workflow with AI agents solution**](./skills/cloud/google-cloud-solution-agentic-ai-data-science-workflow)
  33. - [**Dynamic Hybrid Search using AlloyDB**](./skills/cloud/google-cloud-solution-hybrid-search-alloydb)
  34. - [**Google Skill Finder**](./skills/developers/finding-google-skills)
  35. - [**Live bidirectional multimodal streaming agentic AI solution**](./skills/cloud/google-cloud-solution-agentic-ai-bidirectional-streaming)
  36. - [**Migrate AI Workloads to GKE Inference**](./skills/cloud/google-cloud-solution-guided-gke-ai-migration)
  37. - [**RAG for enterprise search using GKE and AlloyDB**](./skills/cloud/google-cloud-solution-rag-enterprise-search-gke-sqldb)
  38. - [**Secure n-tier serverless web application with strict private application tiers**](./skills/cloud/google-cloud-solution-n-tier-serverless-web-app)
  39. - **AI/ML**
  40. - [**Agent Access Audit**](./skills/cloud/agent-platform-access-audit)
  41. - [**Agent Platform Alert Configuration**](./skills/cloud/agent-platform-alert-configuration)
  42. - [**Agent Platform Autorater Customization**](./skills/cloud/agent-platform-autorater-customization)
  43. - [**Agent Platform Endpoint Management**](./skills/cloud/agent-platform-endpoint-management)
  44. - [**Agent Platform Eval Flywheel Skill**](./skills/cloud/agent-platform-eval-flywheel)
  45. - [**Agent Platform GenAI Inference Skill**](./skills/cloud/agent-platform-inference)
  46. - [**Agent Platform Model Garden Deploy Skill**](./skills/cloud/agent-platform-deploy)
  47. - [**Agent Platform Model Registry Management**](./skills/cloud/agent-platform-model-registry)
  48. - [**Agent Platform Model Tuning**](./skills/cloud/agent-platform-tuning)
  49. - [**Agent Platform Prompt Management**](./skills/cloud/agent-platform-prompt-management)
  50. - [**Agent Platform RAG Engine Management**](./skills/cloud/agent-platform-rag-engine-management)
  51. - [**Agent Platform Troubleshooting**](./skills/cloud/agent-platform-troubleshooting)
  52. - [**Agent Platform Tuning Management**](./skills/cloud/agent-platform-tuning-management)
  53. - [**API Gateway Remote MCP Server (Public Preview)**](./skills/cloud/api-gateway-mcp-server)
  54. - [**Apigee as an Agent Gateway Service Extension**](./skills/cloud/apigee-agent-gateway-governance)
  55. - [**BigQuery AI & ML**](./skills/cloud/bigquery-ai-ml)
  56. - [**Gemini API in Agent Platform**](./skills/cloud/gemini-api)
  57. - [**Gemini Enterprise Agent Platform - Managed Agents API Skill**](./skills/cloud/gemini-agents-api)
  58. - [**Gemini Interactions API Skill**](./skills/cloud/gemini-interactions-api)
  59. - [**Gemini platform Architecture and Engineering Guide**](./skills/cloud/agent-platform-architecture)
  60. - [**Genkit Dart**](./skills/cloud/developing-genkit-dart)
  61. - [**Genkit Go**](./skills/cloud/developing-genkit-go)
  62. - [**Genkit JS**](./skills/cloud/developing-genkit-js)
  63. - [**Genkit Python**](./skills/cloud/developing-genkit-python)
  64. - [**LiteRT on Google Tensor: compile, benchmark, package for apps**](./skills/platform-devices/litert-google-tensor)
  65. - [**LiveAPI Service Skill**](./skills/cloud/gemini-live-api)
  66. - [**Migrating from Gemini API in AI Studio to Agent Platform**](./skills/cloud/agent-platform-migrate-from-ai-studio)
  67. - [**Pathways on Cloud Workload Debugging Skill**](./skills/cloud/pathways-workload)
  68. - [**Skill Registry**](./skills/cloud/agent-platform-skill-registry)
  69. - [**Troubleshoot GKE TPU multi-slice hangs with the MXLA Hang Analyzer**](./skills/cloud/gke-ai-troubleshooting-tpu-mxla-hang)
  70. - [**Troubleshoot GKE TPU performance degradation with ML Diagnostics Workload Monitoring**](./skills/cloud/gke-ai-troubleshooting-tpu-performance-degradation)
  71. - **Infrastructure**
  72. - [**Cloud Network Insights**](./skills/cloud/cloud-network-insights)
  73. - [**Cloud Storage Basics**](./skills/cloud/google-cloud-storage-basics)
  74. - [**Cloud Storage Bucket Architect**](./skills/cloud/google-cloud-storage-bucket-architect)
  75. - [**Cloud Storage Diagnostic**](./skills/cloud/google-cloud-storage-diagnostic)
  76. - [**Cloud Storage FUSE**](./skills/cloud/google-cloud-storage-fuse)
  77. - [**Compute Engine Future Reservations & Calendar-Mode Feasibility**](./skills/cloud/compute-future-reservations)
  78. - [**Compute Engine Managed Instance Group (MIG) Autoscaling Troubleshooting**](./skills/cloud/compute-mig-autoscaling-troubleshooting)
  79. - [**Compute Engine On-Demand Reservations**](./skills/cloud/compute-on-demand-reservations)
  80. - [**Compute Engine Spot Capacity Advice**](./skills/cloud/compute-spot-capacity-advice)
  81. - [**Compute Engine VM Creation**](./skills/cloud/compute-vm-creation)
  82. - [**Compute Engine VM Host Events & Infrastructure Crash Troubleshooting**](./skills/cloud/compute-host-events-troubleshooting)
  83. - [**Designing and Deploying GCP Infrastructure with Application Design Center**](./skills/cloud/application-design-center-design-deploy)
  84. - [**Filestore Auditing Skill**](./skills/cloud/google-cloud-filestore-auditing)
  85. - [**Filestore Autoscale**](./skills/cloud/google-cloud-filestore-autoscale)
  86. - [**Filestore Log-Based Troubleshooting**](./skills/cloud/google-cloud-filestore-log-troubleshooting)
  87. - [**Filestore NFS File Browser**](./skills/cloud/google-cloud-filestore-nfs-browser)
  88. - [**GKE AI/ML Inference**](./skills/cloud/gke-inference)
  89. - [**GKE Alert Configuration**](./skills/cloud/gke-alert-configuration)
  90. - [**GKE App Onboarding**](./skills/cloud/gke-app-onboarding)
  91. - [**GKE Backup & Disaster Recovery**](./skills/cloud/gke-backup-dr)
  92. - [**GKE Basics & Critical Gotchas**](./skills/cloud/gke-basics)
  93. - [**GKE Batch & HPC Workloads**](./skills/cloud/gke-batch-hpc)
  94. - [**GKE Cluster Autoscaler**](./skills/cloud/gke-cluster-autoscaler)
  95. - [**GKE Cluster Creation**](./skills/cloud/gke-cluster-creation)
  96. - [**GKE ComputeClasses**](./skills/cloud/gke-compute-classes)
  97. - [**GKE Golden Base Image Discovery Expert**](./skills/cloud/gke-custom-golden-image-discovery)
  98. - [**GKE Golden Path Configuration**](./skills/cloud/gke-golden-path)
  99. - [**GKE JobSet Interruption Troubleshooting**](./skills/cloud/gke-ai-troubleshooting-jobset-interruption)
  100. - [**GKE Kueue troubleshooting**](./skills/cloud/gke-kueue-troubleshooting)
  101. - [**GKE Manifest Generation Skill**](./skills/cloud/gke-manifest-generation)
  102. - [**GKE Multi-Tenancy**](./skills/cloud/gke-multitenancy)
  103. - [**GKE Networking**](./skills/cloud/gke-networking)
  104. - [**GKE Node NotReady Troubleshooting Skill**](./skills/cloud/gke-node-notready)
  105. - [**GKE Productionize Skill**](./skills/cloud/gke-productionize)
  106. - [**GKE Reliability**](./skills/cloud/gke-reliability)
  107. - [**GKE Service Networking Skill**](./skills/cloud/gke-service-networking)
  108. - [**GKE StatefulSet without readiness probes**](./skills/cloud/gke-statefulset-without-probes)
  109. - [**GKE Storage**](./skills/cloud/gke-storage)
  110. - [**GKE Storage Troubleshooting Skill**](./skills/cloud/gke-storage-troubleshooting)
  111. - [**GKE TPU Dynamic Slices Monitoring & Management**](./skills/cloud/gke-ai-troubleshooting-tpu-dynamic-slices-monitoring)
  112. - [**GKE unprotected StatefulSet skill**](./skills/cloud/gke-unprotected-statefulset)
  113. - [**GKE Upgrades & Maintenance**](./skills/cloud/gke-upgrades)
  114. - [**GKE Workload Scaling**](./skills/cloud/gke-workload-scaling)
  115. - [**GKE Workload Scaling Troubleshooting Skill**](./skills/cloud/gke-workload-scaling-troubleshooting)
  116. - [**GKE Workload Troubleshooting Skill**](./skills/cloud/gke-workload-troubleshooting)
  117. - [**Google Cloud global external Application Load Balancer Configuration Skill**](./skills/cloud/google-cloud-global-frontend-configuration)
  118. - [**Google Cloud Networking Observability Expert**](./skills/cloud/google-cloud-networking-observability)
  119. - [**Triage GKE capacity constraints for a Pending workload**](./skills/cloud/gke-capacity-triage)
  120. - [**Troubleshoot GKE TPU reservation stockouts caused by leaked node pool capacity**](./skills/cloud/gke-ai-troubleshooting-tpu-reservation-stockout)
  121. - [**Troubleshoot GKE TPU slice creation blocked by an unstable MIG**](./skills/cloud/gke-ai-troubleshooting-tpu-slice-mig-stuck-updating)
  122. - [**Troubleshoot GKE TPU VMs stuck in Compute Engine repair (`REPAIRING`)**](./skills/cloud/gke-ai-troubleshooting-tpu-vm-repair-stuck)
  123. - [**Troubleshoot TPU slice creation failures caused by partition overlap**](./skills/cloud/gke-ai-troubleshooting-tpu-partition-overlap)
  124. - [**Troubleshoot unresponsive GKE TPU and GPU nodes (`NodeStatusUnknown`)**](./skills/cloud/gke-ai-troubleshooting-node-unresponsive-timeout)
  125. - **Databases and analytics**
  126. - [**AlloyDB Basics**](./skills/cloud/alloydb-basics)
  127. - [**BigFrames (BigQuery DataFrame) basics**](./skills/cloud/bigquery-bigframes)
  128. - [**BigQuery Asset Impact Analysis**](./skills/cloud/datalineage-bigquery-asset-impact-analysis)
  129. - [**BigQuery Basics**](./skills/cloud/bigquery-basics)
  130. - [**BigQuery Migration Data Loader**](./skills/cloud/bigquery-migration-data-loader)
  131. - [**BigQuery Migration Metadata Extraction**](./skills/cloud/bigquery-migration-metadata-extractor)
  132. - [**BigQuery Migration Service (BQMS) SQL Translator**](./skills/cloud/bigquery-migration-sql-translator)
  133. - [**BigQuery Migration Validator**](./skills/cloud/bigquery-migration-validator)
  134. - [**BigQuery Observability**](./skills/cloud/bigquery-observability)
  135. - [**BigQuery Optimization Workflow**](./skills/cloud/bigquery-optimization)
  136. - [**BigQuery Troubleshooting**](./skills/cloud/bigquery-troubleshooting)
  137. - [**BigQuery User-Defined Functions (UDFs)**](./skills/cloud/bigquery-udfs)
  138. - [**Bigtable Basics**](./skills/cloud/bigtable-basics)
  139. - [**Cloud SQL Basics**](./skills/cloud/cloud-sql-basics)
  140. - [**Data Lineage Summary**](./skills/cloud/datalineage-summary)
  141. - [**dbt Snowflake to BigQuery Translator**](./skills/cloud/dbt-sf-to-bq-translator)
  142. - [**GCP Managed Airflow DAG Authoring Guide**](./skills/cloud/managed-airflow-dag-authoring)
  143. - [**Google Cloud Database Onboarding Skill**](./skills/cloud/cloud-databases-onboarding)
  144. - [**Managed Service for Apache Airflow (formerly Cloud Composer) DAG troubleshooting guide**](./skills/cloud/managed-airflow-dag-troubleshooting)
  145. - [**Managed Service for Apache Airflow (formerly Cloud Composer) Migration Guide**](./skills/cloud/managed-airflow-migrations)
  146. - [**Managed Service for Apache Airflow (formerly Cloud Composer) recommendations**](./skills/cloud/managed-airflow-recommendations)
  147. - [**Spanner Basics**](./skills/cloud/spanner-basics)
  148. - **Developer tools**
  149. - [**Cloud Build Basics**](./skills/cloud/cloud-build-basics)
  150. - [**Cloud Operator**](./skills/cloud/cloud-operator)
  151. - [**Developer Device Platform**](./skills/cloud/developer-device-platform-basics)
  152. - [**Developer Device Platform: Device Run**](./skills/cloud/developer-device-platform-device-run)
  153. - [**gcloud CLI Skill for AI Agents**](./skills/cloud/gcloud)
  154. - [**Gerrit Code Review**](./skills/developers/gerrit-code-review)
  155. - [**Google Agents CLI Onboarding**](./skills/cloud/google-agents-cli-onboarding)
  156. - [**Google Cloud Release Radar**](./skills/cloud/google-cloud-release-radar)
  157. - [**Google Developer Knowledge**](./skills/developers/retrieving-developer-knowledge)
  158. - [**Set up the operator agent**](./skills/cloud/cloud-operator-setup)
  159. - [**Share existing Google Cloud context with the operator agent**](./skills/cloud/cloud-operator-share-context)
  160. - **Application development**
  161. - [**API Gateway OpenAPI Spec Authoring**](./skills/cloud/api-gateway-openapi-spec-authoring)
  162. - [**Application Integration Authoring**](./skills/cloud/application-integration-authoring)
  163. - [**Application Integration Basics**](./skills/cloud/application-integration-basics)
  164. - [**Application Integration Troubleshooting**](./skills/cloud/application-integration-troubleshooting)
  165. - [**Migrate Legacy Codebases to Safe Rust**](./skills/developers/migrate-to-rust)
  166. - **Management tools**
  167. - [**Cloud Logging Finops**](./skills/cloud/cloud-logging-finops)
  168. - [**Cloud Monitoring Chart Generation Skill (`cloud-monitoring-chart-generation`)**](./skills/cloud/cloud-monitoring-chart-generation)
  169. - [**Cloud Monitoring ListTimeSeries Request Generator**](./skills/cloud/cloud-monitoring-list-time-series-request)
  170. - [**Cloud Monitoring Notification Channels Configuration**](./skills/cloud/cloud-monitoring-notification-channels-configuration)
  171. - [**Cloud Monitoring PromQL Generator**](./skills/cloud/cloud-monitoring-promql-query)
  172. - [**Cloud Trace Querying Skill (`cloud-trace-querying`)**](./skills/cloud/cloud-trace-querying)
  173. - [**Configure Cloud Monitoring Alerts**](./skills/cloud/cloud-monitoring-alert-configuration)
  174. - [**Configuring Cloud Logging**](./skills/cloud/cloud-logging-configuration-basics)
  175. - [**Configuring Cross-Project Logging**](./skills/cloud/cloud-logging-cross-project-configuration)
  176. - [**Generate Logging Query Language queries**](./skills/cloud/cloud-logging-query-generation)
  177. - [**GKE Cost Analysis**](./skills/cloud/gke-cost-analysis)
  178. - [**GKE Cost Optimization**](./skills/cloud/gke-cost-optimization)
  179. - [**GKE Observability**](./skills/cloud/gke-observability)
  180. - [**GKE TPU Metrics Monitoring Guide**](./skills/cloud/gke-ai-troubleshooting-tpu-metrics-monitoring)
  181. - [**Handle Disruption on GPUs and TPUs Troubleshooting**](./skills/cloud/gke-ai-troubleshooting-handle-disruption-gpu-tpu)
  182. - [**Metric Selection (Service Query & Local Keyword Filtering)**](./skills/cloud/cloud-monitoring-metric-selection)
  183. - [**Personalized Service Health incident correlation**](./skills/cloud/servicehealth-incident-correlation)
  184. - [**SLO Alert Configuration Setup Wizard**](./skills/cloud/google-cloud-slo-alert-configuration)
  185. - [**TPU Connection Failure and VBAR OOM Troubleshooting**](./skills/cloud/gke-ai-troubleshooting-tpu-vbar-oom)
  186. - [**Workload Manager Basics**](./skills/cloud/workload-manager-basics)
  187. - **Well-Architected Framework**
  188. - [**Google Cloud Well-Architected Framework skill for the Cost Optimization pillar**](./skills/cloud/google-cloud-waf-cost-optimization)
  189. - [**Google Cloud Well-Architected Framework skill for the Operational Excellence pillar**](./skills/cloud/google-cloud-waf-operational-excellence)
  190. - [**Google Cloud Well-Architected Framework skill for the Performance Optimization pillar**](./skills/cloud/google-cloud-waf-performance-optimization)
  191. - [**Google Cloud Well-Architected Framework skill for the Reliability pillar**](./skills/cloud/google-cloud-waf-reliability)
  192. - [**Google Cloud Well-Architected Framework skill for the Security, Privacy, and Compliance pillar**](./skills/cloud/google-cloud-waf-security)
  193. - [**Google Cloud Well-Architected Framework skill for the Sustainability pillar**](./skills/cloud/google-cloud-waf-sustainability)
  194. - **Security and identity**
  195. - [**API Gateway Backend Security and Rate Limiting**](./skills/cloud/api-gateway-backend-security-and-rate-limiting)
  196. - [**Cloud Armor OWASP Rule Upgrader (CRS 3.0/3.3 -> 4.22)**](./skills/cloud/cloud-armor-crs-rule-upgrader)
  197. - [**Compliance Environment Assessor Skill**](./skills/cloud/assuredworkloads-environment-assessor)
  198. - [**Custom Resource Authoring & Synthesis Skill (`assuredworkloads-frameworks-author`)**](./skills/cloud/assuredworkloads-frameworks-author)
  199. - [**Data Boundary Framework Navigator (`assuredworkloads-frameworks-navigator`)**](./skills/cloud/assuredworkloads-frameworks-navigator)
  200. - [**DPoP Adoption & Identity Security Architecture**](./skills/identity/dpop-adoption)
  201. - [**GKE Platform Security**](./skills/cloud/gke-platform-security)
  202. - [**GKE Workload Identity Federation Troubleshooting Skill**](./skills/cloud/gke-workload-identity)
  203. - [**GKE Workload Security**](./skills/cloud/gke-workload-security)
  204. - [**Google Cloud Assured Workloads Basics (V1 GA)**](./skills/cloud/assured-workloads-basics)
  205. - [**Google Cloud Security Command Center Remediation**](./skills/cloud/google-cloud-scc-remediation)
  206. - [**Google SecOps Case Management Skill for AI Agents**](./skills/cloud/secops-cases)
  207. - [**Google SecOps Detection Engineering Skill**](./skills/cloud/secops-detection-engineering)
  208. - [**Google SecOps Incident & Entity Investigation Skill**](./skills/cloud/secops-investigate)
  209. - [**Google SecOps Security Alert Triage Specialist**](./skills/cloud/secops-triage)
  210. - [**Google SecOps Threat Hunting Skill**](./skills/cloud/secops-hunt)
  211. - [**IAM Access Troubleshooter & Remediation Orchestrator on Google Cloud**](./skills/cloud/iam-helper-for-troubleshooting)
  212. - [**IAM Helper for Policy Management**](./skills/cloud/iam-helper-for-policy-management)
  213. - [**IAM Policy Simulator (v1 Allow)**](./skills/cloud/iam-helper-for-policy-simulator)
  214. - [**IAP troubleshooting for Gemini Enterprise Agent Platform**](./skills/cloud/iap-agent-platform-troubleshooting)
  215. - [**Privileged Access Manager (PAM)**](./skills/cloud/iam-helper-for-privileged-access-management)
  216. - [**SecOps Detection Coverage Skill**](./skills/cloud/detection-engineering-coverage-evaluation)
  217. - [**Security Command Center Query Skill on Google Cloud**](./skills/cloud/google-cloud-scc-query)
  218. - [**Sign In With Google (SiwG) Integration & Security Architecture**](./skills/identity/sign-in-with-google-web)
  219. - **Web and app hosting**
  220. - [**API Gateway Troubleshooting**](./skills/cloud/api-gateway-troubleshooting)
  221. - [**Cloud Run Alert Configuration**](./skills/cloud/cloud-run-alert-configuration)
  222. - [**Cloud Run Basics**](./skills/cloud/cloud-run-basics)
  223. - [**Firebase Basics**](./skills/cloud/firebase-basics)
  224. - **Advertising**
  225. - [**AI Migration Agent Instructions for the Google Mobile Ads SDK**](./skills/ads/google-mobile-ads-android-migrate-to-next-gen)
  226. - [**Data Manager API Audience Ingestion**](./skills/ads/data-manager-api-audience-ingestion)
  227. - [**Data Manager API Event Ingestion**](./skills/ads/data-manager-api-event-ingestion)
  228. - [**Data Manager API Setup**](./skills/ads/data-manager-api-setup)
  229. - [**Data Manager API Troubleshooting**](./skills/ads/data-manager-api-troubleshooting)
  230. - [**Google Ads API Account Performance Diagnostics Skill**](./skills/ads/google-ads-api-account-diagnostics)
  231. - [**Google Ads API MCP Server Installation**](./skills/ads/google-ads-api-mcp-setup)
  232. - [**Google Ads API Quickstart**](./skills/ads/google-ads-api-quickstart)
  233. - [**Google Mobile Ads SDK - Banner Ads**](./skills/ads/google-mobile-ads-banner)
  234. - [**Google Mobile Ads SDK - Install**](./skills/ads/google-mobile-ads-get-started)
  235. - [**Google Mobile Ads SDK - Interstitial Ads**](./skills/ads/google-mobile-ads-interstitial)
  236. - [**Google Mobile Ads SDK - Rewarded Ads**](./skills/ads/google-mobile-ads-rewarded)
  237. - [**IMA DAI SDK**](./skills/ads/ima-dai-sdk)
  238. - [**IMA SDK client-side**](./skills/ads/ima-sdk-client-side)
  239. - [**Validate Google Mobile Ads SDK Integration**](./skills/ads/google-mobile-ads-validate)
  240. - **Others**
  241. - [**Getting Started with Google Analytics Admin API**](./skills/analytics/google-analytics-admin-api-basics)
  242. - [**Getting Started with Google Analytics Data API**](./skills/analytics/google-analytics-data-api-basics)
  243. <!-- END SKILLS -->
  244. ## Additional Google skills
  245. - [**Advanced Google Cloud Storage Skills**](https://github.com/gemini-cli-extensions/google-cloud-storage)
  246. - [**Agent Development Kit (ADK) Skills**](https://github.com/google/agents-cli)
  247. - [**Android Skills**](https://github.com/android/skills)
  248. - [**Dart Skills**](https://github.com/dart-lang/skills)
  249. - [**Firestore Skills**](https://github.com/firebase/agent-skills/tree/main/skills/firebase-firestore)
  250. - [**Flutter Skills**](https://github.com/flutter/skills)
  251. - [**Google Maps Platform Skills**](https://github.com/googlemaps/agent-skills)
  252. ## Plugins
  253. This repo also bundles Google product plugins (Skills + MCP servers) for agent harnesses.
  254. | Agent harness | Install |
  255. | :--- | :--- |
  256. | **Claude Code** | `claude plugin marketplace add google/skills`, then `claude plugin install <plugin>@google-plugins` |
  257. | **Codex** | `codex plugin marketplace add google/skills`, then install from the `/plugins` browser |
  258. | **Antigravity CLI** | `agy plugin install https://github.com/google/skills/<plugin-path>` |
  259. ## Support
  260. If you need help or encounter issues with these skills, search for existing
  261. issues or open a new one in the
  262. [GitHub Issue Tracker](https://github.com/google/skills/issues).
  263. ## Contributing
  264. We welcome contributions to improve our skills. You can help by:
  265. * [Reporting bugs or inaccuracies](https://github.com/google/skills/issues) in
  266. the skill Markdown files.
  267. * Suggesting new skills to add to this repository (for example, Google
  268. technologies or recipes) by filing a feature request.
  269. ## License
  270. You are free to copy, modify, and distribute these skills under the terms of the
  271. Apache 2.0 license. See the `LICENSE` file for details.
skills/cloud/google-cloud-filestore-nfs-browser/scripts/jump_host_engine.py · Bundled script · 270 lines · 1 finding marked
  1. """GCE Jump Host SSH execution engine for Filestore NFS File Browser."""
  2. import base64
  3. import json
  4. import os
  5. import re
  6. import subprocess
  7. from typing import Any, Dict, Optional
  8. _DEFAULT_METRICS_ENV = (
  9. "agent-skills/1.0 (skill:google-cloud-filestore-nfs-browser)"
  10. )
  11. def _load_attribution(
  12. fallback: str = _DEFAULT_METRICS_ENV, attr_path: Optional[str] = None
  13. ) -> str:
  14. """Loads the attribution token from references/attribution.md."""
  15. path = attr_path or os.path.join(
  16. os.path.dirname(os.path.abspath(__file__)),
  17. "..",
  18. "references",
  19. "attribution.md",
  20. )
  21. try:
  22. with open(path, encoding="utf-8") as f:
  23. match = re.search(
  24. r'CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="([^"]+)"', f.read()
  25. )
  26. if match:
  27. return match.group(1)
  28. except OSError:
  29. pass
  30. return fallback
  31. METRICS_ENV = _load_attribution()
  32. BINARY_CHECK_BYTES = 1024
  33. MAX_SEARCH_FILE_SIZE_BYTES = 50 * 1024 * 1024
  34. MAX_CONTEXT_SNIPPET_LENGTH = 200
  35. DEFAULT_HEAD_LINES = 100
  36. def _build_remote_tree_script(
  37. mount: str, path: str, depth: int, max_entries: int
  38. ) -> str:
  39. """Builds a Python script string to execute tree traversal on the remote host."""
  40. return f"""
  41. import os, json
  42. root = os.path.join({repr(mount)}, {repr(path.lstrip('/'))})
  43. mount = {repr(mount)}
  44. if not os.path.exists(root):
  45. print(json.dumps({{"error": "Path not found: " + root}}))
  46. exit(0)
  47. entries = []
  48. for r, dirs, files in os.walk(root):
  49. d = 0 if r == root else os.path.relpath(r, root).count(os.sep) + 1
  50. if d >= {int(depth)}:
  51. dirs.clear()
  52. for name in sorted(dirs):
  53. entries.append({{"name": name, "type": "dir", "path": "/" + os.path.relpath(os.path.join(r, name), mount)}})
  54. if len(entries) >= {int(max_entries)}:
  55. break
  56. if len(entries) >= {int(max_entries)}:
  57. break
  58. if d < {int(depth)}:
  59. for name in sorted(files):
  60. st = os.stat(os.path.join(r, name))
  61. entries.append({{"name": name, "type": "file", "size_bytes": st.st_size, "path": "/" + os.path.relpath(os.path.join(r, name), mount)}})
  62. if len(entries) >= {int(max_entries)}:
  63. break
  64. if len(entries) >= {int(max_entries)}:
  65. break
  66. print(json.dumps({{"path": {repr(path)}, "entries": entries, "total_entries": len(entries)}}))
  67. """
  68. def _build_remote_search_script(
  69. mount: str,
  70. path: str,
  71. pattern: Optional[str],
  72. grep: Optional[str],
  73. max_results: int,
  74. ) -> str:
  75. """Builds a Python script string to execute filename glob and regex search remotely."""
  76. return f"""
  77. import os, re, fnmatch, json
  78. root = os.path.join({repr(mount)}, {repr(path.lstrip('/'))})
  79. mount = {repr(mount)}
  80. pat = {repr(pattern)}
  81. rgx = re.compile({repr(grep)}) if {repr(grep)} else None
  82. matches = []
  83. for r, _, files in os.walk(root):
  84. for f in sorted(files):
  85. if pat and not fnmatch.fnmatch(f, pat):
  86. continue
  87. fp = os.path.join(r, f)
  88. rel = "/" + os.path.relpath(fp, mount)
  89. if rgx:
  90. try:
  91. if os.path.getsize(fp) > {MAX_SEARCH_FILE_SIZE_BYTES}:
  92. continue
  93. with open(fp, "rb") as fh:
  94. if b"\\x00" in fh.read({BINARY_CHECK_BYTES}):
  95. continue
  96. with open(fp, "r", encoding="utf-8", errors="ignore") as fh:
  97. for idx, line in enumerate(fh, 1):
  98. if rgx.search(line):
  99. matches.append({{"file": rel, "line": idx, "content": line.strip()[:{MAX_CONTEXT_SNIPPET_LENGTH}]}})
  100. if len(matches) >= {int(max_results)}:
  101. break
  102. except Exception:
  103. pass
  104. else:
  105. matches.append({{"file": rel}})
  106. if len(matches) >= {int(max_results)}:
  107. break
  108. if len(matches) >= {int(max_results)}:
  109. break
  110. print(json.dumps({{"matches": matches}}))
  111. """
  112. def _build_remote_read_script(
  113. mount: str,
  114. path: str,
  115. head: Optional[int],
  116. tail: Optional[int],
  117. lines: Optional[str],
  118. ) -> str:
  119. """Builds a Python script string to read a safe file slice remotely."""
  120. return f"""
  121. import os, collections, json
  122. mount_base = os.path.realpath({repr(mount)})
  123. fp = os.path.realpath(os.path.join(mount_base, {repr(path.lstrip('/'))}))
  124. if os.path.commonpath([mount_base, fp]) != mount_base:
  125. print(json.dumps({{"error": "Access denied: path traversal"}}))
  126. exit(0)
  127. if not os.path.exists(fp):
  128. print(json.dumps({{"error": "File not found: " + fp}}))
  129. exit(0)
  130. with open(fp, "rb") as fh:
  131. if b"\\x00" in fh.read({BINARY_CHECK_BYTES}):
  132. print(json.dumps({{"file": {repr(path)}, "is_binary": True, "size_bytes": os.path.getsize(fp)}}))
  133. exit(0)
  134. head, tail, l_spec = {repr(head)}, {repr(tail)}, {repr(lines)}
  135. s, e, tot, sel = 1, 0, 0, []
  136. with open(fp, "r", encoding="utf-8", errors="replace") as fh:
  137. if tail:
  138. ring = collections.deque(enumerate(fh, 1), maxlen=tail)
  139. if ring:
  140. s, e, tot, sel = ring[0][0], ring[-1][0], ring[-1][0], [line for _, line in ring]
  141. else:
  142. s, e, tot, sel = 1, 0, 0, []
  143. elif l_spec and ":" in l_spec:
  144. p1, p2 = map(int, l_spec.split(":"))
  145. s = p1
  146. for idx, line in enumerate(fh, 1):
  147. if idx >= p1 and idx <= p2:
  148. sel.append(line)
  149. elif idx > p2:
  150. break
  151. e = p1 + len(sel) - 1 if sel else p1
  152. tot = max(e, p2)
  153. else:
  154. limit = head if head else {DEFAULT_HEAD_LINES}
  155. for idx, line in enumerate(fh, 1):
  156. if idx <= limit:
  157. sel.append(line)
  158. else:
  159. break
  160. e, tot = len(sel), len(sel)
  161. print(json.dumps({{"file": {repr(path)}, "start_line": s, "end_line": e, "total_lines": tot, "content": "".join(sel), "is_binary": False}}))
  162. """
  163. def _build_remote_stat_script(mount: str, path: str) -> str:
  164. """Builds a Python script string to inspect POSIX file attributes remotely."""
  165. return f"""
  166. import os, stat, json
  167. mount_base = os.path.realpath({repr(mount)})
  168. fp = os.path.realpath(os.path.join(mount_base, {repr(path.lstrip('/'))}))
  169. if os.path.commonpath([mount_base, fp]) != mount_base:
  170. print(json.dumps({{"error": "Access denied: path traversal"}}))
  171. exit(0)
  172. if not os.path.exists(fp):
  173. print(json.dumps({{"error": "Path not found: " + fp}}))
  174. exit(0)
  175. st = os.stat(fp)
  176. print(json.dumps({{"path": {repr(path)}, "size_bytes": st.st_size, "mode": oct(stat.S_IMODE(st.st_mode)), "is_dir": stat.S_ISDIR(st.st_mode), "uid": st.st_uid, "gid": st.st_gid, "mtime": int(st.st_mtime)}}))
  177. """
  178. class SSHJumpHostEngine:
  179. """Executes read-only operations on a GCE VM in the VPC via gcloud compute ssh."""
  180. def __init__(
  181. self,
  182. project: str,
  183. zone: str,
  184. vm: str,
  185. mount_point: str = "/mnt/filestore",
  186. ):
  187. self.project = project
  188. self.zone = zone
  189. self.vm = vm
  190. self.mount = mount_point.rstrip("/")
  191. def _exec(self, script: str) -> Dict[str, Any]:
  192. """Executes a Python script remotely via SSH and parses JSON output."""
  193. env = os.environ.copy()
  194. env["CLOUDSDK_METRICS_REQUEST_ATTRIBUTION"] = METRICS_ENV
  195. cmd = [
  196. "gcloud",
  197. "compute",
  198. "ssh",
  199. self.vm,
  200. f"--project={self.project}",
  201. f"--zone={self.zone}",
  202. "--quiet",
  203. ]
  204. # Encode script via base64 to avoid shell quote and escaping issues over SSH
  205. encoded_script = base64.b64encode(script.encode("utf-8")).decode("ascii")
  206. decoded_expr = f"exec(base64.b64decode('{encoded_script}').decode('utf-8'))"
    • Note: Runs code it decodes (base64, hex, character codes, reversed text or a compressed blob), which hides what runs from a reader
    • Line 225 on GitHub
  207. remote_cmd = f'python3 -c "import base64; {decoded_expr}"'
  208. # Try direct SSH first, fallback to IAP tunnel
  209. for iap_flag in [[], ["--tunnel-through-iap"]]:
  210. full_cmd = cmd + iap_flag + [f"--command={remote_cmd}"]
  211. res = subprocess.run(
  212. full_cmd, capture_output=True, text=True, env=env, check=False
  213. )
  214. if res.returncode == 0:
  215. try:
  216. return json.loads(res.stdout)
  217. except json.JSONDecodeError:
  218. return {"output": res.stdout.strip()}
  219. raise RuntimeError(
  220. f"GCE SSH failed: {res.stderr.strip() or res.stdout.strip()}"
  221. )
  222. def tree(self, path: str, depth: int, max_entries: int) -> Dict[str, Any]:
  223. script = _build_remote_tree_script(self.mount, path, depth, max_entries)
  224. return self._exec(script)
  225. def search(
  226. self,
  227. path: str,
  228. pattern: Optional[str],
  229. grep: Optional[str],
  230. max_results: int,
  231. ) -> Dict[str, Any]:
  232. script = _build_remote_search_script(
  233. self.mount, path, pattern, grep, max_results
  234. )
  235. return self._exec(script)
  236. def read(
  237. self,
  238. path: str,
  239. head: Optional[int],
  240. tail: Optional[int],
  241. lines: Optional[str],
  242. ) -> Dict[str, Any]:
  243. script = _build_remote_read_script(self.mount, path, head, tail, lines)
  244. return self._exec(script)
  245. def stat(self, path: str) -> Dict[str, Any]:
  246. script = _build_remote_stat_script(self.mount, path)
  247. return self._exec(script)

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.