api-scaffold

Generate REST and GraphQL API resources with validation and OpenAPI docs.

1|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/paulingham/.claude --skill api-scaffold
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-scaffold
Source: https://github.com/paulingham/.claude/tree/main/skills/api-scaffold
Command: npx skills add https://github.com/paulingham/.claude --skill api-scaffold

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Building robust API layers is time-consuming and error-prone. api-scaffold automates generating routes, controllers, validation rules, and OpenAPI documentation from a spec, reducing boilerplate and ensuring consistency.

Core Features & Use Cases

  • Generates route definitions, controllers/handlers, request validation, response serialization, error handling, and pagination middleware.
  • Supports REST and GraphQL patterns, and can generate OpenAPI docs automatically.
  • Use Case: When adding a new resource, like User or Product, scaffold complete CRUD endpoints with validation and security scaffolding.

Quick Start

Invoke api-scaffold with a resource name or OpenAPI spec path to generate a complete API resource layer.

Frequently Asked Questions about api-scaffold

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate API scaffolding from an OpenAPI spec?

To generate API scaffolding from an OpenAPI spec, provide the spec path to the generator. It automatically produces complete route definitions, controllers, validation rules, and OpenAPI documentation, reducing boilerplate and ensuring consistency across your API layer.

Can I scaffold both REST and GraphQL endpoints automatically?

Yes, you can scaffold both REST and GraphQL endpoints automatically. The generation process supports both architectural patterns, creating complete CRUD resources with route definitions, handlers, and response serialization tailored to your chosen stack.

What is the best way to add CRUD endpoints with validation to an existing API?

The best way to add CRUD endpoints with validation to an existing API is to automate generation from a resource name or spec. This creates complete resources including validation, error handling, pagination, and security middleware scaffolding.

Does API scaffolding include security middleware and pagination setup?

Yes, API scaffolding includes security middleware and pagination setup. It automatically generates these components alongside route definitions, request validation, and error handling to satisfy resource contracts and ensure robust API layer construction.

How do I create OpenAPI documentation for new API resources?

You can create OpenAPI documentation for new API resources by using an automated scaffolding tool. It generates OpenAPI docs automatically alongside your routes, controllers, and validation rules when you scaffold complete CRUD endpoints from a specification.

What boilerplate does automated API generation eliminate when adding new resources?

Automated API generation eliminates boilerplate for route definitions, controllers, request validation, response serialization, and error handling. It automates these components from a spec, reducing time-consuming manual coding and ensuring consistency across resources.