AEM Verification & QA
Component snapshots, dialog verification, automated QA with browser automation, and demo capture.
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.
/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.
/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.
/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).
Verification Flow
The complete lifecycle from baseline to QA.
/aem-snapshot /aem-demo-page --local /aem-fe-verify /aem-qa /dx-post-merge 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 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.
AEM MCP Tools
Direct interaction with AEM via the Model Context Protocol.
| Tool | Purpose |
|---|---|
getNodeContent | Read JCR node properties and child nodes |
scanPageComponents | List all components on a page with their resource types |
getPageContent | Get full page content tree |
createPage | Create new pages for demo or testing |
updateComponent | Modify component properties on a page |
getTemplateStructure | Inspect template policies and allowed components |
searchContent | JCR query to find content across the repository |
getPageImages | List all image references on a page |
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.