Building Blocks

Automate creation and modification of AEM Edge Delivery blocks with JavaScript, CSS, tests, and documentation.

Updated Nov 9, 2025
One-click install
npx skills add https://github.com/treeves/opsinventor-eds --skill building-blocks-treeves
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Building Blocks
Source: https://github.com/treeves/opsinventor-eds/tree/main/.ai-skills/skills/building-blocks
Command: npx skills add https://github.com/treeves/opsinventor-eds --skill building-blocks-treeves

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured, best-practice-driven approach to creating or modifying AEM Edge Delivery blocks, ensuring consistency, quality, and adherence to content-first principles. It streamlines the development process, reducing errors and accelerating delivery.

Core Features & Use Cases

  • Guided Block Development: Guides you through every step, from creating the block's file structure to implementing JavaScript decoration and applying scoped CSS styling.
  • Code Quality & Testing Integration: Automatically invokes the testing-blocks skill for comprehensive validation, ensuring your block is robust and bug-free before deployment.
  • Use Case: When tasked with building a new "Accordion" block, this Skill guides you through implementing its decoration logic and styling, ensuring it's robust, testable, and adheres to project standards, saving you development time and effort.

Quick Start

Start building a new "Carousel" block, using the provided content model and test content URL, and follow the JavaScript and CSS guidelines.

Frequently Asked Questions about Building Blocks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create AEM Edge Delivery blocks with JavaScript decoration and CSS styling?

Creating AEM Edge Delivery blocks involves building block file structures, implementing JavaScript decoration logic, and applying scoped CSS styling following content-first principles. This Skill automates the entire process from structure creation through testing and documentation, ensuring blocks are production-ready and adhere to project standards.

What do I need before I start building an AEM block?

Before building, you need test content, a defined content model, and a test content URL. These prerequisites ensure your block development is grounded in real data and can be validated immediately. The Skill guides you through block creation once these inputs are in place.

How do I ensure my AEM blocks are tested and documented?

This Skill automatically integrates the testing-blocks capability to validate your block comprehensively before deployment. It generates both developer-facing and author-facing documentation alongside the block package, eliminating manual documentation work and ensuring quality gates are met.

Can I use this Skill to modify existing AEM blocks?

Yes, this Skill handles major modifications to existing blocks, including JavaScript decoration changes, CSS styling updates, and content model revisions. It applies the same structured, best-practice approach used for new block development to ensure consistency across modifications.

What's included in the block package the Skill outputs?

The Skill outputs a complete block package containing JavaScript decoration logic, scoped CSS, automated tests, developer documentation, and author-facing documentation. Everything is ready for deployment without additional manual work.

Does this Skill follow AEM Edge Delivery best practices?

Yes, the Skill is built around structured, best-practice-driven development for AEM Edge Delivery blocks. It ensures consistency, adherence to content-first principles, and reduces errors throughout the development lifecycle, from initial structure to final deployment.