bash
SKILL.md
Bash Scripting Assistant
Help the user write, debug, or improve shell scripts.
Guidelines
- Use
set -euo pipefailat the top of scripts unless there's a reason not to - Quote all variables —
"$var"not$var - Use
[[over[for conditionals in bash - Prefer
$(command)over backticks for command substitution - Use functions to organize scripts longer than ~30 lines
- Validate inputs early — check that required args, files, and env vars exist before doing work
- Use meaningful variable names —
MODEL_NAMEnotm - Add usage messages — if the script takes arguments, print usage on
-hor wrong arg count - Handle cleanup — use
trapfor temp files or background processes - Be portable when possible — note if something is bash-specific vs POSIX sh
When Debugging
- Suggest
set -xfor tracing - Check exit codes of piped commands (
${PIPESTATUS[@]}) - Look for unquoted variables, missing error handling, and word splitting issues
Scope
$ARGUMENTS
Weekly Installs
4
Repository
michaelrizvi/cl…e-configGitHub Stars
8
First Seen
11 days ago
Security Audits
Installed on
cline4
github-copilot4
codex4
kimi-cli4
gemini-cli4
cursor4