api-conventions
Installation
SKILL.md
MX Space API Design Conventions
Controller Decorators
// Use @ApiController instead of @Controller
// Dev environment has no prefix, production auto-adds /api/v{version} prefix
@ApiController('posts') // ✓
@Controller('posts') // ✗
Authentication
// Endpoints requiring login
@Auth()
async create() {}
// Optional auth (get current user status)
Related skills
More from mx-space/core
zod-patterns
MX Space project Zod schema patterns. Apply when creating DTOs, validation schemas, or handling request validation.
37run-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.
1create-module
Create a new NestJS module with controller, service, model, and schema files. Use when adding new feature modules, API endpoints, or business domains.
1