collection — install collection in Momentum CMS collection, momentum-cms, community, install collection in Momentum CMS, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Developer Agents needing standardized collection creation for Momentum CMS Collection is a Momentum CMS feature that allows developers to create and manage data collections, defined in the libs/example-config/src/collections directory.

Features

Creates a new collection file at libs/example-config/src/collections/
Follows Momentum CMS project conventions for collection naming and location
Supports importing collections from @momentumcms/example-config/collections
Defines collections in a centralized location, avoiding individual app definitions
Uses the $ARGUMENTS variable to specify the collection name, such as posts or products

# Core Topics

DonaldMurillo DonaldMurillo
[0]
[0]
Updated: 3/8/2026

Agent Capability Analysis

The collection skill by DonaldMurillo is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for install collection in Momentum CMS.

Ideal Agent Persona

Perfect for Developer Agents needing standardized collection creation for Momentum CMS

Core Value

Empowers agents to generate new collection files following project conventions, utilizing Momentum CMS and importing from @momentumcms/example-config/collections, while adhering to specific collection locations like libs/example-config/src/collections/

Capabilities Granted for collection

Generating new collection files for Momentum CMS projects
Standardizing collection creation across multiple example apps
Automating collection imports from @momentumcms/example-config/collections

! Prerequisites & Limits

  • Collections must be defined in libs/example-config/src/collections/
  • Individual apps should not define collections
  • Requires adherence to Momentum CMS project conventions
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

collection

Install collection, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Generate Momentum CMS Collection

Create a new collection file following project conventions.

Arguments

  • $ARGUMENTS - Collection name (e.g., "posts", "products", "users")

Important: Collection Location

All collections are defined in libs/example-config/src/collections/. Both example apps (example-angular, example-analog) import from @momentumcms/example-config/collections. Never define collections in individual apps.

Steps

  1. Create the collection file at libs/example-config/src/collections/<name>.collection.ts

  2. Use this template:

typescript
1import { 2 defineCollection, 3 text, 4 richText, 5 number, 6 date, 7 checkbox, 8 select, 9 relationship, 10} from '@momentumcms/core'; 11 12export const <PascalName> = defineCollection({ 13 slug: '<kebab-name>', 14 15 admin: { 16 useAsTitle: 'title', // or 'name' - the field to display as title 17 defaultColumns: ['title', 'createdAt'], 18 group: 'Content', // Admin sidebar group 19 }, 20 21 access: { 22 read: () => true, 23 create: ({ req }) => !!req.user, 24 update: ({ req }) => req.user?.role === 'admin', 25 delete: ({ req }) => req.user?.role === 'admin', 26 }, 27 28 hooks: { 29 beforeChange: [], 30 afterChange: [], 31 }, 32 33 fields: [ 34 text('title', { required: true }), 35 // Add more fields as needed 36 ], 37});
  1. Export from libs/example-config/src/collections/index.ts:
typescript
1// Add import at top 2import { <PascalName> } from './<name>.collection'; 3 4// Add to the collections array 5export const collections: CollectionConfig[] = [ 6 // ... existing collections, 7 <PascalName>, 8]; 9 10// Add to named exports 11export { 12 // ... existing exports, 13 <PascalName>, 14};

Both example apps automatically pick up changes since they import from @momentumcms/example-config/collections.

  1. Remind user: if migration mode is enabled, run nx run <app>:migrate:generate after collection changes to create a migration file.

Field Types Available

Text Input Fields

  • text(name, options) - Short text with optional min/max length
  • textarea(name, options) - Multi-line text with optional rows
  • richText(name, options) - Rich text editor
  • email(name, options) - Email input
  • password(name, options) - Password input with optional min length

Numeric & Date Fields

  • number(name, options) - Numeric value with optional min/max/step
  • date(name, options) - Date/datetime picker

Boolean & Selection Fields

  • checkbox(name, options) - Boolean checkbox
  • select(name, { options: [...] }) - Dropdown select (supports hasMany)
  • radio(name, { options: [...] }) - Radio button group

Media & Files

  • upload(name, options) - File upload with MIME type filtering

Relationship & Data Fields

  • relationship(name, { collection: () => Ref }) - Reference to another collection (supports hasMany, polymorphic)
  • array(name, { fields: [...] }) - Array of nested fields
  • group(name, { fields: [...] }) - Nested object grouping
  • blocks(name, { blocks: [...] }) - Block-based content
  • json(name, options) - Raw JSON field
  • point(name, options) - Geolocation point
  • slug(name, { from: 'fieldName' }) - Auto-generated slug from another field

Layout Fields (non-data storing)

  • tabs(tabs: [...]) - Tabbed sections for organization
  • collapsible(label, { fields: [...] }) - Collapsible section
  • row(fields: [...]) - Horizontal row layout

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is collection?

Perfect for Developer Agents needing standardized collection creation for Momentum CMS Collection is a Momentum CMS feature that allows developers to create and manage data collections, defined in the libs/example-config/src/collections directory.

How do I install collection?

Run the command: npx killer-skills add DonaldMurillo/momentum-cms. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for collection?

Key use cases include: Generating new collection files for Momentum CMS projects, Standardizing collection creation across multiple example apps, Automating collection imports from @momentumcms/example-config/collections.

Which IDEs are compatible with collection?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for collection?

Collections must be defined in libs/example-config/src/collections/. Individual apps should not define collections. Requires adherence to Momentum CMS project conventions.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add DonaldMurillo/momentum-cms. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use collection immediately in the current project.

Related Skills

Looking for an alternative to collection or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI