Cloudflare Workers Migration
secondsky/claude-skills
Migrate to Cloudflare Workers from AWS Lambda, Vercel, Express, and Node.js.
Build and deploy Vercel Edge Functions for ultra-low latency at the edge.
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill vercel-edge-functions -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install jeremylongshore/tons-of-skills-marketplace vercel-edge-functions --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/saas-packs/vercel-pack/skills/vercel-edge-functions .claude/skills/vercel-edge-functions && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "vercel-edge-functions" agent skill from https://github.com/jeremylongshore/tons-of-skills-marketplace/tree/main/plugins/saas-packs/vercel-pack/skills/vercel-edge-functions into .claude/skills/vercel-edge-functions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vercel-edge-functions", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/jeremylongshore/tons-of-skills-marketplace/tree/main/plugins/saas-packs/vercel-pack/skills/vercel-edge-functionsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill vercel-edge-functions -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install jeremylongshore/tons-of-skills-marketplace vercel-edge-functions --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/saas-packs/vercel-pack/skills/vercel-edge-functions .agents/skills/vercel-edge-functions && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "vercel-edge-functions" agent skill from https://github.com/jeremylongshore/tons-of-skills-marketplace/tree/main/plugins/saas-packs/vercel-pack/skills/vercel-edge-functions into .agents/skills/vercel-edge-functions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vercel-edge-functions", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill vercel-edge-functions -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install jeremylongshore/tons-of-skills-marketplace vercel-edge-functions --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/saas-packs/vercel-pack/skills/vercel-edge-functions .cursor/skills/vercel-edge-functions && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "vercel-edge-functions" agent skill from https://github.com/jeremylongshore/tons-of-skills-marketplace/tree/main/plugins/saas-packs/vercel-pack/skills/vercel-edge-functions into .cursor/skills/vercel-edge-functions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vercel-edge-functions", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/jeremylongshore/tons-of-skills-marketplace.git --path plugins/saas-packs/vercel-pack/skills/vercel-edge-functions--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill vercel-edge-functions -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install jeremylongshore/tons-of-skills-marketplace vercel-edge-functions --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/saas-packs/vercel-pack/skills/vercel-edge-functions .gemini/skills/vercel-edge-functions && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "vercel-edge-functions" agent skill from https://github.com/jeremylongshore/tons-of-skills-marketplace/tree/main/plugins/saas-packs/vercel-pack/skills/vercel-edge-functions into .gemini/skills/vercel-edge-functions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vercel-edge-functions", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install jeremylongshore/tons-of-skills-marketplace vercel-edge-functionsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill vercel-edge-functions -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/saas-packs/vercel-pack/skills/vercel-edge-functions .github/skills/vercel-edge-functions && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "vercel-edge-functions" agent skill from https://github.com/jeremylongshore/tons-of-skills-marketplace/tree/main/plugins/saas-packs/vercel-pack/skills/vercel-edge-functions into .github/skills/vercel-edge-functions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vercel-edge-functions", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill vercel-edge-functions -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install jeremylongshore/tons-of-skills-marketplace vercel-edge-functions --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/saas-packs/vercel-pack/skills/vercel-edge-functions .opencode/skills/vercel-edge-functions && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "vercel-edge-functions" agent skill from https://github.com/jeremylongshore/tons-of-skills-marketplace/tree/main/plugins/saas-packs/vercel-pack/skills/vercel-edge-functions into .opencode/skills/vercel-edge-functions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vercel-edge-functions", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
vercel-edge-functionsBuild and deploy Vercel Edge Functions for ultra-low latency at the edge.
Vercel Edge Functions is an agent skill from jeremylongshore/tons-of-skills-marketplace. Build and deploy Vercel Edge Functions for ultra-low latency at the edge. Use when creating API routes with minimal latency, geolocation-based routing, A/B testing, or authentication at the edge. Trigger with phrases like "vercel edge function", "vercel edge runtime", "deploy edge function", "vercel middleware", "@vercel/edge".
Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Designed for Claude Code
It sits in Backend & APIs, covering Serverless and A/B testing. It works with Vercel, npm and Node.js. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit cfae287. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadWriteEditBash(vercel:*)Bash(npm:*)GrepFrom allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
npmFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
vercel.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Designed for Claude Code
From compatibility in the SKILL.md frontmatter.
Vercel Edge Functions loads about 1.9k tokens when it runs. Until then it costs about 88 tokens; SKILL.md has 424 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from jeremylongshore/tons-of-skills-marketplace at commit cfae287, republished under its MIT licence (© jeremylongshore). 424 words, ~1,948 tokens.
.claude/skills/vercel-edge-functions/SKILL.md (or your agent's skills folder).Edge Functions run on Vercel's Edge Network (V8 isolates) close to the user with no cold starts. They use Web Standard APIs (Request, Response, fetch) instead of Node.js APIs. Ideal for authentication, A/B testing, geolocation routing, and low-latency API responses.
vercel-install-auth setup// api/edge-hello.ts
// Export `runtime = 'edge'` to run on the Edge Runtime
export const config = { runtime: 'edge' };
export default function handler(request: Request): Response {
return new Response(
JSON.stringify({
message: 'Hello from the Edge!',
region: request.headers.get('x-vercel-ip-city') ?? 'unknown',
timestamp: Date.now(),
}),
{
status: 200,
headers: { 'Content-Type': 'application/json' },
}
);
}Vercel injects geolocation headers into every edge request:
// api/geo.ts
export const config = { runtime: 'edge' };
export default function handler(request: Request): Response {
const city = request.headers.get('x-vercel-ip-city') ?? 'unknown';
const country = request.headers.get('x-vercel-ip-country') ?? 'unknown';
const region = request.headers.get('x-vercel-ip-country-region') ?? 'unknown';
const latitude = request.headers.get('x-vercel-ip-latitude');
const longitude = request.headers.get('x-vercel-ip-longitude');
return Response.json({
city: decodeURIComponent(city),
country,
region,
coordinates: latitude && longitude ? { lat: latitude, lng: longitude } : null,
});
}Middleware runs before every request and can rewrite, redirect, or add headers:
// middleware.ts (must be at project root or src/)
import { NextRequest, NextResponse } from 'next/server';
export function middleware(request: NextRequest) {
// Example 1: Redirect based on country
const country = request.geo?.country ?? 'US';
if (country === 'DE') {
return NextResponse.redirect(new URL('/de', request.url));
}
// Example 2: A/B testing with cookies
const bucket = request.cookies.get('ab-bucket')?.value;
if (!bucket) {
const response = NextResponse.next();
response.cookies.set('ab-bucket', Math.random() > 0.5 ? 'a' : 'b');
return response;
}
// Example 3: Add security headers
const response = NextResponse.next();
response.headers.set('X-Frame-Options', 'DENY');
response.headers.set('X-Content-Type-Options', 'nosniff');
response.headers.set('Referrer-Policy', 'strict-origin-when-cross-origin');
return response;
}
// Only run on specific paths — skip static assets
export const config = {
matcher: ['/((?!_next/static|_next/image|favicon.ico).*)'],
};// api/stream.ts
export const config = { runtime: 'edge' };
export default function handler(): Response {
const encoder = new TextEncoder();
const stream = new ReadableStream({
async start(controller) {
for (let i = 0; i < 5; i++) {
controller.enqueue(encoder.encode(`data: chunk ${i}\n\n`));
await new Promise(r => setTimeout(r, 500));
}
controller.enqueue(encoder.encode('data: [DONE]\n\n'));
controller.close();
},
});
return new Response(stream, {
headers: {
'Content-Type': 'text/event-stream',
'Cache-Control': 'no-cache',
Connection: 'keep-alive',
},
});
}// api/feature-flags.ts
import { get } from '@vercel/edge-config';
export const config = { runtime: 'edge' };
export default async function handler(): Promise<Response> {
// Read from Edge Config — sub-millisecond reads at the edge
const maintenanceMode = await get<boolean>('maintenance_mode');
const featureFlags = await get<Record<string, boolean>>('feature_flags');
if (maintenanceMode) {
return Response.json({ status: 'maintenance' }, { status: 503 });
}
return Response.json({ features: featureFlags });
}Install: npm install @vercel/edge-config
| Feature | Edge Runtime | Node.js (Serverless) |
|---|---|---|
| Cold start | None (~0ms) | 250ms–1s+ |
| Max duration | 30s (Hobby), 5min (Pro) | 10s (Hobby), 5min (Pro) |
| Max size | 1 MB (after gzip) | 250 MB (unzipped) |
| APIs available | Web Standard APIs | Full Node.js API |
| npm packages | Limited (no native modules) | All npm packages |
| Global deployment | Automatic | Single region default |
| Use case | Auth, routing, A/B, geo | Database queries, heavy compute |
fetch, Request, Response, Headers, URL, URLSearchParams, TextEncoder, TextDecoder, ReadableStream, WritableStream, TransformStream, crypto, atob, btoa, structuredClone, setTimeout, setInterval, AbortController
NOT available: fs, path, child_process, net, http, dns, native Node.js modules
| Error | Cause | Solution |
|---|---|---|
EDGE_FUNCTION_INVOCATION_FAILED | Runtime error in edge function | Check logs — no try/catch around async code |
Dynamic Code Evaluation not allowed | Using eval() or new Function() | Refactor to avoid dynamic code evaluation |
Module not found | npm package uses Node.js APIs | Use edge-compatible alternative or switch to Node.js runtime |
FUNCTION_PAYLOAD_TOO_LARGE | Edge function bundle > 1 MB | Tree-shake imports, split into smaller functions |
TypeError: x is not a function | Node.js API used in edge runtime | Replace with Web Standard API equivalent |
Implement an allow-listed middleware matcher that excludes static assets and health checks, and validate its Web API-only dependencies with the Edge runtime in preview. Send synthetic signed and unsigned requests from at least two regions, verify that unauthorized requests receive the intended response without logging credentials, and measure added latency. Release behind a reversible configuration flag; if legitimate traffic is blocked, disable the flag or restore the previous deployment before changing the policy.
For common errors, see vercel-common-errors.
© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in plugins/saas-packs/vercel-pack/skills/vercel-edge-functions of jeremylongshore/tons-of-skills-marketplace.
Open the folder on GitHubat commit cfae287
Vercel Edge Functions next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Vercel Edge Functions this skilljeremylongshore/tons-of-skills-marketplace | 2.8k | — | ~1.9k | Automated safety check: Pass | MIT | |
| Cloudflare Workers Migrationsecondsky/claude-skills | 227 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Bun Nextjssecondsky/claude-skills | 227 | — | ~1.9k | Automated safety check: Notes | MIT | |
| Compileapache/skywalking-nodejs | 180 | — | ~1.3k | Automated safety check: Pass | Apache-2.0 | |
| AI Model NodejsTencentCloudBase/CloudBase-AI-Toolkit | 1.1k | 2 repos | ~5k | Automated safety check: Pass | MIT | |
| Adobe App Builder Action Scaffolderadobe/skills | 197 | — | ~3.1k | Automated safety check: Pass | Apache-2.0 |
secondsky/claude-skills
Migrate to Cloudflare Workers from AWS Lambda, Vercel, Express, and Node.js.
secondsky/claude-skills
This skill should be used when the user asks about "Next.js with Bun", "Bun and Next", "running Next.js on Bun", "Next.js development with Bun", "create-next-app with Bun", or building Next.js…
apache/skywalking-nodejs
Compile / build / type-check the skywalking-nodejs agent. An agent skill from apache/skywalking-nodejs.
TencentCloudBase/CloudBase-AI-Toolkit
A skill your agent uses for Node.js backend AI via @cloudbase/node-sdk (=3.16.0) — cloud functions, CloudRun, Express/Koa/NestJS, serverless APIs, scheduled jobs, LLM proxies, agent orchestration.
adobe/skills
Scaffolds, implements, deploys and debugs Adobe Runtime actions in App Builder projects, with templates for webhooks, events, database CRUD, sequences and Asset Compute workers.
internet-court/internet-court-skill
Reference for building Starknet apps with starknet.js v9: providers, accounts, contract calls, fee estimation, wallet integration and paymaster flows.
jeremylongshore/tons-of-skills-marketplace
Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.
jeremylongshore/tons-of-skills-marketplace
Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.
jeremylongshore/tons-of-skills-marketplace
Execute proactive auto-loading: automatically detects and loads agents.md files.
jeremylongshore/tons-of-skills-marketplace
Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.
jeremylongshore/tons-of-skills-marketplace
Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.
jeremylongshore/tons-of-skills-marketplace
Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.
Categories
Build and deploy Vercel Edge Functions for ultra-low latency at the edge. Vercel Edge Functions is an agent skill from jeremylongshore/tons-of-skills-marketplace. Build and deploy Vercel Edge Functions for ultra-low latency at the edge.
Vercel Edge Functions fits situations like: creating API routes with minimal latency; geolocation-based routing; authentication at the edge; with phrases like vercel edge function.
Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill vercel-edge-functions -a claude-code`. Or copy the skill folder (plugins/saas-packs/vercel-pack/skills/vercel-edge-functions in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/vercel-edge-functions in your project. Claude Code loads it when a task matches its description.
Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill vercel-edge-functions -a codex`. Or copy the skill folder (plugins/saas-packs/vercel-pack/skills/vercel-edge-functions in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/vercel-edge-functions in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill vercel-edge-functions -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/vercel-edge-functions, .gemini/skills/vercel-edge-functions, .github/skills/vercel-edge-functions and .opencode/skills/vercel-edge-functions in your project.
Going by SKILL.md and its folder, Vercel Edge Functions needs the command-line tools its instructions call (npm). Our summary lists: Node.js. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash(vercel:*), Bash(npm:*), Grep. Compatibility (from SKILL.md): Designed for Claude Code.
SKILL.md names 1 domain. As links in the text: vercel.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Vercel Edge Functions is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.9k tokens (SKILL.md is roughly 7.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Vercel Edge Functions: Cloudflare Workers Migration (secondsky/claude-skills, 227 stars), Bun Nextjs (secondsky/claude-skills, 227 stars), Compile (apache/skywalking-nodejs, 180 stars) and AI Model Nodejs (TencentCloudBase/CloudBase-AI-Toolkit, 1.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,827 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 10, 2026.
Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.