nuxt-api-endpoint

Create and modify Nuxt.js API endpoints with Valibot schema validation.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Auriaz/nuxt-stack-starter --skill nuxt-api-endpoint
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nuxt-api-endpoint
Source: https://github.com/Auriaz/nuxt-stack-starter/tree/main/.cursor/skills/nuxt-api-endpoint
Command: npx skills add https://github.com/Auriaz/nuxt-stack-starter --skill nuxt-api-endpoint

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation and modification of API endpoints within a Nuxt project, ensuring adherence to a defined architectural pattern.

Core Features & Use Cases

  • Structured API Development: Guides the creation of API endpoints following a specific flow: server/api -> domain use-case -> repository -> DTO.
  • Maintainability: Ensures consistency and maintainability by enforcing project architecture rules.
  • Use Case: When adding a new /api/users endpoint to manage user data, this Skill will guide you through defining schemas, implementing business logic in the domain layer, and handling data persistence via repositories.

Quick Start

Use the nuxt-api-endpoint skill to create a new API endpoint for managing products.

Frequently Asked Questions about nuxt-api-endpoint

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

FAQPage Schema
How do I build Nuxt API endpoints following a layered architecture?

To build Nuxt API endpoints with a layered architecture, route requests from HTTP controllers in server/api to domain use-cases, then to data repositories, and finally return DTOs. This enforces maintainability and strict separation of concerns.

How do I validate API requests in a Nuxt backend?

To validate API requests in a Nuxt backend, define schemas using Valibot. The endpoint creation flow requires validation through these schemas to ensure data integrity before passing it to the domain logic layer.

Does this Nuxt API endpoint generator work without external dependencies?

Yes, this Nuxt API endpoint generator works without external dependencies. It relies on internal project architectural guidelines to enforce the flow from HTTP controllers to domain logic and data repositories.

What is the best way to structure a Nuxt server route for a new resource?

The best way to structure a Nuxt server route is to follow a strict flow: define the HTTP controller in server/api, implement business logic in a domain use-case, handle persistence via a repository, and return a DTO.

When should I use a repository pattern in Nuxt API development?

You should use a repository pattern in Nuxt API development when you need to separate data persistence from business logic. This Skill enforces this pattern to ensure consistency and maintainability across your endpoints.