Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
jackspace avatar

Bash Script Helper

  • 37 installs
  • 16 repo stars
  • Updated November 20, 2025
  • jackspace/claudeskillz

Applies bash scripting best practices - strict mode, quoting, getopts parsing, traps, and shellcheck - when writing or debugging shell scripts.

About

A helper skill with bash scripting conventions for writing and debugging shell scripts safely. Developers use it to follow strict-mode, quoting, error-handling, and input-validation best practices.

  • Strict mode (set -euo), quoting, and trap-based cleanup
  • getopts parsing, arrays, and shellcheck static analysis

Bash Script Helper by the numbers

  • 37 all-time installs (skills.sh)
  • Ranked #336 of 550 CLI & Terminal skills by installs in the Skillselion catalog
  • Data as of Aug 2, 2026 (Skillselion catalog sync)
npx skills add https://github.com/jackspace/claudeskillz --skill bash-script-helper

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs37
repo stars16
Last updatedNovember 20, 2025
Repositoryjackspace/claudeskillz

What it does

Applies bash scripting best practices - strict mode, quoting, getopts parsing, traps, and shellcheck - when writing or debugging shell scripts.

Files

SKILL.mdMarkdownGitHub ↗

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

Related skills

CLI & Terminalbackenddevops

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.