backend-route-generator

Generates Express routes and updates middleware plus OpenAPI docs for Luminaris.

Updated Jun 18, 2026
One-click install
npx skills add https://github.com/web3br1/luminaristest --skill backend-route-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backend-route-generator
Source: https://github.com/web3br1/luminaristest/tree/main/.claude/skills/backend-route-generator
Command: npx skills add https://github.com/web3br1/luminaristest --skill backend-route-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Backend developers often struggle with manually creating and registering routes for Express applications, along with updating related middleware and OpenAPI documentation. This skill automates the entire process, simplifying the route generation workflow.

Core Features & Use Cases

  • Automated Route Generation: Generates server/src/routes/<resource>.ts files following Luminaris' Express Router pattern.
  • Route Registration: Adds the new route to server/src/routes/index.ts and OpenAPI documentation in server/src/routes/docs.paths.ts.
  • Middleware and Auth Configuration: Registers the route in server/src/middleware/auth.ts for authentication purposes.
  • Use Case: When adding a new REST endpoint or sub-routes to an existing resource, this skill ensures all necessary configurations are in place automatically.

Quick Start

Generate a new route for a resource named 'appointments' using the backend-route-generator skill.

Frequently Asked Questions about backend-route-generator

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

FAQPage Schema
How do I automatically generate Express routes and update OpenAPI documentation?

To automatically generate Express routes and update OpenAPI documentation, you can use a route generation skill that creates the resource router file, registers it in the central index, and appends the endpoint paths to your OpenAPI docs configuration automatically.

What is the best way to add a new REST endpoint without manually configuring Express middleware?

The best way to add a new REST endpoint without manually configuring Express middleware is to automate route generation, which simultaneously registers the new resource path in the authentication middleware file to ensure auth configurations are applied.

Does the route generator work with the Luminaris framework for Express applications?

Yes, the route generator works directly with the Luminaris framework, automatically generating and configuring Express routes by following the Luminaris Express Router pattern and updating the required project file structure.

How to register a new Express sub-route in an existing project's file structure?

To register a new Express sub-route in an existing project, the route generator creates a dedicated resource router file and adds the new route entry directly into the main route index file to ensure it is loaded correctly.

Can I automate the creation of server side TypeScript route files for Express?

Yes, you can automate the creation of server side TypeScript route files for Express by generating the specific resource file under the server routes directory and automatically linking it within the application's routing index.