api-integration
Generate Next.js App Router API routes with Zod validation and TypeScript types
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.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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)
- Overview
- When to Use This Skill
- Key Features
- 1. Automatic Route Generation
- 2. CRUD Operations Mapping
- 3. Zod Validation Schemas
- 4. Field Type Inference
- 5. Error Handling Utilities
- 6. Request/Response Types
- Execution Steps
- Usage Examples
- Example 1: Simple CRUD API
- Example 2: API with Custom Fields
- Example 3: Authenticated API
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.
