Testing & QAlow risk

od-code-migration

Default reference pipeline for the code-migration taskKind — code-import → design-extract → token-map → rewrite-plan → patch-edit ↔ build-test devloop → diff-review → handoff.

nexu-io/open-design·plugins/_official/scenarios/od-code-migration/SKILL.md
61/ 100推荐值

导入这个 Skill

选择你的 coding agent,复制项目级或个人级安装命令。

固定到平台收录的 commit
导入当前项目.agents/skills/od-code-migration
npx skills add https://github.com/nexu-io/open-design/tree/7533db3f4342d09b27368fa5d907ebd3cdb93b75/plugins/_official/scenarios/od-code-migration -a codex -y
导入个人环境~/.agents/skills/od-code-migration
npx skills add https://github.com/nexu-io/open-design/tree/7533db3f4342d09b27368fa5d907ebd3cdb93b75/plugins/_official/scenarios/od-code-migration -a codex -g -y
手动放置目录.agents/skills/od-code-migrationOfficial docs ↗
导入当前项目.claude/skills/od-code-migration
npx skills add https://github.com/nexu-io/open-design/tree/7533db3f4342d09b27368fa5d907ebd3cdb93b75/plugins/_official/scenarios/od-code-migration -a claude-code -y
导入个人环境~/.claude/skills/od-code-migration
npx skills add https://github.com/nexu-io/open-design/tree/7533db3f4342d09b27368fa5d907ebd3cdb93b75/plugins/_official/scenarios/od-code-migration -a claude-code -g -y
手动放置目录.claude/skills/od-code-migrationOfficial docs ↗
导入当前项目.agents/skills/od-code-migration
npx skills add https://github.com/nexu-io/open-design/tree/7533db3f4342d09b27368fa5d907ebd3cdb93b75/plugins/_official/scenarios/od-code-migration -a github-copilot -y
导入个人环境~/.copilot/skills/od-code-migration
npx skills add https://github.com/nexu-io/open-design/tree/7533db3f4342d09b27368fa5d907ebd3cdb93b75/plugins/_official/scenarios/od-code-migration -a github-copilot -g -y
手动放置目录.agents/skills/od-code-migrationOfficial docs ↗
导入当前项目.agents/skills/od-code-migration
npx skills add https://github.com/nexu-io/open-design/tree/7533db3f4342d09b27368fa5d907ebd3cdb93b75/plugins/_official/scenarios/od-code-migration -a cursor -y
导入个人环境~/.cursor/skills/od-code-migration
npx skills add https://github.com/nexu-io/open-design/tree/7533db3f4342d09b27368fa5d907ebd3cdb93b75/plugins/_official/scenarios/od-code-migration -a cursor -g -y
手动放置目录.agents/skills/od-code-migrationOfficial docs ↗
导入当前项目.agents/skills/od-code-migration
npx skills add https://github.com/nexu-io/open-design/tree/7533db3f4342d09b27368fa5d907ebd3cdb93b75/plugins/_official/scenarios/od-code-migration -a gemini-cli -y
导入个人环境~/.gemini/skills/od-code-migration
npx skills add https://github.com/nexu-io/open-design/tree/7533db3f4342d09b27368fa5d907ebd3cdb93b75/plugins/_official/scenarios/od-code-migration -a gemini-cli -g -y
Native Gemini CLIgemini skills install https://github.com/nexu-io/open-design.git --scope workspace --path plugins/_official/scenarios/od-code-migration
手动放置目录.agents/skills/od-code-migrationOfficial docs ↗
⚠ 安装命令使用开源 skills CLI。执行前请检查来源、脚本和权限。
# od-code-migration (scenario)

Spec §1 / §10.1 / §20.3 / §21.3.2 / §23.3.3: the canonical
code-migration flow. The pipeline cannot ship an `accept` decision
without a passing build — the patch-edit ↔ build-test devloop is
the convergence engine.

## Default pipeline

```jsonc
{
  "stages": [
    { "id": "import",    "atoms": ["code-import"] },
    { "id": "tokens",    "atoms": ["design-extract", "token-map"] },
    { "id": "plan",      "atoms": ["rewrite-plan"] },
    {
      "id": "verify",
      "atoms": ["patch-edit", "build-test"],
      "repeat": true,
      "until": "(build.passing && tests.passing) || iterations>=8"
    },
    { "id": "review",    "atoms": ["diff-review"] },
    { "id": "handoff",   "atoms": ["handoff"] }
  ]
}
```

The scenario uses `build.passing && tests.passing` as the
convergence signal — promoted into the spec §22.4 vocabulary by
the `build-test` atom.

## Required user inputs

A plugin built on this scenario typically declares `od.inputs`:

  - `repoPath` (string, required): pulled from `od project import`.
  - `targetStack` (form): collected by `rewrite-plan`.
  - `testCommand` / `buildCommand` (string, optional): overrides
    the inferred package.json scripts in the `build-test` atom.