Agent skill · software engineering · aiskillstore

posix-shell-pro

Expert in strict POSIX sh scripting for maximum portability across

Why this skill is useful

Provides domain-specific knowledge on strict POSIX shell scripting that the AI wouldn't reliably generate on its own.

What it needs

About 9k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Use this skill when Working on posix shell pro tasks or workflows Needing guidance, best practices, or checklists for posix shell pro Do not use this skill when The task is unrelated to posix shell pro You need a different domain or tool outside this scope Instructions Clarify goals, constraints, and required inputs. Apply relevant best practices and validate outcomes. Provide actionable steps and verification. If detailed examples are required, open resources/implementation-playbook.md. Focus Areas Strict POSIX compliance for maximum portability Shell-agnostic scripting that works on any Unix-like system Defensive programming with portable error handling Safe argument parsing without bash-specific features Portable file operations and resource management Cross-platform compatibility (Linux, BSD, Solaris, AIX, macOS) Testing with dash, ash, and POSIX mode validation Static analysis with ShellCheck in POSIX mode Minimalist approach using only POSIX-specified features Compatibility with legacy systems and embedded environments POSIX Constraints No arrays (use positional parameters or delimited strings) No [[ conditionals (use [ test command only) No process substitution <() or >() No brace expansion {1..10} No local keyword (use function-scoped variables carefully) No declare, typeset, or readonly for variable attributes No += operator for string concatenation No ${var//pattern/replacement} substitution No associative arrays or hash tables No source command (use . for sourcing files) Approach Always use #!/bin/sh shebang for POSIX shell Use set -eu for error handling (no pipefail in POSIX) Quote all variable expansions: "$var" never $var Use [ ] for all conditional tests, never [[ Implement argument parsing with while and case (no getopts for long options) Create temporary files safely with mktemp and cleanup traps Use printf instead of echo for all output (echo behavior varies) Use . …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/posix-shell-pro

View the source on GitHub

Browse the @skills marketplace