google-agents-cli-scaffold
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
docker-rocker
Production-grade Docker containerization for FastAPI, Pytest, SQLModel, and Pydantic projects. This skill should be used when users ask to dockerize FastAPI applications, create multi-stage Docker builds, optimize Docker images for Python APIs, set up CI/CD Docker pipelines, or deploy containeriz...
Full skill instructions
Production-grade Docker automation for Python FastAPI web API projects using multi-stage builds, UV package manager, and performance optimization strategies.
Gather context to ensure successful implementation:
| Source | Gather |
|---|---|
| Codebase | Project structure, existing Dockerfile, pyproject.toml/requirements.txt, app entry point |
| Conversation | Target deployment (dev/staging/prod), database connection requirements, special dependencies |
| Skill References | Multi-stage patterns from references/, optimization strategies, security practices |
| User Guidelines | Team Docker conventions, registry requirements, CI/CD integration needs |
Ensure all required context is gathered before implementing. Only ask user for THEIR specific requirements (domain expertise is in this skill).
Ask about USER's context before generating Dockerfiles:
| Question | Purpose |
|---|---|
| Deployment target? | Dev (hot-reload) vs Production (optimized) vs CI/CD (testing) |
| Package manager? | UV (recommended) vs pip vs Poetry |
| Database type? | Neon PostgreSQL, local PostgreSQL, SQLite, other |
| Special system deps? | Libraries requiring apt packages (Pillow, psycopg2, etc.) |
| Port configuration? | Default 80 or custom port |
| Stage | Purpose | Base Image | Final Size |
|---|---|---|---|
| Builder | Install dependencies, compile packages | python:3.12-slim | ~400MB (discarded) |
| Runtime | Production application | python:3.12-slim | ~150MB |
| Testing | CI/CD test execution | extends Builder | ~450MB |
| Development | Hot-reload for local dev | python:3.12-slim | ~300MB |
What is the deployment target?
Production deployment?
→ Use Builder + Runtime stages
→ Minimal image, no dev dependencies
CI/CD pipeline?
→ Use Builder + Testing stage
→ Include pytest, dev dependencies
Local development?
→ Use Development stage
→ Volume mounts, hot-reload enabled
All of the above?
→ Generate complete multi-stage Dockerfile with all targets
# Check for existing configurations
ls -la pyproject.toml uv.lock requirements*.txt Dockerfile docker-compose.yml
Identify:
Based on user's deployment target, use appropriate template from assets/templates/:
| Target | Template |
|---|---|
| Production only | Dockerfile.production |
| With testing | Dockerfile.complete |
| Development | Dockerfile.dev |
| Full multi-stage | Dockerfile.multistage |
# Performance optimizations
ENV UV_LINK_MODE=copy \
UV_COMPILE_BYTECODE=1 \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
# Application settings
ENV APP_MODULE=app.main:app \
PORT=80
Order Dockerfile instructions by change frequency:
For Neon/PostgreSQL in containers:
# Use NullPool - let external pooler handle connections
from sqlalchemy.pool import NullPool
engine = create_async_engine(
DATABASE_URL,
poolclass=NullPool,
pool_pre_ping=True,
)
Create appropriate compose file for target environment.
# Build and verify
docker build --target runtime -t app:latest .
docker run --rm app:latest python -c "import app; print('OK')"
| Task | Command |
|---|---|
| Build production image | docker build --target runtime -t app:prod . |
| Build test image | docker build --target testing -t app:test . |
| Run tests in container | docker run --rm app:test pytest -v |
| Build with no cache | docker build --no-cache -t app:latest . |
| Check image size | docker images app:latest |
| Scan for vulnerabilities | docker scout cves app:latest |
| Error | Cause | Solution |
|---|---|---|
uv: command not found | UV not installed in image | Add COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv |
ModuleNotFoundError | Dependencies not in runtime | Verify COPY of .venv from builder |
Permission denied | Non-root user can't write | Use --chown=app:app on COPY |
Connection refused to DB | Network isolation | Use docker-compose networks or host.docker.internal |
OOM killed | Container memory limit | Increase memory limit or optimize workers |
| Build cache not working | Layer order wrong | Reorder: deps before code |
Before delivering Dockerfile, verify:
UV_COMPILE_BYTECODE=1 set for startup speed.dockerignore includes .venv, pycache, .git--proxy-headers flag for FastAPI behind load balancer| File | When to Read |
|---|---|
references/multi-stage-builds.md | Understanding stage architecture and patterns |
references/optimization-strategies.md | Reducing image size and build time |
references/fastapi-patterns.md | FastAPI-specific Docker configurations |
references/security-best-practices.md | Container security hardening |
references/database-connections.md | SQLModel/Neon connection patterns in containers |
| Template | Use Case |
|---|---|
assets/templates/Dockerfile.multistage | Complete multi-stage (Builder + Runtime + Testing) |
assets/templates/Dockerfile.production | Production-only optimized build |
assets/templates/Dockerfile.dev | Development with hot-reload |
assets/templates/docker-compose.yml | Full development stack |
assets/templates/docker-compose.prod.yml | Production compose |
assets/templates/.dockerignore | Standard ignore patterns |
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.