Skip to content
Back to skills

Format Shell Scripts Into A Stable House Style Before Review With Shfmt

ASecurity

Normalize Bash, POSIX shell, and Zsh scripts before review or CI so style noise stops hiding the real changes.

  • 36 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 8, 2026
ai-agentsgoshellbashdockergitsecuritydocumentation

Security analysis

A100/100

Scanned June 8, 2026

npx -y skills add agentskillexchange/skills --skill format-shell-scripts-into-a-stable-house-style-before-review-with-shfmt --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Format Shell Scripts Into A Stable House Style Before Review With Shfmt?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Format Shell Scripts Into A Stable House Style Before Review With Shfmt
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-format-shell-scripts-into-a-stable-house-style-bef/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-format-shell-scripts-into-a-stable-house-style-bef)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "Format shell scripts into a stable house style before review with shfmt"
slug: "format-shell-scripts-into-a-stable-house-style-before-review-with-shfmt"
description: "Normalize Bash, POSIX shell, and Zsh scripts before review or CI so style noise stops hiding the real changes."
github_stars: 8700
verification: "security_reviewed"
source: "https://github.com/mvdan/sh"
author: "mvdan"
publisher_type: "individual"
category: "Code Quality & Review"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "mvdan/sh"
  github_stars: 8700
---

# Format shell scripts into a stable house style before review with shfmt

Normalize Bash, POSIX shell, and Zsh scripts before review or CI so style noise stops hiding the real changes.

## Prerequisites

Go or packaged shfmt binary, shell script files, optional CI or pre-commit integration

## Installation

Use the upstream install or setup path that matches your environment:
- go install mvdan.cc/sh/v3/cmd/shfmt@latest
- go install mvdan.cc/sh/v3/cmd/gosh@latest
- docker build -t my:tag -f cmd/shfmt/Dockerfile .
- docker run --rm -u "$(id -u):$(id -g)" -v "$PWD:/mnt" -w /mnt my:tag <shfmt arguments>

Requirements and caveats from upstream:
- Supports [POSIX Shell], [Bash], [Zsh], and [mksh]. Requires Go 1.25 or later.
- Packages are available on [Alpine], [Arch], [Debian], [Docker], [Fedora], [FreeBSD],
- ### Docker

Basic usage or getting-started notes:
- To parse shell scripts, inspect them, and print them out,
- see the [syntax package](https://pkg.go.dev/mvdan.cc/sh/v3/syntax).
- For high-level operations like performing shell expansions on strings,

- Source: https://github.com/mvdan/sh
- Extracted from upstream docs: https://raw.githubusercontent.com/mvdan/sh/HEAD/README.md

## Documentation

- https://pkg.go.dev/mvdan.cc/sh/v3

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/format-shell-scripts-into-a-stable-house-style-before-review-with-shfmt/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.