Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

cloud-operator-setup

FreeNo executable scriptsNot checked

Sets up the user's personal operator agent in a Google Cloud organization via the `google-cloud-operator` MCP server: finds the organization, checks or…

googleby google★ 25,380 GitHub stars

About this skill

Set up the operator agent

If the user asks to set up Cloud Operator and it isn't clear whether they want their own operator agent or to set it up for the whole organization as its administrator (for example "Set up Cloud Operator for my organization" or "... for organization 123456789012"), ask them which, in one short question, before anything else, including asking for or looking up the organization. For the whole organization, use the cloud-operator-admin-setup skill if it's installed.

Walk the user through setting up the operator agent one step at a time, in plain terms (don't name this skill's steps, sections or cases). Follow the cloud-operator skill's agentId rules if installed. If the google-cloud-operator MCP server doesn't offer ask_cloud_operator, it's disconnected: don't set it up another way. Tell the user how to sign in again and reconnect, and stop until it's connected (Server not connected).

If the cloud-operator skill sent you here after a call returned "not found" or "has not been initialized yet" and the user chose this organization, use the organization it found and go straight to checking the organization (step 2, item 1), skipping the check call and the "Ask where" question.

Remembering: where this skill says to remember something, keep it for the rest of this conversation. Don't create or edit any file to remember it. If your client has a built-in memory feature, you can also save it there for later conversations; without one, asking again in a new conversation is fine.

Usage Attribution

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

Steps

Each user has one personal operator agent in each Google Cloud organization they work in, which works on all the projects in that organization. There is no operator project to choose or create, and no project-level agent: set up the agent in an organization. Every call names the organization by its numeric ID (organizations/{org_id}). Never set project, even when the user asks to set it up for a project: that call always fails with RUN_NOT_ALLOWED. A project is optional: use one only to find its organization.

  1. Check gcloud and find the organization ID. Check whether gcloud is installed and signed in (gcloud and Application Default Credentials). If it's installed but not signed in, ask them to run gcloud auth login and gcloud auth application-default login, or go on without it. Then use the organization the user named or that you remember. Otherwise:

    • Without gcloud (for example in a web client): ask for the numeric organization ID (the console's project picker shows it).
    • With gcloud: use the organization of a project the user named, or ask which organization (its ID, its domain such as acme.com, or a project in it). For a domain, run gcloud organizations list --filter="displayName={domain}" --format=json and use the result if there's exactly one. For a project, run gcloud projects get-ancestors {project_id} --format=json and use the id of the entry whose type is organization; if there's none, tell the user Cloud Operator doesn't support projects outside an organization yet, and stop. Only if they know neither the organization nor a project in it, run gcloud organizations list --format=json, which only lists the organizations they can see: if it shows one, use it; if it shows several, ask which one, or for a project in it; if it shows none, ask them to get the organization ID or a project in it from an administrator or the Google Cloud console.

    If a lookup fails, don't conclude anything about the project: ask for the organization. Never guess. Tell the user in one line which organization you're using, and that the agent works per organization: "Your operator agent works per organization, so I'm setting it up in organization {org_id}." (add "for project {project_id}" when they named one). The user asked for setup, so go on even if you remember that Cloud Operator wasn't available there. Forget that once the check call works; if it still isn't available, remember it (see Troubleshooting).

  2. Check or create the agent:

    • Unless the user said they have no agent in that organization, check first: call ask_cloud_operator with organization set to organizations/{org_id} and "In one line, what can you help me with in project {project_id}? Don't create anything." (leave out the project if there's none). Tell the user first that it's one read-only check that creates nothing, and that it can take 1–3 minutes.
    • If it fails with "personal operator agent … has not been initialized yet", or with agent "…/agents/{id}" not found on a call without an agentId (or the
Full SKILL.md on GitHub

Install cloud-operator-setup in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

references/attribution.md

FAQ

What does the cloud-operator-setup skill do?

Sets up the user's personal operator agent in a Google Cloud organization via the `google-cloud-operator` MCP server: finds the organization, checks or creates the agent, saves the organization (and the project, if any), and offers to share the user's existing Google Cloud operating context with the operator agent's memory. Use when the user runs this skill, asks to set up Cloud Operator or their operator agent (also in a named organization, but not for the whole organization as its administrator), asks to create their agent, or chooses setup when the cloud-operator skill asks. Don't use for ordinary GCP requests or installing gcloud.

How do I install the cloud-operator-setup skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the cloud-operator-setup skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare cloud-operator-setup with