mongodb-schema-generator
生成带有验证、索引和虚拟属性的MongoDB/Mongoose架构文件。触发条件:"创建mongodb架构"、"生成mongoose模型"、"mongo架构"、"mongoose模型用于"。
📖 中文导读:生成带有验证、索引和虚拟属性的MongoDB/Mongoose架构文件。触发条件:"创建mongodb架构"、"生成mongoose模型"、"mongo架构"、"mongoose模型用于"。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
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.