Skip to main content
Generates a new backend module under modules/<name>/. It writes the src/<PascalName>Module.ts, package.json, tsconfig.json, <name>.yml config, and a mirrored tests/<PascalName>Module.spec.ts, registers the module into its destination (AppModule and SharedModule for the app destination, otherwise the chosen destination module), adds the path alias to the root tsconfig.json, and adds the module scope to .commitlintrc.ts when present.

Usage

ooneex module:create [options]

Examples

Run with no flags to be prompted for the module name and destination module:
ooneex module:create
Create a module non-interactively into the app destination:
ooneex module:create --name=billing --destination=app
ooneex module:create --name=Catalog

Options

OptionDescriptionDefault
--nameModule name (normalized to PascalCase, the Module suffix is stripped).Prompted if omitted
--destinationDestination module to register the new module into.Prompted if omitted

AI Skill

This command ships a matching module:create skill. The skill scaffolds a complete backend business-domain module and then drives the per-artifact create skills to fill in its first vertical slice — entity, repository, service, controller, and any other artifacts the domain needs. Your AI agent uses it when creating a whole new domain such as billing, catalog, or order, rather than a single artifact.
ooneex claude:init