Anthropic公式の「code-modernization」プラグインが話題。古いシステムを作り直し、元と同じ動きかを確かめて判定する

Anthropicが
Anthropic released code-modernization v1.0.0, a Claude Code plugin for modernizing legacy codebases
— Daniel San (@dani_avila7) October 14, 2026
Save this post if you have a legacy project worth modernizing
What I find interesting is that it doesn’t just rewrite code. It tries to prove the new implementation behaves like the original
Here’s how:
– Analyzes the legacy system and extracts business rules
– Generates a modernization plan for your approval
– Rewrites or upgrades the code, even across languages
– Runs the old and new implementations with identical inputs and compares outputs
– Generates additional edge cases to test behavior
– Introduces deliberate bugs to verify tests actually catch them
– Produces a verification report with PROVEN, PARTLY PROVEN, or NOT PROVEN results
It also keeps the original code untouched and requires human approval at critical steps
I think this is the right direction for AI-assisted modernization, generating new code is one thing
Proving that you haven’t broken existing behavior is a completely different challenge
Install: /plugin install code-modernization@claude-plugins-official
Repo: https://github.com/anthropics/claude-plugins-official/blob/main/plugins/code-modernization/README.md
- 古い
システムを、業務ルールの 洗い 段階的に出しから 作り直し・ 検証まで 進める Anthropic公式の プラグイン - 新旧に
同じ 入力を 与えて 結果を 比べ、モジュールごとに 「証明できたか」を する判定 - 情報システム
部門なら、 まず小さな モジュール1つで のが試し、 判定の レポートを 読む おすすめ
何年も
古いシステムの作り直しを、検証まで段階的に進められる
公式の

どんな流れで進むのか(初心者向け)
- 業務ルールを
抜き出す :コードから業務ルールを 「前提・操作・結果」の 形の カードに まとめ、 どの ファイルの 何行目に 根拠が あるかを 添える。 内容は 人が 確認・修正する - 計画を
人が :段階的な承認する 移行計画を 作り、 承認されるまで 何も 作らない。 READMEでは、 人が 判断する 場面が 6か 所あると されている - 作り直す:元の
コードには 手を 付けず、 別の フォルダに 新しい コードを 作る - 動きを
照合して :新旧に判定する 同じ 入力を 与えて 出力を 比べ、 10個以上の 入力を 新たに 考えて 試す。 わざと 不具合を 入れて テストが 見逃さないかも 確かめ、 モジュールごとに 「PROVEN (証明できた)」 「PARTLY PROVEN (一部のみ)」 「NOT PROVEN (証明できない) 」を 付ける
基本情報
話題に | 2026年10月14日 |
できる | 古い |
入れ方 | Claude Codeで |
必要な | Claude Code、 |
ライセンス | Apache 2.0 |
一次情報 |
業務でどう使える?どう変わる?
一言で

職種別の活用アイデア
- 情報システム部門:社内に
残る 古い システムを 並べて 調べ、 作り直しの 優先順位を 付ける 材料に する (READMEでは 複数システムを 比べる 使い方も 紹介されている) - 業務部門の
担当者 :抜き出された 業務ルールの カードを 読み、 実際の 業務と 合っているかを 確認する 役を 担う - エンジニア:モジュール1つを
試しに 作り直し、 判定の レポートで 新旧の 差が どこに あるかを 確かめる - PM・マネージャー:
「証明できた」 「一部のみ」の 判定を、 移行を 進めるか どうかの 社内説明に 使う
- READMEでは、
業務ルールの 抽出で50〜200の エージェントが が動いた 例 紹介され ています。 使用量が 大きくなる ため、まずは モジュール1つの 始める試験から よう 勧められています - 抜き出された
業務ルールは、人が 確認する です。前提の 成果物 実行の たびに 結果が 変わる こともあります - 利用状況の
件数データの 送信が初期設定で オン です。オフに する 方法は READMEに 記載されています - 社内の
コードを 扱う 前に、 Claude Codeの 利用が 社内で 認められているか 確認しましょう。 本記事は 公開時点の READMEと 投稿内容に 基づいています
よくある質問
- 元の
コードが 書き換えられて しまう ことは ありますか? READMEでは、
元の コードは 編集せず、 分析結果と 新しい コードを 別の フォルダに 書き出すと されています。 - どの
言語に 対応し ていますか? READMEでは、
言語を 問わず 使えると されています。 同じ 技術の 新しい バージョンへの 更新、 別の 技術への 書き換え、 新しい 構成での 作り直しの 3つに 対応しています。 - 「PROVEN」などの
判定は 何を 意味しますか? モジュールごとの
検証結果です。 PROVENは 証明できた、 PARTLY PROVENは 足りない 部分を 明示したうえで 一部のみ、 NOT PROVENは 実行できない・結果が 違う・テストが 失敗したなどで 証明できない 状態を 示します。 - どうやって
入れますか? Claude Codeで
/plugin install code-modernization@claude-plugins-officialを実行します。 動かすには Python 3.8以上も 必要です。
まとめ:まずは小さなモジュール1つで試す
code-modernizationは、古い
まずは
今回の
Anthropic released code-modernization v1.0.0, a Claude Code plugin for modernizing legacy codebases
— Daniel San (@dani_avila7) October 14, 2026
Save this post if you have a legacy project worth modernizing
What I find interesting is that it doesn’t just rewrite code. It tries to prove the new implementation behaves like the original
Here’s how:
– Analyzes the legacy system and extracts business rules
– Generates a modernization plan for your approval
– Rewrites or upgrades the code, even across languages
– Runs the old and new implementations with identical inputs and compares outputs
– Generates additional edge cases to test behavior
– Introduces deliberate bugs to verify tests actually catch them
– Produces a verification report with PROVEN, PARTLY PROVEN, or NOT PROVEN results
It also keeps the original code untouched and requires human approval at critical steps
I think this is the right direction for AI-assisted modernization, generating new code is one thing
Proving that you haven’t broken existing behavior is a completely different challenge
Install: /plugin install code-modernization@claude-plugins-official
Repo: https://github.com/anthropics/claude-plugins-official/blob/main/plugins/code-modernization/README.md
「AIを
株式会社デイトラでは、


