home / skills / ehtbanton / claudeskillsrepo / express-router-generator
This skill generates complete Express.js CRUD routers with validation and middleware in TypeScript, accelerating API development.
npx playbooks add skill ehtbanton/claudeskillsrepo --skill express-router-generatorReview the files below or copy the command above to add this skill to your agents.
---
name: express-router-generator
description: Generate Express.js router files with RESTful endpoints, middleware, and validation. Triggers on "create express router", "generate express routes", "express API endpoints", "REST router".
---
# Express Router Generator
Generate Express.js router files with RESTful endpoints, middleware, and request validation.
## Output Requirements
**File Output:** `*.router.ts` or `*.routes.ts`
**Format:** Valid Express.js TypeScript
**Standards:** Express 4.x with TypeScript
## When Invoked
Immediately generate a complete Express router with CRUD endpoints, middleware, and validation.
## Example Invocations
**Prompt:** "Create express router for user management"
**Output:** Complete `users.router.ts` with GET, POST, PUT, DELETE endpoints.
This skill generates ready-to-use Express.js router files in TypeScript with RESTful CRUD endpoints, middleware hooks, and request validation. It produces code compatible with Express 4.x and TypeScript, following a consistent file naming convention. Use it to quickly scaffold secure, typed route modules that integrate into an existing app.
Given an invocation like "create express router for user management," the skill emits a complete .router.ts or .routes.ts file containing GET/POST/PUT/DELETE endpoints, example controller calls, middleware spots, and validation middleware. The generated code uses TypeScript types, standard Express request/response signatures, and includes example validation (e.g., body/query checks) so the router is immediately usable or easy to adapt. Output conforms to common project layouts so you can drop the file into your routes folder and register it with app.use().
Does the generated router use TypeScript and Express 4.x?
Yes — the code is TypeScript-first and structured for Express 4.x usage and common project layouts.
Will the router include request validation and middleware examples?
Yes — each router includes validation middleware examples and designated middleware slots for auth, logging, or custom checks.