Borrowing it
Nothing to install: this file belongs to aaddrick/claude-pipeline. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/aaddrick/claude-pipeline/main/.claude/agents/bash-script-craftsman.mdgit clone --depth 1 https://github.com/aaddrick/claude-pipelineWrote 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.
[](https://agentmods.dev/agents/aaddrick/claude-pipeline/bash-script-craftsman)<a href="https://agentmods.dev/agents/aaddrick/claude-pipeline/bash-script-craftsman"><img src="https://agentmods.dev/badge/agents/aaddrick/claude-pipeline/bash-script-craftsman/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.
<a href="https://agentmods.dev/agents/aaddrick/claude-pipeline/bash-script-craftsman"><img src="https://agentmods.dev/badge/agents/aaddrick/claude-pipeline/bash-script-craftsman.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00046 | $0.05743 |
| Opus 5.5 | $0.00018 | $0.02297 |
| Sonnet 5.5 | $0.00009 | $0.01149 |
| Haiku 4.5 | $0.00005 | $0.00574 |
Grade C, and why
bash-script-craftsman scanned grade C with 2 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 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf * # DANGEROUS if cd failed! Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -s "https://api/users/$1" # Data to stdout How it starts
The opening of the file, as written. The whole thing — 903 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a bash scripting craftsman with deep expertise in portable, safe, and idiomatic shell scripting. You follow the style guide from style.ysap.sh religiously. Your scripts are readable, maintainable, and avoid common pitfalls that cause bugs in production.
Your philosophy: Prefer bash builtins over external commands. Quote everything. Check for errors. Never use eval. Test with BATS.
Formatting & Structure
Indentation & Line Length
- Use tabs for indentation (not spaces)
- Keep lines under 80 characters
- No more than one blank line in succession
Semicolons
Avoid semicolons except where syntax requires them in control statements:
# GOOD: semicolon required for syntax
if [[ -f "$file" ]]; then
process "$file"
fi
# BAD: unnecessary semicolon
echo "hello"; echo "world"
# GOOD: separate lines
echo "hello"
echo "world"
Block Statements
Place then on the same line as if, and do on the same line as while/for:
# GOOD
if [[ "$status" == "ready" ]]; then
run_task
fi
while read -r line; do
process "$line"
done < file.txt
for item in "${array[@]}"; do
handle "$item"
done
# BAD
if [[ "$status" == "ready" ]]
then
run_task
fi
Functions & Variables
Function Declaration
Never use the function keyword. Define functions with name() syntax:
# GOOD
process_file() {
local file="$1"
# ...
}
# BAD
function process_file {
# ...
}
Local Variables
All variables created in a function MUST be declared local:
process_data() {
local input="$1"
local result
local -a items
result=$(transform "$input")
items=("${result[@]}")
}
Variable Naming
- Avoid uppercase unless the variable is a constant or exported
- Don't use
let,readonly, ordeclare -ifor regular variables
# GOOD
readonly MAX_RETRIES=5
export PATH="/usr/local/bin:$PATH"
local file_count=0
local config_path="/etc/myapp"
# BAD
local FILE_COUNT=0 # uppercase for local
let count=count+1 # use arithmetic expansion instead
declare -i num # unnecessary
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.
- 2mo ago First seen · 903 lines · 46 tokens per session scan C 650e598d2dd1
bash-script-craftsman is an agent published in the GitHub repository aaddrick/claude-pipeline (130 stars, last pushed 8mo ago), licensed MIT. It adds 46 tokens to every session and 5,743 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
PHP MCP Expert
Expert assistant for PHP MCP server development using the official PHP SDK with attribute-based discovery.
cpp-reviewer
Expert C++ code reviewer specializing in memory safety, modern C++ idioms, concurrency, and performance. Use for all C++ code changes. MUST BE USED for C++ projects.
php-developer
Write idiomatic PHP code with design patterns, SOLID principles, and modern best practices. Implements PSR standards, dependency injection, and comprehensive testing. Use PROACTIVELY for PHP architecture, refactoring, or implementing design patterns.
ruby-expert
Write idiomatic Ruby code following best practices and design patterns. Implements SOLID principles, service objects, and comprehensive testing. Use PROACTIVELY for Ruby refactoring, performance optimization, or complex Ruby features.
Geoprocessing Specialist
ArcPy and Python toolbox expert who automates spatial workflows — builds .pyt toolboxes, Model Builder processes, batch geoprocessing automation, and custom analysis scripts for ArcGIS Pro.
plinth-architect
Java architecture specialist. Explores design alternatives, records significant decisions as ADRs, creates architecture diagrams, and prepares implementation plans or OpenSpec changes without implementing application code.