elysia-api-endpoint

Create DDD-structured API endpoints with OpenAPI documentation in Elysia.js.

Updated Mar 31, 2026
One-click install
npx skills add https://github.com/Michael0520/milo.me --skill elysia-api-endpoint
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: elysia-api-endpoint
Source: https://github.com/Michael0520/milo.me/tree/main/apps/api/.claude/skills/elysia-api-endpoint
Command: npx skills add https://github.com/Michael0520/milo.me --skill elysia-api-endpoint

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides teams to structure and automate the creation of new API endpoints using Domain-Driven Design (DDD) and OpenAPI documentation, reducing ambiguity and drift.

Core Features & Use Cases

  • DDD-guided endpoint scaffolding: Create domain models, value objects, errors, and repository interfaces aligned to the endpoint.
  • OpenAPI-first delivery: Generate and document HTTP routes with OpenAPI metadata, validation, and detailed route descriptions.
  • End-to-end workflow & testing: Covers domain, application, and delivery layers, plus basic E2E/test scaffolds for reliability.

Quick Start

Follow the guided workflow to add a new endpoint, e.g., GET /views/:slug using the DDD-based structure and OpenAPI documentation.

Frequently Asked Questions about elysia-api-endpoint

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

FAQPage Schema
How do I create API endpoints in Elysia.js using Domain-Driven Design?

To create API endpoints in Elysia.js using Domain-Driven Design, you structure your code into domain models, application services, delivery routes, and repositories. This approach separates business logic from HTTP delivery, ensuring your endpoints remain maintainable and scalable.

Can I generate OpenAPI documentation automatically for TypeScript backend routes?

You can generate OpenAPI documentation for TypeScript backend routes by applying OpenAPI annotations and metadata directly to your HTTP delivery routes. This provides automatic validation and detailed route descriptions for your API consumers.

What is the best way to scaffold a new HTTP route with value objects and domain errors?

The best way to scaffold an HTTP route with value objects and domain errors is to use a DDD-guided endpoint structure. This workflow defines repository interfaces and domain models aligned to the endpoint, reducing ambiguity and drift between business logic and API delivery.

Does this endpoint scaffolding workflow include end-to-end testing for backend APIs?

Yes, this endpoint scaffolding workflow includes end-to-end testing for backend APIs. It covers domain, application, and delivery layers, plus basic E2E test scaffolds to ensure the newly created HTTP routes function reliably throughout the entire request lifecycle.

Do I need to manually define repository interfaces when adding a new API endpoint?

You do not need to manually define repository interfaces from scratch when adding an API endpoint. The structured creation process encapsulates requirements for repository interfaces alongside value objects and domain errors, automating the foundational DDD architecture setup.