---
name: format-on-save
category: automation
description: Automatically format code files after they are edited or written.
event: PostToolUse
matcher: Edit|Write
language: bash
tags: [formatting, automation, code-quality]
---

Run prettier or language-specific formatter after file edits to maintain consistent code style.
