gcloud-cli by oimiragieo/agent-studio
npx skills add https://github.com/oimiragieo/agent-studio --skill gcloud-cli该技能调用 gcloud CLI。请先安装并初始化:
curl https://sdk.cloud.google.com | bash,然后重启 shell 并运行 gcloud init验证安装:gcloud --version。配置:gcloud init
配置: gcloud config set project <id>;gcloud config list; — 切换项目。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
gcloud config configurations create/activate <name>认证: gcloud auth login;使用 --impersonate-service-account 进行服务账号模拟;在 CI 中使用 --access-token-file。
技巧: 使用 --format="table(name,zone,status)" 或 --format=json + jq 来精简输出。对于冗长或重复的标志,使用 --flags-file=file.yaml。为开发/预发布/生产环境使用命名配置。定期运行 gcloud components update。
免费资源: Google Cloud Learn 和 Google Skills — Innovators Program(每月 35 积分)。认证: Cloud Digital Leader、Cloud Engineer(助理级)、Cloud Architect/DevOps(专业级)。技能数据: 配置、认证、计算/存储/IAM;不暴露服务账号密钥。
建议的钩子: 部署前:gcloud config get-value project。当 devops 技能被路由用于 GCP 任务时使用(上下文:gcp_project)。
工作流: 与 devops 技能一起使用(上下文:gcp_project)。流程:检测 GCP → 加载 gcloud-cli → 通过技能脚本运行 CLI。
Google Cloud Platform CLI 操作。节省 90% 以上的上下文。
| 工具 | 描述 | 确认 |
|---|---|---|
| instances-list | 列出虚拟机实例 | 否 |
| instances-create | 创建虚拟机 | 是 |
| instances-delete | 删除虚拟机 | 必需 |
| 工具 | 描述 | 确认 |
|---|---|---|
| storage-ls | 列出存储桶/对象 | 否 |
| storage-cp | 复制对象 | 是 |
| storage-rm | 删除对象 | 是 |
| 工具 | 描述 |
|---|---|
| iam-list | 列出 IAM 策略 |
| service-accounts | 列出服务账号 |
| 工具 | 描述 |
|---|---|
| logs-read | 读取日志 |
| logs-tail | 实时追踪日志 |
| 工具 | 状态 |
|---|---|
| projects delete | 已阻止 |
| iam-policy delete | 已阻止 |
⚠️ 切勿暴露服务账号密钥 ⚠️ 资源删除需要确认
开始前: 阅读 .claude/context/memory/learnings.md
完成后:
.claude/context/memory/learnings.md.claude/context/memory/issues.md.claude/context/memory/decisions.md假设中断:如果不在记忆中,就等于没发生。
每周安装数
86
代码仓库
GitHub 星标数
19
首次出现
2026年1月27日
安全审计
安装于
github-copilot83
codex83
gemini-cli82
cursor82
opencode82
kimi-cli81
The skill invokes the gcloud CLI. Install and initialize:
curl https://sdk.cloud.google.com | bash then restart shell and run gcloud initVerify: gcloud --version. Configure: gcloud init
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.
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.
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.
Google Cloud Platform CLI operations. 90%+ context savings.
| Tool | Description | Confirmation |
|---|---|---|
| instances-list | List VM instances | No |
| instances-create | Create VM | Yes |
| instances-delete | Delete VM | REQUIRED |
| Tool | Description | Confirmation |
|---|---|---|
| storage-ls | List buckets/objects | No |
| storage-cp | Copy objects | Yes |
| storage-rm | Delete objects | Yes |
| Tool | Description |
|---|---|
| iam-list | List IAM policies |
| service-accounts | List service accounts |
| Tool | Description |
|---|---|
| logs-read | Read logs |
| logs-tail | Tail logs in real-time |
| Tool | Status |
|---|---|
| projects delete | BLOCKED |
| iam-policy delete | BLOCKED |
⚠️ Never expose service account keys ⚠️ Resource deletion requires confirmation
Before starting: Read .claude/context/memory/learnings.md
After completing:
.claude/context/memory/learnings.md.claude/context/memory/issues.md.claude/context/memory/decisions.mdASSUME INTERRUPTION: If it's not in memory, it didn't happen.
Weekly Installs
86
Repository
GitHub Stars
19
First Seen
Jan 27, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
github-copilot83
codex83
gemini-cli82
cursor82
opencode82
kimi-cli81