# gcp-cloud-run

This skill guides Cloud Run service and event-function work on GCP. Use it for HTTP APIs, Pub/Sub processing, or cold-start tuning.

- skill · `type=skill` · Claude Code · 63 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/gcp-cloud-run
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/gcp-cloud-run

## What it does

The skill covers two Cloud Run deployment styles: container-based services and functions triggered by HTTP, Pub/Sub messages, or Cloud Storage events. Its examples include a Dockerfile, Node.js handlers, and build and deployment configuration using Cloud Build and `gcloud`.

A separate section explores cold-start tuning. It shows how to configure minimum instances and startup CPU boost, trim a container image, and defer loading heavy libraries. It also explains platform constraints: background work can slow when a service is idle, while large files in `/tmp` use the service’s memory.

The examples use Node.js and Google Cloud tools such as `gcloud`. Long-running background work needs architectural attention because Cloud Run can throttle CPU when no requests are being handled.

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill development/gcp-cloud-run
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill gcp-cloud-run -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/gcp-cloud-run/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/gcp-cloud-run/

### Codex

**Manually: put the files in place**
- File: `.agents/skills/gcp-cloud-run/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/gcp-cloud-run/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates gcp-cloud-run
```

2. **Manually: put the files in place**
- File: `.github/skills/gcp-cloud-run/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/development/gcp-cloud-run
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/gcp-cloud-run/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/gcp-cloud-run

## When to use it
- deploy a containerized HTTP service to Cloud Run
- process Pub/Sub messages with a function
- handle Cloud Storage upload events
- tune a Cloud Run service for cold starts
- account for Cloud Run CPU and memory limits

## Example prompts
- Set up a Node.js API for Cloud Run with a `/health` check and graceful shutdown.
- Create a Cloud Run function that handles Pub/Sub messages.
- Review ways to reduce Cloud Run cold starts and configure the relevant settings.

## Similar
- [caveman-manage](https://affpapa.org/en/nevibecode/skills/caveman-manage.md) — skill · 104200 installs
- [workers-best-practices](https://affpapa.org/en/nevibecode/skills/cloudflare-workers-best-practices.md) — skill · 126100 installs
- [cloudflare-email-service](https://affpapa.org/en/nevibecode/skills/cloudflare-email-service.md) — skill · 102300 installs
- [firebase-basics](https://affpapa.org/en/nevibecode/skills/firebase-basics.md) — skill · 14100 installs
- [cloudflare-one](https://affpapa.org/en/nevibecode/skills/cloudflare-one.md) — skill · 93100 installs
- [cloudflare-one-migrations](https://affpapa.org/en/nevibecode/skills/cloudflare-one-migrations.md) — skill · 89500 installs

## Other versions with the same name
- [gcp-cloud-run · aj-geddes](https://affpapa.org/en/nevibecode/skills/aj-geddes-gcp-cloud-run.md) — 535 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 804 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
