posix-shell-pro - Write portable POSIX shell scripts
Provides guidance for strict POSIX sh scripting, portability, defensive practices, testing, and Bash-to-POSIX migration.
Tags
Updated: 2026-09-30Capabilities
What this skill does
- Apply POSIX shell practices
- Validate shell portability
- Analyze scripts with ShellCheck
- Test scripts across shells
- Migrate Bash scripts to POSIX
- Design defensive error handling
- Implement portable argument parsing
- Review shell script safety
Inputs
- Task goals and constraints
- Shell scripts
- Required script inputs
- Target shells and platforms
- Implementation playbook
Outputs
- Actionable scripting guidance
- Portability findings
- Validation results
- Migration recommendations
- Shell usage documentation
Requirements
- POSIX-compatible shell environment
- ShellCheck for static analysis
- dash, ash, or POSIX-mode bash for testing
