defensive-bash
CommunityShip safe, reliable Bash scripts.
Authorastoeffer
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you write production-grade Bash scripts for server automation by enforcing safety, robust error handling, idempotency, and thorough logging.
Core Features & Use Cases
- Safe scripting foundations: Always start with strict modes and safe IFS handling to prevent common pitfalls.
- Comprehensive error handling: Centralized error reporting with clear messages and line references.
- Idempotent operations & logging: Safe file operations, backups, atomic writes, and structured logging for maintainability.
Quick Start
Create a new script and apply the defensive-bash patterns, e.g. begin with the standard headers, add validation, and wrap critical commands with error handling.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: defensive-bash Download link: https://github.com/astoeffer/plugin-marketplace/archive/main.zip#defensive-bash Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.