Quickstart

From javimosch/supercli · View interactive version

Quickstart is an AI agent skill from the GitHub repository javimosch/supercli. Use this skill when the user wants to format Dockerfiles, check Dockerfile formatting, or apply consistent style to Docker build files.

How to use this skill

Skill file

dockerfmt Plugin

Modern Dockerfile formatter written in Go. Format Dockerfiles with configurable indentation, trailing newlines, and redirect spacing. Compatible with pre-commit hooks and CI pipelines.

Commands

Formatting

Utility

Usage Examples

Installation

go install github.com/reteps/dockerfmt@latest

Or use the Docker image:

docker run --rm -v $(pwd):/data reteps/dockerfmt Dockerfile

Examples

# Format a Dockerfile and print to stdout
dockerfmt format file Dockerfile

# Format in place (overwrite the file)
dockerfmt format file Dockerfile -w

# Format multiple Dockerfiles in place
dockerfmt format file Dockerfile.dev Dockerfile.prod -w

# Check if a Dockerfile is already formatted (CI-friendly)
dockerfmt format file Dockerfile -c

# Read from stdin and format
cat Dockerfile | dockerfmt _ _

# Format with 2-space indentation
dockerfmt format file Dockerfile -w -i 2

# Add trailing newline
dockerfmt format file Dockerfile -w -n

# Add spaces after redirect operators
dockerfmt format file Dockerfile -w -s

# Combine options: indent 2, newline, space redirects
dockerfmt format file Dockerfile -w -i 2 -n -s

Key Features

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.