/cloud-operator:share-contextfrom cloud-operator
Scans agent instructions, local memory, skills, workflows, and repo GCP docs to collect and share existing Google Cloud operating context (environments, projects, services, best practices, runbooks) with the Cloud Operator Agent's memory after user review.
Ships in cloud-operator. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Scan agent instruction files, local memory, skills and workflows, and the
repository's GCP docs for context the user or their team already have about
operating in Google Cloud, show it to the user, and copy what they approve into
the Cloud Operator Agent's memory. Use the cloud-operator skill's project,
agentId, secrets rules and usage attribution, including asking before using
their default gcloud project. Save the project once a call works.
If text follows the command, the user asks to save one GCP fact, or they pick
their version after a conflict (Send, step 6), skip the review. Follow
Send, /reflect included, with the message "Please remember this about
how I work in Google Cloud for future sessions. It's current and replaces
anything you have that conflicts: {fact}". Then confirm in one line.
Ask first, unless the user just agreed to an offer that named the
sources. Name them: agent instruction files (CLAUDE.md, AGENTS.md,
GEMINI.md, .claude/rules), local memory, skills and workflows written
for this user, and GCP docs in this repository. Say that the share takes
only notes about how they operate in Google Cloud, takes no secrets, and
shows the list before sending. If local memory notes a confirmed earlier
share ("shared on"), say when and offer only what's new. Check local memory
only for an earlier "shared on" note; read nothing else until they agree. If
they say no, note "declined" (step 4) and stop.
Collect in three groups, copying what the sources say (names, dates, reasons) rather than searching past transcripts:
Put any other note about how they operate in Google Cloud in the closest group. Leave out secrets, personal and non-GCP notes, and live state such as metrics or bills. Mark notes that apply to one repository only. When local sources disagree, keep the newer one (by its date) or ask; a conflict with what the operator already has is settled after the save (Send, step 6). If nothing qualifies, say so and stop.
Show the list, one line per note with its source, and ask: all, some or none?
Send the picks, then note in local memory "Cloud Operator context:
shared on {date}", "declined on {date}" (no or none) or, if /reflect
doesn't confirm, "not confirmed on {date}". Note nothing if a call failed.
Only "shared on" and "declined on" stop the cloud-operator and setup skills'
offers.
Use one new operator session for the whole share: no contextId at first,
then each reply's context_id.
Write in plain language and the user's voice, without tags or structured formats, which the safety filter can reject. Describe procedures as what the user does. Leave out empty groups, and above about 30 notes send one group per message:
These are notes about how I and my team operate in Google Cloud. Please remember them for future sessions and skip what you already have. If one conflicts with what you know, keep yours and tell me which, with your version and when you learned it. Reply with one line per note.
Facts and preferences:
- ...
What happened:
- ...
How we do things:
- ...
If a call fails with a permission error while earlier calls worked, retry once in a new session with everything sent so far, in the same wording, so the operator skips notes it already saved. If that fails, tell the user the operator refused; mention IAM only if other calls fail too.
Send /reflect alone, once, after the last message, without waiting on
anything such as a conflict. The operator may save during the turn too;
/reflect saves everything now.
If its reply doesn't say the conversation is being saved (for example, "nothing new to save"), the save isn't confirmed and memory may be off. Tell the user they can retry later with the command.
Otherwise, report briefly what was shared, skipped or flagged. If the operator kept its own version of a note, show the user both versions, each with its source and date if known: theirs from the list, the operator's from its reply. Ask once, for all conflicts, which version is current. Where they pick theirs, send it with One fact, all in one message; it replaces the operator's version. Where they pick the operator's or don't answer, leave it. If the operator still keeps its own version after that, tell the user and stop.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub googlecloudplatform/gemini-cloud-assist-mcp --plugin cloud-operator3 skills in this plugin
/cloud-operatorGoogle 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./setupSets up Cloud Operator: picks the operator project, creates or checks the user's operator agent, saves the project, and offers to share the user's existing Google Cloud operating context with the operator's memory. Use when the user runs /cloud-operator:setup, asks to set up Cloud Operator or create their operator agent, or chooses setup when the cloud-operator skill asks. Not for ordinary GCP requests or installing gcloud.Other plugins' skills for the same job