AEM Verification & QA

Component snapshots, dialog verification, automated QA with browser automation, and demo capture.

Skills

Core AEM Skills

From pre-development baseline to post-deployment QA, visual verification, and documentation.

/aem-snapshot

Before development — capture a baseline of dialog fields, JCR properties, and find pages using the component.

Pre-Dev aem-before.md

/aem-demo-page

Find or create the demo page, configure the component, and screenshot the dialog (only when it changed) and the author preview (wcmmode=disabled). —local while developing, with a dialog diff against the snapshot; QA by default after the merge, with a deploy gate and screenshots uploaded to the work item. On QA the local page is the source: its component variants are copied over.

Local + QA demo/demo-page.md

/aem-qa

Full QA — verify dialog fields (BE via AEM MCP) and page rendering (FE via Playwright). Creates bug tickets (ADO or Jira) if issues are found.

QA qa.json

/aem-fe-verify

Visual verification of frontend rendering on local AEM — screenshots the component, compares against Figma reference or requirements, and auto-fixes gaps in a loop (up to 3 iterations).

Visual Figma vs AEM
Flow

Verification Flow

The complete lifecycle from baseline to QA.

No orchestrator — run individually
Snapshot Baseline: fields, pages
/aem-snapshot
Developer implements Code changes
Demo page (local) Page, dialog diff, screenshots
/aem-demo-page --local
FE Verify AEM vs Figma visual
/aem-fe-verify
QA FE+BE verification
/aem-qa
After merge QA demo page → wiki → handoff
/dx-post-merge
Seed Data

AEM Project Knowledge

All AEM skills depend on a pre-built index of components, content paths, and architecture.

/aem-init

Run once per repo. Builds .ai/project/ with component-index, file-patterns, content-paths, and architecture docs.

/aem-refresh

Syncs seed data when project structure changes. Updates component index and file patterns.

/aem-component

Finds all source files for a named component: JS, SCSS, HTL, dialog XML, Sling Model, content paths.

/aem-page-search

Find all AEM pages that use a specific component. Returns page paths with clickable author URLs grouped by site and language.

/aem-doctor

Health check for AEM infrastructure — verifies component definitions, OSGi configs, dispatcher rules, content structure, and AEM instance connectivity.

Seed Data Files

All stored in .ai/project/: project.yaml, file-patterns.yaml, content-paths.yaml, component-index-project.md, architecture.md, features.md.

QA Agent

QA Agent Detail

Two verification tracks run in parallel: backend and frontend.

Backend Track

Dialog fields and JCR properties verified via AEM MCP.

  • Read dialog field definitions
  • Check JCR property values
  • Verify Sling Model mappings
  • Validate exporter output

Frontend Track

Page rendering, layout, and interactions verified via Playwright MCP.

  • Navigate to component page
  • Check rendered output
  • Test interactive behaviors
  • Screenshot for evidence

Automatic Bug Filing

When the QA agent finds discrepancies between expected and actual behavior, it creates bug tickets directly in ADO or Jira with repro steps and screenshots attached.

MCP Tools

AEM MCP Tools

Direct interaction with AEM via the Model Context Protocol.

ToolPurpose
getNodeContentRead JCR node properties and child nodes
scanPageComponentsList all components on a page with their resource types
getPageContentGet full page content tree
createPageCreate new pages for demo or testing
updateComponentModify component properties on a page
getTemplateStructureInspect template policies and allowed components
searchContentJCR query to find content across the repository
getPageImagesList all image references on a page
Documentation

AEM Documentation Generation

/dx-post-merge: demo page on QA, wiki page, QA handoff.

After the merge

Once the change is deployed to QA, /dx-post-merge <id> runs three skills in order: /aem-demo-page (same page on QA, dialog and preview screenshots uploaded to the work item), /dx-doc-gen (wiki page with QA URLs, field table, screenshots, how to test and a demo script), and /dx-qa-handoff (one [QAHandoff] comment linking everything). Each also runs on its own.

KAI by Dragan Filipovic