/eds-content-ops:query-index-optimizerfrom eds-content-ops
Audit and optimize the AEM Edge Delivery Services query index configuration. Analyzes indexed properties against actual usage, identifies missing or stale pages, checks index size and pagination, and generates recommendations for helix-query.yaml changes. Use when the query index feels bloated, pages are missing from block-driven lists, or you need to verify index health before launch.
Ships in eds-content-ops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Audit the AEM Edge Delivery Services query index configuration (helix-query.yaml), analyze which properties are actually consumed by downstream blocks and components, identify missing or stale entries, and generate actionable recommendations to improve index health and performance.
This skill fetches external web pages, JSON endpoints, and YAML configuration files for analysis. When fetching:
The query index is the primary mechanism for blocks and components to discover and list content in an EDS site. It is configured via a helix-query.yaml file in the GitHub repository and served as JSON at /query-index.json.
query-index.json to build dynamic lists: navigation, footer, card lists, search results, recent posts, tag-filtered collections.| Property | Source | Typical Consumers |
|---|---|---|
path | automatic | All consumers |
title | metadata | Nav, cards, search |
description | metadata | Cards, search |
image | metadata | Cards, hero blocks |
lastModified | automatic | Freshness sorting |
template | metadata | Filtered collections |
tags | metadata | Tag-filtered blocks |
author | metadata | Blog cards |
helix-query.yaml and the EDS index architecture).Before starting, create a checklist of all steps to track progress:
Fetch the site's query index:
https://<branch>--<repo>--<owner>.aem.live/query-index.json?limit=1000
If the user provides a production URL, derive the AEM URL or ask for the owner, repo, and branch values.
Once fetched, analyze the response:
If the response contains exactly the limit number of entries, warn the user that more pages likely exist beyond the limit.
Ask the user for their GitHub repository details if not already known. Attempt to fetch the configuration:
https://raw.githubusercontent.com/<owner>/<repo>/<branch>/helix-query.yaml
If the file exists, parse it and document:
all, blog, products).select expressions, and their value expressions.value expressions to transform or compute values.If the file cannot be fetched (private repo or not found), proceed with analysis based solely on the live query index output and note the limitation.
Identify which blocks and components actually consume query index properties. Check these common consumer patterns:
path and title. Fetch /nav.plain.html to see if it references index data./footer.plain.html. Footers rarely use the query index but some dynamic footers do.path, title, description, image, and sometimes author, date, or tags.title, description, and possibly path and tags.template, tags, or category rely on those properties being indexed.For each property in the index, classify it:
| Property | Used By | Confidence | Recommendation |
|---|---|---|---|
| title | cards, nav, search | High | Keep |
| description | cards, search | High | Keep |
| author | blog cards | Medium | Keep if blog exists |
| customProp | Unknown | Low | Investigate — may be removable |
Compare the query index against the site's sitemap to find pages that should be indexed but are not.
https://<branch>--<repo>--<owner>.aem.live/sitemap.xml.<url><loc> entries and extract the paths.Common reasons for missing pages:
helix-query.yaml was configured.For each page in the query index, verify it still exists by checking for HTTP 200:
https://<branch>--<repo>--<owner>.aem.live<path>
If the site has many pages (over 100), check a representative sample — the oldest entries by lastModified are most likely to be stale.
Flag entries that return:
Evaluate whether the index is appropriately sized:
?offset=<n>&limit=<n> to page through results, or the site should split into multiple named indices via helix-query.yaml.blog, products, events) with path filters so each consumer fetches only what it needs.Produce a prioritized list of recommendations:
List properties with low fill rates or no identified consumers. For each, explain the impact of removal.
List properties that downstream consumers need but are not currently indexed. Provide the helix-query.yaml configuration snippet to add them.
List pages that are missing from the index or that return 404. Provide the action needed for each.
Provide the recommended helix-query.yaml changes as a YAML code block the user can paste directly into their repository. Show only the diff — what to add, change, or remove.
For larger sites, recommend whether to use a single index or multiple named indices, and provide the configuration for each.
| Problem | Cause | Solution |
|---|---|---|
| Query index returns 404 | No helix-query.yaml in the repo | Create a helix-query.yaml with the desired property configuration |
| Pages missing from index | Pages not previewed/published after index was configured | Open each missing page with Sidekick and click Preview, then Publish |
| Stale entries persist after deletion | Index caches entries until the path is re-published | Preview and publish a blank document at the old path, or wait for cache expiry |
| Properties appear empty in index | The select or value expression in helix-query.yaml does not match the metadata key | Verify the property name in the metadata table matches the YAML configuration exactly (case-sensitive) |
| Index returns fewer pages than expected | Default limit of 500 is too low | Add ?limit=1000 or implement pagination in consuming blocks |
| Named index not found | Index name in URL does not match helix-query.yaml key | Verify the index name — access it at /query-index.json?sheet=<name> |
helix-query.yaml.helix-query.yaml must exactly match the metadata key in the source document.helix-query.yaml snippets so the user can implement recommendations immediately.What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (focus-gts/eds-content-ops-skills) — no native marketplace selected
npx claudepluginhub p/focus-gts-eds-content-ops42 skills in this plugin
/accessibility-fixScan an AEM Edge Delivery Services page for WCAG 2.1 AA accessibility violations and generate specific fixes. Identifies missing alt text, heading hierarchy issues, link text problems, color contrast concerns, and EDS-specific accessibility patterns. Use when fixing accessibility issues, preparing for compliance audits, or remediating WCAG violations./aem-to-eds-migrationAssess and plan a migration from traditional AEM Sites to AEM Edge Delivery Services. Analyzes the source AEM site to inventory components, templates, content types, and integrations, then maps them to EDS equivalents and produces a migration feasibility report with effort estimates, risk areas, and a phased plan./Other plugins' skills for the same job