gcloud-cli

v2026.09.24

Google Cloud CLI operations and resource management

GitHub
安装命令
npx skhub add oimiragieo/gcloud-cli
Markdown
SKILL.md

Google Cloud CLI Skill

Installation

The skill invokes the gcloud CLI. Install and initialize:

  • Linux/macOS: curl https://sdk.cloud.google.com | bash then restart shell and run gcloud init
  • Windows: Download Google Cloud SDK installer or use PowerShell to download and run

Verify: gcloud --version. Configure: gcloud init

Cheat Sheet & Best Practices

Config: gcloud config set project <id>; gcloud config list; gcloud config configurations create/activate <name> — switch projects.

Auth: gcloud auth login; use --impersonate-service-account for SA; --access-token-file for CI.

Hacks: Use --format="table(name,zone,status)" or --format=json + jq to cut output. Use --flags-file=file.yaml for long or repeated flags. Use named configurations for dev/staging/prod. Run gcloud components update periodically.

Certifications & Training

Free: Google Cloud Learn and Google Skills — Innovators Program (35 credits/month). Certs: Cloud Digital Leader, Cloud Engineer (associate), Cloud Architect/DevOps (professional). Skill data: Config, auth, compute/storage/IAM; no exposed service-account keys.

Hooks & Workflows

Suggested hooks: Pre-deploy: gcloud config get-value project. Use when devops is routed for GCP tasks (contextual: gcp_project).

Workflows: Use with devops (contextual: gcp_project). Flow: detect GCP → load gcloud-cli → run CLI via skill script.

Overview

Google Cloud Platform CLI operations. 90%+ context savings.

Requirements

  • gcloud CLI installed
  • GOOGLE_PROJECT_ID environment variable
  • Authenticated via gcloud auth

Tools (Progressive Disclosure)

Compute

ToolDescriptionConfirmation
instances-listList VM instancesNo
instances-createCreate VMYes
instances-deleteDelete VMREQUIRED

Storage

ToolDescriptionConfirmation
storage-lsList buckets/objectsNo
storage-cpCopy objectsYes
storage-rmDelete objectsYes

IAM

ToolDescription
iam-listList IAM policies
service-accountsList service accounts

Logging

ToolDescription
logs-readRead logs
logs-tailTail logs in real-time

BLOCKED

ToolStatus
projects deleteBLOCKED
iam-policy deleteBLOCKED

Agent Integration

  • devops (primary): Cloud operations
  • gcp-cloud-agent (primary): GCP specific
  • cloud-integrator (secondary): Multi-cloud

Security

⚠️ Never expose service account keys ⚠️ Resource deletion requires confirmation

Memory Protocol (MANDATORY)

Before starting: Read .claude/context/memory/learnings.md

After completing:

  • New pattern -> .claude/context/memory/learnings.md
  • Issue found -> .claude/context/memory/issues.md
  • Decision made -> .claude/context/memory/decisions.md

ASSUME INTERRUPTION: If it's not in memory, it didn't happen.

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

Sep 24, 2026

分类

未分类

许可证

未指定

源路径

.claude/skills/gcloud-cli

默认分支

main

最新提交

64b580e

Tree SHA

42a1df4