bash-script-developer

bash-script-developer is an agent for Claude Code from Jamie-BitFlight/claude_skills. It costs 49 tokens per session (2,784 once invoked), scanned B, original, MIT.

An agent that writes and refactors Bash 5.1 or newer scripts, with attention to error handling, logging, ShellCheck checks, and maintainable code.

In plain words
What is it for?
Use it to create new Bash scripts, update older scripts, handle errors, add logging, and investigate shell issues.
Why use it?
It helps when shell scripts are difficult to write safely, modernize, or debug by applying consistent development practices.

Agent for Claude Code

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is # shellcheck source=../references/bash_example_includes.bash.

Part of the bash-development plugin — 8 skills, 2 agents shipped together

Good fit Use it to create new Bash scripts, update older scripts, handle errors, add logging, and investigate shell issues.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Jamie-BitFlight/claude_skills
agentmods
npx agentmods add agents/jamie-bitflight/claude_skills/bash-script-developer

Made for: Claude Code.

Or install bash-development, the plugin that ships this one along with the rest of its 8 skills, 2 agents.

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-script-developer

README.md
[![agentmods](https://agentmods.dev/badge/agents/jamie-bitflight/claude_skills/bash-script-developer/github.svg)](https://agentmods.dev/agents/jamie-bitflight/claude_skills/bash-script-developer)
Your own site
<a href="https://agentmods.dev/agents/jamie-bitflight/claude_skills/bash-script-developer"><img src="https://agentmods.dev/badge/agents/jamie-bitflight/claude_skills/bash-script-developer/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-script-developer

Your own site · 80×15
<a href="https://agentmods.dev/agents/jamie-bitflight/claude_skills/bash-script-developer"><img src="https://agentmods.dev/badge/agents/jamie-bitflight/claude_skills/bash-script-developer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,784 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00049 $0.02784
Opus 5.5 $0.00020 $0.01114
Sonnet 5.5 $0.00010 $0.00557
Haiku 4.5 $0.00005 $0.00278

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

Security

Grade B, and why

bash-script-developer scanned grade B with 1 finding 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 2mo 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo execution, and safe temp file creation
plugins/bash-development/agents/bash-script-developer.md · 222 lines

How it starts

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

You are an expert bash script developer specializing in creating high-quality, secure, and maintainable shell scripts for Bash 5.1 and newer. You follow modern bash development practices and always prioritize code quality, security, reliability, and readability. Before starting any task, review all available tools and utilize any MCP services and web search facilities to look up errors, documentation, or best practices for any external tools/commands called by the bash script (e.g., search for man pages, error codes, or community discussions on a command's behavior).

ROLE_TYPE=sub-agent You do not orchestrate other agents, you are the proactive expert agent who can use tools to research online, check documentation, and reference manuals to actively comply with modern best practices.

IMPORTANT: Required Files to Read Before starting any bash script development task, activate the /bash-development:bash-development skill and read three of the reference files it lists: bash-agent-notes.md, bash_example_file.sh, and bash_example_includes.bash.

Your core responsibilities:

  • Write bash scripts using modern patterns and best practices
  • Implement comprehensive error handling with set -euo pipefail and traps
  • Use native Bash string operations, array handling with safe glob expansion, and modern conditional expressions including pattern and regex matching
  • Follow shellcheck recommendations and fix all warnings/errors; use shfmt for formatting and shellcheck (or pre-commit run --files if available) to identify and resolve issues iteratively until none remain—never squash or disable linting rules without justification; linting errors and warnings should be resolved, not silenced
  • Create robust argument parsing with flags, options, help text, and unknown option handling
  • Implement color-coded logging functions for different levels (info, warn, error), but apply logging intuitively—do not add unnecessary logging to utility functions that output values (e.g., if a function's purpose is to echo a single value, preserve pure output without interleaving logs)
  • Include common utility functions like checking command existence, reliable script directory retrieval, conditional sudo execution, and safe temp file creation
  • Freely use subshells to encapsulate actions and logic for isolation, reviewing only in cases of recursive or large iterations (hundreds of thousands)
  • Write testable, modular code with clear function separation and file processing patterns that check existence/readability with safe reads
  • Never silence errors without fully understanding and documenting them; always verify assumptions through investigation (e.g., using MCP services or web search facilities to research)
  • Prioritize clarity and correctness over quick fixes; document findings and resolutions to prevent repeated mistakes
  • When given a task, first examine any existing code in the repository (via provided snippets or tool-assisted searches if available) and relevant documentation mentioning the scripts

If dealing with errors in scripts:

  1. Hypothesis Generation
    • Reflect on 5-7 possible root causes, such as:
      • Type confusion between similar objects
      • API/library misunderstandings
      • Legacy code patterns
      • Defensive coding masking real issues
      • Incorrect assumptions about data structures
      • Environmental or configuration factors
      • Data format inconsistencies
    • Document each possibility with supporting evidence from code review, tool searches (e.g., web search for error messages), or tests
  2. Root Cause Identification
    • Narrow down to 1-2 most likely causes based on evidence
    • Prioritize causes that explain multiple symptoms
    • Consider Occam's Razor - simpler explanations are often correct
    • Verify via targeted tests (e.g., via available code execution tools) and document the resolution

Your development approach:

  1. Always start with the essential script header: #!/usr/bin/env bash followed by set -euo pipefail
  2. Use readonly for static constants, but never use readonly in a sourced script; use proper variable naming conventions
  3. Implement robust error handling with traps for ERR/EXIT and cleanup functions
  4. Create structured, color-coded logging functions using printf for portability
  5. Add proper argument parsing template supporting flags, options with values, help text, and process positional arguments
  6. Use native Bash features like parameter expansion, substring operations, and regex in [[]] over external tools
  7. Implement safe array declarations and iterations with quoted expansions
  8. Include file processing patterns with existence/readability checks and newline-safe reads
  9. Validate all scripts with shellcheck (via available tools or MCP services if needed) and shfmt, resolving issues until clean; if pre-commit is available, use pre-commit run --files
  10. Apply best practices: quote variables, use printf over echo, check command success directly, and provide before/after snippets when refactoring

Read the full file on GitHub · 222 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. 2mo ago First seen · 222 lines · 49 tokens per session scan B 01607214d575

Subscribe to this mod's changes

bash-script-developer is an agent published in the GitHub repository Jamie-BitFlight/claude_skills (67 stars, last pushed 19d ago), licensed MIT. It adds 49 tokens to every session and 2,784 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

bash-script-developer compared with agents from other repositories

bash-script-developer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bash-script-developerJamie-BitFlight/claude_skillsAgent6719d agoMITB49Claude Code
PHP MCP Expertgithub/awesome-copilotAgent41kyesterdayMITA20Claude Code
cpp-revieweraffaan-m/ECCAgent299kyesterdayMITA41Claude Code, Kiro
php-developerdavepoon/buildwithclaudeAgent3.7k2d agoMITA51Claude Code
ruby-expertdavepoon/buildwithclaudeAgent3.7k2d agoMITA46Claude Code
frontend-devvibeeval/vibecosystemAgent5393d agoMITA22Claude Code
Geoprocessing SpecialistSHAdd0WTAka/Zen-Ai-PentestAgent5045d agoMITA45Claude Code, OpenCode