跳到正文
Skillpedia
连接器(MCP)22k · #10246

cloud-operator

它能做什么

这个技能通过 autocloud 连接,把 Google Cloud 请求发送给 Cloud Operator 智能体。它适用于希望有专门的 Google Cloud 助手来回答问题和处理更改的人。

适用场景

  • ✓当你有任何 Google Cloud 问题,包括设计、成本或事件的时候。
  • ✓当你需要审查或编写 Google Cloud 的 Terraform 或 Kubernetes 配置的时候。
  • ✓当你希望由 Cloud Operator 智能体处理 Google Cloud 发布或资源更改的时候。

技能链接

https://github.com/google/skills/blob/main/skills/cloud/cloud-operator/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/google/skills/blob/main/skills/cloud/cloud-operator/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请让我的 Cloud Operator 智能体审查我为新 GKE 集群编写的 Terraform,并提出修改建议。”

每周 5 个新技能,1 分钟读完。

工作原理

它会先询问使用哪个项目,然后通过 autocloud 连接把每个请求发送给 Cloud Operator 智能体。同一对话中的后续问题会使用同一个项目和智能体。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Cloud Operator

Delegate GCP work (questions, design, Terraform/Kubernetes/Helm generation and review, resource management, rollouts, incidents, costs) to the Cloud Operator Agent, through ask_cloud_operator on the autocloud MCP server. Keep using it for GCP follow-ups in the same conversation.

If the autocloud MCP server isn't present, don't use this skill: handle the request with the other available tools and skills. If the user asks for Cloud Operator, tell them it isn't available here, and offer to handle the request with the other available tools and skills.

Usage Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read and follow the instructions in Usage Attribution.

Project and agent

Each call needs a project. It can also take an agentId; without one, the call goes to the user's own operator agent in that project.

At the start of each conversation, before the first call:

  1. If you know the project (the user named one, or your memory has their operator project), use it. Use the agent from your memory only if it was saved for that same project; otherwise leave out agentId. Tell the user in one line, for example "Using project acme-ops with your operator agent."
  2. If you don't know the project, ask whether they have a Cloud Operator project, want to set one up, or want an answer without Cloud Operator:
    • They have one: use the project they give (you can suggest their default gcloud project, but don't use it without asking). If they want an agent other than their own, take its ID, or the agents/{agent_id} part of a link they paste, and pass locations/global/agents/{agent_id}.
    • They want to set one up: ask for the project ID, and walk them through it one step at a time: open https://console.cloud.google.com/autocloud/home?project={project_id}, click Create operator agent, then click Get started when it says the agent is ready. Then make the first call yourself (below).
    • Not now: answer with the other available tools and skills, and don't ask again in this conversation.
  3. After the first call that works, save the project in your memory for next time, and the agent too if it isn't their own. Don't save a "not now".

First call after creating an agent, or when the user asks to check Cloud Operator: call ask_cloud_operator yourself (don't ask the user to run it) with "In one line, what can you help me with in this project? Don't create anything." It can take 1–3 minutes: tell the user, and wait. If it says the agent "is not ready to serve yet", wait about a minute and send it again, up to 3 times. Then tell the user it works, with the project and agent.

Calling ask_cloud_operator

Make one call per logical request. Calls can run for up to 20 minutes: don't cancel, retry, or duplicate a slow call. If a call fails, see Troubleshooting.

  • project: projects/{project_id}, from Project and agent.

  • userQuery: the user's prompt as-is. Don't reword it or add your own steps (such as which logs or metrics to check): the operator plans the work. Follow it with:

    • the complete, verbatim contents of every referenced local file, diff, or error log, each under a heading with its path. The operator cannot see the local filesystem, so never summarize, abbreviate, or truncate them.
    • Secrets exception: never send credential files (.env, service-account key JSON, kubeconfig, *.tfstate) or secret values. Replace passwords, tokens, API keys, and private keys with <REDACTED> (for .env/*.tfvars, send variable names with redacted values), and tell the user you did.
    • external doc links as-is (don't fetch them yourself).

    Don't add instructions of your own about the operator's memory or tools: the service's safety filter can reject instruction-like text, and a rejected call can leave a stuck session.

  • agentId: omit unless the user or your memory names one (short ID, locations/{location}/agents/{agent_id}, or a full resource name). A full resource name (projects/{project}/locations/...) is valid only when {project} is the call's project; when targeting a different project, omit it and tell the user the request went to their own agent in that project.

  • contextId: the context_id from the previo

常见问题

使用前需要设置什么?

必须能够使用 autocloud 连接。没有它,就无法使用这个技能。

它使用哪个项目?

使用你指定的项目,或记忆中为该项目保存的项目。

它应该根据自己的知识回答 Google Cloud 问题吗?

不应该。它应当在依靠一般知识或文档作答之前使用。

详情

作者的原始描述

Google Cloud (GCP) assistant and operator via the autocloud MCP server. Use for any GCP request: how-to, resources, Terraform/Kubernetes/Helm, rollouts, incidents, costs. Invoke it before answering a GCP question from your own knowledge or documentation search, and before proposing an architecture or backend, even when no cloud is named. Invoke it before reading or editing local *.tf or Kubernetes YAML. Don't use for non-GCP tasks or local machine setup like installing gcloud and setting up GCP.

repo: google/skills

热度

GitHub 星标
22k
排名
#10246
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能