bash-linux
Installation
SKILL.md
Bash & Linux — Shell Scripting Mastery
Mandatory Pre-Flight Context Inspection
Before writing Bash scripts or terminal automation pipelines, you MUST inspect:
- Strict Mode Flags (
set -euo pipefail) (Section 39) → Always setset -euo pipefailandIFS=$'\n\t'at top of every script to fail fast on errors or unset vars - Variable Quoting Safeguards (Section 122) → Double-quote all path and string variables (
"$FILE","${FILES[@]}") to prevent whitespace expansion bugs - Modern CLI Efficiency Rules (Section 102) → Prefer
rgovergrep,fdoverfind,jqover regex JSON parsing for performance and safety
Activation Boundaries
- Activate when: Operating in tasks requiring Bash/Linux terminal mastery. Shell scripting, piping, stream redirection, process substitution, strict mode (set -euo pipefail), AWK, ripgrep parsing, and robust error handling. Use when writing CI scripts, debugging POSIX environments, or manipulating text pipelines..
- DO NOT activate when: The task falls strictly outside bash-linux domain or belongs to a different dedicated specialist.