/app-dev:scaffold <resource> [--methods GET,POST,PUT,DELETE] [--auth]from app-dev
Scaffold API route handlers from an OpenAPI spec or description
Ships in app-dev. Installing the plugin adds it to Claude Code.
Generate route handlers, validation, and types for API endpoints.
Load the nextjs-typescript-engineer and api-design skills for conventions and API patterns.
/scaffold <resource> [--methods GET,POST,PUT,DELETE] [--auth]
Parse $ARGUMENTS to extract:
users, posts, orders)GET,POST,PUT,DELETE) — HTTP methods to generateSearch the project for:
grep -l "express\|fastify\|koa\|hono" package.json 2>/dev/null # Node.js
ls app/api/ 2>/dev/null # Next.js App Router
ls pages/api/ 2>/dev/null # Next.js Pages Router
grep -l "flask\|fastapi\|django" requirements.txt 2>/dev/null # Python
grep -l "gin\|echo\|fiber\|chi" go.mod 2>/dev/null # Go
grep -l "laravel\|slim" composer.json 2>/dev/null # PHP
Read 1-2 existing route files to understand:
For each method, generate appropriate handlers following the project's existing patterns.
Standard REST endpoints:
| Method | Route | Handler | Description |
|---|---|---|---|
| GET | /<resource> | list | List all with pagination |
| GET | /<resource>/:id | get | Get single by ID |
| POST | /<resource> | create | Create new |
| PUT | /<resource>/:id | update | Update existing |
| DELETE | /<resource>/:id | delete | Delete by ID |
Each handler should include:
--auth)Create TypeScript interfaces or equivalent for:
Using the project's validation library:
Show all generated files and ask the user before writing. List what was created and any additional setup needed (routes registration, etc.).
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
app-dev@iwritec0de-plugins is listed by iwritec0de/claude-plugin-marketplace — review the source before installing
npx claudepluginhub iwritec0de/claude-plugin-marketplace --plugin app-dev11 commands in this plugin
Other plugins' commands for the same job