What problem does it solve?
This Skill automates the creation of Momentum CMS collections, including field definitions, access rules, and hooks, reducing repetitive setup and ensuring consistency across projects.
Core Features & Use Cases
- Define a new collection with a complete schema including slug, admin settings, and hooks.
- Support common field types (text, richText, number, date, checkbox, select, relationship, array) to model rich content.
- Provide scaffolding and export guidance for collections to streamline project bootstrapping.
- Use case: rapidly initialize a new content area like "posts" or "products" with standard permissions and UI behavior.
Quick Start
Use the collection skill to generate a new Momentum CMS collection by following the template at collections/<name>.collection.ts, export it from collections/index.ts, and then run the schema generation steps:
nx run db-drizzle:generate-schema
npx drizzle-kit generate