Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
31 changes: 31 additions & 0 deletions scripts/sync-vercel-skills.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env bash
# Sync vercel-labs/agent-skills into skills/vercel/ (vendored read-only mirror).
# Re-run anytime to pull upstream updates. Build .zip artifacts are excluded.
#
# bash scripts/sync-vercel-skills.sh
#
set -euo pipefail
UPSTREAM="${VERCEL_SKILLS_UPSTREAM:-https://github.com/vercel-labs/agent-skills.git}"
PREFIX="skills/vercel"
REPO_ROOT="$(git rev-parse --show-toplevel)"
WORK="$(mktemp -d)"; trap 'rm -rf "$WORK"' EXIT

git clone --quiet --depth=1 "$UPSTREAM" "$WORK/up"
SHA="$(git -C "$WORK/up" rev-parse HEAD)"
dest="$REPO_ROOT/$PREFIX"; mkdir -p "$dest"

# Replace vendored skill dirs (preserve UPSTREAM.md), excluding build artifacts
find "$dest" -mindepth 1 -maxdepth 1 -type d -exec rm -rf {} +
for d in "$WORK/up/skills"/*/; do
rsync -a --exclude='*.zip' "$d" "$dest/$(basename "$d")/"
done
sed -i -E "s|^- Upstream commit:.*|- Upstream commit: $SHA|" "$dest/UPSTREAM.md" 2>/dev/null || true

cd "$REPO_ROOT"
git add "$PREFIX"
if git diff --cached --quiet; then
echo "Already up to date with $SHA"
else
git commit -q -m "chore(vercel): sync agent-skills to ${SHA:0:7}"
echo "OK: $PREFIX synced to $SHA"
fi
12 changes: 12 additions & 0 deletions skills/vercel/UPSTREAM.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Vendored from vercel-labs/agent-skills

Read-only mirror of https://github.com/vercel-labs/agent-skills

- Upstream commit: f8a72b9603728bb92a217a879b7e62e43ad76c81
- Vendored: 2026-06-30 via `git subtree` (prefix skills/vercel)
- License: MIT (declared in upstream README; upstream ships no LICENSE file)
- Update: run `bash scripts/sync-vercel-skills.sh` from the skills repo root.
It re-pulls upstream and strips build `.zip` artifacts automatically.

Do not hand-edit these skills — local changes are overwritten on the next sync.
Contribute fixes upstream at vercel-labs/agent-skills.
Loading