API Gen — Development skill for Claude Code
Generate REST API endpoints with routes, validation, error handling, and tests.
How to install API Gen
Installs to ~/.claude/skills/halflength-ampleness75-claude-code-recipes-api-gen/SKILL.md
mkdir -p ~/.claude/skills/halflength-ampleness75-claude-code-recipes-api-gen && curl -fsSL https://raw.githubusercontent.com/halflength-ampleness75/claude-code-recipes/HEAD/commands/api-gen.md -o ~/.claude/skills/halflength-ampleness75-claude-code-recipes-api-gen/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What API Gen does
model: sonnet description: Generate REST API endpoints with routes, validation, error handling, and tests
Generate production-quality REST API endpoints from a description provided in `$ARGUMENTS`.
Step 1 — Understand the Requirements
Parse `$ARGUMENTS` to determine:
- Resource name (e.g., "users", "products", "orders")
- Operations needed (CRUD by default, or specific operations if stated)
- Fields and types (if specified, otherwise infer reasonable defaults)
- **Relat
Alternatives in Development
- n8n Validation Expert — Fix n8n validation errors with error catalog 3.6k ★
- WP REST API — WordPress REST API development 902 ★
- Clio — Claude Code CLI Clone — Agentic coding CLI that connects to Anthropic API (or compatible endpoints) to provide a terminal-based Claude 172 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Nxt API Route
Generates a Next.js App Router API route handler (route.ts) with proper TypeScript types, request validation,
API New
Create a new Next.js API route with validation, error handling, and TypeScript
Minimalism
Use in any coding session when writing or changing code — enforces the laziest solution that actually works (Y
Claude API Skill
Professional-grade Claude API skill framework. Comprehensive guide covering Messages API, streaming, tool use,
Auth Implementation
Use when a project needs real working login and signup rather than advice. Wiring up Clerk or Supabase Auth, p
Sc Build
Build, compile, and package projects with intelligent error handling and optimization
Related Agents
Go API Builder
Implements REST API endpoints in Go including handlers, routes, middleware, request/response types, and valida
Express API
Use this agent PROACTIVELY when building REST APIs with Express.js, including creating endpoints, implementing
Hono Builder
Hono API implementer — routes, middleware, validation, error handling, streaming/SSE, the typed RPC client (Ap