Agent skill · software engineering · onewave-ai
api-endpoint-scaffolder
Generate REST API endpoints with proper structure, validation, error handling, and types. Use when creating new API routes, endpoints, or backend services.
Why this skill is useful
Provides specific templates and best practices for generating REST API endpoints in popular frameworks like Next.js and Express, which the AI may not reliably generate on its own.
What it needs
About 1k tokens when loaded. Last updated 2026-07-15. 242 stars on the source repository.
What this skill does
API Endpoint Scaffolder Instructions When creating a new API endpoint: 1. Identify the framework (Express, Next.js, FastAPI, etc.) 2. Determine HTTP method (GET, POST, PUT, PATCH, DELETE) 3. Define request/response types 4. Implement with best practices Templates Next.js App Router (TypeScript) Express (TypeScript) Best Practices 1. Always validate input using Zod, Yup, or similar 2. Use proper HTTP status codes: 200: Success 201: Created 400: Bad Request 401: Unauthorized 403: Forbidden 404: Not Found 500: Server Error 3. Log errors but don't expose internals to clients 4. Use consistent response format 5. Add rate limiting for public endpoints 6. Document with OpenAPI/Swagger when possible
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills onewave-ai/api-endpoint-scaffolder