# mongodb-schema-generator > Generate MongoDB/Mongoose schema files with validation, indexes, and virtuals. Triggers on "create mongodb schema", "generate mongoose model", "mongo schema", "mongoose model for". - Author: ehtbanton - Repository: ehtbanton/ClaudeSkillsRepo - Version: 20251217183102 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-07 - Source: https://github.com/ehtbanton/ClaudeSkillsRepo - Web: https://mule.run/skillshub/@@ehtbanton/ClaudeSkillsRepo~mongodb-schema-generator:20251217183102 --- --- name: mongodb-schema-generator description: Generate MongoDB/Mongoose schema files with validation, indexes, and virtuals. Triggers on "create mongodb schema", "generate mongoose model", "mongo schema", "mongoose model for". --- # MongoDB Schema Generator Generate Mongoose schema files with validation, indexes, virtuals, and methods. ## Output Requirements **File Output:** `*.model.ts` or `*.schema.ts` **Format:** Valid Mongoose TypeScript **Standards:** Mongoose 8.x with TypeScript ## When Invoked Immediately generate a complete Mongoose schema with validation and indexes. ## Example Invocations **Prompt:** "Create MongoDB schema for blog posts" **Output:** Complete `post.model.ts` with validation, indexes, and virtuals.