find-test-content

Query /query-index.json to find pages containing a specific block and report variant counts.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/adobe-summit2026-l613/las-vegas-events --skill find-test-content-adobe-summit2026-l613
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: find-test-content
Source: https://github.com/adobe-summit2026-l613/las-vegas-events/tree/main/.skills/find-test-content
Command: npx skills add https://github.com/adobe-summit2026-l613/las-vegas-events --skill find-test-content-adobe-summit2026-l613

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps developers quickly locate existing pages that contain a specific block, enabling efficient testing and validation during Content Driven Development workflows.

Core Features & Use Cases

  • Query the site's index to enumerate pages.
  • Inspect each page for the specified block by looking for block-related CSS classes and extract variant information.
  • Report URLs with variant counts to identify diverse test contexts.
  • Works on local development servers and live/preview hosts for flexible testing.

Quick Start

Run the find-block-content script against a target block name to locate pages containing that block.

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 AEM block for content validation?

To find pages containing a specific AEM block, query the /query-index.json endpoint and inspect each page for block-related CSS classes to surface matching URLs and variant counts. This enables efficient test-driven content validation by locating diverse test contexts.

What is the best way to locate test content blocks across local dev environments?

The best way to locate test content blocks across local dev environments is to run a script that queries the site index and performs headless HTML parsing. It identifies block-related classes and reports variant counts to support testing workflows.

Can I use query-index to extract block variant data from live preview hosts?

Yes, you can use query-index to extract block variant data from live preview hosts. The skill operates on both local development servers and live previews by fetching and parsing HTML to identify block-related classes and variant information.

Do I need jsdom to inspect pages for block-related CSS classes?

Yes, jsdom is required to inspect pages for block-related CSS classes. The skill relies on jsdom as a dependency for headless fetch and parsing of HTML to extract variant data and report matching page URLs.

Why does querying test content across pages require a resilient concurrency model?

Querying test content across pages requires a resilient concurrency model to handle headless fetch operations efficiently when inspecting numerous pages for block-related classes. This ensures reliable extraction of variant data without failing during bulk page processing.