endpoint

Generate validated Express REST API routes with error handling and database access.

3|Updated May 28, 2026
One-click install
npx skills add https://github.com/mahg-es/araya --skill endpoint-mahg-es
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: endpoint
Source: https://github.com/mahg-es/araya/tree/main/skills/endpoint
Command: npx skills add https://github.com/mahg-es/araya --skill endpoint-mahg-es

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Implement REST API endpoints with validation, error handling, and database integration — turning an API specification into working, tested code.

Core Features & Use Cases

  • Input validation on every endpoint using a schema library (Zod/Joi).
  • Consistent error responses and robust error handling.
  • Route scaffolding with database integration and security considerations.
  • Use Case: Add a new resource endpoint with validation, authorization, and persistence.

Quick Start

Describe the endpoint you want and I will scaffold a production-ready Express route with input validation, error handling, and database integration.

Frequently Asked Questions about endpoint

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

FAQPage Schema
How do I scaffold an Express API endpoint with validation and error handling?

To scaffold an Express API endpoint with validation, you describe the desired resource and the tool generates a production-ready route featuring input validation, robust error handling, standardized responses, and database integration.

Can I use Zod and Joi for input validation when building Node.js REST APIs?

Yes, when building Node.js REST APIs, you can apply input validation on every endpoint using schema libraries like Zod or Joi to ensure secure handling of IDs and standardized request responses.

What is the best way to structure Express routes, middleware, and database access?

The best way to structure Express routes, middleware, and database access is through modular separation of concerns, which isolates validation logic, data persistence, and error handling into distinct layers for maintainable API design.

Does this API scaffolding approach support adding authorization to new resource endpoints?

Yes, this API scaffolding approach supports adding new resource endpoints by generating modular routes that integrate validation, authorization checks, and database persistence directly into the Express workflow.

How do I standardize error responses across multiple Node.js API routes?

You standardize error responses across multiple Node.js API routes by implementing consistent error handling middleware that catches validation failures and database errors, returning uniform response formats.

When do I need to refactor existing Node.js endpoints into modular routes?

You need to refactor existing Node.js endpoints into modular routes when your API lacks consistent error handling, input validation, or clear separation of concerns across data access and middleware layers.