backend-model-creation
Installation
SKILL.md
Backend Model Creation
This skill creates Mongoose models following established patterns with proper typing from @{project}/types.
Overview
Models follow a types-first approach:
- Define TypeScript types in
@{project}/types - Create Mongoose model in backend importing those types
- Use shared enum options for validation
File Structure
libs/types/src/
├── lib/
│ ├── Workflow.ts # Type definitions
│ └── {Resource}.ts # New resource types
└── index.ts # Re-exports