Shell script creation with error handling and best practices
Creates secure shell scripts with mandatory error handling, input validation, and security best practices. Use for production-ready automation that safely handles system operations, backups, and deployments.
/plugin marketplace add dotclaude/marketplace/plugin install cli-mastery@dotclaude-plugins<script-purpose> [robustness]claude-sonnet-4-0Shell script creation with error handling and best practices
CRITICAL: This command creates shell scripts with Bash execution capabilities.
Scripts you create will have the power to:
BEFORE requesting a script, consider:
EVERY shell script must include:
set -euo pipefailmktemp, never predictable namestrap to clean up on exit/errorSTOP and think before using:
rm -rf with variableschmod 777 or similar overly permissive modessudo without specific command limitseval with external input$1 (Required): script-purpose
$2 (Optional): robustness (production requires strict security)
/shell "Backup database with rotation" production
/shell "Deploy application with health checks"
Invoke the shell-scripter agent with: $ARGUMENTS