Skip to content
AI & Agents
Skill

/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

From plugin
skills
328179 skills5 MCP

Claude Code

$ npx -y skills add adobe/skills --skill building-blocks --agent claude-code

SKILL.md

building-blocks.SKILL.md
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**.

Read more
@adobe
Ships withskills

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).

328179 skills5 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
328
Star history of adobe/skills on GitHub, a chart by star-history.com

Other skills on skills.

aa-conversion-funnel-analysis

aa-conversion-funnel-a…

Analyzes a multi-step conversion funnel to find where visitors drop off and which steps have the worst leakage. Use this skill…

@adobe@adobeInstall Skill
aa-executive-briefing

aa-executive-briefing

Generates a concise, executive-ready performance summary covering key metrics, trends, and what's driving movement. Use this…

@adobe@adobeInstall Skill
aa-kpi-pulse

aa-kpi-pulse

Produces a compact KPI digest showing how key metrics changed over a period and what's driving the movement. Use this skill when…

@adobe@adobeInstall Skill
aa-top-movers-watchlist

aa-top-movers-watchlis…

Identifies which items (pages, campaigns, products, channels, regions) had the biggest increases or decreases for a key metric…

@adobe@adobeInstall Skill
cja-dimension-analysis

cja-dimension-analysis

Comprehensive dimension analysis and reporting for CJA. Use this skill whenever the user wants to analyze one or more dimensions…

@adobe@adobeInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw2w393k
@openclaw@openclawInstall Skill

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.