/three-ws-core:gcp-triagefrom three-ws-core
Monitors three.ws production on Google Cloud Run, runs deep health sweeps (healthz, logs, version, TLS, fleet, pages, crons, DB migrations, wallets), classifies problems, and applies fixes.
Ships in three-ws-core. 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.
The vercel logs era is over; production is 20 Cloud Run services in project
aerial-vehicle-466722-p5 (region us-central1). This skill is the loop an
agent runs to answer "is production healthy?" and to act on what it finds.
gcloud is already authenticated in this workspace.
When the user asks "what's wrong with three.ws?" (or anything equally broad), run the DEEP sweep; it checks everything, not just what happened to log:
npm run triage:gcp -- --json --deep --since 6h # agents: always --json
For a quick pulse check mid-incident, the fast form is still fine:
npm run triage:gcp -- --json --since 1h
The base monitor merges three signals and classifies every distinct problem signature:
https://three.ws/api/healthz: the platform's own subsystem roll-up
(database, cache, Helius, x402 ring, world, sniper).--deep adds nine concurrent read-only probes, each wrapping an existing
standalone audit, normalized into the same findings stream:
| probe | what it proves | wraps |
|---|---|---|
version | /api/version answers; deployed commit is in local history; deploy lag counted | built-in |
tls | certs on three.ws + world.three.ws have >21 days left | built-in |
fleet | every Cloud Run service's latest revision is Ready | gcloud run services list |
pages | every page advertised in data/pages.json serves on the live site | scripts/check-pages.mjs --base |
cron-drift | vercel.json crons match live Cloud Scheduler jobs | scripts/check-cron-drift.mjs |
cron-liveness | every cron routes, resolves a handler, and loads | scripts/audit-cron-liveness.mjs --static |
db-migrations | no migration is pending against the database | scripts/apply-migrations.mjs --check |
service-wallets | signer wallets above SOL floors; advertised x402 keys match secrets | scripts/audit-service-wallets.mjs |
custodial-keys | no funded custodial wallet sits behind an undecryptable key | scripts/audit-custodial-key-health.mjs |
A probe that cannot run becomes an investigate finding (a blind spot is not
"healthy"); one skipped for missing local secrets is reported as skipped.
--skip pages,custodial-keys drops probes when you must (e.g. re-running in a
tight loop). The deep sweep takes a few minutes; that is the point.
Exit 0 = healthy or self-healing noise only. Exit 1 = findings[] contains
actionable items. Each finding carries class, count, services,
sample, and a concrete action. Deep findings carry
signature: "deep-<probe>".
Surfaces even the deep sweep does not cover, worth running when the complaint
points at them: npm run smoke:mcp (remote MCP endpoints),
npm run smoke:x402-facilitator (facilitator verifies a real signed payment
without broadcasting it, so it is safe to run any time), npm run audit:web
or audit:web:login (real-browser page audit with the QA account).
| class | what it means | what you do |
|---|---|---|
owner | money / billing / security credential | Do NOT act. Put the exact command from docs/ops/production-log-triage.md in your report. |
env-action | fix is a config-only Cloud Run env/resource change | Apply it now. Config-only gcloud run services update is pre-approved (CLAUDE.md). ALWAYS --update-env-vars (merges); NEVER --set-env-vars (replaces the whole set). |
investigate | unknown signature or 5xx group | Root-cause it (Step 3). Fix the code, add tests, commit locally. Deploys need owner approval, so prepare the one-command ship and say so in the report. |
self-healing | documented graceful degradation | No action. Only escalate if the same finding persists across several runs (compare firstSeen, it should not span many hours). |
investigate findingvercel logs equivalent):
npm run logs -- -s <service> --errors --since 6h # errors, one service
npm run logs -- -s <service> --app --warnings # app logs only
npm run logs -- --all --grep "<term>" --since 1d # search the fleet
npm run logs:tail # live tail three-ws-api
api/ for
what makes it return that status, and check which upstream it wraps.forge_creations table carries per-generation
backend/status/error/prompt (DATABASE_URL from the Cloud Run service env).Uncaught signal, OOM, no available instance):
check the revision, memory, and instance ceilings via
gcloud run services describe <service> --region us-central1.git add -A). Do not push or deploy without owner approval; leave the ship
as one command in the report.KNOWN_SIGNATURES in
scripts/gcp-triage.mjs AND document it in
docs/ops/production-log-triage.md,
so the monitor never flags it as investigate again. That is how this
system learns.three-ws-api revisions
(gcloud run revisions list --service three-ws-api --region us-central1)
and the load balancer per the production runbook before anything else.Lead with the verdict (healthy / degraded / outage). Then: what you fixed, what you committed, what needs the owner (exact commands), and what is self-healing noise. Solana-facing findings first.
What SKILL.md sets; muted values are Claude Code's defaults
Production health checks, log diagnosis, error triage, and the recurring monitor-and-fix loop. For a raw log view only, `npm run logs` is enough without this skill.
Three short reads, in order
npx claudepluginhub nirholas/three.ws --plugin three-ws-core49 skills in this plugin
/anatomyExplain how a machine works as an interactive isometric 3D cutaway. Use when the user asks how an engine, turbine, reactor, pump, clock, motor or any mechanism works and wants to see it, or types "/anatomy <machine>", for example "/anatomy explain how a big airliner turbofan engine like the A380's makes thrust, interactive". Produces a shareable three.ws link with real moving parts, shader effects (fire, exhaust, plasma, water, steam, sparks, arcs), flows, a section cut, an exploded view and a guided tour./authenticate-walletSign in to the wallet. Use when you or the user want to log in, sign in, connect, or set up the wallet, or when any wallet operation fails with authentication or "not signed in" errors. This skill is a prerequisite before sending, trading, or funding./build-an-agent-skillWrite a real three.ws agent skill bundle (manifest.json + SKILL.md + tools.json + handlers.js) that gives a 3D agent a new capability, then install it on an agent and test it. Use when you or the user want to build, write, author, or code a custom skill, capability, tool, or ability for a three.ws agent or an <agent-3d> embed ("give my agent a new skill", "make my agent able to check the weather", "write a custom tool for my avatar", "add a gesture skill"). Covers the four-file bundle layout, the handler context API, the sandbox limits, trust policy, and how to install the bundle./connect-three-ws-mcpConnect any MCP client (Claude Code, Claude Desktop, the Agent SDK, or a custom one) to the three.ws MCP servers, so the model can generate 3D models and avatars, read and write agent data, and pay for services. Use when you or the user want to connect, add, install, configure, wire up, or debug three.ws MCP, an MCP server for 3D or avatars or agent wallets, a .mcp.json entry, or "give Claude access to three.ws". Also use to pick which of the hosted servers to add, and to test a connection that is not working./create-3d-avatarTurn a text prompt (or reference image) into a rigged, animation-ready 3D avatar (GLB). Use when you or the user want to create, generate, or make a 3D avatar, character, or humanoid figure that can be posed and animated, for example "make a 3D avatar of a knight", "generate a character I can animate", "create a rigged astronaut". Generates the mesh and adds a humanoid skeleton in one step. Returns a GLB URL plus a pose-studio link./create-a-three-ws-agentCreate a real three.ws AI agent (identity, 3D body, custodial Solana wallet, persona) from the command line and get its live public page. Use when you or the user want to create, build, deploy, launch, or set up an AI agent, a 3D agent, an on-chain agent, or "my own agent" on three.ws, attach a 3D body to an existing agent, edit an agent's persona or brain, or list the agents an account already owns. Returns the agent id, its Solana wallet address, and the public URL anyone can visit and chat with.Other plugins' skills for the same job