bash-script-developer

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

Creates and refactors Bash 5.1+ scripts with modern best practices. Implements shellcheck compliance, proper error handling, and logging. Use when writing new scripts, modernizing existing ones, or debugging shell issues.

Agent

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.

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

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
Origin unknown 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 $0.00049 $0.02784
Opus 5 $0.00024 $0.01392
Sonnet 5 $0.00010 $0.00557
Haiku 4.5 $0.00005 $0.00278

Measured today against content hash 01607214d575, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

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. today 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 (65 stars, last pushed today), licensed MIT. It adds 49 tokens to every session and 2,784 once invoked, about $0.0002 per session on Opus 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

Other agents, from other repositories

spec-compliance-reviewer

Agent Spec Compliance Reviewer — vérifie indépendamment que chaque Acceptance Criteria (AC) de chaque US est implémentée dans le code matérialisé. Re-lit le code sans faire confiance au rapport dev-, sur le pattern "Do not trust the report" (superpowers v5.1). Produit spec-compliance.{md,json} avec verdict 🟢/🟡/🔴…

zekiriabd/SDD-Pro · 104 tokens

atomic-auditor

Final gate for a finished implementation. Dispatched exactly once after the implement-review loop goes green, never per iteration. Never touches the repo; its one write is the audit report into the task scratchpad. Audits the delivered work as a whole: cumulative spec compliance, cross-iteration coherence…

damusix/atomic-claude · 169 tokens

code-quality-reviewer

Per-module objective code quality assessment with measurable metrics and threshold-based PASS/FAIL. Produces reviews/phase-6-review/code-review.md. Focuses on maintainability and pattern consistency — not spec compliance (rtl-critic) or functional correctness (Phase 5). (Opus).

babyworm/rtl-agent-team · 62 tokens

audit-geo

Evaluates AI crawler access, llms.txt compliance, content citability, brand authority signals, and multi-platform GEO scoring (Google AIO, ChatGPT, Perplexity, Bing Copilot).

XuanRanL/loamwright-SEO-Skill · 44 tokens

ui-visual-validator

Rigorous visual validation expert specializing in UI testing, design system compliance, and accessibility verification. Masters screenshot analysis, visual regression testing, and component validation. Use PROACTIVELY to verify UI modifications have achieved their intended goals through comprehensive visual analysis.

Dicklesworthstone/pi_agent_rust · 54 tokens

investigative-reporter-agent

Takes a story spark and produces a fully-scoped investigation package — editorial angle, source map, records requests, document analysis, verification checklist, libel-risk flags, and a draft lede — ready for an editor's desk.

ur-grue/autopunk-media-skills · 6 tokens