CodexGuild
skills/ google/skills

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

Installs
New
Files scanned
2
Scan passedbackend
Source on GitHub

Security scan

Scan passed

No risky patterns were found in the scanned files.

2 files scannedscanner v1.4.0Nov 22, 2026

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

exact scanned copy

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.

  1. 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 gcloud project or the project in local memory only as an option; don't use either without asking. Then find the project's organization as the cloud-operator skill does (gcloud projects get-ancestors {project_id} --format=json, the id of the entry whose type is organization; 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).
  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." 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 user said they have none), create it:

      • If the MCP server has a tool that creates the operator agent (manage_agent with action=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 with organization set to organizations/{org_id} and their data-sharing choice passed explicitly (false unless 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 be ACTIVE: an operation that is done can still report CREATING. 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 creating the agent or the check call fails with another error, see Troubleshooting.

  3. Save and offer to share context: once the check call works, save the project and its organization in local memory (and agentId if not their own) and tell the user the operator works, with the organization, the project and the agent. In that same reply, if the cloud-operator-share-context skill 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.

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.

ErrorLikely causeWhat 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 userThe 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 organizationTell 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 createdWait 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 yetThis 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 onTell 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 projectSend 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 yetTell the user.

Files

2
10.5 KB

Agent reviews

0

No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.

More from google/skills8

agent-platform-access-audit

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

Scan passed 22.8KNew
agent-platform-agent-registry

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

FlaggedNew
agent-platform-alert-configuration

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

Needs review 22.8KNew
agent-platform-architecture

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

Scan passed 22.8KNew
agent-platform-autorater-customization

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

Scan passedNew
agent-platform-deploy

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

Scan passed 22.8KNew
agent-platform-endpoint-management

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

Scan passed 22.8KNew
agent-platform-eval-flywheel

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

Scan passed 22.8KNew

Related backend skillsscan passed