bash-format

bash-format is a plugin for Claude Code from melodic-software/claude-code-plugins. Its token cost is not measured, scanned A, original, MIT.

A code-formatting and linting hook for shell scripts, using shfmt and ShellCheck together with the repository's .editorconfig and .shellcheckrc files.

In plain words
What is it for?
Use it in repositories with shell-script conventions to check and format scripts automatically on edit.
Why use it?
It keeps shell scripts consistently formatted and flags supported mistakes while you edit them.

Plugin for Claude Code

Written for Claude Code: a Claude Code plugin manifest.

Good fit Use it in repositories with shell-script conventions to check and format scripts automatically on edit.

Compare 6 plugins from other repositories ↓
Install in Claude Code
/plugin marketplace add melodic-software/claude-code-plugins
/plugin install bash-format
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/melodic-software/claude-code-plugins

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bash-format

README.md
[![agentmods](https://agentmods.dev/badge/plugins/melodic-software/claude-code-plugins/bash-format/github.svg)](https://agentmods.dev/plugins/melodic-software/claude-code-plugins/bash-format)
Your own site
<a href="https://agentmods.dev/plugins/melodic-software/claude-code-plugins/bash-format"><img src="https://agentmods.dev/badge/plugins/melodic-software/claude-code-plugins/bash-format/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bash-format

Your own site · 80×15
<a href="https://agentmods.dev/plugins/melodic-software/claude-code-plugins/bash-format"><img src="https://agentmods.dev/badge/plugins/melodic-software/claude-code-plugins/bash-format.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

bash-format scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/bash-format/.claude-plugin/plugin.json · 43 lines

What it actually says

{
  "name": "bash-format",
  "description": "Format shell scripts with shfmt once per batch of tool calls and again at git pre-commit where the repo's .editorconfig opts in, and lint them with ShellCheck at commit, as two separate git-hook entries.",
  "author": {
    "name": "Melodic Software",
    "email": "[email protected]"
  },
  "version": "3.3.0",
  "license": "MIT",
  "keywords": [
    "bash",
    "shell",
    "shellcheck",
    "shfmt",
    "formatter",
    "linter",
    "hook"
  ],
  "metadata": {
    "category": "development"
  },
  "userConfig": {
    "bash_format_enabled": {
      "type": "boolean",
      "title": "Format shell scripts after edits",
      "description": "After each batch of tool calls, run shfmt over the shell scripts it wrote, where the repository's .editorconfig opts in",
      "default": true
    },
    "bash_format_lint_gitignored": {
      "type": "boolean",
      "title": "Act on files git ignores",
      "description": "By default the hook leaves a file the repository gitignores alone: it is not rewritten or linted, since a rewrite of an ignored file has no git checkout to undo it. Set true to act on gitignored files too. A tracked file that matches an ignore pattern is always in scope.",
      "default": false
    },
    "bash_format_end_of_turn": {
      "type": "boolean",
      "title": "Check shell scripts in uncommitted changes at turn end",
      "description": "At the end of each turn, run the pre-commit lint entry over the lines changed since the last commit and hand any findings back so they are fixed before the turn ends, at most once per turn. Nothing is rewritten. Off by default.",
      "default": false
    }
  }
}
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed 1cbc79ad64e3
  2. yesterday Changed 3bdc0c7f0791
  3. 2d ago Changed ab9205793df5
  4. 3d ago Changed f744ed01619d
  5. 4d ago Changed a885cee86606
  6. 5d ago Changed 6b2016a74767
  7. 6d ago Changed bd25184dc7fb
  8. 7d ago Changed a1da7855e0ba
  9. 8d ago Changed 2abaaaaf92fa
  10. 10d ago First seen · 43 lines scan A 34157f729194

Subscribe to this mod's changes

bash-format is a plugin published in the GitHub repository melodic-software/claude-code-plugins (33 stars, last pushed today), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

bash-format compared with plugins from other repositories

bash-format next to 6 plugins from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bash-formatmelodic-software/claude-code-pluginsPlugin33todayMITA—Claude Code
humanizerblader/humanizerPlugin75k11d agoMITA—Claude Code
claude-plugins-official marketplaceanthropics/claude-plugins-officialPlugin49kyesterdayApache-2.0A—Claude Code
nextjsvercel/next.jsPlugin144ktodayMITA—Claude Code
themes-examplegoogle-gemini/gemini-cliPlugin109ktodayApache-2.0A—Gemini CLI
android-skillsandroid/skillsPlugin11k7d agoApache-2.0A—Claude Code
knowledge-work-plugins marketplaceanthropics/knowledge-work-pluginsPlugin37k4d agoApache-2.0A—Claude Code