xiaohongshu
xiaohongshu
Guide for creating new AEM Edge Delivery blocks or modifying existing blocks. Use this skill whenever you are creating a new block from scratch or making significant changes to existing blocks that involve JavaScript decoration, CSS styling, or content model changes.
Full skill instructions
This skill guides you through creating new AEM Edge Delivery blocks or modifying existing ones, following Content Driven Development (CDD) principles. Blocks are the reusable building blocks of AEM sites - each transforms authored content into rich, interactive experiences through JavaScript decoration and CSS styling. This skill covers the complete development process: understanding content models, implementing decoration logic, applying styles, and maintaining code quality standards.
This skill should ONLY be invoked from the content-driven-development skill during Phase 2 (Implementation).
If you are not already following the CDD process:
This skill handles:
REQUIRED before using this skill:
Information needed:
Before proceeding, confirm with the user:
"Do you have:
If not, we need to use the content-driven-development skill first."
If prerequisites are not met, STOP and invoke the content-driven-development skill.
If prerequisites are met, get the test content URL from the user and proceed to step 2.
For new blocks or major modifications:
Review the implementation patterns in similar blocks to inform your approach.
For minor modifications to existing blocks: Skip to step 3.
For new blocks:
blocks/{block-name}/{block-name}.js and {block-name}.cssresources/ if helpful):
decorate(block) function (can be async if needed).{block-name} classFor existing blocks:
blocks/{block-name}/Follow patterns and conventions in resources/js-guidelines.md:
Read resources/js-guidelines.md for detailed examples, code standards, and best practices.
Follow patterns and conventions in resources/css-guidelines.md:
.{block-name})Read resources/css-guidelines.md for detailed examples, code standards, and best practices.
After implementation is complete, invoke the testing-blocks skill:
The testing-blocks skill will guide you through:
Provide the testing-blocks skill with:
Return to this skill after testing is complete to proceed to step 7.
Blocks require two types of documentation:
Author-facing documentation helps content authors understand how to use the block in the CMS. This documentation typically exists as draft/library content in the CMS itself, not in the codebase.
When author documentation is needed:
Almost all blocks should have author-facing documentation. The only exceptions are:
Maintaining author documentation:
Author documentation must be kept in sync with the block implementation:
Where author documentation lives:
Different projects use different approaches for author documentation:
Sidekick Library (Google Drive/SharePoint authoring):
/tools/sidekick/library.html in the codebaseDocument Authoring (DA) Library:
Universal Editor (UE) projects:
Simple documentation pages:
/drafts or /docsWhat to include in author documentation:
The specific content of author documentation varies by project. As an agent:
/tools/sidekick/library.html as a signal)resources/js-guidelines.mdresources/css-guidelines.mdxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience