/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
Claude Code
$ npx -y skills add adobe/skills --skill building-blocks --agent claude-code
Codex
$ npx skills add adobe/skills --skill building-blocks -a codex -y
Cursor
$ npx skills add adobe/skills --skill building-blocks -a cursor -y
Gemini CLI
$ npx skills add adobe/skills --skill building-blocks -a gemini-cli -y
GitHub Copilot
$ npx skills add adobe/skills --skill building-blocks -a github-copilot -y
OpenCode
$ npx skills add adobe/skills --skill building-blocks -a opencode -y
Windsurf
$ npx skills add adobe/skills --skill building-blocks -a windsurf -y
SKILL.md
building-blocks.SKILL.mdname: building-blocks
description: "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."
license: Apache-2.0
metadata:
version: "2.0.3"
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), not `100vw` or `calc(50% - 50vw)`. Don't reuse those class names inside the block.
- **Custom properties:** use the ones declared on `:root` in `styles/styles.css`. Sites embedded with aem-embed load styles into a shadow root, so declare them on `:root, :host` there.
Site code
- **Late-loading code:** code that can wait goes in `loadDelayed()` in `scripts.js`. Analytics and martech go in `consented.js`, which `consent-check.js` loads only after consent. Older projects may have `delayed.js` instead; follow what the project has.
When the code works, test it with **testing-blocks**.
Read more
name: building-blocks description: "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." license: Apache-2.0 metadata: version: "2.0.3"
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), not `100vw` or `calc(50% - 50vw)`. Don't reuse those class names inside the block.
- **Custom properties:** use the ones declared on `:root` in `styles/styles.css`. Sites embedded with aem-embed load styles into a shadow root, so declare them on `:root, :host` there.
Site code
- **Late-loading code:** code that can wait goes in `loadDelayed()` in `scripts.js`. Analytics and martech go in `consented.js`, which `consent-check.js` loads only after consent. Older projects may have `delayed.js` instead; follow what the project has.
When the code works, test it with **testing-blocks**.
Skills that teach AI coding agents to work with Adobe products. A skill is a folder with a SKILL.md that an agent loads when a task calls for it (agentskills.io).
Other skills on skills.
More skills from other plugins.
karpathy-guidelines
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
agent-builder
Design and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI…
Questions about building-blocks.
- Which coding agents can use building-blocks?
- building-blocks installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

