cloud-run
Skill13 starsChanged 4 days agoMITView on GitHub
Deploy Python services to Cloud Run with Artifact Registry and keyless CD.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- fmind/dotfilesword for word, first seen Nov 8, 2026
- robium-ai/robiumtheir own version, first seen Aug 7, 2026
- GoogleCloudPlatform/cloud-run-mcptheir own version, first seen Apr 17, 2026
Other versions3 projects use a version of this.
Word for word · 1
- fmind/dotfiles★ 13100% same
Edited · 0
None found.
Wrote their own version · 2
- GoogleCloudPlatform/cloud-run-mcp★ 639same name
- robium-ai/robium★ 93same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository67 other files it gives its agents.
- AGENTS.mdAGENTS.md
- dot_agents/AGENTS.mdAGENTS.md
- skills/repository-docs/references/agents.mdAGENTS.md
- chezmoiSkill
- dot-developmentSkill
- dot-releaseSkill
- dot-skillsSkill
- dot-verifySkill
- acliSkill
- agent-evaluationSkill
- agent-frameworksSkill
- agent-harnessesSkill
- agent-projectSkill
- agent-protocolsSkill
- agySkill
- airflowSkill
- auth-statusSkill
- awsSkill
- bfSkill
- chrome-devtoolsSkill
- clipboardSkill
- code-securitySkill
- colabSkill
- databricksSkill
- diagrams-as-codeSkill
- dockerSkill
- documentation-siteSkill
- dot-cliSkill
- dprintSkill
- draft-docSkill
- draft-mailSkill
- duckdbSkill
- fmind-visualsSkill
- full-reviewSkill
- gcloudSkill
- ghSkill
- git-deliverySkill
- github-actionsSkill
- github-issuesSkill
- github-pull-requestSkill
- github-repositorySkill
- google-developerSkill
- gwsSkill
- hfSkill
- infra-as-codeSkill
- kaggleSkill
- kubernetesSkill
- lesson-learnedSkill
- mcp-setupSkill
- miseSkill
- model-providersSkill
- playwrightSkill
- project-scaffoldingSkill
- python-mlopsSkill
- python-stackSkill
- python-webSkill
- repository-docsSkill
- scheduled-jobsSkill
- skillifySkill
- <name>Skill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Resolve target and authority: verify the gcloud account, project, region, service, and Artifact Registry image repository.
- Distinctive: line 20
Configure identities once: read bootstrap.md for APIs, registry, runtime service account, deployer service account, and Workload Identity …
- Distinctive: line 22
Publish and prove provenance: after push authority is explicit, follow deployment.md: take one digest (the build action's output in CI, …
- Very specific: line 33
Size connection pools against the database limit: keep max_instances × (pool_size + max_overflow) below the database's max_connections …
- Distinctive: line 35
Align service and registry regions: keep the service and Artifact Registry repository in one region and project.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cloud Run Deployment
Deploy a Python service to Cloud Run through an immutable image digest, private invocation, keyless CI, and a dedicated runtime identity. containerize owns the image; gcloud owns account, project, and region context.
Workflow
- Resolve target and authority: verify the gcloud account, project, region, service, and Artifact Registry image repository; registry pushes, signing, IAM changes, deployment, and traffic changes each need authority for the named target.
- Configure identities once: read bootstrap.md for APIs, registry, runtime service account, deployer service account, and Workload Identity Federation. Keep deployer and runtime identities distinct.
- Validate locally: pin, lock, and install Trivy and Cosign before any image scan or registry push, then build the pinned non-root Python image and run its tests and
check:imagescan; follow deployment.md steps 1-2 and containerize. - Publish and prove provenance: after push authority is explicit, follow deployment.md: take one digest (the build action's output in CI, BuildKit metadata locally) and run the cosign release sequence on it before deployment.
- Deploy privately: pass the digest reference and dedicated
--service-account; keep--invoker-iam-check --no-allow-unauthenticatedand verify both access controls after deployment. Use service.yaml when settings warrant a declarative service specification; a successful update does not prove private IAM. - Use infrastructure as code when needed: manage repeatable services, IAM, registries, and fleet-level infrastructure per infra-as-code; review the plan before apply.
- Wire CD when requested: adopt deploy.yml and verify-private.py per the "Wire CD" and "Roll out through a candidate" steps of deployment.md.
- Verify the live result: record the ready revision, deployed digest, pinned secret versions, runtime account, IAM policy, health result, and traffic split. Keep a known-good revision for rollback.
Gotchas
- Use one digest throughout: build, scan, signature, attestation, deployment, verification, and rollback must refer to the same
@sha256:image. - Private by default: grant
roles/run.invokeronly to intended callers or use an authenticating load balancer. For signed-in users without a load balancer,gcloud run deploy --iapenables IAP on the service. - Promote an exact revision, never LATEST: CD deploys a no-traffic tagged candidate, verifies it on the tag URL, then routes 100% to that revision name and drops the tag, so a later revision never inherits traffic unverified.
- Size connection pools against the database limit: keep
max_instances × (pool_size + max_overflow)below the database'smax_connectionsminus admin headroom (SQLAlchemy defaults to 5 + 10 per process), and add a connection pooler instead of raising pool sizes when autoscaling exhausts it. - Scale deliberately: keep minimum instances at zero unless measured first-request latency justifies idle cost. For a hard monthly cost ceiling, propose a Cloud Billing spend cap: once estimated costs exceed the budget, it pauses the project's Cloud Run usage, taking the service offline until the cap is lifted or the month ends; enforcement lags, and setting it needs billing authority.
- Align service and registry regions: keep the service and Artifact Registry repository in one region and project. Workload Identity Federation pools remain global.
Official Skills
Upstream: google/skills (skills/cloud), listed and installed through Google catalog. Select the Cloud Run skills the task needs; gcloud covers its CLI guardrail skill.
Documentation
- Cloud Run · Artifact Registry · Workload Identity Federation
- Releases: Cloud Run · Artifact Registry
- Companion skills: containerize, github-actions, gcloud, infra-as-code, and code-security.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

