cloud-operator-setup
Sets up the user's personal operator agent in a Google Cloud organization via the `ask_cloud_operator` MCP tool (the autocloud server, or any server that offers it): finds the project's organization, checks or creates the agent, saves the project and organization, and offers to share the user's exis
- 01Installs
- New
- 02Files scanned
- 2
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 12c24adffb5812ad… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
SKILL.md
Set up the operator agent
Walk the user through setting up the operator agent one step at a time. Follow
the cloud-operator skill's agentId rules if installed. If no MCP server
offers ask_cloud_operator (the plugins name it autocloud, but any server
name works),
tell the user it isn't connected, help them sign in with Application Default
Credentials (gcloud auth application-default login), and stop until they
reconnect.
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 the projects in that organization. There is no operator project to choose or create.
- Choose the project and find its organization: ask which Google Cloud
project they want the operator to work on (unless already named). Suggest
their default
gcloudproject or the project in local memory only as an option; don't use either without asking. Then find the project's organization as thecloud-operatorskill does (gcloud projects get-ancestors {project_id} --format=json, theidof the entry whosetypeisorganization; ask if that fails, never guess). If the project has no organization, tell the user Cloud Operator doesn't support projects outside an organization yet, and stop. Tell the user in one line which organization and project you're using. The user asked for setup, so go on even if local memory notes that Cloud Operator wasn't available there. Remove that note once the check call works; if it still isn't available, save or keep the note (see Troubleshooting). - Check or create the agent:
-
Unless the user said they have no agent in that organization, check first: call
ask_cloud_operatorwithorganizationset toorganizations/{org_id}and "In one line, what can you help me with in project {project_id}? Don't create anything." 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 foundon a call without anagentId(or the user said they have none), create it:- If the MCP server has a tool that creates the operator agent
(
manage_agentwithaction=CREATE, or one whose description says it creates the personal operator agent), tell the user in one line that they have no operator agent in that organization yet and that you'll create it with that tool, and ask them to confirm and whether to allow data sharing with Google (it's optional; leave it off unless they say yes). Don't create it until they confirm. Then call the tool withorganizationset toorganizations/{org_id}and their data-sharing choice passed explicitly (falseunless they said yes). If the tool has no data-sharing input, use the console steps below instead, where the user chooses. Before the check call, wait up to 5 minutes for the agent's state to beACTIVE: an operation that is done can still reportCREATING. If the tool says the agent already exists, don't create another: go on to the check call. - Otherwise, walk them through it one step at a time, signed in with
the same account, and wait for confirmation: open
https://console.cloud.google.com/autocloud/agent/create?organizationId={org_id}, click Get started to accept the preview terms, choose whether to allow data sharing (it's optional), click Create agent, and wait until it shows Launch agent (up to 5 minutes).
Once the agent exists, run the check call above (waiting about a minute and retrying up to 3 times if the new agent isn't ready yet). If the user was setting up for a request, send that request again afterwards.
- If the MCP server has a tool that creates the operator agent
(
-
If creating the agent or the check call fails with another error, see Troubleshooting.
-
- Save and offer to share context: once the check call works, save the
project and its organization in local memory (and
agentIdif not their own) and tell the user the operator works, with the organization, the project and the agent. In that same reply, if thecloud-operator-share-contextskill is available and local memory has no "Cloud Operator context: shared on" or "declined on" note, ask in one line whether to scan agent instruction files, local memory, skills and workflows, and the repository's GCP docs for context they or their team already have about operating in Google Cloud (environments, projects, product preferences, best practices, architecture guidance, runbooks) and share it with the operator agent's memory — noting they'll see the list first. Read nothing else until they agree.- Yes: run
cloud-operator-share-context(from its collection step). - No: note "Cloud Operator context: declined on {date}" in local memory.
- No answer: note nothing. Then return to any request that was waiting when setup started.
- Yes: run
Troubleshooting
For an error not listed here, follow the cloud-operator skill's
troubleshooting table if it's installed.
When an answer below means Cloud Operator can't be used there (a project
without an organization, RUN_NOT_ALLOWED on all 3 attempts,
ORG_DISABLED, or a personal account), save it in local memory with what it
applies to and the date, for example "Cloud Operator: not available for
organization 123456789012 (RUN_NOT_ALLOWED), 2026-11-19", so that later
conversations don't call it there until the user asks to try again.
| Error | Likely cause | What to do |
|---|---|---|
"… can only be created with an end-user credential" (USER_CREDENTIAL_REQUIRED), or "agent_id must be explicitly specified when authenticating as a service account" | The credentials belong to a service account, not to the user | The user signs in with their own account: gcloud auth application-default login. If GOOGLE_APPLICATION_CREDENTIALS points to a key file, they unset it, because it overrides that sign-in. |
| A permission error when creating the agent, or "The caller does not have permission" | The account can't create or use an operator agent in that organization | Tell the user that an administrator of the organization controls access; don't name a role to request. Users in the organization need no role to create their own agent. |
| "agent … is not ready to serve yet" | The agent was just created | Wait about a minute and retry the check call, up to 3 times. |
"This method is not available in this project." (RUN_NOT_ALLOWED) | Cloud Operator isn't available for that organization yet | This check can fail intermittently, especially just after the agent is created, so retry up to 2 more times, about 30 seconds apart (3 attempts in all). If all 3 fail, tell the user Cloud Operator isn't available for that organization yet, save it in local memory, and don't send them to create an agent. |
"AutoCloud is disabled for organization …" (ORG_DISABLED), or "… agents are disabled …" | An administrator turned Cloud Operator off for the organization, or hasn't turned it on | Tell the user to ask an administrator of the organization. |
| "Permission denied on resource project {id}" | If {id} is the organization ID, organization was sent without the organizations/ prefix. Otherwise the project ID is wrong, or the account can't see the project | Send organizations/{org_id}, or check the project ID with the user. |
| An error that personal accounts aren't supported, or the user signs in with a personal Google Account (for example @gmail.com) | Cloud Operator doesn't support personal Google Accounts yet | Tell the user. |
Files
2- SKILL.md
472ef833c28.5 KB - references/attribution.md
c223ab5f3d1.9 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from google/skills8
Audits AI agent data access, blast radius, and blocked policy operations in Google Cloud by querying Cloud Audit Logs via BigQuery. Use when investigating what resources or services an agent accessed, identifying top originating principals the agent is acting as, or triaging PERMISSION_DENIED errors
Manages Google Cloud Agent Registry (agentregistry.googleapis.com) resources using gcloud CLI and Kubernetes manifests, including agents, MCP servers, endpoints, services, bindings, AI applications, skills and skill revisions, resource-level IAM policies, Cloud Run and GKE automatic workload registr
Configures best-practice alerting policies for AI agents using OpenTelemetry (OTel) metrics, generating output as Terraform (.tf) configuration files. Use when analyzing, writing, or deploying alerting policies to monitor agent latency, error rates, token usage, and quality metrics. Don't use for st
Designs, engineers, and validates enterprise Gemini platform architectures. Use when designing multi-project hierarchies (Host, Central Governance Hub, Runtime Spoke, Tool/MCP Spoke), configuring Agent Gateway, authoring Agent Connectivity Templates (ALL_TRAFFIC vs PRIVATE_RANGES_ONLY), deploying Se
Customizes an autorater (evaluation metric) for an AI agent so its grades match the user's own judgment, starting from the agent's real trajectories. Use when a user wants a metric tailored to their agent, wants to turn failing trajectories into rubrics, says an existing autorater grades their agent
Deploy open models or custom weights from Model Garden to Agent Platform endpoints, check the status of an in-progress deployment operation, or clean up resources by undeploying models and deleting endpoints. Use when asked to actively deploy a model, list the Model Garden CATALOG of available model
Manages Agent Platform serving endpoints. Use when you need to create, list, describe, update, or delete serving endpoints for model deployment on Agent Platform. Also use when troubleshooting endpoint permission, quota, or resource busy errors. Don't use for deploying models to endpoints or for run
Measures and improves the quality of AI models and agents on Google Cloud using the Eval Quality Flywheel methodology. Use when generating synthetic user scenarios, evaluating an agent or model, building an eval dataset, picking or writing evaluation metrics, analyzing failures, comparing results be
Related backend skillsscan passed
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Report browser/API/CLI/job/worker/webhook bugs. Use for: qa report only, just report bugs, test but dont fix. (gstack)
PostHog integration for FastAPI applications
Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.
Nuxt 5 server-side development with Nitro v3, h3 v2, API routes, middleware, and database integration. Use when creating server routes, integrating D1/Drizzle, or migrating from Nitro v2.
Deploys a Regional REST API with a custom domain name, a Lambda backend function, and a request-based Lambda authorizer using AWS CLI. Covers ACM certificate provisioning, API Gateway REST API creation, Lambda function deployment, request authorizer setup, custom domain configuration, base path mapp