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.