Skip to content

Production-ready GCP serverless patterns covering Cloud Run services, event-driven functions, and cold start tuning.

CCM score
59 of 100
skills.sh installs
235
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Cloud Run containerized services, Cloud Run Functions for HTTP, Pub/Sub, and Cloud Storage triggers, and cold start optimization
  • Includes Dockerfile and Express service templates, a Cloud Build deploy pipeline, and gcloud deploy commands for each trigger type
  • Provides cold start tactics: --cpu-boost, --min-instances, distroless images, and lazy loading of heavy dependencies
  • Flags anti-patterns such as CPU-heavy work without concurrency limits, large files written to /tmp, and long-running background tasks

Install

$ npx -y skills add davila7/claude-code-templates --skill gcp-cloud-run -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

GCP Cloud Run

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
# 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' });
  }
});

Details

Repository
github.com/davila7/claude-code-templates
Categories
DevOps & Cloud, Backend & APIs
First seen
Jun 3, 2026

Questions

What does the gcp-cloud-run skill help with?

The gcp-cloud-run skill helps build production-ready serverless applications on Google Cloud Platform. It covers Cloud Run services that run in containers, Cloud Run Functions for event-driven work, cold start optimization, and event-driven architecture with Pub/Sub.

How do I install the gcp-cloud-run skill?

Run npx -y skills add davila7/claude-code-templates --skill gcp-cloud-run -y in your project. Once installed, the agent can guide you through containerized Cloud Run deployments and Cloud Run Functions.

Where does gcp-cloud-run sit among DevOps and cloud skills?

The skill is listed in the DevOps and Cloud category on Claude Marketplaces, alongside Azure skills such as azure-deploy and azure-diagnostics. Its focus is narrower: it targets Google Cloud Run workloads specifically, including cold start tuning and Pub/Sub event handling.

Who should use the gcp-cloud-run skill?

It suits developers who deploy web applications, APIs or event handlers on Google Cloud. The skill's patterns cover stateless containerized services, HTTP webhooks, Pub/Sub message processing and Cloud Storage triggers.

More from davila7/claude-code-templates

All 398

Similar to Gcp Cloud Run

More DevOps & Cloud