aif-dockerize

Generate multi-stage Dockerfiles, Compose configurations, and security audits for projects.

2|Updated Mar 28, 2026
One-click install
npx skills add https://github.com/hightemp/query2table --skill aif-dockerize-hightemp
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: aif-dockerize
Source: https://github.com/hightemp/query2table/tree/main/.codex/skills/aif-dockerize
Command: npx skills add https://github.com/hightemp/query2table --skill aif-dockerize-hightemp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Setting up Docker for a project requires deep knowledge of multi-stage builds, Compose overlays, security hardening, and infrastructure services, and mistakes lead to bloated images or insecure production deployments. ## Core Features & Use Cases - Three operating modes: generate a full Docker setup from scratch, enhance an existing local setup with production configuration, or audit a complete setup against a security checklist. - Automatic project detection: identifies language, framework, package manager, entry point, ports, and infrastructure dependencies (PostgreSQL, Redis, RabbitMQ, reverse proxy) from project files. - Production hardening: generates compose.production.yml with read-only filesystems, dropped capabilities, resource limits, log rotation, and internal networks, plus deploy scripts for backup, rollback, and health checks. - Use Case: Ask to dockerize a FastAPI project and receive a multi-stage Dockerfile, dev and production Compose files, .dockerignore, .env.example, and a scored security checklist. ## Quick Start Dockerize this project and generate the production Compose configuration with a security audit.

Frequently Asked Questions about aif-dockerize

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I dockerize an existing project with Docker Compose?▼

Run the skill in generate mode: it scans your project files to detect the language, framework, and dependencies, then creates a multi-stage Dockerfile, compose.yml, compose.override.yml for development, and a hardened compose.production.yml.

How to audit a Docker Compose setup for production security?▼

Use the --audit flag or run the skill when a full Docker setup exists. It checks every service against a security checklist covering read-only filesystems, dropped capabilities, resource limits, healthchecks, log rotation, and secrets handling, then offers to fix the gaps.

Which languages and frameworks does the Dockerfile generator support?▼

Templates exist for Go, Node.js, Python, and PHP, with framework detection for Next.js, NestJS, FastAPI, Django, Flask, Laravel, Symfony, Gin, Echo, and others. Base image versions are read from project files like go.mod, package.json, or pyproject.toml.

Does it add services like Redis or PostgreSQL automatically?▼

Only when detected in the code or chosen during interactive setup. The skill greps for database, cache, queue, and proxy usage, merges results with your answers, and applies an over-engineering checklist to remove unneeded services.

Why does the production Compose file expose no database ports?▼

Infrastructure services communicate over an internal Docker network in production, so no host ports are exposed for databases or caches. Only the reverse proxy or app binds ports 80 and 443, with localhost binding available as an exception.