Reports on Google Cloud Batch runs that finished since the last check. Useful for scheduled daily catch-ups or when asked what completed overnight.
Ships in gcp-compute. 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.
Someone submitted work to Google Cloud Batch and went home. Your job is to tell them what finished — briefly, and only what is new since the last time you looked.
This runs in two situations, and they want the same answer: a scheduled daily task, and a researcher simply asking "did my jobs finish?". Write for both. Assume nobody is watching while you work.
The obvious implementation — walk /mnt/gcs/runs/*/ looking for _COMPLETE — is
wrong, and it fails silently in exactly the case that matters.
_COMPLETE is written by the control plane when get_run_status first observes a
terminal state, not by the tasks. A job that finished at 2am has no sentinel
until something asks about it. Scan the mount and an overnight run looks unfinished;
the researcher is told nothing happened, and the thing they were waiting for is
sitting there completed.
So the check is API-first:
list_runs(limit=50) from a repl cell — this is an MCP tool, so it is only
available there.get_run_status(run_id).
This is also what finalises it: the sentinel and manifest appear as a side
effect, which is what makes the results readable afterwards./mnt/gcs.Keep a small state file in your workspace. A scheduled task reuses its conversation, so the file survives between ticks.
# repl cell
import json, os
STATE = "harvest-state.json"
seen = json.load(open(STATE)) if os.path.exists(STATE) else {"reported": []}
runs = host.mcp("gcp-batch", "list_runs", limit=50)["runs"]
fresh = []
for r in runs:
if r["run_id"] in seen["reported"]:
continue
s = host.mcp("gcp-batch", "get_run_status", run_id=r["run_id"])
if s["terminal"]:
fresh.append(s)
os.makedirs("handoff", exist_ok=True)
json.dump(fresh, open("handoff/fresh.json", "w"))
json.dump({"reported": seen["reported"] + [f["run_id"] for f in fresh]},
open(STATE, "w"))
print(f"{len(fresh)} newly finished")
Record a run as reported only once you have actually reported it. If you record first and then fail to summarise, that run is invisible forever — the researcher never hears about it and there is no error to notice. Prefer repeating yourself once over dropping a result silently.
On the very first run the state file is empty and every historical run looks new. Don't dump forty summaries. Report the last day's worth, say plainly that you're starting fresh, and record the rest as seen.
If nothing finished, say so in one line and stop. A daily task that writes three paragraphs about having no news trains people to ignore it.
For each finished run, keep it to a couple of lines: what it was, whether it worked, and where the results are.
msa-fanout (
msa-fanout-4b21c7de) — finished 02:14, 64/64 tasks succeeded. Results in/mnt/gcs/runs/<user>/msa-fanout-4b21c7de. screen-variants (screen-variants-9ac31f02) — finished 03:40, 58/64 succeeded, 6 failed — all six hit the same missing reference file. Worth a re-run.
Then stop. Do not open the outputs and start analysing unless asked. The researcher
chose what to compute; your job here is to tell them it's ready, not to pre-empt what
they wanted to do with it. If one run failed entirely, that is worth a sentence on
the likely cause from logs/task-NNNN.log — that saves them a round trip.
Only go further — read MANIFEST.json, assemble a table, save_artifacts() — when
the researcher's standing instruction says to, or when they ask. See the gcp-batch
skill for the harvest mechanics.
If list_runs fails, say so and stop. Don't fall back to scanning the mount and
present the result as complete — a mount scan cannot see unfinalised runs, so a
partial answer here is worse than no answer, because it looks authoritative.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/gcp-compute:gcp-harvestfrom gcp-compute
npx claudepluginhub ryanymt/claude-science-on-gcp --plugin gcp-compute2 skills in this plugin
Other plugins' skills for the same job