Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

ue-component-modelUE 组件模型

Agent Skill

ue-component-model 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,947

周安装

78

GitHub Stars

55

下载量

630
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ue-component-model(UE 组件模型)
来源仓库:https://github.com/adobe/skills
仓库路径:skills/ue-component-model
安装命令:
npx skills add https://github.com/adobe/skills --skill ue-component-model
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/adobe/skills --skill ue-component-model

简介

ue-component-model 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。
  • 可结合来源仓库和原始 README 核验具体用法,支持灵活的检索需求。
  • 安装命令:npx skills add https://github.com/adobe/skills --skill ue-component-model。
  • 建议确认权限范围和维护状态,避免触发联网、命令执行或文件读写。

SKILL.md

Universal Editor Component Model Configuration

This skill helps you create or edit the three JSON configuration files that control how AEM Edge Delivery Services (EDS) blocks appear and behave in the Universal Editor (UE):

  1. component-definition.json — Registers blocks in the UE component palette
  2. component-models.json — Defines property panel fields for each block
  3. component-filters.json — Controls where blocks can be placed

When to Use

  • Creating a new block that needs UE authoring support
  • Adding/modifying fields on an existing block's property panel
  • Registering a block so it appears in the author's component palette
  • Setting up container blocks with child items
  • Adding block variants/style options

Workflow

Step 1: Understand the Block

Before generating any configuration, read and analyze:

  1. The block's JS file (blocks/<name>/<name>.js) — understand what content the decorate(block) function expects:

- What does it read from the block div? (images, links, text, classes) - Does it expect a flat structure or rows of items? - Does it use block.querySelector('a') (links/URLs), block.querySelector('picture') (images), etc.? - Does it check for CSS classes/variants?

  1. The block's CSS file (blocks/<name>/<name>.css) — look for variant-specific styles.
  2. Existing config — check if entries already exist:

- Search component-definition.json for the block ID - Search component-models.json for the model ID - Search component-filters.json for the block in the section components list - Check for a blocks/<name>/_<name>.json distributed config file

Step 2: Determine the Block Type

Based on the JS analysis:

  • Simple block: One component with its own fields. Most blocks are this type.

- Example: Hero, Embed — single model, no children

  • Container block: Has repeatable child items (cards, slides, tabs).

- Clue: JS iterates over block.children or creates items from rows - Needs: container definition + item definition + filter

  • Key-value block: Configuration-style block (2-column key-value pairs).

- Clue: Each property is independent, not a grid of content - Needs: "key-value": true in template

Step 3: Design the Model Fields

Map the block's content expectations to component model fields. Read references/field-types.md for the full field type reference.

Common field mappings:

Block expects...Use component typeNotes
An imagereference (name: image)Pair with text field named imageAlt
A URL/linkaem-content (name: link or url)For page links and external URLs
Rich text contentrichtextFor formatted text with headings, lists, links
Plain text (single line)textFor titles, labels, short strings
Plain text (multi-line)textareaFor descriptions, notes, long text without formatting
Heading level choiceselect with h1-h6 optionsName it titleType to auto-collapse with title
Style variantsmultiselect (name: classes)Values become CSS classes on block div
Multiple togglescheckbox-groupFor multiple independent boolean options
Boolean togglebooleanFor show/hide options
Number valuenumberFor counts, limits
Content Fragmentaem-content-fragmentFor CF-driven blocks
Experience Fragmentaem-experience-fragmentFor reusable content+layout fragments
Content tagsaem-tagFor categorization via AEM tag picker

Field naming rules (semantic collapsing):

  • image + imageAlt → collapsed into <picture><img alt="...">
  • link + linkText + linkTitle + linkType → collapsed into <a href="..." title="...">text</a> with optional class
  • title + titleType → collapsed into <h2>title</h2> (level from titleType)
  • Fields prefixed with group_ (underscore separator) are grouped into a single cell

Step 4: Generate the Configuration

Generate entries for all three files. The approach depends on whether the project uses centralized or distributed config.

Check for distributed config pattern: If the block directory contains _<blockname>.json files (e.g., blocks/hero/_hero.json), create a distributed config file instead of editing the central files.

For Centralized Config (editing the three root JSON files):

component-definition.json — Add to the "Blocks" group's components array:

{
  "title": "<Block Display Name>",
  "id": "<block-id>",
  "plugins": {
    "xwalk": {
      "page": {
        "resourceType": "core/franklin/components/block/v1/block",
        "template": {
          "name": "<Block Name>",
          "model": "<model-id>"
        }
      }
    }
  }
}

For container blocks, add both the container AND item definitions. The container gets "filter" instead of "model", and the item uses "core/franklin/components/block/v1/block/item" as resourceType.

For key-value blocks, add "key-value": true to the template.

Template can include default values for any model field (e.g., "titleType": "h3", "classes": ["light"]).

component-models.json — Add a new model entry:

{
  "id": "<model-id>",
  "fields": [
    {
      "component": "<field-type>",
      "name": "<property-name>",
      "label": "<Display Label>",
      "valueType": "string"
    }
  ]
}

component-filters.json — Add the block ID to the section filter's components array. For container blocks, also add a new filter entry defining allowed children.

For Distributed Config (creating blocks/<name>/_<name>.json):

Create a single file with all three configs:

{
  "definitions": [ ... ],
  "models": [ ... ],
  "filters": [ ... ]
}

Still add the block to the section filter in the central component-filters.json.

Step 5: Validate

After generating the config, verify:

  1. ID consistency: The id in the definition matches what's used in component-filters.json. The template.model value matches the id in component-models.json.
  2. Filter registration: The block's ID appears in the section filter's components array (otherwise authors can't add it to pages).
  3. Field names match block JS: The name properties in the model fields should produce HTML that the block's decorate() function can consume.
  4. Semantic collapsing: Paired fields use correct suffixes (e.g., image/imageAlt, not image/altText unless intentional).
  5. Valid JSON: All three files remain valid JSON after edits.
  6. No duplicate IDs: No model or filter ID conflicts with existing entries.

Reference Files

For detailed information, read these reference files as needed:

  • references/architecture.md — How the three files connect, the full AEM→Markdown→HTML pipeline, resource types, field naming conventions, semantic collapsing rules, and RTE filter configuration
  • references/field-types.md — Complete reference for all 17 field component types (text, textarea, richtext, reference, aem-content, aem-content-fragment, aem-experience-fragment, aem-tag, select, multiselect, checkbox-group, radio-group, boolean, number, date-time, container, tab), valueType constraints, required properties, field properties, validation types, conditional fields, and option formats
  • references/examples.md — Real examples showing Hero (simple), Embed (simple with URL), Cards (container), Teaser (variants), Product Details (key-value), Article (content fragment), Section configuration, Metadata (textarea), Feature Toggles (checkbox-group), and RTE filter configuration

Common Pitfalls

  • Forgetting to add to section filter: The block won't appear in the author's add menu unless it's in the section filter's components list.
  • Wrong resourceType: Almost all custom blocks use core/franklin/components/block/v1/block. Don't invent custom resource types.
  • Mismatched model/filter IDs: The template.model must exactly match the model id, and template.filter must exactly match the filter id.
  • Choosing the wrong text field type: Use text for single-line strings, textarea for multi-line plain text, and richtext for formatted content. For URLs and page links, use aem-content so authors get the content picker.
  • Wrong valueType: Most components enforce a specific valueType (e.g., boolean must use "boolean", number must use "number", checkbox-group must use "string[]"). Always include valueType and check the field-types reference for the enforced value.
  • Container without filter: Container blocks need a filter (not a model) in their template, and a corresponding filter entry in component-filters.json.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.43%
按下载量换算230

Claude

30.87%
按下载量换算194

Cursor

18.39%
按下载量换算116

Gemini CLI

9.5%
按下载量换算60

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills