本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)101k · #1065

od-code-migration

できること

このツールは、あるシステムから別のシステムへコードを移行するのに役立ちます。古いコードを分析し、必要な変更を計画し、すべてが正しく動作するまで新しいバージョンを試してテストします。

使う場面

  • ✓プロジェクトを新しい技術に更新する必要があるとき。
  • ✓アプリケーションを別のプラットフォームに移すとき。
  • ✓古くなったコードを近代化したいとき。

スキルのリンク

https://github.com/nexu-io/open-design/blob/main/plugins/_official/scenarios/od-code-migration/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/nexu-io/open-design/blob/main/plugins/_official/scenarios/od-code-migration/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“このコードをPython 3に移行し、すべてのテストが通ることを確認してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

まずAIが、現在のコードと、変更したい内容を理解します。次に、変更を試し、自動でテストします。新しいコードがうまく動作するまで、この工程を繰り返します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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

{
  "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.
よくある質問

「コード移行」とは何を意味しますか?

プログラムを、新しいプログラミング言語やオペレーティングシステムなど、別の環境で動くように適応させることを意味します。

「テスト」とは何ですか?

プログラムが期待どおりに動作し、エラーがないことを確認するための自動チェックです。

使うためにコーディングの知識は必要ですか?

専門家である必要はありません。ツールが工程を案内してくれますが、何を変更したいのかという基本的な考えがあると役立ちます。

詳細

作者による元の説明

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

repo: nexu-io/open-design

人気

GitHubのスター
101k
ランキング
#1065
ライセンス
Apache-2.0
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル