/marketplace-builder:portability-checkfrom marketplace-builder
Run shellcheck -x over every shipped and dev shell script, flag bash-4/GNU-only constructs, verify env-bash shebangs, and check that each install.sh has the Git-Bash-on-Windows guard. Use to validate cross-platform portability (macOS bash 3.2 / BSD / Windows Git Bash).
Ships in marketplace-builder. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Sweep the marketplace for portability hazards across the three targets: macOS (bash 3.2 / BSD coreutils), Linux, and Windows Git Bash.
Read ${CLAUDE_PLUGIN_ROOT}/knowledge/marketplace-conventions.md (§4).
Run the sweep. bash scripts/portability-check.sh — verifies every
*.sh has a #!/usr/bin/env bash shebang and runs shellcheck -x -S warning.
bash 3.2 hazards. Beyond shellcheck, grep shipped + dev scripts for
constructs that break on macOS's bash 3.2 and report each hit:
mapfile, readarray, declare -A, ${var,,} / ${var^^}, wait -n,
and bare "${arr[@]}" under set -u (use ${arr[@]+"${arr[@]}"}).
BSD-vs-GNU hazards. Grep for readlink -f, sed -i (without backup
arg), date +%N, stat -c, find -printf, timeout, base64 -w; flag
each as needing a guard or fallback.
install.sh guards. For each plugins/*/install.sh, confirm it detects
Windows-without-Git-Bash (a uname -s case matching MINGW*/MSYS*/CYGWIN*
vs native Windows) and tells the user to install Git Bash.
Report. List every hit with file:line and the portable replacement. Offer to apply fixes.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (bdfinst/plugin-builder) — no native marketplace selected
npx claudepluginhub p/bdfinst-marketplace-builder-plugins-marketplace-builder6 skills in this plugin
/add-pluginScaffold a new plugin inside an existing marketplace — the shipped dir skeleton, plugin.json, install.sh with the Git-Bash guard, settings.json, and CLAUDE.md; then register it in the catalog and in release-please packages with the catalog extra-files sync. Use when adding a plugin to a marketplace./audit-pluginAudit a marketplace (or a single plugin) — run the shipping-hygiene sensor, structural checks (every catalog entry has a dir, every dir has a manifest, versions in sync), and the portability sweep. Reports findings and offers fixes. Use to validate a marketplace is healthy./cloud-setupGenerate the gated SessionStart install hook plus cloud-setup.sh and a "use skills directly" fallback so the marketplace is usable in Claude Code web/cloud sessions. Use to make a marketplace cloud-aware./new-marketplaceScaffold a new Claude Code plugin-marketplace monorepo — catalog, repo-root tests/scripts/docs trees, CI workflows, release-please config, dev-setup, the hygiene sensor, and a root CLAUDE.md. Use when starting a fresh marketplace repository./release-setupWire release-please with one package per plugin and the marketplace.json extra-files jsonpath sync, so plugin.json, the release tag, and the catalog entry can never drift. Use to set up or repair automated versioning + catalog sync.