cloud-run

cloud-run is a skill for Claude Code, Codex from fmind/dotfiles. It costs 28 tokens per session (1,703 once invoked), scanned A, original, MIT.

A procedure for deploying containerized web apps, APIs, and agents to Google Cloud Run, a Google service that runs containers without managing servers and can scale down when idle. It covers registries, identities, secrets, deployment commands, and continuous delivery.

In plain words
What is it for?
Use it to publish containers with gcloud, reviewable service manifests, or Terraform, using Artifact Registry, Secret Manager, and dedicated runtime identities.
Why use it?
It provides a defined path from a container image to a running service while addressing deployment settings and access control.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is IMAGE=$(go tool ko build ./cmd/<slug> --bare) # builds, pushes, prints the digest ref.

Good fit Use it to publish containers with gcloud, reviewable service manifests, or Terraform, using Artifact Registry, Secret Manager, and dedicated runtime identities.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/fmind/dotfiles
agentmods
npx agentmods add skills/fmind/dotfiles/cloud-run

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cloud-run

README.md
[![agentmods](https://agentmods.dev/badge/skills/fmind/dotfiles/cloud-run/github.svg)](https://agentmods.dev/skills/fmind/dotfiles/cloud-run)
Your own site
<a href="https://agentmods.dev/skills/fmind/dotfiles/cloud-run"><img src="https://agentmods.dev/badge/skills/fmind/dotfiles/cloud-run/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cloud-run

Your own site · 80×15
<a href="https://agentmods.dev/skills/fmind/dotfiles/cloud-run"><img src="https://agentmods.dev/badge/skills/fmind/dotfiles/cloud-run.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,703 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.01703
Opus 5.5 $0.00011 $0.00681
Sonnet 5.5 $0.00006 $0.00341
Haiku 4.5 $0.00003 $0.00170

Measured 1mo ago against content hash 0527a54710c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cloud-run scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cloud-run/SKILL.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cloud Run Deployment Standard

Canonical path from a container image to a running GCP service: Cloud Run is the default deploy target for web apps, APIs, and ADK agents — serverless containers, scale-to-zero, per-request billing. The image comes from the containerize skill (ko for Go, Dockerfile for Python); this skill covers registry, identity, deploy, and CD.

1. Deployment Ladder

  1. gcloud run deploy (default): one command, ideal for a single service iterated from the CLI.
  2. Declarative manifest: service.yaml applied with gcloud run services replace — reviewable in PRs once settings accumulate (scaling, secrets, resources).
  3. Full IaC: google_cloud_run_v2_service in the terraform-stack skill — when the service is one resource among many (domains, IAM, schedulers).

2. One-Time Project Setup

gcloud services enable run.googleapis.com artifactregistry.googleapis.com iamcredentials.googleapis.com
gcloud artifacts repositories create <slug> --repository-format=docker --location=<region>
gcloud iam service-accounts create <slug>-runtime   # runtime identity, least privilege
  • Runtime identity: always deploy with a dedicated service account; grant it only what the app reads (e.g. roles/secretmanager.secretAccessor on specific secrets) — never run on the default compute SA.
  • CI identity (keyless): create a Workload Identity Federation pool + provider once per project, then a deployer SA that GitHub Actions impersonates via OIDC — no exported keys:
gcloud iam workload-identity-pools create github --location=global
gcloud iam workload-identity-pools providers create-oidc github-actions \
  --location=global --workload-identity-pool=github \
  --issuer-uri="https://token.actions.githubusercontent.com" \
  --attribute-mapping="google.subject=assertion.sub,attribute.repository=assertion.repository" \
  --attribute-condition="assertion.repository_owner=='<owner>'"
gcloud iam service-accounts create <slug>-deployer
gcloud iam service-accounts add-iam-policy-binding "<slug>-deployer@<project>.iam.gserviceaccount.com" \
  --role=roles/iam.workloadIdentityUser \
  --member="principalSet://iam.googleapis.com/projects/<project_number>/locations/global/workloadIdentityPools/github/attribute.repository/<owner>/<repo>"

Read the full file on GitHub · 95 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 95 lines · 28 tokens per session scan A 0527a54710c6

Subscribe to this mod's changes

cloud-run is a skill published in the GitHub repository fmind/dotfiles (4 stars, last pushed 1mo ago), licensed MIT. It adds 28 tokens to every session and 1,703 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.