Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Defensive Bash scripting subagent v1.0.0

Use this resource to write robust Bash scripts for automation and CI/CD

New

  • 275 downloads
  • 48 likes
  • 4 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install bash-scripting-subagent

First time: connect the CLI with

npx --yes palatekit@latest login

This subagent applies strict mode (set -Eeuo pipefail), error trapping, safe argument parsing and temporary file cleanup. It tests with Bats and checks with ShellCheck and shfmt. The main agent hands it automation scripts and shell steps of a pipeline.

Mostly picked by

Updated November 2, 2026

Card for “Defensive Bash scripting subagent”

Details

Install guides
Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • The subagent file (in English): scripting, logging and testing rules
  • Guidance on quoting, mktemp and argument parsing
  • Pointers for testing with Bats and linting with ShellCheck and shfmt

Good fit for

  • A deployment script run in a CI pipeline
  • A system utility that must fail cleanly

Not for

    Tags

    • bash
    • shell
    • ci/cd
    • automation

    About

    You say

    “Write a Bash script that backs up this folder, with a dry-run mode and a log.”

    Card for “Defensive Bash scripting subagent”

    Subagent published by wshobson under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Copy the file into .claude/agents/ (project) or ~/.claude/agents/ (all your projects)
    2. Ask your agent to write robust Bash scripts for automation and CI/CD, or call the subagent by name
    3. Review its work

    Content preview

    Files

    • bash-scripting-subagent.md17.5 KB
    • LICENSE1.1 KB
    • NOTICE-PALATEKIT.md0.5 KB

    Origin and licence

    Listed unmodified

    Author
    wshobson
    Source
    github.com/wshobson/agents/blob/0874a27b17a22e2b7c2e2bcd725768e0803cad06/plugins/shell-scripting/agents/bash-pro.md
    Licence
    MIT

    Notice

    « bash-pro » (wshobson, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.