Skip to main content
Generates a service class in the target module. It writes modules/<module>/src/services/<Name>Service.ts and a mirrored modules/<module>/tests/services/<Name>Service.spec.ts, and installs the @talosjs/service dependency when missing.

Usage

Examples

Run with no flags to be prompted for the service name:
Create a service non-interactively in a specific module:

Options

AI Skill

This command ships a matching service: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 @talosjs/service.