Skip to main content
Scaffolds a permission class and its test file in a module. It writes the class under the module’s src/permissions directory, generates a matching test spec, and installs the @ooneex/permission package if it is missing.

Usage

ooneex permission:create [options]

Examples

ooneex permission:create
ooneex permission:create --name=EditPost
ooneex permission:create --name=EditPost --module=blog --override

Options

OptionDescriptionDefault
--namePermission class name. The Permission suffix is appended automatically.Prompted if omitted
--moduleTarget module the class is generated into.shared
--overrideOverwrite an existing class without prompting.false

AI Skill

This command ships a matching permission:create skill. It generates the permission class and its test file, then guides your AI agent through completing a permission that extends Permission from @ooneex/permission.
ooneex claude:init