vercel-functions-runtime

$npx mdskill add bobmatnyc/claude-mpm-skills/vercel-functions-runtime

Build serverless APIs, edge functions, and cron jobs on Vercel.

  • Create serverless API routes and background tasks without managing infrastructure.
  • Depends on Vercel platform, Node.js or Edge Runtime, and project configuration.
  • Analyzes user requirements to recommend runtime, cron schedules, and middleware patterns.
  • Provides code examples, configuration snippets, and deployment guidance for implementation.

SKILL.md

.github/skills/vercel-functions-runtimeView on GitHub ↗
---
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

More from bobmatnyc/claude-mpm-skills

SkillDescription
anthropicOfficial Anthropic SDK for Claude AI with chat, streaming, function calling, and vision capabilities
api-design-patternsComprehensive API design patterns covering REST, GraphQL, gRPC, versioning, authentication, and modern API best practices
api-documentationBest practices for documenting APIs and code interfaces, eliminating redundant documentation guidance per agent.
api-reviewAPI security checklist for reviewing endpoints before deployment. Use when creating or modifying API routes to ensure proper authentication, authorization, and input validation.
asyncioPython asyncio - Modern concurrent programming with async/await, event loops, tasks, coroutines, primitives, aiohttp, and FastAPI async patterns
axumAxum (Rust) web framework patterns for production APIs: routers/extractors, state, middleware, error handling, tracing, graceful shutdown, and testing
bad-example-skillANTI-PATTERN - Example showing violations of self-containment (DO NOT COPY)
better-auth-authenticationBetter Auth authentication flows for TypeScript apps. Use when enabling email/password auth, configuring social providers, or implementing sign-up, sign-in, and verification flows.
better-auth-coreBetter Auth core setup for TypeScript apps. Use when configuring the Better Auth instance, wiring server handlers and client instances, working with sessions, or calling server-side auth APIs.
better-auth-integrationsBetter Auth framework integrations for TypeScript. Use when wiring route handlers in Next.js, SvelteKit, Remix, Express, Hono, or other web frameworks.