Skip to content

Strict POSIX sh scripting guide that keeps shell scripts portable across dash, ash, and bash --posix.

CCM score
53 of 100
skills.sh installs
250
GitHub stars
50.5K
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers POSIX.1-2017 portability rules, defensive argument parsing, safe file handling, and cross-platform checks for Linux, BSD, Solaris, AIX, and macOS
  • Lists banned bash-isms such as arrays, [[, process substitution, local, and source, with POSIX replacements like positional parameters, [ ], and .
  • Enforces quoting, explicit || exit 1 error checks, -- option termination, printf over echo, and trap-based cleanup
  • Designed for shell scripts that must run on legacy systems, embedded environments, or minimal BusyBox and Alpine hosts

Install

$ npx -y skills add sickn33/agentic-awesome-skills --skill posix-shell-pro -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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.

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

Details

Repository
github.com/sickn33/agentic-awesome-skills
Category
CLI & Terminal
First seen
Jun 3, 2026

Questions

What does the posix-shell-pro skill do?

posix-shell-pro guides an agent to write strict POSIX sh scripts that run on any Unix-like system, including dash, ash and bash in POSIX mode. It avoids bash-only features such as arrays, [[ conditionals and process substitution, and covers defensive error handling and ShellCheck checks in POSIX mode.

Who is the posix-shell-pro skill for?

posix-shell-pro suits developers who need shell scripts to run across Linux, BSD, Solaris, AIX and macOS, or on legacy and embedded systems. It targets widely deployed POSIX.1-2017 shells unless a user explicitly selects POSIX.1-2024.

How do I install posix-shell-pro?

Run npx -y skills add sickn33/agentic-awesome-skills --skill posix-shell-pro -y in your project. After that, the agent can apply the posix-shell-pro guidance when writing portable POSIX sh scripts.

Which skills are near posix-shell-pro in the CLI and Terminal category?

posix-shell-pro is listed in the CLI and Terminal category on Claude Marketplaces, with herdr, gws-shared, opentui, cf-cli and pnpm among its neighbors. Its focus is narrower than those, centered on portable POSIX sh scripting with strict compliance rules.

More from sickn33/agentic-awesome-skills

All 682

Similar to Posix Shell Pro

More CLI & Terminal