/migration
Migrates legacy AEM (6.x, AMS, on-prem) to AEM as a Cloud Service via BPA CSV/cache and CAM/MCP discovery, one pattern per session. Use to review/scan a project for AEMaaCS migration — generates a read-only migration-runbook.md — or to fix specific Cloud Service blockers:
Claude Code
$ npx -y skills add adobe/skills --skill migration --agent claude-code
Codex
$ npx skills add adobe/skills --skill migration -a codex -y
Cursor
$ npx skills add adobe/skills --skill migration -a cursor -y
Gemini CLI
$ npx skills add adobe/skills --skill migration -a gemini-cli -y
GitHub Copilot
$ npx skills add adobe/skills --skill migration -a github-copilot -y
OpenCode
$ npx skills add adobe/skills --skill migration -a opencode -y
Windsurf
$ npx skills add adobe/skills --skill migration -a windsurf -y
SKILL.md
migration.SKILL.mdname: migration
description: |
Migrates legacy AEM (6.x, AMS, on-prem) to AEM as a Cloud Service via BPA CSV/cache and
CAM/MCP discovery, one pattern per session. Use to review/scan a project for AEMaaCS
migration — generates a read-only migration-runbook.md — or to fix specific Cloud Service
blockers: scheduler, ResourceChangeListener, replication, EventListener, OSGi EventHandler,
DAM AssetManager, HTL data-sly-test lint, Classic UI / ExtJS / Coral 2 → Coral 3 dialog migration (lui),
Custom Design Widgets (cdw), Vault package install-time dependencies (vault-package-dependencies),
Guava cache → Caffeine (guavaCache), java.io.InputStream triage (inputStream),
Oak index conversion (oakIndex, beta), and static→editable template modernization. Also
externalizes OSGi config secrets to Cloud Manager ($[secret:]/$[env:]), converts AMS/on-prem
Dispatcher configs, validates migrated code on a local Cloud SDK (beta), migrates asset
workflows, and restructures a project into the Cloud Service layout (ui.apps, ui.config,
ui.content, all; beta).
license: Apache-2.0
metadata:
version: "1.3.0"
AEM as a Cloud Service — Code Migration
**Source → target:** Legacy **AEM 6.x / AMS / on-prem** → **AEM as a Cloud Service**. Scoped under `skills/aem/cloud-service/skills/migration/` so this is not confused with Edge Delivery or 6.5 LTS.
This skill drives the **migration workflow**: BPA data, CAM/MCP, **one pattern per session**, and target discovery. **Transformation rules and steps** live in the **`code-assessment`** skill — once a finding's pattern is identified, hand off to `{code-assessment}/<pattern>/SKILL.md` (or the relevant shared reference under `{code-assessment}/references/`).
**Setup:** Use the **`aem-cloud-service`** install (see repository root **README**) so both **migration** and **code-assessment** paths are available. If you already have the monorepo open with resolvable `{code-assessment}` paths, no separate install step is required.
**For the person driving the agent:** [references/quick-start.md](references/quick-start.md) has what to say for each kind of migration, with copy-paste prompts.
Path convention (Adobe Skills monorepo)
From the **repository root** (parent of the `skills/` directory):
| Symbol | Path | |--------|------| | **`{code-assessment}`** | `skills/aem/cloud-service/skills/code-assessment/` |
Examples: `{code-assessment}/SKILL.md`, `{code-assessment}/scheduler/SKILL.md`, `{code-assessment}/references/scr-to-osgi-ds.md`.
Workspace scope (IDE) — user code only
Applies to **finding and editing the user's AEM project** (Java, bundles, config, HTL), not to reading installed skill files under `{code-assessment}`.
- Treat the **current IDE workspace root folder(s)** (single- or multi-root) as the **only** boundary for searches, globs, `grep`, and file reads/writes for migration targets.
- **Do not** search parent directories, sibling folders on disk, `~`, other clones, or arbitrary absolute paths to "discover" sources unless the user **explicitly** names those paths or asks you to include them.
- **BPA CSV / CAM targets:** If a `filePath` or class-to-file mapping does not resolve under a workspace root, **stop** and tell the user which paths are missing — do not hunt elsewhere on the filesystem. Ask them to open the correct project in the IDE or adjust paths.
- **Manual flow:** Only migrate files the user named that live under the workspace (or paths they explicitly provided). Do not expand scope by searching outside the workspace.
Required delegation (do this first)
Find the branch for the request and read its file before anything else. Each of Branches A and C–I **skips Branch B**. A, C, E, G, H and I take **no BPA pattern id**.
| Branch | The user asks to… | Read first, and follow | |---|---|---| | **A — OSGi configs → Cloud Manager** | scan config files; create or set up Cloud Manager environment secrets or variables; move passwords or secrets out of OSGi / `.cfg.json` / `ui.config`; or mentions `$[secret:]` / `$[env:]` | [references/osgi-cfg-json-cloud-manager.md](references/osgi-cfg-json-cloud-manager.md) **immediately**: the product rules and the workflow are in that file. A short prompt is enough; the user need not name the file. | | **B — Java / HTL / BPA pattern** | fix one pattern, from a BPA CSV, from CAM, or in files they name | The steps under **Branch B** below | | **C — Template modernization** | migrate static templates to editable templates ("create editable templates", "generate `/conf` templates", "static to editable", "parsys to container"); generate AEM Modernize Tools rules (structure / component / policy rewrite rules) | [template-modernization-context.md](references/template-modernization/template-modernization-context.md), then per template [editable-template-creation.md](references/template-modernization/editable-template-creation.md) and [aem-modernization.md](references/template-modernization/aem-modernization.md), then [template-modernization-validation.md](references/template-modernization/template-modernization-validation.md) | | **D — Legacy UI** (`lui`, `cdw`) | convert Classic UI / ExtJS dialogs; upgrade Coral 2 dialogs; migrate custom ExtJS widgets; fix LUI or CDW findings; or mentions `cq:Dialog` / `xtype` / `cq:Widget` | The steps under **Branch D** below | | **E — Dispatcher conversion** | convert or migrate an AMS / on-premise Dispatcher configuration | [references/dispatcher/flow.md](references/dispatcher/flow.md): six phases around Adobe's `dispatcher-converter`. **HARD STOP on `filter-acl-loss`.** Do not present the result as done on validation failure. | | **F — Oak index** (`oakIndex`, beta) | fix Oak index findings; convert `_oak_index` definitions | [references/oak-index.md](references/oak-index.md): six steps around Adobe's `index-converter`. Compute the next free `-custom-N`, never assume `-custom-1`. Flag a datatype mismatch as `needs_manual_review`; do not apply it sile
Read more
name: migration description: | Migrates legacy AEM (6.x, AMS, on-prem) to AEM as a Cloud Service via BPA CSV/cache and CAM/MCP discovery, one pattern per session. Use to review/scan a project for AEMaaCS migration — generates a read-only migration-runbook.md — or to fix specific Cloud Service blockers: scheduler, ResourceChangeListener, replication, EventListener, OSGi EventHandler, DAM AssetManager, HTL data-sly-test lint, Classic UI / ExtJS / Coral 2 → Coral 3 dialog migration (lui), Custom Design Widgets (cdw), Vault package install-time dependencies (vault-package-dependencies), Guava cache → Caffeine (guavaCache), java.io.InputStream triage (inputStream), Oak index conversion (oakIndex, beta), and static→editable template modernization. Also externalizes OSGi config secrets to Cloud Manager ($[secret:]/$[env:]), converts AMS/on-prem Dispatcher configs, validates migrated code on a local Cloud SDK (beta), migrates asset workflows, and restructures a project into the Cloud Service layout (ui.apps, ui.config, ui.content, all; beta). license: Apache-2.0 metadata: version: "1.3.0"
AEM as a Cloud Service — Code Migration
**Source → target:** Legacy **AEM 6.x / AMS / on-prem** → **AEM as a Cloud Service**. Scoped under `skills/aem/cloud-service/skills/migration/` so this is not confused with Edge Delivery or 6.5 LTS.
This skill drives the **migration workflow**: BPA data, CAM/MCP, **one pattern per session**, and target discovery. **Transformation rules and steps** live in the **`code-assessment`** skill — once a finding's pattern is identified, hand off to `{code-assessment}/<pattern>/SKILL.md` (or the relevant shared reference under `{code-assessment}/references/`).
**Setup:** Use the **`aem-cloud-service`** install (see repository root **README**) so both **migration** and **code-assessment** paths are available. If you already have the monorepo open with resolvable `{code-assessment}` paths, no separate install step is required.
**For the person driving the agent:** [references/quick-start.md](references/quick-start.md) has what to say for each kind of migration, with copy-paste prompts.
Path convention (Adobe Skills monorepo)
From the **repository root** (parent of the `skills/` directory):
| Symbol | Path | |--------|------| | **`{code-assessment}`** | `skills/aem/cloud-service/skills/code-assessment/` |
Examples: `{code-assessment}/SKILL.md`, `{code-assessment}/scheduler/SKILL.md`, `{code-assessment}/references/scr-to-osgi-ds.md`.
Workspace scope (IDE) — user code only
Applies to **finding and editing the user's AEM project** (Java, bundles, config, HTL), not to reading installed skill files under `{code-assessment}`.
- Treat the **current IDE workspace root folder(s)** (single- or multi-root) as the **only** boundary for searches, globs, `grep`, and file reads/writes for migration targets.
- **Do not** search parent directories, sibling folders on disk, `~`, other clones, or arbitrary absolute paths to "discover" sources unless the user **explicitly** names those paths or asks you to include them.
- **BPA CSV / CAM targets:** If a `filePath` or class-to-file mapping does not resolve under a workspace root, **stop** and tell the user which paths are missing — do not hunt elsewhere on the filesystem. Ask them to open the correct project in the IDE or adjust paths.
- **Manual flow:** Only migrate files the user named that live under the workspace (or paths they explicitly provided). Do not expand scope by searching outside the workspace.
Required delegation (do this first)
Find the branch for the request and read its file before anything else. Each of Branches A and C–I **skips Branch B**. A, C, E, G, H and I take **no BPA pattern id**.
| Branch | The user asks to… | Read first, and follow | |---|---|---| | **A — OSGi configs → Cloud Manager** | scan config files; create or set up Cloud Manager environment secrets or variables; move passwords or secrets out of OSGi / `.cfg.json` / `ui.config`; or mentions `$[secret:]` / `$[env:]` | [references/osgi-cfg-json-cloud-manager.md](references/osgi-cfg-json-cloud-manager.md) **immediately**: the product rules and the workflow are in that file. A short prompt is enough; the user need not name the file. | | **B — Java / HTL / BPA pattern** | fix one pattern, from a BPA CSV, from CAM, or in files they name | The steps under **Branch B** below | | **C — Template modernization** | migrate static templates to editable templates ("create editable templates", "generate `/conf` templates", "static to editable", "parsys to container"); generate AEM Modernize Tools rules (structure / component / policy rewrite rules) | [template-modernization-context.md](references/template-modernization/template-modernization-context.md), then per template [editable-template-creation.md](references/template-modernization/editable-template-creation.md) and [aem-modernization.md](references/template-modernization/aem-modernization.md), then [template-modernization-validation.md](references/template-modernization/template-modernization-validation.md) | | **D — Legacy UI** (`lui`, `cdw`) | convert Classic UI / ExtJS dialogs; upgrade Coral 2 dialogs; migrate custom ExtJS widgets; fix LUI or CDW findings; or mentions `cq:Dialog` / `xtype` / `cq:Widget` | The steps under **Branch D** below | | **E — Dispatcher conversion** | convert or migrate an AMS / on-premise Dispatcher configuration | [references/dispatcher/flow.md](references/dispatcher/flow.md): six phases around Adobe's `dispatcher-converter`. **HARD STOP on `filter-acl-loss`.** Do not present the result as done on validation failure. | | **F — Oak index** (`oakIndex`, beta) | fix Oak index findings; convert `_oak_index` definitions | [references/oak-index.md](references/oak-index.md): six steps around Adobe's `index-converter`. Compute the next free `-custom-N`, never assume `-custom-1`. Flag a datatype mismatch as `needs_manual_review`; do not apply it sile
Skills that teach AI coding agents to work with Adobe products. A skill is a folder with a SKILL.md that an agent loads when a task calls for it (agentskills.io).
Other skills on skills.
More skills from other plugins.
karpathy-guidelines
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
agent-builder
Design and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI…
Questions about migration.
- Which coding agents can use migration?
- migration installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

