/aem-6-5-lts:ensure-agents-mdfrom aem-6-5-lts
Bootstraps AGENTS.md and CLAUDE.md for AEM 6.5 LTS (on-prem/AMS) Maven projects. Runs on every request until AGENTS.md exists, never overwrites existing files.
Ships in aem-6-5-lts. 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.
Before any other work — including dispatcher, create-component, code edits, MCP, or answers — the agent MUST:
AGENTS.md exists at the workspace (repository) root.AGENTS.md and CLAUDE.md if missing), then fulfill the user's original request.This applies to every user message and any intent (bugs, features, questions, dispatcher, etc.) until AGENTS.md is present. Do not defer bootstrap to "after" the main task.
It creates AGENTS.md and CLAUDE.md at the repository root so every AI coding agent (Claude Code, Cursor, etc.) gets project guidance, optionally tailored using the module catalog and add-on detection.
AGENTS.md at the workspace root. If it exists → skip, move on.pom.xml exists.com.adobe.aem:aem-sdk-api or packaging/parent clearly targets Cloud Service only — use the cloud-service ensure-agents-md skill instead, not this one.pom.xml references com.adobe.aem:uber-jar (any classifier), or cq-quickstart / product dependency coordinates for 6.5, or a property such as aem.version / cq.quickstart.version in the 6.5 line, and typical AEM module names appear in <modules> (core, ui.apps, dispatcher, etc.) when present.
If not an AEM project → skip.Check in order:
pom.xml → <name> element (preferred, usually human-readable).pom.xml → <artifactId>, then humanize: strip leading aem-, replace - with spaces,
title-case (e.g. aem-guides-wknd → WKND, my-site → My Site)."AEM 6.5 LTS Project".Read root pom.xml <modules> section. For each <module>, confirm the directory actually exists.
Build a list of present modules.
Scan the project for:
| Signal | Add-on / variant |
|---|---|
pom.xml depends on cif-connector or aem-core-cif-components | CIF (Commerce) |
ui.frontend/package.json contains react or @adobe/aem-react-editable-components | React SPA |
ui.frontend/package.json contains @angular/core or @adobe/aem-angular-editable-components | Angular SPA |
ui.frontend has no clientlib.config.js and pom.xml references frontend-maven-plugin but outputs no clientlibs | Decoupled frontend |
pom.xml depends on aem-forms-* or forms.core | AEM Forms |
Module ui.frontend.react.forms.af exists | Headless Forms |
pom.xml uses precompiled-scripts-provider | Precompiled Scripts |
If none of these are detected, treat as General Webpack frontend (the default archetype).
Read the template at references/AGENTS.md.template. Apply the following adaptations:
Replace {{PROJECT_NAME}} with the resolved project name.
If any add-ons were detected (CIF, Forms, Headless Forms, Precompiled Scripts), insert an "Add-ons and extensions" section after the intro paragraph. Use descriptions from the references/module-catalog.md add-ons table. If none detected, omit the section entirely.
Only include modules that actually exist in the project. For each module, use the matching description from the module catalog. Pay attention to:
ui.frontend — use the variant that matches the detected frontend type (General, React, Angular, Decoupled).dispatcher — only include if the dispatcher directory exists.it.tests / ui.tests — only include if they exist.npm run build, npm start) only if ui.frontend exists.dispatcher module exists. Use httpd -t -f <path-to-httpd.conf> or apachectl configtest — adjust the config path to match the project layout.npm start requires AEM running.Always include the base resources from the template. Additionally:
If CLAUDE.md does not exist at the workspace root, create it with exactly this content (so Claude/Cursor picks up project guidance):
@AGENTS.md
Do not overwrite an existing CLAUDE.md.
Briefly tell the user:
"I created
AGENTS.mdandCLAUDE.mdin your project root with guidance tailored to your project structure. These help AI coding agents understand your project."
Then continue with the user's original request.
| File | Purpose |
|---|---|
| references/AGENTS.md.template | Base template with {{PROJECT_NAME}} placeholder and all default sections |
| references/module-catalog.md | Module descriptions, add-on descriptions, conditional resources — the source of truth for adapting the template |
AGENTS.md or CLAUDE.md. Only create when missing.experienceleague.adobe.com/en/docs/experience-manager-65/..., shared HTL/Dispatcher/Learn paths where appropriate). Do not use AEM as a Cloud Service-only URLs as the primary reference for this skill.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub adobe/skills --plugin aem-6-5-lts5 skills in this plugin
/aem-replicationSingle entry point for all AEM 6.5 LTS Replication skills. Covers configuring replication agents,
activating/deactivating content, using the Replication API programmatically, and troubleshooting
distribution issues for Adobe Experience Manager 6.5 LTS. Use when the user asks about publishing,
unpublishing, replicating, or distributing content in AEM 6.5 LTS or AMS — including flushing the
dispatcher cache, fixing stuck or blocked replication queues, or configuring replication agents.
/aem-workflowSingle entry point for all AEM 6.5 LTS Workflow skills. Covers workflow model design,
custom process step and participant chooser development, launcher configuration, workflow triggering,
and production support including debugging stuck/failed workflows, triaging incidents with JMX,
Splunk, direct log access, thread pool analysis, and Sling Job diagnostics for the Granite Workflow Engine.
/dispatcherSingle entry point for all AEM 6.5 LTS Dispatcher skills. Covers config authoring,
technical advisory, incident response, performance tuning, security hardening, and full lifecycle
orchestration for the Adobe Dispatcher Apache HTTP Server module and its HTTPD/dispatcher configuration
in AEM 6.5 LTS and AMS environments.
/tuning-oak-query-indexesUse when a Jackrabbit Oak/AEM JCR query is slow, logs a traversal warning, or you're adding/changing a query and need to check or update its property/Lucene index definition so the query is answered by the index instead of in-memory filtering or sorting.Other plugins' skills for the same job