modules/<module>/src/services/<Name>Service.ts and a mirrored modules/<module>/tests/services/<Name>Service.spec.ts, and installs the @ooneex/service dependency when missing.
Usage
Examples
Run with no flags to be prompted for the service name:Options
| Option | Description | Default |
|---|---|---|
--name | Service name (normalized to PascalCase, the Service suffix is appended). | Prompted if omitted |
--module | Target module. | shared |
--override | Overwrite an existing service file without confirmation. | false |
AI Skill
This command ships a matchingservice:create skill. The skill generates the service class and test file, then completes the implementation — defining a proper data type, implementing execute() with the business logic, and injecting dependencies through the constructor. Your AI agent uses it when creating a new business-logic service that implements IService from @ooneex/service.
- Claude
- Codex