byjosiahsiegel· 48 skills
Advanced bash array patterns including indexed and associative arrays, mapfile/readarray, slicing, and array manipulation (2025). PROACTIVELY activate for: (1) using bash arrays effectively, (2) reading file contents into an array via mapfile/readarray, (3) authoring associative arrays (declare -A), (4) iterating arrays safely under set -u, (5) deleting/inserting array elements, (6) joining and splitting arrays, (7) passing arrays to functions via nameref (declare -n), (8) array slicing and parameter expansion, (9) sorting and deduplicating arrays in pure bash. Provides: indexed and associative array reference, mapfile and readarray recipes, nameref-based pass-by-reference, slicing/expansion patterns, and gotchas for unset variables and word splitting.
$npx -y skills add josiahsiegel/claude-plugin-marketplace --skill advanced-array-patternsInstalls into the current project.
Run `npx skills use "https://github.com/josiahsiegel/claude-plugin-marketplace" --skill "josiahsiegel/claude-plugin-marketplace/advanced-array-patterns"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/josiahsiegel/claude-plugin-marketplace" that are relevant to the current task. Run `npx skills add "https://github.com/josiahsiegel/claude-plugin-marketplace"` and select the relevant skills, then follow their instructions.