enonic-content-type-generator

Installation
SKILL.md

Enonic XP Content Type Generator

Procedures

Step 1: Detect Enonic XP Project

  1. Execute node scripts/find-enonic-targets.mjs [workspaceRoot] to locate Enonic XP project roots.
  2. If the script returns an empty array, warn that no Enonic XP project markers were found and ask for the target directory.
  3. Store the detected project root for use in subsequent steps.

Step 2: Gather Requirements

  1. Identify the content type name from the request. The name must be lowercase-hyphenated (e.g., blog-post).
  2. Identify the display name — a human-readable label (e.g., Blog Post).
  3. Determine the super-type. Default to base:structured unless the request specifies a folder (base:folder) or another built-in type.
  4. List all requested fields with their input types. Read references/content-type-reference.md to map natural-language field descriptions to the correct Enonic XP input type and configuration.
  5. Identify any item sets (repeatable grouped fields), option sets (single-select or multi-select choices), or mixin references.
  6. If the request mentions a mixin, determine whether to generate the mixin file or reference an existing one.
  7. If the request mentions x-data, determine whether to generate the x-data file or reference an existing one.
Related skills

More from webmaxru/enonic-agent-skills

Installs
103
First Seen
Mar 28, 2026