> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 移行とモダナイゼーション

export const PromptBlock = ({children, type, agent, intent, playbookId}) => {
  var utm = 'utm_source=docs&utm_medium=use-case-gallery&utm_campaign=prompt-block';
  var tag = 'docs-use-case-gallery';
  var agentParams = (agent ? '&agent=' + agent : '') + (intent ? '&intent=' + intent : '') + (playbookId ? '&playbookId=' + playbookId : '');
  var label = type === 'schedule' ? 'Schedule in Devin' : type === 'playbook' ? 'Create Playbook' : type === 'knowledge' ? 'Add to Knowledge' : agent === 'advanced' ? 'Try in Devin' : agent === 'dana' ? 'Try in Dana' : agent === 'ada' ? 'Try in Ask Devin' : 'Try in Devin';
  var buildUrl = function (text) {
    var encoded = encodeURIComponent(text);
    if (type === 'schedule') return 'https://app.devin.ai/settings/schedules/create?' + utm + agentParams + '&prompt=' + encoded;
    if (type === 'playbook') return 'https://app.devin.ai/settings/playbooks/create?' + utm + '&body=' + encoded;
    if (type === 'knowledge') return 'https://app.devin.ai/knowledge?' + utm + '&body=' + encoded;
    if (agent === 'ada') return 'https://app.devin.ai/search?' + utm + '&noSubmit=true&prompt=' + encoded;
    return 'https://app.devin.ai/?tags=' + tag + '&' + utm + agentParams + '&prompt=' + encoded;
  };
  const ref = React.useRef(null);
  const [href, setHref] = React.useState('#');
  React.useEffect(() => {
    if (!ref.current) return;
    var codeEl = ref.current.querySelector('pre code');
    if (codeEl) {
      var text = codeEl.textContent.trim();
      if (text) setHref(buildUrl(text));
    }
    var header = ref.current.querySelector('[data-component-part="code-block-header"]');
    if (header && !header.querySelector('.prompt-block-devin-link')) {
      var link = document.createElement('a');
      link.href = href;
      link.target = '_blank';
      link.rel = 'noopener noreferrer';
      link.className = 'prompt-block-devin-link';
      link.style.cssText = 'display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:#fff;font-size:11px;font-weight:500;padding:4px 10px;border-radius:6px;white-space:nowrap;background:#317CFF;transition:background 0.2s;margin-left:8px;';
      link.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg> ' + label;
      link.onmouseenter = function () {
        link.style.background = '#2968D9';
      };
      link.onmouseleave = function () {
        link.style.background = '#317CFF';
      };
      header.appendChild(link);
    }
    var existingLink = ref.current.querySelector('.prompt-block-devin-link');
    if (existingLink && href !== '#') existingLink.href = href;
  });
  return <div className="prompt-block" ref={ref}>{children}</div>;
};

<div id="overview">
  ## 概要
</div>

Devin は、移行作業の負担を軽減し、異なるフレームワークや言語などへの移行を支援します。[playbooks](/ja/product-guides/creating-playbooks) を使うと、大規模な移行のためのプロンプトを簡単に再利用できます。

<div id="use-cases">
  ## ユースケース
</div>

1. 言語移行（例：JavaScript から TypeScript への移行）
2. フレームワークのアップグレード（例：React 17 から 18 へのアップグレード）
3. データベース移行
4. 依存関係の更新
5. アーキテクチャのモダナイズ

<div id="example-prompts">
  ## プロンプト例
</div>

<AccordionGroup>
  <Accordion title="Java 7 から Java 8 へのアップグレード" icon="circle-up">
    <PromptBlock>
      ```txt Java アップグレード theme={null}
      ## 概要
      このプレイブックは、Java 7 プロジェクトを Java 8 にアップグレードするための手順をステップごとに説明します。

      ## 手順
      1. 対象のプロジェクトが Java 7 上で動作していることを確認する
      2. Java 8 Development Kit（JDK）をインストールする
      3. プロジェクトのビルド設定を更新する
      4. 非推奨となった Java 7 API を特定して置き換える
      5. コードベースを分析し、Java 8 で可能な改善点を検討する
      6. ユニットテストを更新する
      7. 綿密なテストを実施する
      8. ドキュメントを更新する
      9. アプリケーションをビルドして検証する

      ## アドバイスとヒント
      - 新機能や API の詳細については Java 8 のドキュメントを参照してください
      - 大規模な移行の場合は、複数の移行セッションを並列で実行するために [API リファレンス](/api-reference/overview) の利用を検討してください
      ```
    </PromptBlock>
  </Accordion>

  <Accordion title="TypeScript への移行" icon="code">
    <PromptBlock>
      ```txt TypeScript 移行 theme={null}
      JavaScript プロジェクトを TypeScript に移行してください。必要な作業は次のとおりです：
      1. TypeScript の設定を追加する
      2. .js ファイルを .ts に変換する
      3. 適切な型定義を追加する
      4. ビルドプロセスを更新する
      5. すべてのテストが引き続き成功することを確認する
      ```
    </PromptBlock>
  </Accordion>
</AccordionGroup>

<div id="example-session">
  ## セッションの例
</div>

<div id="csv-to-notion-bulk-migration">
  ### CSV から Notion への一括移行
</div>

この例では、Devin がユーザーの CSV ファイルのデータを Notion に移行するのを支援します。

[https://app.devin.ai/sessions/583736c03c174c92884aad7ada325fe2](https://app.devin.ai/sessions/583736c03c174c92884aad7ada325fe2)
