Shell
by @xueyetianya
Shell scripting reference β Bash syntax, redirections, process substitution, signal handling, debugging techniques. Use when writing shell scripts, troublesh...
clawhub install shellπ About This Skill
name: "shell" version: "1.0.0" description: "Shell scripting reference β Bash syntax, redirections, process substitution, signal handling, debugging techniques. Use when writing shell scripts, troubleshooting Bash behavior, or automating system tasks." author: "BytesAgain" homepage: "https://bytesagain.com" source: "https://github.com/bytesagain/ai-skills" tags: [shell, bash, scripting, linux, unix, terminal, automation, devtools] category: "devtools"
Shell β Shell Scripting Reference
Quick-reference skill for Bash shell scripting, built-in features, and best practices.
When to Use
Commands
intro
scripts/script.sh intro
Overview of shell scripting β Bash features, shebang, execution, portability.
variables
scripts/script.sh variables
Variables β declaration, scope, arrays, parameter expansion, special variables.
control
scripts/script.sh control
Control flow β if/else, case, for, while, until, select, functions.
redirections
scripts/script.sh redirections
Redirections and pipes β stdin/stdout/stderr, heredocs, process substitution.
safety
scripts/script.sh safety
Safety practices β set -euo pipefail, quoting, shellcheck, error handling.
tools
scripts/script.sh tools
Essential tools β awk, sed, grep, find, xargs, cut, sort, jq patterns.
signals
scripts/script.sh signals
Signals and traps β SIGTERM, SIGINT, cleanup handlers, background jobs.
checklist
scripts/script.sh checklist
Shell script quality checklist.
help
scripts/script.sh help
version
scripts/script.sh version
Configuration
| Variable | Description |
|----------|-------------|
| SHELL_DIR | Data directory (default: ~/.shell/) |
*Powered by BytesAgain | bytesagain.com | hello@bytesagain.com*
β‘ When to Use
βοΈ Configuration
| Variable | Description |
|----------|-------------|
| SHELL_DIR | Data directory (default: ~/.shell/) |
*Powered by BytesAgain | bytesagain.com | hello@bytesagain.com*