gcp-cloud-run

gcp-cloud-run is a skill for Claude Code from martineserios/thebrana. It costs 45 tokens per session (7,821 once invoked), scanned D, original, MIT.

A guide for building serverless applications on Google Cloud Run, a service that runs containers without requiring you to manage servers. It covers web services, event-triggered functions, and connections to services such as Pub/Sub, Cloud SQL, and Secret Manager.

In plain words
What is it for?
Use it when building containerized APIs or web apps, event handlers, or stateless services on Google Cloud.
Why use it?
It helps you choose suitable Cloud Run patterns and avoid deployment issues involving startup time, memory, networking, concurrency, and shutdowns.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Part of the brana plugin — 56 skills, 4 commands, 14 agents, 13 hooks shipped together

Good fit Use it when building containerized APIs or web apps, event handlers, or stateless services on Google Cloud.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/martineserios/thebrana/gcp-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 martineserios/thebrana --skill gcp-cloud-run
Clone the repo
git clone --depth 1 https://github.com/martineserios/thebrana

Made for: Claude Code.

Or install brana, the plugin that ships this one along with the rest of its 56 skills, 4 commands, 14 agents, 13 hooks.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/martineserios/thebrana/gcp-cloud-run"><img src="https://agentmods.dev/badge/skills/martineserios/thebrana/gcp-cloud-run.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,821 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 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.00045 $0.07821
Opus 5 $0.00023 $0.03911
Sonnet 5 $0.00009 $0.01564
Haiku 4.5 $0.00005 $0.00782

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

Security

Grade D, and why

gcp-cloud-run scanned grade D with 2 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 10d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

Containers should not run as root for security

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

RUN pip install --no-cache /wheels/* && rm -rf /wheels
system/skills/acquired/gcp-cloud-run/SKILL.md · 1,383 lines

How it starts

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

GCP Cloud Run

Specialized skill for building production-ready serverless applications on GCP. Covers Cloud Run services (containerized), Cloud Run Functions (event-driven), cold start optimization, and event-driven architecture with Pub/Sub.

Principles

  • Cloud Run for containers, Functions for simple event handlers
  • Optimize for cold starts with startup CPU boost and min instances
  • Set concurrency based on workload (start with 8, adjust)
  • Memory includes /tmp filesystem - plan accordingly
  • Use VPC Connector only when needed (adds latency)
  • Containers should start fast and be stateless
  • Handle signals gracefully for clean shutdown

Patterns

Cloud Run Service Pattern

Containerized web service on Cloud Run

When to use: Web applications and APIs,Need any runtime or library,Complex services with multiple endpoints,Stateless containerized workloads

# Dockerfile - Multi-stage build for smaller image
FROM node:20-slim AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production

FROM node:20-slim
WORKDIR /app

# Copy only production dependencies
COPY --from=builder /app/node_modules ./node_modules
COPY src ./src
COPY package.json ./

# Cloud Run uses PORT env variable
ENV PORT=8080
EXPOSE 8080

# Run as non-root user
USER node

CMD ["node", "src/index.js"]
// src/index.js
const express = require('express');
const app = express();

app.use(express.json());

// Health check endpoint
app.get('/health', (req, res) => {
  res.status(200).send('OK');
});

// API routes
app.get('/api/items/:id', async (req, res) => {
  try {
    const item = await getItem(req.params.id);
    res.json(item);
  } catch (error) {
    console.error('Error:', error);
    res.status(500).json({ error: 'Internal server error' });
  }
});

// Graceful shutdown
process.on('SIGTERM', () => {
  console.log('SIGTERM received, shutting down gracefully');
  server.close(() => {
    console.log('Server closed');
    process.exit(0);
  });
});

const PORT = process.env.PORT || 8080;
const server = app.listen(PORT, () => {
  console.log(`Server listening on port ${PORT}`);
});

Read the full file on GitHub · 1,383 lines

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. 10d ago First seen · 1,383 lines · 45 tokens per session scan D ae17f87bb1bf

Subscribe to this mod's changes

gcp-cloud-run is a skill published in the GitHub repository martineserios/thebrana (3 stars, last pushed 2d ago), licensed MIT. It adds 45 tokens to every session and 7,821 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it D with 2 findings (asks for root, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

gcp-essentials

Use when running a small product on core Google Cloud via the gcloud CLI: a project, Cloud Run deploys, a locked-down Cloud Storage bucket, managed Cloud SQL, and least-privilege IAM wiring them together. NOT AWS (that is aws-essentials), NOT the CI pipeline that ships the image (that is deployment), NOT Postgres…

ericrisco/rsc-harness · 91 tokens

gcloud-cli

Operational skill for agents to manage Google Cloud via gcloud - projects, IAM, GKE, Cloud Run, GCS, and safe deploy hygiene.

alivirgo/Major-AI-Skills · 34 tokens

architecture-paradigm-serverless

Applies serverless FaaS patterns for event-driven workloads. Use when designing bursty workloads with minimal infrastructure and pay-per-execution cost model.

athola/claude-night-market · 37 tokens

apigee-proxy-skill

Teaches an LLM agent to scaffold, configure, validate, package, upload, and deploy Apigee X / hybrid API proxies by orchestrating the 18 MCP tools exposed by the apigee-proxy-skill MCP server. The agent never writes XML by hand — tools generate policy XML from 25 Jinja2 templates, validate bundles with defusedxml…

apigee/devrel · 103 tokens

configuring-identity-aware-proxy-with-google-iap

Configuring Google Cloud Identity-Aware Proxy (IAP) to enforce per-request identity verification for Compute Engine, App Engine, Cloud Run, and GKE services using access levels, context-aware policies, and programmatic access with service accounts.

26zl/cybersec-toolkit · 60 tokens

huawei-cloud-functiongraph-function-create

A guide for creating serverless functions in Huawei Cloud FunctionGraph, a service that runs code without managing servers directly. It uses the Huawei Cloud Python SDK and requires function details and cloud credentials.

huaweicloud/huaweicloud-skills · 90 tokens