BeClaude

format-on-save

New
1Community RegistryGeneralby Logan Gagne

PostToolUse hook that auto-formats files after Edit/Write using language-appropriate formatters (shfmt, prettier, markdownlint, google-java-format, ktlint, cargo fmt, taplo, ruff)

Install & Usage

1
Create the skills directory
mkdir -p .claude/skills
2
Download the skill file
mkdir -p .claude/skills && curl -o .claude/skills/format-on-save.md https://raw.githubusercontent.com/St0nefish/agent-toolkit/main/SKILL.md
3
Invoke in Claude Code
/format-on-save
View source on GitHub

Frequently Asked Questions

What is format-on-save?

PostToolUse hook that auto-formats files after Edit/Write using language-appropriate formatters (shfmt, prettier, markdownlint, google-java-format, ktlint, cargo fmt, taplo, ruff)

How to install format-on-save?

To install format-on-save, create the .claude/skills directory in your project, then run the curl command to download the skill file. Once installed, invoke it in Claude Code with /format-on-save.

What is format-on-save best for?

format-on-save is a community categorized under General. Created by Logan Gagne.