AI-Assisted Code Migration to AEM as a Cloud Service cloud-migration-skill-overview
The AEM Cloud Migration solution is an agent-based toolset that guides developers through migrating AEM 6.x, AMS, or on-premise Java code and OSGi configurations to AEM as a Cloud Service (AEMaaCS). It works inside any AI-enabled IDE that supports agent skills and the Model Context Protocol (MCP).
The following demo video provides a quick end-to-end walkthrough of the AEM Cloud Migration solution and is included for reference.
The solution consists of two components:
Prerequisites prerequisites
-
An AEM project (Maven or Gradle) open in your IDE
-
One of the following BPA finding sources (strongly recommended, not required for manual flows):
- A BPA CSV export from your AEM instance
- A Cloud Acceleration Manager project with an uploaded BPA report and the Cloud Migration MCP configured
The Migration Skill migration-skill
The migration skill is an agent skill for AI-enabled IDEs. It orchestrates a one-pattern-per-session workflow: you name the pattern to fix, point the agent at your BPA findings, and the agent reads the relevant transformation rules, locates the affected files in your project, and applies the changes in batches of five, pausing for your review after each batch.
Supported Patterns supported-patterns
schedulersling.commons.scheduler-based jobs incompatible with AEMaaCS’s stateless runtimeresourceChangeListenerResourceChangeListener implementations requiring Cloud Service updatesreplicationReplicator API calls replaced by ContentDistribution equivalentseventListenerEventListener implementations updated for AEMaaCS event semanticseventHandlerEventHandler services adapted for Cloud ServiceassetApiAssetManager and DAM API calls replaced with supported equivalentshtlLintdata-sly-test redundant constant comparison warnings in HTL templates.cfg.json conversion, runmode scoping, and Cloud Manager secrets/env-var extractionThe skill delegates all code transformation steps to the companion best-practices skill. Both are distributed together as the aem-cloud-service skill package; install the package once to get both.
Getting Started getting-started-skill
-
Install the
aem-cloud-serviceskill package from the Adobe Skills repository. -
Open your AEM project as the workspace root in your IDE.
-
Obtain BPA findings: export a CSV from BPA or configure the Cloud Migration MCP (see below).
-
Start a session with your agent using one of these prompts:
BPA CSV:
code language-none Use the migration skill: scheduler only, BPA CSV at ./reports/bpa.csvCAM via MCP:
code language-none Fix replictaion findings from project <projectname>/<projectId>.Manual (no BPA):
code language-none Migrate event listener in core/src/main/java/com/example/Listener.javaOSGi configs:
code language-none Scan my config files and create Cloud Manager environment secrets or variables.HTL lint:
code language-none Fix htlLint in ui.apps - scan for data-sly-test redundant constant warnings.
For full pattern reference and session management guidance, see Using the Cloud Migration Skill.
The Cloud Migration MCP cloud-migration-mcp
The AEM Cloud Migration MCP is a Model Context Protocol server that connects your IDE agent to Cloud Acceleration Manager. When configured, the migration skill can fetch BPA findings directly from your CAM project without requiring a CSV download.
What the MCP Provides mcp-tools
fetch-cam-bpa-findings-by-patternfetch-cam-bpa-findings-by-importanceCRITICAL, MAJOR, ADVISORY, INFO), sorted by count. Useful for prioritizing which patterns to work on first.These tools are invoked automatically by the migration skill; you do not call them directly.
Getting Started getting-started-mcp
- In your IDE’s MCP configuration, add the Cloud Migration MCP server URL:
https://mcp.adobeaemcloud.com/adobe/mcp/cloud-migration - When prompted, sign in with your Adobe ID to authenticate against Cloud Acceleration Manager.
- The migration skill can now fetch BPA findings directly from your CAM projects.
For detailed setup and troubleshooting, see Using the Cloud Migration MCP.
How They Fit Into the Migration Journey migration-journey
The skill and MCP complement the other tools in the Implementation Phase:
- Best Practices Analyzer: produces the findings that drive the skill. See Using Best Practices Analyzer.
- Cloud Acceleration Manager: hosts BPA reports and tracks overall migration progress. See Getting Started with CAM.
- Refactoring Tools: handles repository structure and dispatcher configuration modernization. See Refactoring Tools Overview.
- Content Transfer Tool: migrates repository content from AEM 6.x to AEMaaCS.
See the Implementation Phase overview for the full picture.