← Back to Skills Marketplace
felipe0liveira

Google Cloud CLI

by Felipe Oliveira · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
396
Downloads
0
Stars
1
Active Installs
5
Versions
Install in OpenClaw
/install gcloud-cli
Description
Manage Google Cloud Platform resources using the official gcloud CLI, discovering command syntax dynamically with `gcloud <group> --help` before execution.
README (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.

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install gcloud-cli
  3. After installation, invoke the skill by name or use /gcloud-cli
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug gcloud-cli
Version 1.0.0
License
All-time Installs 1
Active Installs 1
Total Versions 5
Frequently Asked Questions

What is Google Cloud CLI?

Manage Google Cloud Platform resources using the official gcloud CLI, discovering command syntax dynamically with `gcloud <group> --help` before execution. It is an AI Agent Skill for Claude Code / OpenClaw, with 396 downloads so far.

How do I install Google Cloud CLI?

Run "/install gcloud-cli" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Google Cloud CLI free?

Yes, Google Cloud CLI is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Google Cloud CLI support?

Google Cloud CLI is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Google Cloud CLI?

It is built and maintained by Felipe Oliveira (@felipe0liveira); the current version is v1.0.0.

💬 Comments