# Usage: curl -sSL https://dom.vin/portdown | bash -s # is the directory where the file should land. set -euo pipefail [ -z "${1:-}" ] && { echo "install requires a path: curl -sSL https://dom.vin/portdown | bash -s " >&2 exit 1 } TARGET="$1" mkdir -p "$TARGET" DEST="$TARGET/skill.folded.md" cat > "$DEST" <<'PORTDOWN_853241C2' --- fold: true marker: fb7aff at: 2026-05-01T18:54:18Z root: skill --- --- name: portdown description: > Make a markdown file self-installing — a single file that reads as markdown when pasted to an agent and lays itself down on disk when piped to bash with an install path. Optional pre/post bash scripts run around the write. Use when the user wants to publish a markdown artifact at a URL that can be installed with `curl ... | bash -s `, bootstrap a skill or context bundle from a URL, or extend portdown with custom unpacking logic (e.g. fold uses it with a post script that unfolds the artifact into a directory). --- # portdown Portable markdown that ports itself down to disk. Take a markdown file, optionally add a pre and/or post bash script, get back a self-installing polyglot: ``` portdown [--pre