The career master and the pitfalls document are facts the user pastes or attaches per chat; every rule lives in the skills. build.sh zips each skill into claude-skills/dist/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
722 B
Bash
21 lines
722 B
Bash
#!/usr/bin/env bash
|
|
# Zip each skill folder into dist/<skill>.zip for upload to claude.ai.
|
|
# The zip holds the folder itself, so SKILL.md sits at <skill>/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
|