/eds-content-ops:block-scaffolderfrom eds-content-ops
Generate a new AEM Edge Delivery Services block from a natural-language description. Produces the JavaScript file with a decorate() function, a scoped CSS file, example document markup, and a test page. Use when starting a new block, prototyping a custom component, or onboarding developers to EDS block conventions.
Ships in eds-content-ops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Take a plain-language description of a desired AEM Edge Delivery Services block, apply EDS naming conventions and structural patterns, and produce a complete, production-ready block scaffold including JavaScript, CSS, example document markup, and a test page. Ensures every generated block follows the EDS content model and can be authored in Google Docs, Microsoft Word, or da.live.
This skill fetches external web pages for analysis. When fetching:
cards (highlight)) from an existing block description.block-testing instead).block-migration instead).block-accessibility instead).block-testing — test and validate the block after scaffolding it.block-migration — port the scaffolded block to another EDS project.block-accessibility — audit the block's generated DOM for accessibility compliance.content-audit — verify the block works correctly in context on a published page.In AEM Edge Delivery Services, a block is a reusable content component authored as a table in Google Docs, Microsoft Word, or da.live. The first row of the table contains the block name (e.g., "Cards" or "Hero"). Subsequent rows contain the block's content — text, images, links — one logical item per row. When the page is delivered, the EDS pipeline transforms each table into a <div> with a class matching the block name, and each row becomes a child <div>.
Every block lives in the /blocks/ directory of the EDS project. A block named my-block has exactly two files: blocks/my-block/my-block.js and blocks/my-block/my-block.css. The JS file exports a single decorate(block) function that receives the block's root <div> element after the table-to-DOM transformation. The CSS file contains styles scoped to .my-block to avoid leaking into other blocks or default content.
A block can have variants specified in the table header: "Cards (highlight)" produces a <div class="cards highlight">. Variants allow a single block to support multiple visual treatments without separate JS/CSS files. The decorate() function can check block.classList.contains('highlight') to branch behavior.
EDS supports auto-blocking, where certain URL patterns are automatically wrapped in blocks. For example, a YouTube link can be auto-blocked into a youtube embed block. This is configured in scripts.js via the buildAutoBlocks() function. Not all blocks need auto-blocking, but the scaffolder should note when it would be appropriate.
Adobe maintains a reference collection of standard blocks at https://www.aem.live/developer/block-collection. This includes cards, columns, hero, accordion, tabs, carousel, and more. Before creating a custom block, check whether a standard block already covers the need.
Before starting, create a todo list to track progress through these steps:
Gather and clarify the block requirements from the user's description:
https://www.aem.live/developer/block-collection. If a standard block covers the use case, recommend it and explain how to customize with variants or CSS overrides rather than building from scratch.cards, cards (highlight), cards (compact)).If any of these are ambiguous, ask the user before proceeding.
Apply EDS naming conventions:
feature-cards, pricing-table, team-roster. Bad: myBlock, Component1, featured_cards.blocks/{block-name}/{block-name}.js and blocks/{block-name}/{block-name}.css.<div> inside the row <div>.highlight adds a colored background; compact reduces padding and font size.State the chosen block name, file paths, structure type (simple/compound), and any variants before generating code.
Create blocks/{block-name}/{block-name}.js with the following structure:
/**
* {Block Name} Block
* {One-line description of what the block does}
*/
export default function decorate(block) {
// Block decoration logic here
}
Follow these rules strictly:
decorate function that receives the block element. This is the only required export.createOptimizedPicture from ../../scripts/aem.js for responsive images, and loadCSS for lazy-loaded stylesheets.<div> children from the table transformation. Restructure them as needed, but avoid destroying and rebuilding the entire subtree — that causes flash of unstyled content.role="region", aria-expanded, and aria-controls. Tabs need role="tablist", role="tab", role="tabpanel". Carousels need aria-live="polite" and aria-roledescription.null or empty children: const heading = row.querySelector('h2, h3, h4'); if (heading) { ... }.createOptimizedPicture. Replace authored <img> tags with responsive <picture> elements: const pic = createOptimizedPicture(img.src, img.alt, isLCP, [{ width: '750' }]);requestAnimationFrame for DOM batch writes when manipulating multiple elements to avoid layout thrashing.Generate the complete JS file with inline comments explaining each section.
Create blocks/{block-name}/{block-name}.css with scoped styles:
.{block-name}. Never use bare element selectors — .cards p not p.styles/styles.css for colors, fonts, and spacing. Reference common variables: var(--color-primary), var(--font-family-heading), var(--spacing-m). If the block needs unique custom properties, define them on the .{block-name} selector.@media (min-width: 900px) — this is the standard EDS desktop breakpoint. Design mobile-first: base styles are mobile, the media query adds desktop layout.:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }.Generate the complete CSS file with comments grouping sections (layout, typography, interactive states, responsive).
Create the authoring table as it would appear in Google Docs or Word. Present it as a markdown table (the user can translate this to their authoring tool):
| Cards (highlight) |<div> in the rendered DOM so the developer understands the relationship between the authoring table and the block element they receive in decorate().Example format for a compound block:
| Cards (highlight) | |
|--------------------|---------------------|
| /images/card1.jpg | **Card Title One** |
| | Short description. |
| | [Learn More](/page) |
| /images/card2.jpg | **Card Title Two** |
| | Another description.|
| | [Read More](/other) |
This renders as:
<div class="cards highlight">
<div>
<div><picture>...</picture></div>
<div><strong>Card Title One</strong><p>Short description.</p><a href="/page">Learn More</a></div>
</div>
<div>
<div><picture>...</picture></div>
<div><strong>Card Title Two</strong><p>Another description.</p><a href="/other">Read More</a></div>
</div>
</div>
For simple blocks with a single column, each row becomes a single child <div> with a single <div> inside it.
Create a minimal EDS-compatible test page at tests/blocks/{block-name}.html or describe how to create a test document in Google Docs:
<picture> elements.Generate a final checklist the developer should verify before merging the block:
| Check | Status | Notes |
|---|---|---|
| Block name is lowercase, hyphenated | ||
JS exports a default decorate(block) function | ||
CSS is fully scoped to .{block-name} | ||
| No bare element selectors in CSS | ||
| Mobile breakpoint at 900px included | ||
| Null checks on all optional content fields | ||
| ARIA attributes on interactive elements | ||
createOptimizedPicture used for images | ||
| Focus-visible styles for interactive elements | ||
| No third-party dependencies introduced | ||
| CSS custom properties used (no hardcoded colors) | ||
| Block works with 0, 1, and many content items | ||
Block renders correctly in .plain.html test | ||
| Lighthouse accessibility score 100 |
| Symptom | Cause | Fix |
|---|---|---|
| Block does not render — shows raw table | Block name in the table does not match the directory name | Ensure the table header exactly matches the directory name (case-insensitive, but lowercase is convention) |
| CSS styles leak outside the block | Bare element selectors used in CSS | Scope every rule under .{block-name} |
| Block JS not loaded | File is not at blocks/{name}/{name}.js | Verify the file path and name match exactly |
| Images not responsive | Raw <img> tags used instead of createOptimizedPicture | Use createOptimizedPicture for all content images |
| Block breaks on empty cells | Missing null checks in decorate() | Add guards: if (el) { ... } or optional chaining el?.textContent |
aem.live/developer/block-collection first.decorate() function must handle all of this gracefully.What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (focus-gts/eds-content-ops-skills) — no native marketplace selected
npx claudepluginhub p/focus-gts-eds-content-ops42 skills in this plugin
/accessibility-fixScan an AEM Edge Delivery Services page for WCAG 2.1 AA accessibility violations and generate specific fixes. Identifies missing alt text, heading hierarchy issues, link text problems, color contrast concerns, and EDS-specific accessibility patterns. Use when fixing accessibility issues, preparing for compliance audits, or remediating WCAG violations./aem-to-eds-migrationAssess and plan a migration from traditional AEM Sites to AEM Edge Delivery Services. Analyzes the source AEM site to inventory components, templates, content types, and integrations, then maps them to EDS equivalents and produces a migration feasibility report with effort estimates, risk areas, and a phased plan./Other plugins' skills for the same job