bash-defensive-patterns

Official

Write robust Bash scripts.

AuthorACGSpgp
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps you write more reliable, fault-tolerant, and secure Bash scripts by teaching essential defensive programming techniques.

Core Features & Use Cases

  • Error Prevention: Learn to catch errors early with strict mode and proper error handling.
  • Variable Safety: Understand how to prevent unexpected behavior due to word splitting and globbing.
  • Robustness: Implement patterns for safe file operations, argument parsing, and process management.
  • Use Case: When developing CI/CD pipeline scripts or system administration tools, use this Skill's guidance to ensure your scripts don't fail unexpectedly due to edge cases or malformed input.

Quick Start

Apply strict mode and error trapping to your Bash script by adding set -Eeuo pipefail and a trap command at the beginning.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: bash-defensive-patterns
Download link: https://github.com/ACGSpgp/ACGS/archive/main.zip#bash-defensive-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.