find-test-content

Find pages containing a specific content block in AEM Edge Delivery projects.

162|67|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/adobe/skills --skill find-test-content
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: find-test-content
Source: https://github.com/adobe/skills/tree/main/skills/aem/edge-delivery-services/skills/find-test-content
Command: npx skills add https://github.com/adobe/skills --skill find-test-content

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jsdom, and includes scripts (resource) components.

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

Frequently Asked Questions about find-test-content

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

FAQPage Schema
How do I find pages containing a specific content block in AEM Edge Delivery?

Locating block variants in AEM involves fetching indexed pages and parsing their HTML with a DOM to aggregate per-page block variant classes. This reveals different block configurations, such as hero themes, across the site to validate test coverage.

Can I search for test content blocks on live AEM sites?

Yes, you can search for test content blocks on live AEM sites by providing an optional host parameter to the script. This allows you to target live or preview environments, such as main--mysite--owner.aem.live, instead of just local development.

Does finding test content blocks require jsdom?

Yes, finding test content blocks requires jsdom as a dependency. The script uses jsdom to parse the fetched HTML pages and accurately detect elements by the block's CSS class, collecting variant classes per occurrence.

What is the best way to identify test content during Content Driven Development?

The best way to identify test content during Content Driven Development is to scan the site's indexed pages and detect the presence of a target block by its CSS class. This approach quickly reports URLs and per-page block variants across local and live environments.

How do I get a list of URLs using a specific block variant?

To get a list of URLs using a specific block variant, run the find-block-content.js script with the block name and optional host. It queries the query-index.json, fetches pages, and aggregates per-page block variant classes for the target block.