helixir: Agent for Claude Code

.claude/agents/shell-scripting-specialist.md

shell-scripting-specialist is an agent for Claude Code from bookedsolidtech/helixir. It costs 72 tokens per session (1,791 once invoked), scanned A, original, MIT.

An AI specialist for writing portable shell scripts, including POSIX shell and Bash scripts that work with the older Bash 3.2 included with macOS. It also handles differences between BSD and GNU command-line tools.

In plain words
What is it for?
Use it to write and maintain hook scripts and helper libraries, with attention to Bash 3.2, awk, sed, quoting, and input handling.
Why use it?
Shell scripts can behave differently across operating systems and Bash versions, especially around quoting, text processing, and command syntax.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is bookedsolidtech/helixir's own configuration. It tells Claude Code how to work on helixir itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything helixir configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bookedsolidtech/helixir. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bookedsolidtech/helixir/main/.claude/agents/shell-scripting-specialist.md
Clone the repo
git clone --depth 1 https://github.com/bookedsolidtech/helixir

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 shell-scripting-specialist

README.md
[![agentmods](https://agentmods.dev/badge/agents/bookedsolidtech/helixir/shell-scripting-specialist/github.svg)](https://agentmods.dev/agents/bookedsolidtech/helixir/shell-scripting-specialist)
Your own site
<a href="https://agentmods.dev/agents/bookedsolidtech/helixir/shell-scripting-specialist"><img src="https://agentmods.dev/badge/agents/bookedsolidtech/helixir/shell-scripting-specialist/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 shell-scripting-specialist

Your own site · 80×15
<a href="https://agentmods.dev/agents/bookedsolidtech/helixir/shell-scripting-specialist"><img src="https://agentmods.dev/badge/agents/bookedsolidtech/helixir/shell-scripting-specialist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 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,791 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.00072 $0.01791
Opus 5.5 $0.00029 $0.00716
Sonnet 5.5 $0.00014 $0.00358
Haiku 4.5 $0.00007 $0.00179

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

Security

Grade A, and why

shell-scripting-specialist 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 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.

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.

.claude/agents/shell-scripting-specialist.md · 102 lines

How it starts

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

Shell-Scripting Specialist

You are the shell-scripting specialist for rea. You write the hook bodies in hooks/*.sh and the lib helpers in hooks/_lib/*.sh. The macOS default /bin/bash is bash 3.2 — features added in 4.x (associative arrays, mapfile/readarray, [[ ... =~ ]] capture-group regex, ${var,,}, ${var^^}) are unavailable. Linux CI runs newer bash; consumer machines do not. Write to the lower bound.

You do not own the AST grammar — ast-parser-specialist does. You do not own the corpus — adversarial-test-specialist does. You write the runtime that operates inside the constraints those two define.

Project Context Discovery

Before acting, read:

  • hooks/*.sh — every shipped hook
  • hooks/_lib/*.sh — cmd-segments.sh, payload-read.sh, policy-read.sh, halt-check.sh, path-normalize.sh, protected-paths.sh, interpreter-scanner.sh
  • .husky/ — installed hook bodies (this repo dogfoods)
  • templates/*.sh — emitted hook scaffolds
  • package.json test:bash-syntax — the syntax gate that pins bash 3.2 compat
  • Recent helix-* fixes touching shell mechanics — every quote bug is a teachable case

Your Role

  • Write hook bodies and lib helpers that run on bash 3.2 (macOS) and bash 5.x (Linux CI) without divergence
  • Own quote-mask semantics in _lib/cmd-segments.sh — the awk programs that turn quoted spans into placeholders so segment splitters don't break inside strings
  • Own IFS handling — IFS=$'\n' blocks for line-iteration, IFS=' \t\n' (default) for argv
  • Use read -ra (bash 3.2 OK) for word-splitting into arrays; never <<< with newline-bearing payloads without explicit handling
  • Use set -uo pipefail (NOT set -e — see the 0.16.0 _lib relaxation) at the top of every hook; libs use set -uo only so callers don't inherit errexit
  • awk portability: BSD awk (default on macOS) does NOT support NUL as RS, supports POSIX-only feature set; GNU awk extensions (gensub, length() on arrays, PROCINFO) are forbidden
  • sed portability: sed -E works on BSD + GNU; sed -r is GNU-only (forbidden); in-place edits use sed -i.bak file && rm file.bak form (BSD requires the suffix)
  • Heredoc discipline: <<'EOF' (quoted) for literal bodies; <<EOF for interpolated. Strip-leading-tabs <<- only when intentional.
  • printf over echo for any payload with backslashes, percent signs, or leading dashes
  • Always pin shellcheck — shellcheck --shell=bash --severity=warning must pass. Disable directives (# shellcheck disable=SCxxxx) require a comment explaining WHY (see helix-031 SC1078 awk-program directives in cmd-segments.sh).

Read the full file on GitHub · 102 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 · 102 lines · 72 tokens per session scan A ca87ff80dc51

Subscribe to this mod's changes

shell-scripting-specialist is an agent published in the GitHub repository bookedsolidtech/helixir (5 stars, last pushed 4mo ago), licensed MIT. It adds 72 tokens to every session and 1,791 once invoked, about $0.0003 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-31.

Related

Other agents, from other repositories

django-fastapi-expert

Django ORM, Django REST Framework, FastAPI async patterns, and Pydantic v2 specialist. Use when building Python web applications, designing APIs with Django or FastAPI, or working with Python web frameworks. Trigger phrases: Django, FastAPI, DRF, Django REST Framework, Pydantic, ORM, queryset, viewset, serializer…

travisjneuman/.claude · 86 tokens

go-expert

Go concurrency, error handling, stdlib patterns, Chi/Echo web frameworks specialist. Use when writing Go code, designing concurrent systems, or building Go web services. Trigger phrases: Go, Golang, goroutine, channel, Chi, Echo, stdlib, context, error handling, interface, module, go test.

travisjneuman/.claude · 69 tokens

rust-expert

Rust ownership/borrowing, async Rust, Axum/Actix web frameworks, and WASM specialist. Use when writing Rust code, debugging borrow checker issues, or building Rust web services. Trigger phrases: Rust, borrow checker, ownership, lifetime, Axum, Actix, tokio, async Rust, WASM, wasm-bindgen, cargo, crate.

travisjneuman/.claude · 78 tokens

python-expert

Python best practices, type hints, async patterns, and ecosystem expertise. Use for Python-specific guidance, typing issues, or framework questions.

travisjneuman/.claude · 31 tokens

typescript-expert

TypeScript type system mastery including generics, conditional types, and advanced patterns. Use when solving complex type problems or improving type safety.

travisjneuman/.claude · 31 tokens

kotlin-expert

Kotlin Multiplatform, Compose Multiplatform, coroutines, Ktor, and JVM ecosystem specialist. Use when writing Kotlin code, building KMP shared modules, or developing with Jetpack Compose. Trigger phrases: Kotlin, KMP, Compose Multiplatform, coroutines, Ktor, Gradle, JVM, Flow, suspend, sealed class, data class.

travisjneuman/.claude · 80 tokens