Skip to main content
skill CX Codex

vercel-functions-runtime — Claude Code skill: how to install

Provides patterns for Vercel Functions, Edge Runtime, routing middleware, and cron jobs. Useful when designing serverless APIs or scheduled tasks.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add bobmatnyc/claude-mpm-skills --skill vercel-functions-runtime -a claude-code
Open on GitHub

What vercel-functions-runtime does

This skill guides coding assistants through configuring Vercel serverless workloads. It details entry points for API routes, environment variable handling, and log analysis for debugging backend endpoints.

The guidelines cover both Node.js and Edge runtimes. Because Edge runtime enforces specific platform limits, the skill helps verify constraints before deployment. It also covers request routing, including path rewrites, redirects, and custom headers inside middleware.

Scheduled tasks follow standard cron definitions for routine maintenance and data sync. Direct model invocation is disabled in the frontmatter. The agent references these rules automatically whenever you generate Vercel backend logic.

What it helps with

  • configure Vercel cron jobs for background maintenance tasks
  • implement API routes targeting Node or Edge runtime
  • verify code against Edge Runtime constraints
  • write routing middleware for redirects, rewrites, and headers

Example prompts for the agent

  • Create a Vercel cron job that runs every night for database sync
  • Build an API route using Edge Runtime and check for compatibility issues
  • Add routing middleware to handle request headers and URL rewrites

How to install vercel-functions-runtime

1Skills CLI (Vercel)

npx skills add bobmatnyc/claude-mpm-skills --skill vercel-functions-runtime -a claude-code

2Manually: put the files in place

~/.claude/skills/vercel-functions-runtime/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/vercel-functions-runtime/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about vercel-functions-runtime

How to install vercel-functions-runtime in Claude Code?

Run npx skills add bobmatnyc/claude-mpm-skills --skill vercel-functions-runtime -a claude-code. The file will be placed at ~/.claude/skills/vercel-functions-runtime/SKILL.md.

What does vercel-functions-runtime do?

It supplies implementation patterns for Vercel serverless functions, Edge execution limits, cron jobs, and routing middleware.

Does vercel-functions-runtime require complementary skills?

No, it works independently. You can optionally pair it with vercel-deployments-builds, vercel-networking-domains, or vercel-observability.

Source text

SKILL.md · MIT
---
name: vercel-functions-runtime
description: Vercel Functions and Edge Runtime, including cron jobs and routing middleware. Use when building APIs, serverless workloads, or scheduled tasks on Vercel.
user-invocable: false
disable-model-invocation: true
progressive_disclosure:
  entry_point:
    summary: "Vercel Functions and Edge Runtime, including cron jobs and routing middleware. Use when building APIs, serverless workloads, or scheduled tasks on Vercel."
    when_to_use: "When working with vercel-functions-runtime or related functionality."
    quick_start: "1. Review the core concepts below. 2. Apply patterns to your use case. 3. Follow best practices for implementation."
---
# Vercel Functions and Runtime Skill

---
progressive_disclosure:
  entry_point:
    summary: "Vercel Functions and Edge Runtime: serverless APIs, edge execution, cron jobs, and routing middleware."
    when_to_use:
      - "When building API routes or serverless logic"
      - "When targeting the Edge Runtime"
      - "When scheduling tasks with cron jobs"
    quick_start:
      - "Create a function entry point"
      - "Choose the runtime (Node or Edge)"
      - "Configure cron schedules"
      - "Deploy and monitor"
  token_estimate:
    entry: 90-110
    full: 3600-4700
---

## Overview

Vercel Functions provide serverless execution for APIs and background tasks. The Edge Runtime enables low-latency execution closer to users.

## Vercel Functions

- Define serverless functions in the project structure.
- Use environment variables for configuration.
- Review logs for errors and performance.

## Edge Runtime

- Use the Edge Runtime for low-latency execution.
- Validate compatibility with the Edge runtime constraints.

## Cron Jobs

- Schedule jobs with cron definitions.
- Use cron for periodic maintenance tasks or sync jobs.

## Routing and Middleware

- Apply routing middleware for request handling.
- Use headers, rewrites, and redirects to control traffic.

## Complementary Skills

When using this skill, consider these related skills (if deployed):

- **vercel-deployments-builds**: Deployment workflow and release controls.
- **vercel-networking-domains**: Routing, headers, and edge caching.
- **vercel-observability**: Logs and tracing for function debugging.

*Note: Complementary skills are optional. This skill is fully functional without them.*

## Resources

**Vercel Docs**:
- Functions: https://vercel.com/docs/functions
- Edge Runtime: https://vercel.com/docs/functions/runtimes/edge
- Cron Jobs: https://vercel.com/docs/cron-jobs
- Routing Middleware: https://vercel.com/docs/routing-middleware

© bobmatnyc · MIT · bobmatnyc/claude-mpm-skills

Similar skills

All skills for Backend and APIs →

From the same set125

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor