Cloud Operator Share Context

Cloud Operator Share Context

Scans a team's agent instruction files, memory and docs for Google Cloud operating context, lets the user review it, then saves the approved items to the cloud operator agent's memory.

Skill files2 files

references/

SKILL.md122 lines
1
---
2
name: cloud-operator-share-context
3
metadata:
4
version: "1.1.0"
5
category: CloudInfrastructureAndServices
6
description: >-
7
Shares Google Cloud operating context the user or their team already have —
8
environments, projects, services and regions, product preferences, best
9
practices, architecture guidance, runbooks — found in agent instruction
10
files, local memory, skills and workflows, and the repository's GCP docs,
11
with the operator agent's memory after the user reviews the list. Use when
12
the user runs this skill, accepts the cloud-operator or cloud-operator-setup
13
skill's offer to share their existing Google Cloud context, or asks to share,
14
import or save that context or a GCP fact for the operator agent. Don't use
15
for ordinary GCP requests, which go to the cloud-operator skill.
16
---
17
18
# Share existing Google Cloud context with the operator agent
19
20
Scan agent instruction files, local memory, skills and workflows, and the
21
repository's GCP docs for context the user or their team already have about
22
operating in Google Cloud, show it to the user, and copy what they approve into
23
the operator agent's memory. Call `ask_cloud_operator` with `organization` set
24
to `organizations/{org_id}`, never `project`. Find the organization as the
25
cloud-operator skill does (`gcloud projects get-ancestors {project_id}
26
--format=json`, the `id` of the entry whose `type` is `organization`; ask if
27
that fails, never guess; stop if the project has no organization). Use that
28
skill's `agentId` and secrets rules, including asking before using their
29
default gcloud project. Save the project and its organization once a call works.
30
31
## Usage Attribution
32
33
**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you
34
MUST read and follow the instructions in
35
[Usage Attribution](references/attribution.md).
36
37
## One fact
38
39
If the user runs this skill with a fact, asks to save one GCP fact, or picks
40
their version after a conflict ([Send](#send), step 6), skip the review. Follow
41
[Send](#send), `/reflect` included, with the message "Please remember this about
42
how I work in Google Cloud for future sessions. It's current and replaces
43
anything you have that conflicts: {fact}". Then confirm in one line.
44
45
## Existing Google Cloud context
46
47
1. **Ask first**, unless the user just agreed to an offer that named the
48
sources. Name them: agent instruction files (`CLAUDE.md`, `AGENTS.md`,
49
`GEMINI.md`, `.claude/rules`), local memory, skills and workflows written
50
for this user, and GCP docs in this repository. Say that the share takes
51
only notes about how they operate in Google Cloud, takes no secrets, and
52
shows the list before sending. If local memory notes a confirmed earlier
53
share ("shared on"), say when and offer only what's new. Check local memory
54
only for an earlier "shared on" note; read nothing else until they agree. If
55
they say no, note "declined" (step 4) and stop.
56
2. **Collect** in three groups, copying what the sources say (names, dates,
57
reasons) rather than searching past transcripts:
58
- **Facts and preferences:** environments (test, staging, prod) and their
59
projects, other projects of interest, the services they manage, regions,
60
networks, where IaC and state live, naming, owners, product preferences,
61
best practices, architecture guidance (standard patterns, approved
62
services, network/landing-zone conventions) and other standing choices.
63
- **What happened:** incidents and fixes, migrations, decisions and failed
64
attempts, each with its date and outcome.
65
- **How things are done:** deploys, rollbacks, failovers, incident
66
response, quota or access requests, each as a short summary naming its
67
resources, and where its runbook is.
68
69
Put any other note about how they operate in Google Cloud in the closest
70
group. Leave out secrets, personal and non-GCP notes, and live state such as
71
metrics or bills. Mark notes that apply to one repository only. When local
72
sources disagree, keep the newer one (by its date) or ask; a conflict with
73
what the operator already has is settled after the save ([Send](#send),
74
step 6). If nothing qualifies, say so and stop.
75
3. **Show the list**, one line per note with its source, and ask: all, some or
76
none?
77
4. **Send** the picks, then **note** in local memory "Cloud Operator context:
78
shared on {date}", "declined on {date}" (no or none) or, if `/reflect`
79
doesn't confirm, "not confirmed on {date}". Note nothing if a call failed.
80
Only "shared on" and "declined on" stop the cloud-operator and
81
cloud-operator-setup skills' offers.
82
83
## Send
84
85
1. Use one new operator session for the whole share: no `contextId` at first,
86
then each reply's `context_id`.
87
2. Write in plain language and the user's voice, without tags or structured
88
formats, which the safety filter can reject. Describe procedures as what the
89
user does. Leave out empty groups, and above about 30 notes send one group
90
per message:
91
92
```text
93
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.
94
95
Facts and preferences:
96
- ...
97
What happened:
98
- ...
99
How we do things:
100
- ...
101
```
102
103
3. If a call fails with a permission error while earlier calls worked, retry
104
once in a new session with everything sent so far, in the same wording, so
105
the operator skips notes it already saved. If that fails, tell the user the
106
operator refused; mention organization access only if other calls fail
107
too.
108
4. Send `/reflect` alone, once, after the last message, without waiting on
109
anything such as a conflict. The operator may save during the turn too;
110
`/reflect` saves everything now.
111
5. If its reply doesn't say the conversation is being saved (for example,
112
"nothing new to save"), the save isn't confirmed and memory may be off. Tell
113
the user they can retry later by running this skill again.
114
6. Otherwise, report briefly what was shared, skipped or flagged. If the
115
operator kept its own version of a note, show the user both versions, each
116
with its source and date if known: theirs from the list, the operator's from
117
its reply. Ask once, for all conflicts, which version is current. Where they
118
pick theirs, send it with [One fact](#one-fact), all in one message; it
119
replaces the operator's version. Where they pick the operator's or don't
120
answer, leave it. If the operator still keeps its own version after that,
121
tell the user and stop.
122

© Google LLC · Apache 2.0 · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…