bash-scripting

Installation
SKILL.md

Bash Scripting & Shell Best Practices

Comprehensive guide to writing robust, maintainable, and secure shell scripts following modern best practices. Master Bash, Zsh, error handling, and leverage powerful command-line tools for automation.

Core Competencies

  1. Script Structure

    • Proper shebang usage (#!/bin/bash or #!/usr/bin/env bash)
    • Set safe defaults: set -euo pipefail
    • Organize code into functions
    • Include usage/help information
    • Add comments for complex logic
  2. Best Practices

    • Quote variables: "$variable" not $variable
    • Use [[ for conditionals (in Bash)
    • Check command success: if command; then
    • Handle errors gracefully
    • Use meaningful variable names
Related skills

More from karchtho/my-claude-marketplace

Installs
1
First Seen
Mar 3, 2026