adonisjs

Enforce AdonisJS v7 backend best practices for routing, controllers, models, and services.

7|Updated May 6, 2026
One-click install
npx skills add https://github.com/lncitador/adonisjs-maestro --skill adonisjs-lncitador
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: adonisjs
Source: https://github.com/lncitador/adonisjs-maestro/tree/main/skills/adonisjs
Command: npx skills add https://github.com/lncitador/adonisjs-maestro --skill adonisjs-lncitador

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This AdonisJS Backend Skill provides a structured approach to implementing and reviewing AdonisJS v7 backend code, guiding routing, controllers, models, validators, transformers, policies, services, and architecture conventions to reduce guesswork and errors.

Core Features & Use Cases

  • Enforces boundary rules between controllers, lucid models, and services for scalable backend apps
  • Provides concrete patterns for routing, resource vs action controllers, transformers, validators, and policies
  • Documents recommended workflows (build feature, debugging, exceptions, events, queue, tests) and references for architecture, auth, security, and performance

Quick Start

Follow the conventions described to scaffold a complete AdonisJS backend feature.

Frequently Asked Questions about adonisjs

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

FAQPage Schema
How do I structure controllers and services in an AdonisJS v7 backend?

To structure an AdonisJS v7 backend, enforce boundary rules between controllers, Lucid models, and services. This separation ensures scalable architecture by delegating data operations to Lucid and business logic to services.

What is the best way to implement authorization and validation in AdonisJS?

The best way to implement AdonisJS authorization and validation is using policies and validators. This secures resources by centralizing access control and ensuring data integrity before requests reach your controllers.

Does this AdonisJS backend convention support Inertia and Edge templates?

Yes, these AdonisJS backend conventions support API, Hypermedia using Edge, and Inertia-based applications. The architectural patterns apply uniformly across different rendering strategies for routing and controllers.

How do I scaffold a complete backend feature with Lucid models and migrations?

Scaffold a complete AdonisJS backend feature by following conventions for Lucid models, migrations, and resource controllers. This workflow guarantees aligned routing, queries, and error handling across your project architecture.

When should I use transformers in AdonisJS API development?

Use transformers in AdonisJS API development to format Lucid model data before sending HTTP responses. They maintain a clean separation between your internal database structure and the external API output.

Why are action controllers recommended over resource controllers in AdonisJS?

Action controllers are recommended over resource controllers in AdonisJS when handling non-CRUD operations, providing a concrete pattern for specific routing needs. Resource controllers remain ideal for standard, resource-centric endpoints.