commerce-app-migrate

将 Adobe Commerce App Builder 项目从集成入门套件或结账入门套件迁移到新的应用管理方法。请在要迁移的 App Builder 项目的根目录下运行。可传 --auto 跳过确认(适用于 CI/批量),自动模式会打印问答摘要及默认答案;传 --doc-scan-only 可仅扫描 README.md 和 env.dist 中的过时内容而不修改文件。用于用户想将 App Builder 项目迁移或提及升级其 Adobe Commerce 扩展架构时。

仓库最近推送
GitHub Stars
339
Forks
105
Issues / PRs
21

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "commerce-app-migrate":https://skillpi.com/zh/skills/deepskill-a6ee292ef3f63e023f3fd6f0ccb53c1a10f70045af6e4a3cca9669c2b0506c5b。安装前核对上游来源和版本:https://github.com/adobe/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

将 Adobe Commerce App Builder 项目从集成入门套件或结账入门套件迁移到新的应用管理方法。请在要迁移的 App Builder 项目的根目录下运行。可传 --auto 跳过确认(适用于 CI/批量),自动模式会打印问答摘要及默认答案;传 --doc-scan-only 可仅扫描 README.md 和 env.dist 中的过时内容而不修改文件。用于用户想将 App Builder 项目迁移或提及升级其 Adobe Commerce 扩展架构时。

0 下载

介绍来源: third_party · adobe · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: commerce-app-migrate
description: >
  Migrate an Adobe Commerce App Builder project from the Integration Starter Kit or Checkout Starter Kit to the new App Management approach. Run from the root of the App Builder project to be migrated. Pass --auto to skip confirmation prompts (suitable for CI or batch use) — auto mode prints a summary of all Q&A questions answered with their defaults. Pass --doc-scan-only to scan README.md and env.dist for outdated content without modifying any files. Use when the user wants to migrate an App Builder project from the Integration Starter Kit or Checkout Starter Kit to the App Management approach, or mentions upgrading their Adobe Commerce extension architecture.
license: Apache-2.0
compatibility: >
  Requires Node.js 22+, aio CLI, and @adobe/aio-commerce-lib-app.
  Run from the root of the App Builder project being migrated.
metadata:
  author: adobe
  sdk-package: "@adobe/aio-commerce-lib-app"
  version: "0.0.1"

Migrate to App Management

Use this skill when the user wants to migrate an Adobe Commerce App Builder project from the Integration Starter Kit or Checkout Starter Kit to the new App Management approach using @adobe/aio-commerce-lib-app.

This skill orchestrates the full migration: detection → domain analysis → Q&A → config assembly → execution. It leaves the project fully migrated and ready to deploy.

Confirmation protocol

At each step marked [await]: end your turn immediately, output nothing further, and wait for the developer's reply before proceeding.

Autonomous mode: If invoked with --auto or --yes, or the context indicates an automated pipeline (no interactive terminal), skip all [await] points and proceed directly to the next step.

Doc-scan-only mode: If invoked with --doc-scan-only, skip all migration steps after the Analyzer. After Step 1 completes (Analyzer returns a ProjectSnapshot):

  • If alreadyMigrated === false, output:

    --doc-scan-only requires the project to already be migrated to App Management.
    No app.commerce.config.ts (or .js) was found.
    
    Run /commerce-app-migrate (without --doc-scan-only) to perform the migration first.

    Then stop.

  • If alreadyMigrated === true, apply any applicable Cross-cutting Warnings, then dispatch the Executor in doc-scan-only mode. No files are modified. Do not proceed to Steps 2–5.


Preflight Check

Before doing anything else, verify the current directory looks like an App Builder project. Check that ALL of these exist:

  • app.config.yaml
  • package.json
  • At least one of: actions/ directory OR src/ directory OR actions-src/ directory (some projects compile TypeScript from actions-src/ to actions/; actions/ may be gitignored and absent in a fresh checkout)

If none of those pass, stop immediately and output:

This directory does not appear to be a Commerce App Builder project.
Expected to find: app.config.yaml, package.json, and an actions/ or src/ directory.

Please run this skill from the root of your App Builder project.

Do not proceed further if the preflight fails.


Step 1: Run Analyzer Agent

Dispatch the Analyzer agent (defined in ${CLAUDE_SKILL_DIR}/agents/analyzer.md) using the Agent tool. The Analyzer reads the current directory and returns a ProjectSnapshot JSON object (schema defined in ${CLAUDE_SKILL_DIR}/shared/schema.md).

Before printing the summary, check these early-exit conditions:

If alreadyMigrated === true: Output:

This project appears to already be migrated to App Management.
Found: app.commerce.config.ts (or app.commerce.config.js with ESM defineConfig)

Re-running migration would overwrite your existing configuration.
If you want to re-generate specific sections, please specify which
section to update: metadata / eventing / installation / adminUi / businessConfig

Then apply any applicable Cross-cutting Warnings (see subsection below).

Then dispatch the Executor agent (${CLAUDE_SKILL_DIR}/agents/executor.md) in doc-scan-only mode to produce documentation recommendations for the project:

  • Pass mode = "doc-scan-only" to the Executor
  • Pass the ProjectSnapshot JSON from the Analyzer
  • Pass assembled config = null (no new config to write)

The Executor will scan README.md and env.dist against the existing app.commerce.config.ts and print the "Documentation recommendations" report without modifying any files.

Do not proceed to Steps 2–5 (domain agents, Q&A, config assembly, full execution) unless the developer explicitly requests a specific section update.

After the Executor prints the documentation recommendations, stop. Do not continue to the "Detected project:" summary block or the migration confirmation prompt below.

After the Analyzer returns, print a human-readable summary:

Detected project:
  Type:             <starterKitType> Starter Kit
  Auth mode:        <authMode> (<paas = "PaaS/OAuth1" | saas = "SaaS/IMS" | dual = "Both PaaS + SaaS" | unknown = "Unknown">)
  Action packages:  <comma-separated list of package names> (<count> packages)
  Onboarding:       <comma-separated list of script paths with purposes, or "none">
  Package manager:  <packageManager>

Migration will include: <list domains where confidence !== "none">

Apply any applicable Cross-cutting Warnings (see subsection below).

If hasMeshConfig === true, also append:

⚠ API Mesh configuration detected (mesh.json).
Mesh configuration cannot be migrated automatically and must be preserved manually.

Then ask:

Does this look correct? (yes / no — if no, describe what's wrong)
Press Enter or type "yes" to proceed automatically.

[await]

Handle corrections:

  • If developer corrects starterKitType, update it in the ProjectSnapshot before proceeding
  • If developer corrects authMode, update it
  • Re-print summary with corrections and ask again until confirmed

Handle unknown starterKitType: If starterKitType === "unknown", check extensionPointsInUse:

  • If "commerce/backend-ui/1" is present → this is an Admin UI SDK v1 extension. Proceed with starterKitType = "unknown" — the admin-ui-sdk domain agent will migrate it to v2. Print a note: "Detected Admin UI SDK v1 (commerce/backend-ui/1). Migrating to v2 (commerce/backend-ui/2)."

  • If all confidence values are "none" AND extensionPointsInUse is empty: Output:

    This project does not appear to be based on the Integration Starter Kit
    or Checkout Starter Kit. No event consumers, webhooks, or Admin UI SDK
    patterns were detected.
    
    Migration can still generate a minimal app.commerce.config.ts with metadata
    only. Continue? (yes / no)

    If developer says no, stop. If yes, proceed with empty domain results.

  • Otherwise, ask the developer:

    I couldn't determine which starter kit this project is based on.
    Is this an Integration Starter Kit or a Checkout Starter Kit?
    Options: [integration / checkout / adminUiSdk / custom]
    
    Not sure? See the documentation:
      • Integration Starter Kit: https://developer.adobe.com/commerce/extensibility/starter-kit/integration/
      • Checkout Starter Kit:     https://developer.adobe.com/commerce/extensibility/starter-kit/checkout/

    Update the ProjectSnapshot with their answer before proceeding.

Cross-cutting Warnings

Apply these whenever the corresponding field is set in the ProjectSnapshot, regardless of migration state. Append each matching block to whatever output is currently being built.

If openWhiskTriggers is non-empty, append:

⚠ OpenWhisk triggers detected (cannot be auto-migrated):
  <list each trigger description>
These scheduled triggers have no direct equivalent in App Management.

Read ${CLAUDE_SKILL_DIR}/shared/migration-warnings.md (OpenWhisk Triggers section) and present the replacement options to the developer.

If hasApiGateway === true, append:

⚠ OpenWhisk API Gateway routes detected (apis: blocks in runtime manifest).
These HTTP routes have no direct equivalent in App Management.

Read ${CLAUDE_SKILL_DIR}/shared/migration-warnings.md (API Gateway section) and present the migration options to the developer.

If hasSequences === true, append:

⚠ OpenWhisk sequences detected.
Action sequences have no equivalent in App Management.

Read ${CLAUDE_SKILL_DIR}/shared/migration-warnings.md (Sequences section) and present the refactoring guidance to the developer.


Step 2: Dispatch Domain Agents in Parallel

For each domain where confidence !== "none", dispatch the corresponding agent at the same time using the Agent tool (all in one parallel call):

confidence field Agent file
confidence.events !== "none" ${CLAUDE_SKILL_DIR}/agents/events.md
confidence.webhooks !== "none" ${CLAUDE_SKILL_DIR}/agents/webhooks.md
confidence.adminUiSdk !== "none" ${CLAUDE_SKILL_DIR}/agents/admin-ui-sdk.md
confidence.businessConfig !== "none" ${CLAUDE_SKILL_DIR}/agents/business-config.md

Each agent receives:

  • The ProjectSnapshot JSON
  • Instruction to read the relevant files in the current directory using their own Read tools

Collect all returned DomainResult objects. Each has domain, configFragment, and unresolvedQuestions fields (schema in ${CLAUDE_SKILL_DIR}/shared/schema.md).


Step 3: Grouped Q&A

Collect all unresolvedQuestions from every DomainResult. If there are no unresolved questions across all domains, skip to Step 4.

Present all questions in a single grouped session (format defined in ${CLAUDE_SKILL_DIR}/shared/questions.md):

  • Group by domain
  • For questions with default values, show as confirmations: "(suggested: X)"
  • Number questions sequentially across domains

[await]

For each answer received:

  • Apply it to the configFragment of the corresponding DomainResult
  • Use the question id to locate the exact field to update

If the developer accepts a suggested value (presses Enter / says "yes"), use the default.

Special case — skip-by-default questions (where default is "no"): These questions ask whether to include an optional section that was omitted from the configFragment because required data was missing (e.g. a provider direction with no deployed action package). Interpret the developer's reply as:

  • "no" (or pressing Enter) → leave the section out of the configFragment; do nothing
  • "yes" or any action string → add the section back; prompt for the runtime action name if not already specified in the reply, then apply it to the configFragment

Autonomous mode — auto-accepted defaults summary:

In --auto mode, after applying all question defaults, print:

── Auto-accepted defaults ────────────────────────────────────────
  The following questions were answered automatically (--auto mode):
  [  <domain> : <question id> = "<default value>"  ]
     ← one line per question that had an explicit default; omit entire section if no questions existed →

Omit this section entirely if there were no unresolved questions across all domains.


Step 4: Assemble app.commerce.config.ts

Read package.json from the current directory to extract metadata.

Assemble the full config content by merging all configFragment objects:

import { defineConfig } from "@adobe/aio-commerce-lib-app/config";

export default defineConfig({
  metadata: {
    id: "<derived from package.json name>",
    displayName: "<derived from package.json name>",
    version: "<from package.json version or 1.0.0>",
    description:
      "<from package.json description or 'Commerce App Builder application'>",
    upgradeMode: "auto",
  },
  // eventing: { ... }          ← from events DomainResult, if present
  // installation: { ... }      ← from webhooks DomainResult, if present
  // adminUi: { ... }           ← from admin-ui-sdk DomainResult (migrated from v1), if present
  // businessConfig: { ... }    ← from business-config DomainResult, if present
});

Metadata derivation rules:

  • id: Check extension-manifest.json first — if it has an id field and it is not the same as the package name boilerplate, use it (apply same normalization: lowercase, replace non-alphanumeric with -, trim, max 50 chars). Otherwise take name from package.json. Strip npm scope (@scope/). Replace any non-alphanumeric characters (except -) with -. Lowercase the entire string. Trim leading/trailing dashes. Max 50 chars. Known ISK boilerplate names to skip in favor of extension-manifest.json: commerce-integration-starter-kit, starter-kit, commerce-checkout-starter-kit, aio-app-builder-template.
  • displayName: Check extension-manifest.json first — if it has a displayName field, use it (truncated to 50 chars). Otherwise title-case the id (replace - with spaces). Max 50 chars.
  • version: Use package.json version. Default: "1.0.0".
  • upgradeMode: Use "manual" (currently the default while upgrade execution stabilizes) unless the developer explicitly asks for automatic execution. "auto" is experimental: the generated post-deploy hook calls the desired-state POST /installation endpoint and starts a planned upgrade, then waits for its lifecycle result. In "manual" mode, the same endpoint creates or reuses a plan and returns it without starting execution.
  • description: Use package.json description if present. If the description exceeds 255 characters, do NOT truncate it mid-sentence. Instead, rewrite it: read the full description and compose a shorter one that fits in 255 characters while preserving the essential meaning — what the app does, which systems it connects, and its key capabilities. Prefer complete sentences; drop secondary detail (deployment notes, exhaustive feature lists) before core purpose. Never end with "..." — the rewritten description must read as intentional, not cut off. The rewritten value applies only to the config: the Executor records the original package.json description before init and restores it afterwards (init writes the config value back into package.json). If absent or empty, check extension-manifest.json description field (apply the same rewrite rule). If neither has a description: "Commerce App Builder application".

productDependencies comment: If ProjectSnapshot.productDependencies is non-null (has minVersion and/or maxVersion): Insert this comment block in the assembled TypeScript, immediately AFTER the copyright header and BEFORE the import { defineConfig } line:

// Product version constraints (no App Management equivalent — for reference only):
// Adobe Commerce compatibility: >= <minVersion>, < <maxVersion>
// Contact Adobe Commerce Marketplace for guidance on version enforcement.

Omit the < <maxVersion> part if maxVersion is null. Omit the >= <minVersion> part if minVersion is null. If both are null or productDependencies is null, omit the comment entirely.

Print the assembled TypeScript content to the terminal:

Here is the app.commerce.config.ts that will be created:

─────────────────────────────────────────────────────────
import { defineConfig } from '@adobe/aio-commerce-lib-app/config'

export default defineConfig({
  ...assembled content...
})
─────────────────────────────────────────────────────────

Does this look correct? (yes / no — if no, which section needs updating?)
Press Enter or type "yes" to proceed automatically.

[await]

Handle rejection: If the developer says no, ask: "Which section needs updating? (metadata / eventing / installation / adminUi / businessConfig)"

Then ask the specific corrective question for that section, update the assembled config accordingly, re-print, and ask for confirmation again.

Repeat until the developer confirms. Do NOT restart the entire flow — only re-enter the Q&A for the specific section being corrected.


Step 5: Execute Migration

Dispatch the Executor agent (${CLAUDE_SKILL_DIR}/agents/executor.md) with:

  1. The assembled app.commerce.config.ts TypeScript content as a string
  2. The final ProjectSnapshot JSON

The Executor performs all file writes and CLI commands and prints the migration summary.

If the Executor reports an error, relay the error message and the step that failed. Do not attempt to roll back changes — the git branch created by the Executor provides a rollback point (git checkout main to abandon the migration).


Notes

  • Domain agents (Step 2) run in parallel — dispatch all eligible agents in one Agent tool call
  • Analyzer (Step 1) and Executor (Step 5) are sequential — Analyzer first, Executor last
  • This skill runs in the developer's project directory, not the migration skill repository
  • Documentation recommendations are produced by the Executor and cover:
    • README.md sections flagged by 5 patterns: ISK onboarding commands, old env var references, outdated architecture diagrams, credential-family semantic matching (IMS/SaaS, PaaS/OAuth1, workspace), and env setup boilerplate (cp env.dist .env)
    • env.dist entries grouped into three buckets: safe-to-remove (managed by App Management), review-manually (referenced in action source files, grouped by file), and onboarding-only (used only in onboarding scripts)
    • Rule 9 catches unreferenced env.dist variables not matched by any other rule and flags them for manual review
    • Category C (README) requires ≥ 5 flagged sections to emit the recommendations block
  • --auto mode prints a summary of all Q&A questions answered automatically with their defaults (omitted if no questions existed)
  • productDependencies version constraints from extension-manifest.json are auto-inserted as a comment block immediately before the import { defineConfig } line in the generated app.commerce.config.ts
  • Internal metadata fields (_directionWarning, _source) may be added by domain agents to configFragment objects — the Executor strips these before writing files so they never appear in the output TypeScript

Supporting Files

Agent files dispatched by this skill:

Shared reference files:

版本历史

  1. plugin/stardust/v0.43.4 GitHub ↗
    原版更新说明

    ## [0.43.4](https://github.com/adobe/skills/compare/plugin/stardust/v0.43.3...plugin/stardust/v0.43.4) (2026-11-21)

  2. rollout-v1.3.1 GitHub ↗
    原版更新说明

    ## [1.3.1](https://github.com/adobe/skills/compare/rollout-v1.3.0...rollout-v1.3.1) (2026-11-21)

  3. plugin/aem-edge-delivery-services/v1.3.5 GitHub ↗
    原版更新说明

    ## [1.3.5](https://github.com/adobe/skills/compare/plugin/aem-edge-delivery-services/v1.3.4...plugin/aem-edge-delivery-services/v1.3.5) (2026-11-20) ### Bug Fixes * **deps:** update dependency playwright to v1.65.1 ([#777](https://github.com/adobe/skills/issues/777)) ([c6c5233](https://github.com/adobe/skills/commit/c6c5233558a28bb8fde8ede408c35ac47c81cf8e)) * **deps:** update dependency pnpm to v12.21.0 ([#778](https://github.com/adobe/skills/issues/778)) ([a9e7de9](https://github.com/adobe/skills/commit/a9e7de976a969259a1d30ef8d24a4ef699d6d49e))

  4. migrate-header-v1.0.4 GitHub ↗
    原版更新说明

    ## [1.0.4](https://github.com/adobe/skills/compare/migrate-header-v1.0.3...migrate-header-v1.0.4) (2026-11-20) ### Bug Fixes * **deps:** update dependency pnpm to v12.21.0 ([#778](https://github.com/adobe/skills/issues/778)) ([a9e7de9](https://github.com/adobe/skills/commit/a9e7de976a969259a1d30ef8d24a4ef699d6d49e))

  5. personalize-v1.0.1 GitHub ↗
    原版更新说明

    ## [1.0.1](https://github.com/adobe/skills/compare/personalize-v1.0.0...personalize-v1.0.1) (2026-11-20) ### Bug Fixes * **deps:** update dependency playwright to v1.65.1 ([#777](https://github.com/adobe/skills/issues/777)) ([c6c5233](https://github.com/adobe/skills/commit/c6c5233558a28bb8fde8ede408c35ac47c81cf8e))

此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值95/100

亮点

  • 解决 Adobe Commerce App Builder 项目从集成入门套件或结账入门套件迁移到新的应用管理方法的核心任务痛点
  • 提供完整的迁移流程:检测→域分析→问答→配置组装→执行,确保项目完全迁移并准备部署
  • 支持多种运行模式(自动模式、文档扫描模式),适用于不同使用场景
触发精准90/100

亮点

  • 触发词精准完整,覆盖多种变体(--auto、--doc-scan-only等参数)
  • 边界清晰,明确指定了适用的项目类型和迁移场景
  • 提供了详细的触发条件和使用说明
结构规范85/100

待提升项

  • 缺少 When to Use 章节 原报告严重程度:轻微

    文档结构完整但缺少明确的 When to Use 章节标题

    改进建议:建议添加明确的 When to Use 章节,虽然相关内容已包含在描述中

亮点

  • Phase/步骤清晰,包含 Preflight Check、Step 1-5 的完整流程
  • 有明确的出口条件和确认协议
  • 包含端到端示例和详细的配置组装规则
  • frontmatter完整,包含必要的元数据信息
执行可靠88/100

亮点

  • 工具来源明确(@adobe/aio-commerce-lib-app),参数正确
  • 覆盖主要异常情况(预检失败、已迁移项目、未知starter kit类型等)
  • 不可逆操作有确认机制([await]标记、确认提示)
  • 提供详细的错误处理和恢复指导(git分支回滚)
证据可验 (前四项均值)90/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

  • 账号、密钥或授权

    使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。

    主文档提及 · 第 391 行
文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • developer.adobe.com

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。