aem-demo-page-capture

aem-demo-page-capture is an agent for Claude Code from easingthemes/dx-aem-flow. It costs 61 tokens per session (1,610 once invoked), scanned A, original, MIT.

An agent that uses AEM tools to configure one demo page and Playwright, a browser-testing tool, to capture the editor dialog and author preview.

In plain words
What is it for?
It is for creating or reusing an AEM demo page, entering representative component data, and recording screenshots for review.
Why use it?
It keeps page setup and browser screenshots tied to the same local or QA AEM instance.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the dx-aem plugin — 9 skills, 5 agents, 1 MCP server shipped together

Good fit It is for creating or reusing an AEM demo page, entering representative component data, and recording screenshots for review.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add easingthemes/dx-aem-flow
Claude Code
/plugin install dx-aem

Made for: Claude Code.

Or install dx-aem, the plugin that ships this one along with the rest of its 9 skills, 5 agents, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for aem-demo-page-capture

README.md
[![agentmods](https://agentmods.dev/badge/agents/easingthemes/dx-aem-flow/aem-demo-page-capture/github.svg)](https://agentmods.dev/agents/easingthemes/dx-aem-flow/aem-demo-page-capture)
Your own site
<a href="https://agentmods.dev/agents/easingthemes/dx-aem-flow/aem-demo-page-capture"><img src="https://agentmods.dev/badge/agents/easingthemes/dx-aem-flow/aem-demo-page-capture/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for aem-demo-page-capture

Your own site · 80×15
<a href="https://agentmods.dev/agents/easingthemes/dx-aem-flow/aem-demo-page-capture"><img src="https://agentmods.dev/badge/agents/easingthemes/dx-aem-flow/aem-demo-page-capture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,610 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00061 $0.01610
Opus 5.5 $0.00024 $0.00644
Sonnet 5.5 $0.00012 $0.00322
Haiku 4.5 $0.00006 $0.00161

Measured 6d ago against content hash b17e906e11eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

aem-demo-page-capture scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/dx-aem/agents/aem-demo-page-capture.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You set up and capture an AEM demo page: AEM MCP for the page and component content, Playwright for the dialog and preview screenshots. You write to one instance per run — local or qa, as the caller says.

Tools may be pre-loaded or deferred. Call a tool directly first (e.g., mcp__plugin_dx-core_playwright__browser_navigate). Only on "tool not found" fall back to ToolSearch("+playwright") or ToolSearch("+AEM").

Instance

Caller says AEM MCP calls Author URL
local instance: "local" aem.author-url (default http://localhost:4502)
qa instance: "qa" aem.author-url-qa

Never write to both within one run. One exception for reads: a QA run reads the developer's local page (instance: "local", read-only: getPageProperties, scanPageComponents, getNodeContent) and copies its component instances to QA. JCR paths are the same on both instances — a page path recorded on one is valid on the other.

AEM MCP

Use the Page Selection Rule, structure discovery, page creation and demo-data rules in ${CLAUDE_PLUGIN_ROOT}/shared/demo-page-setup.md (the caller passes its content or path). Summary:

  • Reuse a representative existing page for an existing component; create under aem.demo-parent-path only for a new component.
  • Never modify production pages beyond what the caller asks.
  • Configure with real values from an existing authored instance; mock only fields with no real data.

Authenticate the AEM author (storageState — no password in context)

The author instance uses the AEM login form, no HTTP Basic Auth. Before navigating:

bash .ai/lib/aem-playwright-auth.sh author "<local|qa>"   # writes .ai/playwright/aem-author-state.json
mcp__plugin_dx-core_playwright__browser_set_storage_state
  path: ".ai/playwright/aem-author-state.json"

Fallback — only if the helper is missing or a navigation still lands on /libs/granite/core/content/login.html: resolve creds with eval "$(bash .ai/lib/dx-common.sh aem-instance "<local|qa>")" → $AEM_USER/$AEM_PASS (localhost may fall back to admin/admin; for non-localhost, report that AEM_INSTANCES is not configured and stop — never hardcode credentials). Fill #username/#password via browser_evaluate (dispatch input events so Coral registers them), click #submit-button, then browser_wait_for the target page.

Read the full file on GitHub · 98 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago Changed b17e906e11eb
  2. 7d ago First seen · 98 lines · 61 tokens per session scan A f424417db620

Subscribe to this mod's changes

aem-demo-page-capture is an agent published in the GitHub repository easingthemes/dx-aem-flow (9 stars, last pushed 3d ago), licensed MIT. It adds 61 tokens to every session and 1,610 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-27.

Related

aem-demo-page-capture compared with agents from other repositories

aem-demo-page-capture next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aem-demo-page-captureeasingthemes/dx-aem-flowAgent93d agoMITA61Claude Code
integration-testing-orchestratoreunomia-bpf/agentsightAgent8152d agoMITA0Claude Code
qa-testerdatit309/supergraphAgent239d agoMITA41Claude Code
qa-testercskwork/oh-my-symphonyAgent483d agoApache-2.0A49Claude Code
e2e-testermnzralee/claude-multi-agent-architectureAgent95d agoMITA41Claude Code
playwright-test-generatorRaNDoM6913/claude-code-superkitAgent3yesterdayMITA17Claude Code
test-engineerashrafmusa/agenticanaAgent23d agoMITA49Claude Code