api-route

Generate TypeScript API route handlers for Express or Analog.js.

7|1|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/DonaldMurillo/momentum-cms --skill api-route-donaldmurillo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-route
Source: https://github.com/DonaldMurillo/momentum-cms/tree/main/.claude/skills/api-route
Command: npx skills add https://github.com/DonaldMurillo/momentum-cms --skill api-route-donaldmurillo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of API route handlers for either Express or Analog.js, reducing boilerplate and accelerating backend scaffolding.

Core Features & Use Cases

  • Framework-agnostic routing: Generates TypeScript route modules compatible with Express or Analog.js.
  • Boilerplate-free templates: Provides ready-to-use route handlers with common patterns (health check, CRUD endpoints).
  • Integration-ready: Includes guidance to wire new routes into app servers and registration points.

Quick Start

Provide the framework and route name to generate a new route. Example: "api-route express health" creates routes for the /health endpoint in an Express-based app.

Frequently Asked Questions about api-route

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

FAQPage Schema
How do I auto-generate Express API routes in TypeScript to reduce boilerplate?

To auto-generate Express API routes, you can use scaffolding tools to create TypeScript modules that export route constructors for GET/POST endpoints, including health checks. This reduces boilerplate by providing ready-to-use handlers and example server wiring.

Can I scaffold Analog.js route handlers using a TypeScript generator?

Yes, you can scaffold Analog.js route handlers using a TypeScript generator. The tool creates standard TypeScript route modules compatible with Analog.js, enabling rapid creation of endpoints and providing integration guidance for registration points.

What is the best way to create a health check endpoint for a Node.js backend?

The best way to create a health check endpoint is to use an API route generator that scaffolds the GET route automatically. This provides a ready-to-use TypeScript module exporting the route constructor, which you then wire into your Node.js server.

Does this API route scaffolder work with both Express and Analog.js frameworks?

Yes, this API route scaffolder works with both Express and Analog.js frameworks. It generates framework-agnostic TypeScript routing modules and includes specific guidance to wire the new routes into the respective app servers.

How do I wire generated API routes into an existing server.ts file?

To wire generated API routes into an existing server.ts file, you import the generated TypeScript modules and register the exported route constructors with your application instance. The scaffolding process provides example server wiring to facilitate this integration.