#!/usr/bin/env bash # Zip each skill folder into dist/.zip for upload to claude.ai. # The zip holds the folder itself, so SKILL.md sits at /SKILL.md. # Tests and caches stay out. set -euo pipefail cd "$(dirname "$0")" mkdir -p dist python3 - <<'PY' import zipfile from pathlib import Path for skill in sorted(p.parent for p in Path(".").glob("*/SKILL.md")): out = Path("dist") / f"{skill.name}.zip" with zipfile.ZipFile(out, "w", zipfile.ZIP_DEFLATED) as z: for f in sorted(skill.rglob("*")): if f.is_dir() or "__pycache__" in f.parts or f.name.startswith("test_"): continue z.write(f, f.as_posix()) print(f"{out} {out.stat().st_size} bytes") PY