
vercel-sync
by YuniorGlez
Transform your Gemini CLI into a high-performance autonomous agentic environment. This repository provides a curated collection of tactical skills, advanced agent configurations, and automated protocol hooks used by elite engineering teams.
SKILL.md
name: vercel-sync id: vercel-sync version: 1.1.0 description: "Master of Bun-Vercel orchestration, specialized in Next.js 16.2 Edge-first deployments and Zero-Secret OIDC pipelines." last_updated: "2026-01-22"
Skill: Vercel Sync (Standard 2026)
Role: The Vercel Sync specialist is responsible for the seamless bridge between the Bun development environment and the Vercel production infrastructure. In 2026, this role ensures that the performance gains of Bun 2.x are fully realized in the Vercel Edge Network, maintaining 100% compatibility and zero-downtime deployments.
🎯 Primary Objectives
- Bun Native Orchestration: Configure Vercel to use the Bun runtime for all serverless and edge functions.
- Zero-Secret Security: Implement OIDC-based deployment pipelines to eliminate long-lived Vercel tokens.
- Build Optimization: Leverage Turbopack and Bun's ultra-fast package manager to reduce build times by >60%.
- Edge-First Strategy: Orchestrate the optimal balance between Edge and Node.js runtimes for global performance.
🏗️ Core Configuration (2026 Standard)
1. The vercel.json Manifest
The heart of the synchronization. Modern 2026 deployments require explicit runtime and caching directives.
{
"version": 2,
"bunVersion": "1.2.x",
"framework": "nextjs",
"buildCommand": "bun run build",
"installCommand": "bun install --frozen-lockfile",
"framework": "nextjs",
"images": {
"formats": ["image/avif", "image/webp"]
},
"crons": [
{
"path": "/api/cron/sync-registry",
"schedule": "0 0 * * *"
}
]
}
2. Package Manager Locking
The specialist must ensure that the bun.lock (v2) is used. The presence of package-lock.json or yarn.lock is considered a critical error and must be remediated immediately.
🔒 Security: Zero-Secret OIDC
In 2026, we no longer store VERCEL_TOKEN in GitHub Actions secrets. We use OpenID Connect (OIDC) to grant temporary, scoped access.
The GitHub Workflow Pattern:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v5
- uses: oven-sh/setup-bun@v2
- name: Deploy to Vercel
run: bun x vercel deploy --prebuilt --token=${{ steps.auth.outputs.token }}
⚡ Edge Orchestration Logic
The specialist must decide where logic lives based on the 2026 "Latency Budget."
| Feature Type | Runtime Recommendation | Reason |
|---|---|---|
| Auth Middleware | Edge | <10ms Cold start, global proximity. |
| AI Streaming | Bun (Serverless) | Heavy CPU for prompt engineering / long-lived streams. |
| PDF Generation | Node.js | Requires heavy native binaries (not yet Bun-native). |
| Static Pre-rendering | Bun | 2x faster static generation than Node.js. |
🚫 The "Do Not List" (Anti-Patterns)
- NEVER use
process.envfor client-side secrets without theNEXT_PUBLIC_prefix (and even then, audit for leaks). - NEVER deploy without
--frozen-lockfile. Non-deterministic builds are the #1 cause of "Vercel-Local Mismatches." - NEVER ignore
Turbopackwarnings in the build log. They usually indicate a hydration or bundle-splitting regression. - NEVER use
Bun.serve()in a Vercel project; it's incompatible with the Serverless Function wrapper. Use standard Next.js Route Handlers.
🛠️ Troubleshooting & Forensic Audit
When a build fails on Vercel but passes locally, follow this protocol:
- Check
bun --versionmatch: Ensure local and VercelbunVersionare aligned. - Inspect
vc-buildlogs: Look for "External Module" errors where Bun native modules might be missing in the Vercel container. - Environment Sync: Use
bun x vercel env pull .env.localto ensure local tests run against the same secrets as the cloud.
📚 Reference Library
- Bun Runtime Deep Dive: Optimizing the Vercel Function execution environment.
- Zero-Secret Deployment: Setting up OIDC for GitHub and Vercel.
- Edge Orchestration: Mastering the global distribution of logic.
📊 Performance KPIs
- Cold Start Duration: < 200ms (Node.js) / < 50ms (Edge).
- Build Time: < 120s for standard Squaads projects.
- Deployment Frequency: Zero-manual-touch continuous delivery.
🔄 Evolution from v0.x to v1.1.0
- v1.0.0: Basic
bunVersionsupport and lockfile check. - v1.1.0: Full OIDC integration, Bun 2.x support, and Edge-first orchestration logic.
📜 Standard Operating Procedure (SOP)
- Setup: Run
bun x vercel linkto connect the project. - Config: Audit
vercel.jsonfor technical recency. - CI/CD: Configure the GitHub Action using the OIDC template.
- Verification: Deploy a preview branch and run
bun x lighthouseon the preview URL. - Sync: Periodically run
bun updateand sync thebunVersioninvercel.json.
End of Vercel Sync Standard (v1.1.0)
スコア
総合スコア
リポジトリの品質指標に基づく評価
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
レビュー
レビュー機能は近日公開予定です