---
name: dockerfile-opt
description: Dockerfile Opt skill for automated devops workflows. Provides tools and templates for dockerfile, dockerfiles,
  opt operations, integration with AI pipelines, and performance optimization.
domain: devops
tags:
- ci-cd
- devops
- docker
- dockerfile
- infrastructure
- opt
- pipeline
- workflow
---
## When to Use

**Trigger phrases:**
- "dockerfile opt"
- "Help me with dockerfile opt"

**Use cases:**
- When the task matches this skill's domain expertise

**When NOT to use:**
- For tasks outside this skill's scope



## Dockerfile Opt

Optimize Dockerfiles

### Usage

```
/dockerfile-opt <task>
```

### Features

- Automated execution
- Error handling
- Result validation

## When NOT to Use

- When the container deployment requires air-gapped network compliance
- When the Docker image contains licensed software with deployment restrictions
- When the task is too trivial to warrant this skill
- When a more appropriate skill exists

## Common Rationalizations

| Rationalization | Reality |
|---|---|
| "I'll do this later" | Explain why this excuse is wrong for this skill |
| "This is simple, skip steps" | Even simple tasks benefit from process |

## Red Flags

- Container images are built without security scanning
- Agent does not minimize image layers increasing attack surface
- Watch for shortcuts and skipped steps

## Verification

After completing this skill, confirm:

- [ ] Container images pass security scanning before deployment
- [ ] Image layers are minimized and use multi-stage builds
- [ ] All required outputs generated
- [ ] Success criteria met
## Notes

- This skill integrates with the broader 1ai-skills ecosystem for devops workflows
- Combine with related skills for maximum impact across your pipeline
- Monitor output quality and iterate on configuration based on results
- Keep dependencies up to date for security and performance
- Document custom workflows and configurations for team knowledge sharing
## Additional Resources

- Review the 1ai-skills repository for related devops skills
- Check the references/ directory for checklists and templates
- Join the community for best practices and support
- Contribute improvements via pull requests
## Notes

- This skill integrates with the broader 1ai-skills ecosystem for devops workflows
- Combine with related skills for maximum impact across your pipeline
- Monitor output quality and iterate on configuration based on results
- Keep dependencies up to date for security and performance
- Document custom workflows and configurations for team knowledge sharing

## Overview

> Section content — see SKILL.md body for full details.

## Process

1. Analyze the task requirements
2. Apply domain expertise
3. Verify output quality
