aem-layout-view
БесплатноБез исполняемых скриптовНе проверенUse when block or site code of an AEM Edge Delivery Services project authored in Experience Workspace (EW, formerly DA, Document Authoring) must stay editable…
от adobe★ 342 звезды на GitHubОб этом скилле
Layout View
Layout view runs the site's own loadPage() and block code on the page, then makes elements editable. Read the current rules and examples at https://www.aem.live/docs/ew/developing/layout-view. The points agents miss:
- Entry script:
head.htmlloads/scripts/scripts.js, andscripts.jsdefines a top-levelloadPage, as in the boilerplate. - CORS: off-origin requests (APIs, fragments from other sites, fonts) must allow
https://{BRANCH}--{SITE}--{ORG}.preview.da.live. This is not fixable in the repo: tell the user whose host to change. - Block and text elements: keep the block element (its first class is the block name) and the authored text and picture elements. Move them, don't copy or unwrap them. If an element must be replaced, copy
data-prose-index(text) ordata-image-indexanddata-image-version(img) onto the replacement. - No decoration on text: no spans, icons or classes inside or onto authored h1-h6, p, ul, ol, li, pre or blockquote. The editor rebuilds them. Use a wrapper outside the text, or CSS on an ancestor.
- No position-based CSS on text: no
>,+,~,:first-childor:nth-childon those elements. While an author types they sit in extradivs. Use descendant selectors or a class on the cell. - Code runs again after structural edits: in blocks, keep no module-level one-time state; tie timers and global listeners to the block and stop them when
block.isConnectedis false. Inscripts.js(loadEager,loadLazy), guard what is added todocument,windoworheadso it is added only once. Auto-blocking checks for an existing block before it adds one. - Testing: layout view loads code from
main. Try a branch with the developer plugin (https://www.aem.live/docs/ew/developing/developer-plugin), then type into each text field, replace each image and move the block.
Установить aem-layout-view в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл aem-layout-view?
Use when block or site code of an AEM Edge Delivery Services project authored in Experience Workspace (EW, formerly DA, Document Authoring) must stay editable in layout view, the WYSIWYG page editor that renders the page with the site's own code: authors can't edit a block's text or images, blocks duplicate or misbehave after edits, a request fails only in layout view, or a branch needs testing there. Not for the Universal Editor (ue-component-model) or projects authored in Word or Google Docs.
Как установить скилл aem-layout-view?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл aem-layout-view запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic