shfmt-configuration

Installation
SKILL.md

shfmt Configuration

Master shfmt configuration for consistent shell script formatting across projects, including configuration files, EditorConfig integration, and team standardization.

Overview

shfmt is a shell parser, formatter, and interpreter that supports POSIX Shell, Bash, and mksh. Configuration allows you to define consistent formatting rules for your shell scripts.

Configuration Methods

shfmt supports multiple configuration approaches, in order of precedence:

  1. Command-line flags (highest precedence)
  2. EditorConfig settings
  3. .shfmt.toml or shfmt.toml file

TOML Configuration File

Basic Configuration

Related skills
Installs
17
GitHub Stars
150
First Seen
Jan 24, 2026