building-blocks
БесплатноБез исполняемых скриптовНе проверенUse this before writing or changing AEM Edge Delivery Services (EDS, Franklin, Helix) block or site code: a block's `decorate(block)`, block CSS and variants…
от adobe★ 342 звезды на GitHubОб этом скилле
Building Blocks
EDS rules for block and site code that differ from general front-end practice. Follow the project's existing blocks, AGENTS.md and lint config for everything else. For a new block, a reference implementation from Block Collection (see block-collection-and-party) is a good start.
JavaScript (decorate(block))
- Don't hold up the section: a section stays hidden until all its blocks are decorated, and the first section gates LCP. Don't await slow fetches, large imports or embeds in
decorate(); load them when the block comes into view (IntersectionObserver) or on interaction, and reserve their space (e.g.aspect-ratio) so late content doesn't shift the layout.
CSS
- Page grid: global styles set max-width, centering and inline padding on
main > .section > div. Don't override them on the block. For outer layout such as a full-bleed background, style.{block-name}-container(the section) or.{block-name}-wrapper(the block's parent), not100vworcalc(50% - 50vw). Don't reuse those class names inside the block. - Custom properties: use the ones declared on
:rootinstyles/styles.css. Sites embedded with aem-embed load styles into a shadow root, so declare them on:root, :hostthere.
Site code
- Late-loading code: code that can wait goes in
loadDelayed()inscripts.js. Analytics and martech go inconsented.js, whichconsent-check.jsloads only after consent. Older projects may havedelayed.jsinstead; follow what the project has.
When the code works, test it with testing-blocks.
Установить building-blocks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл building-blocks?
Use this before writing or changing AEM Edge Delivery Services (EDS, Franklin, Helix) block or site code: a block's `decorate(block)`, block CSS and variants, `scripts.js` loading phases (eager, lazy, delayed), images, fragments, and LCP or performance fixes. EDS conventions don't always match standard front-end practice because of its architecture and page-loading model, and the boilerplate keeps evolving past model training cutoffs, so check here rather than relying on memory. For new blocks or changes to the authored structure, start with content-driven-development.
Как установить скилл building-blocks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл building-blocks запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic