route-handlers

This skill should be used when the user asks to "create an API route", "add an endpoint", "build a REST API", "handle POST requests", "create route handlers", "stream responses", or needs guidance on Next.js API development in the App Router.

Content Preview
---
name: route-handlers
description: This skill should be used when the user asks to "create an API route", "add an endpoint", "build a REST API", "handle POST requests", "create route handlers", "stream responses", or needs guidance on Next.js API development in the App Router.
version: 1.0.0
---

# Next.js Route Handlers

## Overview

Route Handlers allow you to create API endpoints using the Web Request and Response APIs. They're defined in `route.ts` files within the `app` directory.

## Ba
How to Use

Recommended: Install to project (local)

mkdir -p .claude/skills
curl -o .claude/skills/route-handlers.md \
  https://raw.githubusercontent.com/davepoon/buildwithclaude/main/plugins/nextjs-expert/skills/route-handlers/SKILL.md

Skill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.

Alternative: Clone full repo

git clone https://github.com/davepoon/buildwithclaude

Then reference at plugins/nextjs-expert/skills/route-handlers/SKILL.md

Related Skills