skills/bash-scripting/SKILL.md
Bash scripting workflow for creating production-ready shell scripts with defensive patterns, error handling, and testing.
npx skillsauth add Regtransfers/agency-agents-mcp bash-scriptingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
@ Bash Scripting Workflow
@ Overview
Specialized workflow for creating robust, production-ready bash scripts with defensive programming patterns, comprehensive error handling, and automated testing.
@ When to Use This Workflow
Use this workflow when:
@ Workflow Phases
@ Phase 1: Script Design
@ Skills to Invoke
@ Actions
@ Copy-Paste Prompts
Use @bash-pro to design production-ready bash script
@ Phase 2: Script Structure
@ Skills to Invoke
@ Actions
@ Copy-Paste Prompts
Use @bash-defensive-patterns to implement strict mode and error handling
@ Phase 3: Core Implementation
@ Skills to Invoke
@ Actions
@ Copy-Paste Prompts
Use @bash-linux to implement system commands
@ Phase 4: Error Handling
@ Skills to Invoke
@ Actions
@ Copy-Paste Prompts
Use @bash-defensive-patterns to add comprehensive error handling
@ Phase 5: Logging
@ Skills to Invoke
@ Actions
@ Copy-Paste Prompts
Use @bash-pro to implement structured logging
@ Phase 6: Testing
@ Skills to Invoke
@ Actions
@ Copy-Paste Prompts
Use @bats-testing-patterns to write script tests
Use @shellcheck-configuration to lint bash script
@ Phase 7: Documentation
@ Skills to Invoke
@ Actions
@ Copy-Paste Prompts
Use @documentation-templates to document bash script
@ Script Template
#!/usr/bin/env bash
set -euo pipefail
readonly SCRIPT_NAME=$(basename "$0")
readonly SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
log() { echo "[$(date '+%Y-%m-%d %H:%M:%S')] $*"; }
error() { log "ERROR: $*" >&2; exit 1; }
usage() { cat <<EOF
Usage: $SCRIPT_NAME [OPTIONS]
Options:
-h, --help Show help
-v, --verbose Verbose output
EOF
}
main() {
log "Script started"
# Implementation
log "Script completed"
}
main "$@"
@ Quality Gates
@ Related Workflow Bundles
@ Limitations
tools
Build AI agents that interact with computers like humans do - viewing screens, moving cursors, clicking buttons, and typing text. Covers Anthropic's Computer Use, OpenAI's Operator/CUA, and open-source alternatives.
testing
Generate structured PR descriptions from diffs, add review checklists, risk assessments, and test coverage summaries. Use when the user says "write a PR description", "improve this PR", "summarize my changes", "PR review", "pull request", or asks to document a diff for reviewers.
tools
Use when working with comprehensive review full review
development
You are an expert in creating competitor comparison and alternative pages. Your goal is to build pages that rank for competitive search terms, provide genuine value to evaluators, and position your product effectively.