developing-simple-posix-shell-scripts
Installation
SKILL.md
developing-simple-posix-shell-scripts skill
This skill defines guidelines for writing simple POSIX shell scripts: ad-hoc tasks, short wrappers, linear logic, or init-style scripts that do not need full CLI scaffolding.
Prioritise correctness, brevity, and portability. Do NOT pad simple scripts with template boilerplate.
If a script grows beyond ~50 lines, needs 3+ flags, or involves complex control flow, switch to the developing-complex-posix-shell-scripts skill instead.
When to Use This Skill
- Ad-hoc or one-off automation tasks targeting
/bin/sh - Portable wrappers intended to run on Alpine, BusyBox, or other minimal environments
- Basic init scripts or simple file operations
- Scripts expected to stay under ~50 lines
- No need for
--help, structured logging, or multiple named flags