Agent skill · Backend & API

api-integration

Generate Next.js App Router API routes with Zod validation and TypeScript types

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill api-integration-skill --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 11 KB
Bundled scripts: none
Version: 1.0.0
Path: skills/api/api-integration-skill/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# API Integration Skill Automatically generate production-ready Next.js 15 App Router API routes with Zod validation, TypeScript types, and comprehensive error handling. This skill transforms natural language API requirements into fully functional RESTful endpoints following Next.js best practices. ## Overview This skill generates: - **Next.js App Router API routes** (TypeScript) - **Zod validation schemas** for request/response - **TypeScript type definitions** (auto-inferred from Zod) - **Error handling utilities** (consistent error responses) - **RESTful conventions** (proper HTTP methods and status codes) ## When to Use This Skill Activate this skill when the user requests: - API endpoint creation - REST API development - Route handlers - CRUD operations - HTTP request/response handling - Data validation for APIs - GraphQL resolvers (basic) ## Key Features ### 1. Automatic Route Generation Generates Next.js 15 App Router route handlers: ```typescript // app/api/posts/route.ts import { NextRequest, NextResponse } from 'next/server' import { postSchema } from '@/lib/validations/post' import { handleAPIError } from '@/lib/api/errors' export async function GET(request: NextRequest)

What's inside
Steps it walks through
  1. Overview
  2. When to Use This Skill
  3. Key Features
  4. 1. Automatic Route Generation
  5. 2. CRUD Operations Mapping
  6. 3. Zod Validation Schemas
  7. 4. Field Type Inference
  8. 5. Error Handling Utilities
  9. 6. Request/Response Types
  10. Execution Steps
  11. Usage Examples
  12. Example 1: Simple CRUD API
  13. Example 2: API with Custom Fields
  14. Example 3: Authenticated API
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the api-integration skill do?

Generate Next.js App Router API routes with Zod validation and TypeScript types

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill api-integration-skill --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going