adonisjs-models
CommunityRobust AdonisJS models with Lucid patterns.
Authoromakei
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Lucid ORM models provide the data layer for AdonisJS applications, but patterns vary and business logic can creep into models. This Skill defines standardized model patterns for columns, relationships, computed properties, hooks, and safe serialisation to improve consistency and maintainability.
Core Features & Use Cases
- Define columns and their types via decorators to ensure type-safety and serialisation.
- Define relationships (belongsTo, hasMany, hasOne, manyToMany) to model domain entities and navigable aggregates.
- Implement computed properties (accessors) for derived state without business logic in models.
- Use model hooks for lifecycle side effects while keeping core business rules in services/actions.
- Apply scopes, soft deletes, and mixins/traits to compose reusable behaviour.
- Organize models with clear structure, naming, and versionable patterns for maintainability across projects.
Quick Start
Scaffold a new AdonisJS Lucid model with columns, relations, hooks, and optional features following the patterns shown.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: adonisjs-models Download link: https://github.com/omakei/adonisjs-architecture-skill/archive/main.zip#adonisjs-models Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.