google-cloud-run

google-cloud-run is a skill for Claude Code, Codex from ashish7802/awesome-api-skills. It costs 0 tokens per session (733 once invoked), scanned A, original, MIT.

A Google Cloud service that runs stateless HTTP applications packaged as containers. It can scale down when unused and uses Google-signed identity tokens to authenticate calls between private services.

In plain words
What is it for?
Use it to deploy containerized APIs and web services, configure service-to-service authentication, handle the platform-provided port, and shut down cleanly when instances are replaced.
Why use it?
It lets you deploy a web service without managing the underlying servers or manual scaling. It also provides a defined way for one protected service to call another.

Skill for Claude CodeCodex

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

Good fit Use it to deploy containerized APIs and web services, configure service-to-service authentication, handle the platform-provided port, and shut down cleanly when instances are replaced.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ashish7802/awesome-api-skills/google-cloud-run
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ashish7802/awesome-api-skills --skill google-cloud-run
Clone the repo
git clone --depth 1 https://github.com/ashish7802/awesome-api-skills

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 google-cloud-run

README.md
[![agentmods](https://agentmods.dev/badge/skills/ashish7802/awesome-api-skills/google-cloud-run/github.svg)](https://agentmods.dev/skills/ashish7802/awesome-api-skills/google-cloud-run)
Your own site
<a href="https://agentmods.dev/skills/ashish7802/awesome-api-skills/google-cloud-run"><img src="https://agentmods.dev/badge/skills/ashish7802/awesome-api-skills/google-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 google-cloud-run

Your own site · 80×15
<a href="https://agentmods.dev/skills/ashish7802/awesome-api-skills/google-cloud-run"><img src="https://agentmods.dev/badge/skills/ashish7802/awesome-api-skills/google-cloud-run.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 733 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.00000 $0.00733
Opus 5.5 $0.00000 $0.00293
Sonnet 5.5 $0.00000 $0.00147
Haiku 4.5 $0.00000 $0.00073

Measured 11d ago against content hash abb0961a7ab3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

google-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 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (examples/quickstart.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/google-cloud-run/SKILL.md · 52 lines

How it starts

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

Google Cloud Run Skill

Verification Tier: code_example_tested | Last Verified: 2026-11-18
Official Docs: https://cloud.google.com/run/docs/authenticating/service-to-service

Overview

Google Cloud Run executes stateless HTTP containers with automatic scale-to-zero and IAM-enforced service-to-service authentication via Google-signed OIDC Identity Tokens.

Installation

npm install google-auth-library

Authentication (Service-to-Service OIDC)

For private Cloud Run services (--no-allow-unauthenticated):

  1. Grant the caller's service account the roles/run.invoker IAM role on the target service.
  2. Fetch a Google-signed OIDC Identity Token whose audience is set to the exact target Cloud Run service root URL (e.g., https://billing-service-xyz.a.run.app) using google-auth-library (auth.getIdTokenClient(targetAudience)) or the GCP metadata server.
  3. Pass Authorization: Bearer <ID_TOKEN>.

Core Concepts

  • Container Contract: Listen on 0.0.0.0 and Number(process.env.PORT) || 8080. Never hardcode port 3000 ignoring PORT.
  • Graceful Shutdown (SIGTERM): Cloud Run sends SIGTERM and allows up to 10 seconds to drain in-flight requests and flush logs/DB connections before SIGKILL.
  • CPU Allocation: Background async work after returning an HTTP response is throttled unless CPU is configured as always-allocated (--no-cpu-throttling).

Error Handling & Rate Limits

  • Retry transient 503 cold-start / scaling responses with jittered backoff.
  • Use gcloud run services proxy for authenticated local testing against private services instead of opening them to allUsers.

Security Best Practices

  • Assign a dedicated least-privilege runtime service account per Cloud Run service (never use the overly broad Compute Engine default service account).
  • Mount secrets via Google Secret Manager integration instead of committing secrets in container images.

AI Pitfalls

  • Sending an OAuth2 Access Token instead of an OIDC Identity Token with audience = targetServiceUrl (results in HTTP 401/403).
  • Binding HTTP servers to localhost/127.0.0.1 instead of 0.0.0.0, causing Cloud Run startup health checks to fail.
  • Spawning fire-and-forget promises after sending the HTTP response with default request-based CPU throttling.

Read the full file on GitHub · 52 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. 11d ago First seen · 52 lines · 0 tokens per session scan A abb0961a7ab3

Subscribe to this mod's changes

google-cloud-run is a skill published in the GitHub repository ashish7802/awesome-api-skills (13 stars, last pushed 11d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 733 tokens. 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-11-19.

Related

google-cloud-run compared with skills from other repositories

google-cloud-run next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
google-cloud-runashish7802/awesome-api-skillsSkill1311d agoMITA0Claude Code, Codex
configure-reverse-proxypjt222/agent-almanacSkill463d agoMITA98Claude Code
flapi-deployDataZooDE/flapiSkill754d agononeB117Claude Code
apify-actorizationmarysatasselshaped667/skills-collection-1Skill11mo agoMITA48Claude Code, Codex
mobile-backend-infraalmasumdev/awesome-mobile-backend-agent-skillsSkill17mo agononeA37Claude Code, Codex
apify-actor-developmentmarysatasselshaped667/skills-collection-1Skill11mo agoMITC71Claude Code, Codex
alchemy-providerpingdotgg/t3codeSkill84ktodayMITA153Claude Code, Codex