ue-component-model

Installation
SKILL.md

Universal Editor Component Models

In AEM-authoring projects (aem-boilerplate-xwalk) authors fill properties-panel fields instead of a table. AEM renders those properties as the same table structure that document authors would type, so one block serves both. The structure therefore comes from content-modeling; this skill maps it to fields and registers the block. Skip it for document-based projects.

Steps

  1. Get the content model (rows, cells, variants) from content-modeling. If it does not exist, create it first. Do not derive fields from decorate().
  2. Map it to properties. Each row (or group of cells) is one property, in table order. Container blocks (cards, carousel): the container has a filter, each item has its own model, one row per item and one column per property.
  3. Write the partial blocks/<name>/_<name>.json with definitions, models and filters. Register it where authors can add it, or they cannot: a block id goes into the section filter in models/_section.json; a custom section type (for example a tab panel) goes into the main filter in models/_component-filters.json. Then run npm run build:json: it regenerates the root component-definition.json, component-models.json and component-filters.json, which you never edit by hand (the pre-commit hook also runs it).
  4. Check ids match (definition template.model or filter to the model or filter id), JSON is valid, and decorate() keeps data-aue-* instrumentation when it moves elements (moveInstrumentation(), defined in scripts/scripts.js of aem-boilerplate-xwalk).

Rules

The fields produce the same table a document author would type, so content-modeling's rules still apply to it (default content in cells, limited columns, no key/value for content, no nested blocks). The rules below are only the Universal Editor specifics.

Installs
1.6K
Repository
adobe/skills
GitHub Stars
339
First Seen
Apr 15, 2026