Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By FabienSallesv1.2.0MITIn 1 marketplace
Catches GNU-only flags and bash 4+ syntax in shell commands before they fail silently on macOS, and suggests portable alternatives. A hook warns on each match but never blocks the command.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
bsd, bash, shell-scripting, portability, gnu-vs-bsd, cross-platform, platform, shell
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
macOS / BSD platform discipline for Claude Code.
mac-platform skill: activated automatically when working on shell scripts, setup scripts, or troubleshooting macOS-specific issues. Covers:
/bin/bash 3.2 (Apple-forced) vs Homebrew bash 5.3+, and the 3.2 traps (case inside $( ), set -u with an empty array, locale-dependent printf '%f')grep -P, realpath, sed -i, readlink, date -d, etc.), BSD grep's exit 2, feature detection over a uname switchmktemp templates and $TMPDIR, the first-exec scan of new executables, awk, APFS case-insensitivity)bsd-gnu-lint hook (PreToolUse, matcher Bash): warns (never blocks) before Claude executes a Bash command that uses GNU-only flags or bash 4+ syntax which would silently fail on macOS. Patterns detected:
grep -P (PCRE)sed -i 's/…/…/' file without the BSD empty-string suffixreadlink -fxargs -r / --no-run-if-emptydate -d "…"realpath -m / --relative-to / --canonicalize-missing / -smapfile / readarray (bash 4+)${var,,} / ${var^^} (bash 4+ case modification)Each detection emits a hookSpecificOutput.additionalContext warning with a portable suggestion, leaving the command free to run.
The skill loads automatically when keywords like setup.sh, grep -P, realpath, mapfile, or shebangs (#!/bin/bash, #!/usr/bin/env bash) appear in the conversation or files being edited. The lint hook runs on every Bash tool invocation; it stays silent on portable commands.
For universal (cross-language, cross-platform) discipline rules (verification before claiming, anti-over-engineering, git/worktree discipline), install the universal ~/.claude/CLAUDE.md via the common plugin's /common:install-global-claude-md command.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub fabiensalles/claude-marketplace --plugin macPlugins from other owners that cover similar ground