Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Avoid common Bash mistakes — quoting traps, word splitting, and subshell gotchas.
Avoid common Bash mistakes — quoting traps, word splitting, and subshell gotchas.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
TopicFileArrays and loopsarrays.mdParameter expansionexpansion.mdError handling patternserrors.mdTesting and conditionalstesting.md
Always quote variables—"$var" not $var, spaces break unquoted "${arr[@]}" preserves elements—${arr[*]} joins into single string Single quotes are literal—'$var' doesn't expand Quote command substitution—"$(command)" not $(command)
Unquoted $var splits on whitespace—file="my file.txt"; cat $file fails Unquoted * expands to files—quote or escape if literal: "*" or \* set -f disables globbing—or quote everything properly
[[ ]] preferred over [ ]—no word splitting, supports &&, ||, regex [[ $var == pattern* ]]—glob patterns without quotes on right side [[ $var =~ regex ]]—regex match, don't quote the regex -z is empty, -n is non-empty—[[ -z "$var" ]] tests if empty
Pipes create subshells—cat file | while read; do ((count++)); done—count lost Use while read < file or process substitution—while read; do ...; done < <(command) ( ) is subshell, { } is same shell—variables in ( ) don't persist
set -e exits on error—but not in if, ||, && conditions set -u errors on undefined vars—catches typos set -o pipefail—pipeline fails if any command fails, not just last trap cleanup EXIT—runs on any exit, even errors
Declare: arr=(one two three)—or arr=() then arr+=(item) Length: ${#arr[@]}—not ${#arr} All elements: "${arr[@]}"—always quote Indices: ${!arr[@]}—useful for sparse arrays
Default value: ${var:-default}—use default if unset/empty Assign default: ${var:=default}—also assigns to var Error if unset: ${var:?error message}—exits with message Substring: ${var:0:5}—first 5 chars Remove prefix: ${var#pattern}—## for greedy
$(( )) for math—result=$((a + b)) (( )) for conditions—if (( count > 5 )); then No $ needed inside $(( ))—$((count + 1)) not $(($count + 1))
[ $var = "value" ] fails if var empty—use [ "$var" = "value" ] or [[ ]] if [ -f $file ] with spaces—always quote: if [[ -f "$file" ]] local in functions—without it, variables are global read without -r—backslashes interpreted as escapes echo portability—use printf for reliable formatting
Trading, swaps, payments, treasury, liquidity, and crypto-financial operations.
Largest current source with strong distribution and engagement signals.