adonisjs-actions

Community

Focused, reusable domain actions for AdonisJS.

Authoromakei
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Domain logic in controllers, services, or jobs leads to duplication and brittle code. This Skill provides a pattern of single-purpose, composable actions to encapsulate business logic, ensure testability, and enforce transactional safety.

Core Features & Use Cases

  • Single-responsibility action classes with typed inputs and a public handle method.
  • Constructor injection to compose complex workflows from smaller actions.
  • Transactional database writes with db.transaction() and proper useTransaction.
  • Guard methods and domain exceptions for strong validation and recoverable errors.
  • Organize actions by domain entity and reuse across controllers, jobs, and listeners.

Quick Start

Create a simple UpdateUserAction to encapsulate updating user data and persisting within a transaction.

Dependency Matrix

Required Modules

None required

Components

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-actions
Download link: https://github.com/omakei/adonisjs-architecture-skill/archive/main.zip#adonisjs-actions

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.