Skip to content
Back to skills

Shell Portability

ASecurity

The distro-family trap list for script shell. Use when auditing portability across Debian, RHEL, Arch, and ostree families.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
ai-agentsshelldatabase

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add samuel-stidham/smithy --skill shell-portability --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Shell Portability?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Shell Portability
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/samuel-stidham-shell-portability/badge)](https://www.skillsdirectory.com/skills/samuel-stidham-shell-portability)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: shell-portability
description: The distro-family trap list for script shell. Use when auditing portability across Debian, RHEL, Arch, and ostree families.
---

# Shell portability

The standing trap list for script shell across distro families.
Every entry came from a failure already observed on a real machine.
Report each hit with its family and whether it fails loudly or
silently. Where this list does not record loudness, verify on the
machine before asserting it. Silent failures outrank loud ones.

- Debian multiarch libdirs against `/usr/lib64` on RHEL-family
  layouts. A path built for one misses on the other.
- `/usr/bin` against `/usr/sbin` for privileged binaries. Families
  merge or split them differently.
- `/media/$USER` against `/run/media/$USER` for udisks mounts.
- A read-only `/usr` under ostree systems (Silverblue and kin).
- `case` statements with no default arm. The unmatched family falls
  through silently and the function returns success.
- GNU-only flags on `find`, `sed`, `stat`, and `date`.
- A `pkg_install` return value that kills the script under `set -e`,
  far from the cause.

The adjacent trap is package naming, owned by the `parity` skill:
read every distro package name off that distro's package database
through `forge:web-browsing`, never from memory. The difference
between `btrfs-progs` and `btrfsprogs` is one hyphen and a failed
install on a machine nobody can test.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.