aliabbaschadhar/copilot-superpowers/gcp-cloud-run
Claude Code and agent skill by aliabbaschadhar/copilot-superpowers
- community
Checking that the SKILL.md file is still in the repository.
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-dri...
Install
npx vskill@latest install aliabbaschadhar/copilot-superpowers/gcp-cloud-runSKILL.md
The same SKILL.md was published earlier as zidong-llc/biblioteca/gcp-cloud-run.
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 - 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}); });
cloudbuild.yaml
steps: # Build the container image
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/my-service:$COMMIT_SHA', '.']
# Push the container image
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/$PROJECT_ID/my-service:$COMMIT_SHA']
# Deploy to Cloud Run
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: gcloud args:
- 'run'
- 'deploy'
- 'my-service'
- '--image=gcr.io/$PROJECT_ID/my-service:$COMMIT_SHA'
- '--region=us-central1'
- '--platform=managed'
- '--allow-unauthenticated'
- '--memory=512Mi'
- '--cpu=1'
- '--min-instances=1'
- '--max-instances=100'
1. Enable Startup CPU Boost
2. Set Minimum Instances
3. Optimize Container Image
4. Lazy Initialize Heavy Dependencies
5. Increase Memory (More CPU)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingassets/skills/gcp-cloud-run/SKILL.md
Popularity
- Repository forks
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aliabbaschadhar/copilot-superpowers/gcp-cloud-run)