Building Blocks
CommunityCraft AEM blocks, code with confidence. AI guides your build.
Software Engineering#code quality#CSS#JavaScript#content models#front-end development#AEM#block development
Authorshsteimer
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Developing AEM Edge Delivery blocks requires adherence to specific patterns for JavaScript decoration, CSS styling, and content model integration. This skill provides a structured guide, ensuring developers build high-quality, performant, and maintainable blocks that align with platform best practices.
Core Features & Use Cases
- Structured Development Workflow: Guides through the entire block development process, from understanding content models and finding similar blocks to implementing JS decoration, CSS styling, and comprehensive testing.
- Code Quality & Best Practices: Enforces guidelines for JavaScript (DOM manipulation, performance) and CSS (scoping, responsiveness, custom properties) to ensure robust and maintainable code.
- Integrated Testing & Documentation: Automatically invokes the
testing-blocksskill for validation and provides guidance on creating both developer and author-facing documentation. - Use Case: When creating a new "carousel" block, this skill walks you through setting up the block's files, writing efficient JavaScript to transform authored content into an interactive carousel, applying scoped CSS for responsive design, and ensuring all code meets quality standards before deployment.
Quick Start
Example: Basic JavaScript decoration for a new block
blocks/my-block/my-block.js
/**
- decorate the block
- @param {Element} block the block */ export default async function decorate(block) { const wrapper = document.createElement('div'); wrapper.className = 'my-block-content'; wrapper.append(...block.children); # Move existing content into wrapper block.append(wrapper); }
Example: Basic CSS styling for a new block
blocks/my-block/my-block.css
main .my-block { padding: 1rem; background-color: var(--background-color); }
main .my-block .my-block-content { display: flex; gap: 1rem; }
Dependency Matrix
Required Modules
None requiredComponents
resources
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Building Blocks Download link: https://github.com/shsteimer/shsteimer-com/archive/main.zip#building-blocks Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.