create-module
Create NestJS Module
Create a new NestJS module for MX Space project. Module name: $ARGUMENTS
Directory Structure
Create the following files under apps/core/src/modules/<module-name>/:
<module-name>/
├── <name>.module.ts # Module definition
├── <name>.controller.ts # HTTP controller
├── <name>.service.ts # Business logic
├── <name>.model.ts # TypeGoose data model
├── <name>.schema.ts # Zod validation schema
└── <name>.type.ts # TypeScript types (optional)
File Templates
More from mx-space/core
zod-patterns
MX Space project Zod schema patterns. Apply when creating DTOs, validation schemas, or handling request validation.
37api-conventions
MX Space API design conventions. Apply when writing controllers, API endpoints, or handling HTTP requests.
33run-test
Run tests. Supports running all tests, single file, or pattern-matched tests.
1mx-review
Review code for MX Space project conventions. Checks NestJS patterns, TypeGoose models, Zod schemas, API design, etc.
1create-e2e-test
Create E2E test file for a specified module. Use when adding end-to-end tests for controllers.
1create-migration
Create database migration file. Use when modifying database structure, migrating data, or updating config formats.
1