add-api-route

Official

Generate robust Next.js API routes with caching.

Authornomos-guild
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the boilerplate of exposing backend services through Next.js API routes by providing a consistent pattern for authenticated proxies, error handling, and caching.

Core Features & Use Cases

  • API proxying: Create routes that forward requests to a backend service with proper error handling and retries.
  • Server-side aggregation: Build endpoints that fetch and combine data from multiple sources to reduce frontend complexity.
  • Security & caching: Centralize authentication, rate limiting, and set caching headers to improve performance for frontend apps.
  • Use Case: Example: expose a votes tally endpoint at /api/votes/tally that proxies to the internal API and caches responses for 60 seconds.

Quick Start

Use the add-api-route skill to scaffold a new Next.js API route at src/pages/api/voters/stats.ts that proxies to /api/voters/statistics with caching.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: add-api-route
Download link: https://github.com/nomos-guild/cgov/archive/main.zip#add-api-route

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.