Skill Detail
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.
Code Quality & ReviewMulti-Framework
Code Quality & Review
Multi-Framework
Security Reviewed
⭐ 8.7k GitHub stars
COPY SKILL INSTRUCTIONS (OPTIONAL)
npx skills add agentskillexchange/skills --skill format-shell-scripts-into-a-stable-house-style-before-review-with-shfmt
Uses the third-party skills CLI, not an ASE-owned installer. Check your agent’s compatibility. This copies instructions; complete the upstream tool setup below separately.
At a glance
Tools required
Go or packaged shfmt binary, shell script files, optional CI or pre-commit integration
Install & setup
Install shfmt from the upstream Go, package manager, or container instructions, then run it against target shell files such as
shfmt -w script.sh or in batch across a repository.Author
mvdan
Publisher
Individual
Last updated
Apr 27, 2026
Quick brief
Use shfmt when an agent needs one repeatable formatting pass for shell scripts before code review, lint cleanup, or automated refactors land. This should be invoked instead of editing shell style manually or treating a generic shell toolkit as the answer, because the job here is narrow: take existing shell source and rewrite it into a consistent canonical format. That scope boundary—shell formatting for reviewable diffs and team consistency—keeps this skill distinct from the broader mvdan/sh parser and interpreter project.