What problem does it solve?
This Skill helps developers quickly locate existing content pages that contain a specific content block within AEM Edge Delivery projects, enabling efficient test content identification during the Content Driven Development workflow.
Core Features & Use Cases
- Block discovery: scans the site's indexed pages to detect the presence of a target block by its CSS class.
- Variant reporting: aggregates per-page block variant classes to reveal different block configurations across pages.
- Use Case: during block iterations, identify pages that exercise variants (e.g., hero with dark or light themes) to validate test coverage.
Quick Start
Run:
node .claude/skills/find-test-content/scripts/find-block-content.js <block-name> [host]
Replace <block-name> with the desired block name and provide an optional host for live environments, e.g.:
node .claude/skills/find-test-content/scripts/find-block-content.js hero main--mysite--owner.aem.live