Google Cloud CLI
/install gcloud-cli
Google Cloud CLI
gcloud - manage Google Cloud resources and developer workflows
This skill is built on top of the official gcloud CLI. It supports the full CLI surface while avoiding hardcoded syntax by always consulting --help output at runtime.
Related docs:
- Installation and setup: installation.md
- Group reference: groups.md
- Usage examples: examples.md
- Troubleshooting: troubleshooting.md
Requirements
This skill requires gcloud CLI.
For setup instructions, see installation.md.
Scope
Use this skill only for Google Cloud resource management via gcloud commands. Do not use unrelated endpoints, tools, or local file operations outside the requested task.
Credentials and Environment
This skill uses the active Google Cloud CLI authentication context (gcloud auth) and configuration (gcloud config). It inherits the permissions of the active identity.
Before any operation:
- Run
gcloud config list --format='text(core.account,core.project)'and show the active account and project. - If the active account is not a dedicated service account, stop and ask the user to switch identities.
- Confirm the target project and environment with the user before proceeding.
Credential safety rules:
- Use least-privilege service accounts.
- Do not use personal accounts or broad admin identities for automation.
- Be explicit when
--impersonate-service-accountis in use. - Prefer sandbox projects for validation before production changes.
Workflow
Before executing any gcloud command, follow this sequence:
- Check active context:
gcloud config list --format='text(core.account,core.project)' - Identify the right command group from groups.md.
- Discover syntax using help commands:
gcloud \x3CGROUP> --help gcloud \x3CGROUP> \x3CSUBGROUP> --help - Build the exact command from discovered syntax.
- Present the full command and wait for explicit user approval.
- Execute only after approval.
- Return output and summarize result.
Approval Policy
All operations require explicit user confirmation before execution, including read operations.
This includes:
- Read/list/get operations
- Create/update/delete operations
- IAM and policy changes
- Configuration changes (
set,unset,reset) - Service enable/disable operations
For every operation, the agent must:
- Show the full command.
- Show active account/project context.
- Wait for explicit user approval.
Important Rules
- Never guess command syntax; always validate with
--helpfirst. - Never execute commands autonomously.
- Use
--format=jsonwhen output will be parsed programmatically. - Use
--quietonly after explicit user approval. - Warn clearly when commands are high-impact (IAM, networking, deletion, org-level changes).
What You Can Do
You can perform any operation available through gcloud, as long as it is within user-requested scope and approved before execution.
Examples and scenarios are documented in examples.md.
Troubleshooting
See troubleshooting.md for authentication, IAM, API enablement, and syntax troubleshooting steps.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install gcloud-cli - 安装完成后,直接呼叫该 Skill 的名称或使用
/gcloud-cli触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Google Cloud CLI 是什么?
Manage Google Cloud Platform resources using the official gcloud CLI, discovering command syntax dynamically with `gcloud <group> --help` before execution. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 396 次。
如何安装 Google Cloud CLI?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install gcloud-cli」即可一键安装,无需额外配置。
Google Cloud CLI 是免费的吗?
是的,Google Cloud CLI 完全免费(开源免费),可自由下载、安装和使用。
Google Cloud CLI 支持哪些平台?
Google Cloud CLI 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Google Cloud CLI?
由 Felipe Oliveira(@felipe0liveira)开发并维护,当前版本 v1.0.0。