bash-template

bash-template is a command for Claude Code from JosiahSiegel/claude-plugin-marketplace. It costs 19 tokens per session (1,409 once invoked), scanned A, original, MIT.

A template generator for Bash scripts, which are text programs used to automate tasks on Linux, macOS, and other command-line systems.

In plain words
What is it for?
Use it to create templates for command-line tools, background services, reusable function libraries, and software installers.
Why use it?
It provides starting structures for common script types and includes patterns for handling errors, arguments, logs, configuration, and signals.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument.

Part of the bash-master plugin — 10 skills, 4 commands, 1 agent shipped together

Good fit Use it to create templates for command-line tools, background services, reusable function libraries, and software installers.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/josiahsiegel/claude-plugin-marketplace/bash-template
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/JosiahSiegel/claude-plugin-marketplace

Made for: Claude Code.

Or install bash-master, the plugin that ships this one along with the rest of its 10 skills, 4 commands, 1 agent.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/josiahsiegel/claude-plugin-marketplace/bash-template/github.svg)](https://agentmods.dev/commands/josiahsiegel/claude-plugin-marketplace/bash-template)
Your own site
<a href="https://agentmods.dev/commands/josiahsiegel/claude-plugin-marketplace/bash-template"><img src="https://agentmods.dev/badge/commands/josiahsiegel/claude-plugin-marketplace/bash-template/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-template

Your own site · 80×15
<a href="https://agentmods.dev/commands/josiahsiegel/claude-plugin-marketplace/bash-template"><img src="https://agentmods.dev/badge/commands/josiahsiegel/claude-plugin-marketplace/bash-template.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 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,409 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.00019 $0.01409
Opus 5 $0.00010 $0.00705
Sonnet 5 $0.00004 $0.00282
Haiku 4.5 $0.00002 $0.00141

Measured 10d ago against content hash 7ef875c8ddce, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

bash-template 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 10d 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-master/commands/bash-template.md · 251 lines

How it starts

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

CRITICAL GUIDELINES

Windows File Path Requirements

MANDATORY: Always Use Backslashes on Windows for File Paths

When using Edit or Write tools on Windows, you MUST use backslashes (\) in file paths, NOT forward slashes (/).


Bash Template Generator

Purpose

Generate production-ready bash script templates with modern 2025 patterns, comprehensive error handling, and configurable features based on script type and requirements.

Available Template Types

1. CLI Tool (cli)

Full-featured command-line tool with:

  • Argument parsing (getopts/long options)
  • Help and version commands
  • Configuration file support
  • Logging with verbosity levels
  • Progress indicators
  • Color output support

2. Daemon/Service (daemon)

Background service script with:

  • Daemonization support
  • PID file management
  • Signal handling (SIGHUP, SIGTERM)
  • Log rotation integration
  • Systemd unit file generation
  • Health check endpoint

3. Library (library)

Reusable function library with:

  • Namespaced functions
  • Dependency checking
  • Self-documentation
  • Version tracking
  • Safe sourcing patterns
  • Unit test integration

4. Installer (installer)

Software installation script with:

  • Dependency verification
  • Platform detection
  • Root privilege handling
  • Rollback support
  • Progress reporting
  • Post-install verification

5. CI/CD Pipeline (ci)

CI/CD pipeline script with:

  • Environment detection
  • Secret handling
  • Artifact management
  • Test execution
  • Deployment patterns
  • Notification integration

Template Options

Specify additional options for customization:

Option Description
--minimal Basic template without advanced features
--full All features enabled
--config Include configuration file handling
--logging Include structured logging
--parallel Include parallel processing support
--interactive Include user prompts and menus
--docker Include Docker integration
--aws Include AWS CLI patterns
--k8s Include Kubernetes patterns

Read the full file on GitHub · 251 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. 10d ago First seen · 251 lines · 19 tokens per session scan A 7ef875c8ddce

Subscribe to this mod's changes

bash-template is a command published in the GitHub repository JosiahSiegel/claude-plugin-marketplace (54 stars, last pushed 2mo ago), licensed MIT. It adds 19 tokens to every session and 1,409 once invoked, about $0.0001 per session on Opus 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.