find-test-content

Identify pages containing a specified content block and report URLs with variant details.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill identifies pages that contain a specific content block and reports the URLs along with any block variants, helping you locate suitable test content during development.

Core Features & Use Cases

  • Query the site's index to gather all pages.
  • Inspect each page to detect the targeted block by its CSS class.
  • Compile a report of all pages containing the block with variant details for testing diversity.

Quick Start

Run the find-block-content script with a block name to locate pages containing that block and report their 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 AEM block?

You can find test content by querying the site's query-index.json to gather all pages, fetching each page, and detecting the targeted block via its CSS class name to report matching URLs and their variants.

How do I locate block variants for testing across my site?

Locate block variants by scanning the query-index and inspecting each page for occurrences of the block's CSS class. The tool compiles a report of all matching URLs with their specific variant details for testing diversity.

Do I need access to query-index.json to scan pages for content blocks?

Yes, you need access to the site's query-index.json to gather the full list of page URLs. The tool fetches each page from this index and uses the jsdom dependency to detect block presence via CSS class names.

Can I detect block variants by CSS class names in development workflows?

Yes, you can detect block variants by CSS class names during development workflows. The script fetches pages from the query-index and inspects the DOM to identify specific blocks and report their variant details.

What is the best way to discover test content when modifying blocks?

The best way to discover test content when modifying blocks is to run a script that scans the query-index, fetches pages, and reports all URLs containing the block along with their variants to ensure comprehensive testing coverage.