adonisjs-policies
CommunityEnforce AdonisJS authorization with Bouncer.
Authoromakei
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Authorization rules for AdonisJS projects can become scattered and hard to audit. This Skill consolidates resource-level access control using @adonisjs/bouncer, organizing policy logic per model to keep checks consistent and testable.
Core Features & Use Cases
- Policy classes per model group ownership, permissions, and state checks into a single, testable class.
- Standard methods (viewAny, view, create, update, delete) and custom actions (cancel, publish, ship) with admin bypass support.
- References and tests illustrating usage, patterns, and validation to ensure correct behavior.
Quick Start
Create a policy by extending BasePolicy for your model and wire it to the bouncer in your controllers.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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-policies Download link: https://github.com/omakei/adonisjs-architecture-skill/archive/main.zip#adonisjs-policies 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.