Agent skill · software engineering · aiskillstore

bash-dev

Bash scripting development standards, error handling, and best practices. Use when writing, editing, or reviewing .sh files or Bash scripts, when the user asks about Bash patterns/conventions, or when shell script quality guidance is needed.

Why this skill is useful

Provides specific Bash scripting standards and error handling patterns that the AI wouldn't reliably generate on its own.

What it needs

About 4k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Bash Development Expert This skill supports Bash script development with best practices and safety standards. 🎯 Core Rules Shebang and Safety Shebang: Always use #!/usr/bin/env bash Set Options: Always use set -euo pipefail -e: Exit on error -u: Exit on undefined variable -o pipefail: Fail pipeline if any command fails Variable Handling Quoting: Always quote variables "${var}" Constants: Use UPPERCASE for global/environment variables Local Variables: Use lowercase for function-local variables Readonly: Use readonly for constants Function Best Practices Local Variables: Always use local keyword Parameter Validation: Validate required parameters Return Codes: 0 for success, non-zero for errors Documentation: Document usage, description, and return codes 📚 Script Template Standard Script Structure 🛠 Common Patterns Error Handling Input Validation File Operations Array Handling 🎯 Quality Checklist Check these before committing: [ ] Shebang #!/usr/bin/env bash present [ ] set -euo pipefail at the beginning [ ] All variables quoted "${var}" [ ] Global variables in UPPERCASE [ ] Local variables use local keyword [ ] Functions have documentation comments [ ] Error handling implemented [ ] Usage function provided [ ] Exit codes are meaningful (0=success, non-zero=error) [ ] Script tested with shellcheck 🔍 Common Anti-patterns to Avoid ❌ Don't: ✅ Do: 💡 Testing Using ShellCheck Testing Functions

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/bash-dev

View the source on GitHub

Browse the @skills marketplace