ansible-generator
Generate, create, or scaffold Ansible playbooks, roles, tasks, handlers, inventory, vars.
Create, generate, or write Dockerfiles and multi-stage Docker images. Containerize apps.
$ npx -y skills add akin-ozer/cc-devops-skills --skill dockerfile-generator --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/dockerfile-generatorContext preview
The summary Claude sees to decide when to auto-load this skill.
Create, generate, or write Dockerfiles and multi-stage Docker images. Containerize apps.
name: dockerfile-generator description: Create, generate, or write Dockerfiles and multi-stage Docker images. Containerize apps.
This skill provides a comprehensive workflow for generating production-ready Dockerfiles with security, optimization, and best practices built-in. Generates multi-stage builds, security-hardened configurations, and optimized layer structures with automatic validation and iterative error fixing.
**Key Features:**
Invoke this skill when:
Use this skill immediately when the request contains phrasing like:
Run these stages in order, and do not skip a stage unless the skip reason is reported in the final output.
1. Gather requirements (language, runtime version, entrypoint, exposed port, package manager, health endpoint). 2. Load references (local reference files first; external docs only when local references are insufficient). 3. Generate Dockerfile and `.dockerignore`. 4. Validate with `dockerfile-validator` or fallback local tools. 5. Iterate fixes until stop condition is met. 6. Publish final artifacts plus validation/audit report.
Stop conditions for stage 5:
Consult these files directly by path as needed:
Follow this workflow when generating Dockerfiles. Adapt based on user needs:
**Objective:** Understand what needs to be containerized and gather all necessary information.
**Information to Collect:**
1. **Application Details:**
2. **Dependencies:**
3. **Application Configuration:**
4. **Build Requirements:**
5. **Production Requirements:**
**Use AskUserQuestion if information is missing or unclear.**
**Example Questions:**
- What programming language and version is your application using? - What is the main entry point to run your application? - Does your application expose any ports? If so, which ones? - Do you need any system dependencies beyond the base language runtime? - Does your application need a health check endpoint?
**Objective:** Research framework-specific containerization patterns and best practices.
**When to Perform This Stage:**
**Research Process (strict fallback chain):**
1. **Read local references first (required):**
2. **Use Context7 docs lookup when local references are insufficient (preferred external source):**
Use mcp__context7__resolve-library-id with the framework name Then use mcp__context7__query-docs with query: "docker deployment production build"
A practical skill pack for DevOps work in Claude Code and Codex desktop. This repository ships 31 skills: 16 generators for scaffolding production-ready configs 14 validators for linting, security checks, and dry-run validation 1 debugger (k8s-debug) for
Repo: akin-ozer/cc-devops-skills
Generate, create, or scaffold Ansible playbooks, roles, tasks, handlers, inventory, vars.
Validate, lint, audit, or debug Ansible playbooks, roles, inventories, FQCN, tasks.
Generate/create/scaffold azure-pipelines.yml, stages, jobs, steps, or reusable templates.
Validate, lint, audit, or review azure-pipelines.yml — syntax, security, best practices.
Create, generate, write, or scaffold bash/shell scripts (.sh), automation, or CLI tools.
Validate, lint, audit, or fix bash/shell/.sh scripts via ShellCheck.