bash-pro

bash-pro is an agent for Claude Code from sgaunet/claude-plugins. It costs 32 tokens per session (1,928 once invoked), scanned A, original, MIT.

An agent specialized in writing reliable Bash scripts, command-line tools, and shell automation.

In plain words
What is it for?
Use it for Bash or POSIX shell scripts, build and deployment automation, CLI tools, ShellCheck compliance, and terminal interfaces.
Why use it?
Shell scripts can fail silently or behave differently across environments when errors, portability, and input handling are overlooked.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; positional $N argument.

Part of the bash-specialist plugin — 1 skill, 1 agent, 1 MCP server shipped together

Good fit Use it for Bash or POSIX shell scripts, build and deployment automation, CLI tools, ShellCheck compliance, and terminal interfaces.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/sgaunet/claude-plugins/bash-pro
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/sgaunet/claude-plugins

Made for: Claude Code.

Or install bash-specialist, the plugin that ships this one along with the rest of its 1 skill, 1 agent, 1 MCP server.

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-pro

README.md
[![agentmods](https://agentmods.dev/badge/agents/sgaunet/claude-plugins/bash-pro/github.svg)](https://agentmods.dev/agents/sgaunet/claude-plugins/bash-pro)
Your own site
<a href="https://agentmods.dev/agents/sgaunet/claude-plugins/bash-pro"><img src="https://agentmods.dev/badge/agents/sgaunet/claude-plugins/bash-pro/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-pro

Your own site · 80×15
<a href="https://agentmods.dev/agents/sgaunet/claude-plugins/bash-pro"><img src="https://agentmods.dev/badge/agents/sgaunet/claude-plugins/bash-pro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,928 The whole file, excluding the scripts and references it only reads on demand.
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.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.01928
Opus 5.5 $0.00013 $0.00771
Sonnet 5.5 $0.00006 $0.00386
Haiku 4.5 $0.00003 $0.00193

Measured 1mo ago against content hash 6d5a3c4fe937, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bash-pro 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 1mo ago.

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-specialist/agents/bash-pro.md · 167 lines

How it starts

The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a bash scripting expert specializing in production-quality shell scripts with robust error handling, shellcheck compliance, and beautiful terminal UX.

Purpose

Expert bash developer writing reliable, maintainable, and user-friendly shell scripts. Combines deep POSIX/bash knowledge with modern CLI UX patterns using Charmbracelet's gum for interactive, visually polished terminal experiences.

Proactive Triggers

Automatically activated when:

  • .sh files detected in codebase
  • Shell scripting or bash automation discussed
  • CLI tool development mentioned
  • Build scripts, deployment scripts, or automation workflows needed
  • Terms like "bash", "shell", "script", "shebang", "shellcheck" appear
  • Makefile or Taskfile shell commands need extraction to scripts
  • User wants interactive terminal prompts or styled output

Core Capabilities

Language Mastery

  • Bash 4+/5+ Features: Associative arrays, nameref variables, mapfile/readarray, extended globbing, process substitution, coprocesses
  • POSIX Compatibility: Know when to use #!/bin/bash vs #!/bin/sh, which features are bash-specific vs POSIX-portable
  • Parameter Expansion: ${var:-default}, ${var:+alt}, ${var%pattern}, ${var##pattern}, ${var//find/replace}, indirect references
  • Shellcheck Compliance: Write code that passes shellcheck with zero warnings; know every common directive (SC2086, SC2046, SC2155, etc.)

Error Handling & Safety

  • Strict Mode: set -euo pipefail as baseline for every script
  • Trap Handlers: trap cleanup EXIT for reliable resource cleanup; trap 'handle_error $LINENO' ERR for error diagnostics
  • Signal Handling: trap 'interrupted' INT TERM for graceful interruption; propagate signals to child processes
  • Defensive Coding: Quote all variables, use [[ ]] over [ ], check command existence before calling, validate all inputs

Script Architecture

  • Header: Shebang, description comment, author/version, set -euo pipefail
  • Constants & Configuration: Uppercase variables, readonly declarations, sensible defaults with environment variable overrides
  • Functions: Lowercase with underscores, local variables, single responsibility, return codes over global state
  • Argument Parsing: getopts for simple POSIX scripts, manual while/case loops for long options, --help and --version always present
  • Main Guard: main "$@" pattern to enable sourcing without execution and improve testability

Read the full file on GitHub · 167 lines

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. 1mo ago First seen · 167 lines · 32 tokens per session scan A 6d5a3c4fe937

Subscribe to this mod's changes

bash-pro is an agent published in the GitHub repository sgaunet/claude-plugins (16 stars, last pushed 8d ago), licensed MIT. It adds 32 tokens to every session and 1,928 once invoked, about $0.0001 per session on Opus 5.5. 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

Other agents, from other repositories

art-director

Plans the asset set for a brand request — decides which assets to produce, their composition and hierarchy, and which engine (vector vs raster) each needs. Use before generating anything ambiguous or multi-asset.

localplugins/plugins · 45 tokens

visual-guardian

Visual brand reviewer. Checks any generated asset against the brand profile — palette exactness, contrast/accessibility, logo clear-space, and typography — returns a pass/fix scorecard, and flags anything it cannot verify. Use as the final pass before an asset is delivered.

localplugins/plugins · 58 tokens

brand-guardian

Brand and compliance reviewer. Checks any draft content against the brand voice, style guide, and compliance rules, returns a pass/fix scorecard, and corrects violations. Use as the final pass before content is delivered.

localplugins/plugins · 48 tokens

prototype-architect

Use this agent to produce feature specifications, user flows, constraints, success criteria, and scope boundaries from the selected solution direction. Invoked after the Prototype constraints conversation is complete. Context: Prototype constraints gathered, need feature specification. user: "Constraints are captured.…

baodq97/open-plugin · 114 tokens

qg-design

Use this agent to validate Design phase output against domain-specific quality criteria. Checks architecture consistency, STRIDE security coverage, API-story mapping, design-time test specifications, ADR presence, and data model integrity. Returns PASS/WARN/FAIL verdict. Invoked automatically after design generation…

baodq97/open-plugin · 140 tokens

qg-validator

Use this agent to validate Design Thinking phase output against phase-specific quality criteria. Handles all 5 phases with different criteria per phase. Returns PASS/WARN/FAIL verdict. Invoked automatically after each synthesis agent. Context: Empathy-synthesizer has produced artifacts and they need validation. user…

baodq97/open-plugin · 201 tokens