find-test-content

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

Updated Apr 8, 2026
One-click install
npx skills add https://github.com/thojava/baco --skill find-test-content-thojava
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: find-test-content
Source: https://github.com/thojava/baco/tree/main/.skills/find-test-content
Command: npx skills add https://github.com/thojava/baco --skill find-test-content-thojava

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill locates pages that contain a specific content block in AEM Edge Delivery projects and returns URLs with instance counts and detected variants to support test content discovery during development.

Core Features & Use Cases

  • Query the site's index to enumerate pages, then inspect each page for the target block.
  • Detect and report all block variants found on a page to surface testing opportunities across different visual states.
  • Generate a concise list of testable URLs to drive CDD (Content Driven Development) workflows.

Quick Start

Provide the block name and optional host, then run the script to obtain a report of matching pages and variants.

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 block in AEM Edge Delivery projects?

You can find test content pages by querying the site index, downloading page HTML, and parsing the DOM to locate specific block classes. The script reports matching URLs alongside detected block instances and their variants.

What is the best way to discover block variants for testing across AEM sites?

Discovering block variants involves scanning page HTML to extract all variant classes from target blocks. This surfaces diverse visual states across matching URLs, supporting content-driven development workflows by identifying testable page instances.

Can I configure host, pagination, and concurrency when searching for test content?

Yes, you can configure host, pagination, and concurrency parameters when searching for test content. These options control how the script fetches the query index and downloads page HTML, allowing you to manage crawl scope and performance during test content discovery.

Does this script rely on jsdom to parse HTML and extract AEM block variants?

Yes, the script relies on jsdom to parse downloaded page HTML and extract AEM block variants. It locates block classes within the DOM structure to accurately identify block instances and their specific variant names across queried pages.

Why does test content discovery require downloading and parsing the full page HTML?

Test content discovery requires downloading and parsing full page HTML because block variants are rendered as CSS classes in the DOM. Querying the index alone only lists page URLs, so fetching HTML is necessary to locate block instances and extract variant details.