google-agents-cli-scaffold
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
production-dockerfile
Generate production-ready Dockerfiles with multi-stage builds, security best practices, and optimization. Use when containerizing Python applications for production deployment.
Full skill instructions
Think like a DevOps engineer who optimizes container images for production Kubernetes deployments. You balance image size, build speed, security, and operational simplicity. You've containerized hundreds of Python services and know the common pitfalls.
Before generating a Dockerfile, analyze the project by asking:
Deployment Target: Kubernetes cluster, Docker Compose, bare Docker, or serverless container (Cloud Run, Fargate)?
Base Image Strategy: What constraints apply?
Large Files: Are there model files (>100MB) or data that should be volume-mounted rather than baked into the image?
Security Requirements:
Health Monitoring: What endpoints indicate service health?
Build Context: What files should be excluded?
Apply these non-negotiable principles to every Dockerfile:
Separate build dependencies from runtime. Build stage installs compilers, dev packages. Runtime stage contains only what's needed to run.
Why: Reduces image size from 500MB+ to under 200MB. Removes attack surface from build tools.
Use UV package manager instead of pip. UV is 10-100x faster for dependency installation.
RUN pip install uv
RUN uv pip install --system --no-cache -r requirements.txt
Why: Faster CI/CD builds. No cache pollution.
Start with Alpine Linux base images. Fall back to slim only if native extensions fail.
FROM python:3.12-alpine # First choice
FROM python:3.12-slim # Fallback if alpine breaks
Why: Alpine images are 5-10x smaller. Most Python services work fine on Alpine.
Every production container needs a HEALTHCHECK instruction.
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:8000/health || exit 1
Why: Kubernetes/Docker orchestrators need health signals for rolling deployments.
Create and switch to a non-root user for runtime.
RUN adduser -D -u 1000 appuser
USER appuser
Why: Container escape vulnerabilities are less severe without root.
All configuration via environment variables. Never hardcode URLs, credentials, or environment-specific values.
ENV PYTHONUNBUFFERED=1
# Database URL provided at runtime: -e DATABASE_URL=...
Why: Same image works in dev, staging, production.
Never COPY .env files or credentials into the image. Use runtime environment variables or secret mounting.
Why: Images are often pushed to registries. Secrets in images = secrets exposed.
Generate Dockerfiles with this structure:
# =============================================================================
# Stage 1: Build
# =============================================================================
FROM python:3.12-alpine AS builder
WORKDIR /app
# Install build dependencies
RUN apk add --no-cache gcc musl-dev # Only if needed for native extensions
RUN pip install uv
# Install Python dependencies
COPY requirements.txt .
RUN uv pip install --system --no-cache -r requirements.txt
# =============================================================================
# Stage 2: Runtime
# =============================================================================
FROM python:3.12-alpine
# Create non-root user
RUN adduser -D -u 1000 appuser
WORKDIR /app
# Copy dependencies from builder
COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages
COPY --from=builder /usr/local/bin /usr/local/bin
# Copy application code
COPY --chown=appuser:appuser . .
# Environment configuration
ENV PYTHONUNBUFFERED=1
# Switch to non-root user
USER appuser
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:8000/health || exit 1
# Expose port
EXPOSE 8000
# Start command
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
When to use this skill:
Example prompt:
Use the production-dockerfile skill to containerize my FastAPI service.
It connects to PostgreSQL and needs to run in Kubernetes.
Here's my requirements.txt: [paste]
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.
Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.
Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.
Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.
Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.
Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.
Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.
Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".
Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.
Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.
Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".
Opus.ai: Revolutionize Your Web Experience
Build a no-code AI app in minutes.
An IDE for code migration from legacy to modern frameworks through coding agents.
Automate CGI animation in live-action scenes
Branded artistic QR-code concepts
Launch a website in seconds with AI.
Streamline Your Coding Experience with AI Code Helper
Convert any screenshot or design to clean code.