← 返回 Skills 市场
felipe0liveira

Google Cloud CLI

作者 Felipe Oliveira · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
396
总下载
0
收藏
1
当前安装
5
版本数
在 OpenClaw 中安装
/install gcloud-cli
功能描述
Manage Google Cloud Platform resources using the official gcloud CLI, discovering command syntax dynamically with `gcloud <group> --help` before execution.
使用说明 (SKILL.md)

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:

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:

  1. Run gcloud config list --format='text(core.account,core.project)' and show the active account and project.
  2. If the active account is not a dedicated service account, stop and ask the user to switch identities.
  3. 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-account is in use.
  • Prefer sandbox projects for validation before production changes.

Workflow

Before executing any gcloud command, follow this sequence:

  1. Check active context:
    gcloud config list --format='text(core.account,core.project)'
    
  2. Identify the right command group from groups.md.
  3. Discover syntax using help commands:
    gcloud \x3CGROUP> --help
    gcloud \x3CGROUP> \x3CSUBGROUP> --help
    
  4. Build the exact command from discovered syntax.
  5. Present the full command and wait for explicit user approval.
  6. Execute only after approval.
  7. 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:

  1. Show the full command.
  2. Show active account/project context.
  3. Wait for explicit user approval.

Important Rules

  • Never guess command syntax; always validate with --help first.
  • Never execute commands autonomously.
  • Use --format=json when output will be parsed programmatically.
  • Use --quiet only 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.

安全使用建议
This skill appears coherent and low-risk: install the official gcloud CLI from Google, and run the skill only in an environment where the active gcloud identity is a dedicated, least-privilege service account (not a personal or broad admin account). Always review the full command the agent presents before approving execution — the skill relies on your explicit approval for all operations. If your organization forbids use of service account keys or requires workload identity federation, follow those policies rather than authenticating with a long-lived key for this skill.
功能分析
Type: OpenClaw Skill Name: gcloud-cli Version: 1.0.0 The gcloud-cli skill is a well-structured and safety-conscious wrapper for the official Google Cloud CLI. It implements several strong security guardrails, including mandatory user approval for all operations (including read-only ones), explicit verification of the active account and project context before execution, and instructions to prefer least-privilege service accounts. No evidence of malicious intent, data exfiltration, or unauthorized command execution was found across the SKILL.md, examples.md, or other documentation.
能力评估
Purpose & Capability
The skill's name/description (gcloud CLI wrapper) matches the declared requirements: it only requires the gcloud binary and references only Google Cloud command groups. No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
SKILL.md confines behavior to discovering command syntax via `gcloud <group> --help`, checking active gcloud account/project, presenting the full command, and waiting for explicit user approval before execution. It does not instruct reading unrelated files, exfiltrating data, or contacting external endpoints.
Install Mechanism
There is no automated install spec; the skill points to the official gcloud installation docs (manual install). No archives or third-party downloads are specified, so nothing is written/executed by the skill itself.
Credentials
No environment variables or external credentials are declared. The skill uses the local gcloud authentication/configuration context (expected for a gcloud wrapper). Users must be aware that whatever identity is active locally will be used, so least-privilege service accounts are recommended.
Persistence & Privilege
The skill is user-invocable, not always-on, and disables model invocation (so it cannot execute autonomously). It requests no system-wide persistence or modification of other skills' configurations.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gcloud-cli
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gcloud-cli 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Major documentation update: modularized guides and stricter usage policies. - Added new reference files: installation.md, groups.md, examples.md, and troubleshooting.md. - Consolidated and updated documentation; users are now referred to the new files for installation, groups, usage examples, and troubleshooting. - Replaced GROUPS.md with groups.md and updated all internal references. - Strengthened workflow and approval requirements—explicit user confirmation is now required before any operation, including read-only commands.
v0.1.3
- Added GROUPS.md file documenting available gcloud command groups. - Updated instructions and references in SKILL.md to point to GROUPS.md for command group mapping. - No changes to CLI behavior; documentation improvement only.
v0.1.2
Replaced the blanket --quiet directive on destructive commands with a rule requiring explicit user approval before execution; added a mandatory context check step (gcloud config list) to the workflow so users always see the active account and project; introduced a Credentials & Environment section documenting local credential usage with least-privilege recommendations; and classified destructive operations (create, delete, update, deploy, IAM bindings) to require a confirmation gate — all few-shot examples updated accordingly.
v0.1.1
Added installation instructions pointing to the official Google Cloud SDK documentation.
v0.1.0
Initial release of the gcloud skill. - Enables management of Google Cloud Platform resources via the official gcloud CLI. - Provides a clear, step-by-step workflow for safe and accurate command execution using dynamic CLI help. - Includes best practices for using flags like --quiet and --format=json. - Demonstrates usage with practical examples covering storage, Cloud Run, GKE, IAM, and SQL operations. - Offers a reference section summarizing global flags and command structure.
元数据
Slug gcloud-cli
版本 1.0.0
许可证
累计安装 1
当前安装数 1
历史版本数 5
常见问题

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。

💬 留言讨论