bash-script-helper

Expert helper for bash scripting, debugging, and best practices

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "bash-script-helper" with this command: npx skills add jackspace/claudeskillz/jackspace-claudeskillz-bash-script-helper

Bash-script-helper

Instructions

When writing or debugging bash scripts:

  • Always use #!/bin/bash shebang
  • Set -e (exit on error), -u (error on undefined var)
  • Use [[ ]] instead of [ ] for tests
  • Quote variables: "$variable" not $variable
  • Use $() instead of backticks
  • Check command exit codes: $?
  • Use trap for cleanup
  • Provide meaningful error messages
  • Validate input parameters
  • Argument parsing with getopts
  • Reading files line by line
  • Function definitions and calls
  • Arrays and associative arrays
  • Use set -x for trace mode
  • shellcheck for static analysis
  • Use echo/printf for debugging output
  • Avoid eval
  • Sanitize user input
  • Use mktemp for temporary files
  • Set proper file permissions

Examples

Add examples of how to use this skill here.

Notes

  • This skill was auto-generated
  • Edit this file to customize behavior

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

base-ui-react

No summary provided by upstream source.

Repository SourceNeeds Review
General

rapid-prototyper

No summary provided by upstream source.

Repository SourceNeeds Review
General

repository-analyzer

No summary provided by upstream source.

Repository SourceNeeds Review