---
name: containerization-assistant-72b34aabad1f
description: Assist in containerizing applications with Dockerfile generation and optimization
allowed-tools: ["Bash", "Read", "Write", "Grep", "Glob", "Edit"]
graph:
  domains: [domain:software-engineering]
  specializations: [specialization:code-migration-modernization]
  skillAreas: [skill-area:containerization, skill-area:cloud-infrastructure]
  roles: [role:devops-engineer, role:backend-engineer]
  workflows: [workflow:technical-debt-reduction]
  topics: [topic:refactoring]
---

# Containerization Assistant Skill

Assists in containerizing applications by generating Dockerfiles, optimizing images, and configuring container deployments.

## Purpose

Enable application containerization for:
- Dockerfile generation
- Multi-stage build optimization
- Base image selection
- Dependency packaging
- Security scanning

## Capabilities

### 1. Dockerfile Generation
- Generate from application analysis
- Support multiple languages
- Include best practices
- Handle build dependencies

### 2. Multi-Stage Build Optimization
- Separate build and runtime
- Minimize image size
- Cache build layers
- Optimize build time

### 3. Base Image Selection
- Recommend appropriate base images
- Balance size vs features
- Consider security updates
- Handle distroless options

### 4. Dependency Packaging
- Bundle application dependencies
- Handle native extensions
- Configure build tools
- Manage versions

### 5. Health Check Configuration
- Add health checks
- Configure readiness probes
- Set up liveness probes
- Define startup probes

### 6. Security Scanning
- Scan for vulnerabilities
- Check base image security
- Identify exposed secrets
- Review permissions

## Tool Integrations

| Tool | Purpose | Integration Method |
|------|---------|-------------------|
| Docker | Container runtime | CLI |
| Buildpacks | Auto-detection | CLI |
| Jib | Java containers | CLI |
| ko | Go containers | CLI |
| Dive | Image analysis | CLI |
| Trivy | Security scanning | CLI |

## Output Schema

```json
{
  "containerizationId": "string",
  "timestamp": "ISO8601",
  "application": {
    "name": "string",
    "language": "string",
    "framework": "string"
  },
  "artifacts": {
    "dockerfile": "string",
    "dockerignore": "string",
    "composeFile": "string"
  },
  "image": {
    "baseImage": "string",
    "estimatedSize": "string",
    "stages": "number"
  },
  "security": {
    "vulnerabilities": [],
    "recommendations": []
  }
}
```

## Integration with Migration Processes

- **containerization**: Primary containerization tool
- **cloud-migration**: Container deployment
- **monolith-to-microservices**: Service extraction

## Related Skills

- `iac-generator`: Kubernetes IaC
- `cloud-readiness-assessor`: Container readiness

## Related Agents

- `cloud-migration-engineer`: Container deployment
- `infrastructure-migration-agent`: Container infrastructure


---
Source attribution: a5c-ai
Original project: https://github.com/a5c-ai/babysitter
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2026 Gabriel Moreira

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: a5c-ai
Original project: https://github.com/a5c-ai/babysitter
Attribution basis: Upstream repository explicitly recorded in package mirror path

Fields of work: Development & Engineering, Product Management
Roles: Backend Developer, Data Engineer, DevOps / SRE, Full-Stack Developer, Product Manager
Specialties: Backend, DevOps
Tools: Docker, Buildpacks, Dive, Jib, Ko, Trivy
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: e5256ff9ab41b46b6091cf8ea3cd32b1f828b873309e3329b97378b4587427f4
