npx claudepluginhub iwritec0de/claude-plugin-marketplace --plugin app-dev<resource> [--methods GET,POST,PUT,DELETE] [--auth]# API Scaffold Generate route handlers, validation, and types for API endpoints. Load the nextjs-typescript-engineer and api-design skills for conventions and API patterns. ## Usage ## Arguments Parse `$ARGUMENTS` to extract: - **resource** (required) — Resource name (e.g., `users`, `posts`, `orders`) - **--methods** (optional, default: `GET,POST,PUT,DELETE`) — HTTP methods to generate - **--auth** — Add authentication middleware/guards to all endpoints ## Instructions ### 1. Detect Framework Search the project for: ### 2. Detect Existing Patterns Read 1-2 existing route files t...
/scaffoldScaffolds Next.js App Router pages, layouts, server/client components, API routes, server actions, and loading/error states following best practices and project patterns.
/scaffoldScaffolds production-ready project for API, web, CLI, lib, or fullstack using TypeScript, Python, Go, or Rust. Includes src/tests, Docker, GitHub Actions CI/CD, git init, deps, and verification.
/scaffoldDetects .NET project architecture and generates complete feature slices with endpoints, handlers, validators, DTOs, EF configs, and integration tests.
/scaffoldInteractively scaffolds myfy components like modules, routes, providers, tasks, settings, or full features by gathering requirements and generating code.
/scaffoldScaffolds a TypeScript/Node.js project using the Bankr Agent API. Supports bot, web-service, dashboard, or CLI types via project-type argument.
/scaffoldScaffolds a TypeScript/Node.js project using the Bankr x402 SDK. Supports bot, web-service, dashboard, and CLI types with customizable structure and files.
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.).