用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/oimiragieo/agent-studio --skill gcloud-cli命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Agent frontmatter enhancements — disallowedTools, mcpServers scoping, fork_eligible field
Context management — pre-compact persistence, threshold alignment, microcompact/circuit breaker detection
Hook enhancements — updatedInput for bash safety prefixes, suppressOutput for verbose blocks, denial-based routing feedback
正在显示 SKILL.md
基于 SOC 职业分类
| name | gcloud-cli |
| description | Google Cloud CLI operations and resource management |
| version | 1.0.0 |
| model | sonnet |
| invoked_by | both |
| user_invocable | true |
| tools | ["Bash","Read"] |
| best_practices | ["Never expose service account keys","Resource deletion requires confirmation","Verify project before operations"] |
| error_handling | graceful |
| streaming | supported |
| verified | false |
| lastVerifiedAt | "2026-02-19T05:29:09.098Z" |
| source | builtin |
| trust_score | 100 |
| provenance_sha | e27d7e9dff54753d |
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.