vercel-integration
Installation
SKILL.md
Building a Vercel integration
A Vercel integration is an OAuth app + a configuration UI + a webhook/event handler, listed in the Vercel Marketplace. Source lives in integrations/<name>/. Thin server over your own backend. The natural hook: on a successful deploy, draft a social announcement. Playbook: itsryanarmani/scripts scripts/vercel-integration/README.md.
The trap: verify the deploy webhook before acting
Vercel posts deploy events (deployment.created, deployment.succeeded/ready) to your webhook URL. Verify the signature (the integration's client secret / webhook signing) before doing anything — an unverified handler will fire on spoofed or replayed payloads. Only act on the "ready/succeeded" event, and dedupe by deployment id.
The other traps
- OAuth authorizes Vercel, your API needs its own key. The Vercel token is for Vercel's API; carry your own credential separately (stored per-installation in the integration's config store).
- Client secret + config UI URL are console-owned — set them in the Vercel integration console; placeholders break install.
- Node/TS build — if it emits ESM under NodeNext, relative imports need
.jsextensions (TS2835), same as any Node ESM server. - Developer audience — a social-publishing integration on Vercel is a narrow fit; keep the value crisp ("announce your release") rather than a full dashboard.
Build path
- OAuth callback + config UI +
/webhooks(verify signature → on deploy-ready, draft a post via your API,platformTypestring). npm run build(tsc / your bundler).