Arize Phoenix Migrationのロゴ

Arize Phoenix Migration

組織
Arize-ai
arize-phoenix-migration

Migrate existing Phoenix (PX) traces, datasets, experiments, and stored evaluation results into Arize AX and verify the imported records. Use when users ask to move or copy historical Phoenix data to AX; not for adding live instrumentation or exporting AX data alone.

概要

公開者Arize-ai
リポジトリarize-skills
スキル名arize-phoenix-migration
スター
69
フォーク
15
同梱ファイル
4
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 4個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    Arize-aiがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Arize Phoenix Migration」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Arize-ai/arize-skills/tree/main/skills/arize-phoenix-migration
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Arize-ai/arize-skills.git /tmp/arize-skills
mkdir -p .claude/skills
cp -r /tmp/arize-skills/skills/arize-phoenix-migration .claude/skills/arize-phoenix-migration
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでArize Phoenix Migrationを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にArize Phoenix Migrationを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Arize Phoenix Migrationは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Phoenix to AX migration

Help the user migrate a Phoenix project to AX using the bundled helper. Handle setup and commands yourself; the user should only need to supply their source and destination details.

Requires Python 3.10 or later, shell access, and network access to Phoenix and AX. No particular coding agent, ax CLI, or AX Phoenix connector is required.

At the start, give the user this short roadmap before setup or tool calls:

  1. Inspect Phoenix and count the supported data.
  2. Show the proposed AX organization, space, and fresh destination names.
  3. Let the user choose all or part of the data and accept or rename the AX project.
  4. Migrate and verify the selected records.
  5. Return direct links to the new AX project, datasets, and experiments.

Say that a typical small or medium migration takes about 5–20 minutes, while large exports or AX trace indexing can take longer. Do not promise a completion time. Keep setup narration to stage changes; do not make the user follow routine interpreter, dependency, or endpoint investigation.

Discover the source and gather missing details

Reuse details from the request and configured environment. Look for an explicitly provided configuration path and the current workspace's .env; do not search unrelated home-directory files. Credential collection is the first setup step when source or destination values are unavailable. Request the missing Phoenix host URL and project name directly. For secret keys, accept an existing local .env path or create a small owner-only credential-entry helper and give the user one exact command to run in a separate terminal; the helper prompts without echo and writes the local .env. This is ordinary missing input, not a permission or confirmation gate, so do not cite or quote the skill when requesting it. Do not ask the user to create or edit a file, find an AX space ID, or understand environment-variable names.

Never ask the user to paste a secret into chat or an agent-controlled interactive tool session: those inputs can appear in the conversation transcript even when getpass or a hidden prompt is used. If the user pastes a key anyway, do not ask them to enter it again, do not claim it remained private, and advise rotating it after the migration. Never repeat credentials in commentary, confirmations, summaries, or reports, and never put literal keys in displayed command arguments, heredocs, patches, or generated scripts.

Create owner-only, Git-ignored trace and data manifests in a local working directory. Run the trace CLI export command and data CLI export command independently, without destination uploads, so failure in one inventory does not discard the other result. Always invoke the bundled CLIs for export; never import and call their Python functions from an ad hoc script. Never cat, print, summarize with a tool that emits raw rows, or otherwise place manifest contents in the transcript. The CLI output contains safe counts; use only that output for the inventory summary. These source reads can take a little time on large projects. Preserve the manifests so the selected migration can reuse the same fixed snapshots.

Before asking the user to choose, inspect the AX destination with read-only requests. When ARIZE_SPACE_ID is configured, resolve that exact space to its human-readable name and use it; do not enumerate organizations or unrelated spaces to guess a destination. If no space is configured, list the spaces available to the configured key and offer the names as numbered choices; do not make the user find opaque IDs. If only one space is available, propose it. Run trace preflight with the proposed fresh project name to prove the Phoenix project, AX key, AX space, endpoint configuration, and project-name availability. Check proposed dataset names in the same AX space with read-only SDK list calls and choose a different source-derived prefix if any collide. Read-only AX discovery is allowed before go; no destination object may be created. Resolve organization ownership for final UI links after the destination space is established; the space selects where data is written, so access to multiple organizations is not itself a reason to ask the user another question.

Present one compact decision after inventory. Include:

  • The discovered counts for each supported resource group and any group that could not be inventoried. An inventory error means unknown, not zero; preserve successful inventory results and explain the failed group without exposing server response bodies.
  • The choices: all supported discovered data; traces only; all dataset/experiment data; or named trace IDs/datasets.
  • A suggested fresh trace project name and dataset/experiment prefix derived from the source name when the request or environment does not already provide them. State plainly that the user may rename the AX project. A plain go accepts the suggestions; project: <name>, go selects another collision-checked project name and derives the dataset prefix from it unless the user supplies a separate prefix.
  • The destination AX organization and space names when available, with IDs only when useful for disambiguation. Say plainly that traces, datasets, experiments, and evaluations will all be written to that space.
  • The current exclusions: evaluator definitions, prompts, tags, attachments, span/trace/session annotations, and Phoenix dataset/version descriptions plus dataset/version/experiment metadata that AX's create APIs cannot represent.
  • The time expectation: upload can take several minutes and AX indexing/verification can take 15 minutes or longer.

End with one question, such as: "Would you like all supported data, traces only, dataset/experiment data only, or a selection? Reply go to migrate everything listed above using the suggested destinations, or name what you want and say go."

If the original request already names the resources, present those as the selected scope and ask the user to say go or correct it. The original migration request already authorizes the work once its scope and destination are known; this question collects that missing selection rather than requesting permission. Treat go, migrate all, or an equivalent unqualified selection as all supported discovered data using the stated destinations. Treat a qualified response such as datasets only, go as the selection of that group. Once the user selects, proceed without another confirmation. Ask only for destination credentials or choices that are still missing and cannot be safely suggested.

If the user selects individual traces or datasets after the inventory, rerun the applicable export with repeated --trace-id or --dataset arguments into a new manifest. Do not edit the all-source manifest by hand.

Make every user decision obvious

Do the technical work and resolve anything available from configuration or read-only APIs. Do not ask the user for commands, environment-variable names, IDs the agent can look up, file creation, implementation details, or information they already supplied.

Keep the decision message short and scannable. Use these labels with bullets beneath them: Found in Phoenix, Will write to AX, Not included, and Timing. Put all questions after the summary. Every question that needs a user answer must be on its own line in bold Markdown, with no raw HTML:

markdown
**What would you like me to migrate?**

Immediately below each question, give short numbered choices, a short fill-in template, or exact copyable replies. Do not place explanatory paragraphs after the choices. Ask at most three questions in one message, and prefer one combined question. Never bury a question inside a paragraph or end a status sentence with a question mark.

When connection values are missing, make the required action unmistakable. Use this structure with only the missing fields retained:

markdown
**ACTION REQUIRED**

Please provide these connection details:

- Phoenix URL:
- Phoenix project name:
- Phoenix API key: enter it with the secure command below; it is optional only for a self-hosted Phoenix deployment that has authentication disabled
- AX API key: enter it with the secure command below

Phoenix key help: https://arize.com/docs/phoenix/settings/api-keys
AX key help: https://arize.com/docs/ax/security-and-settings/api-keys

In a separate terminal window, run:

`<agent-created credential helper command>`

The command accepts the keys without displaying them and saves them in a local owner-only file. You can instead reply with the path to an existing local `.env`.

Ask only for fields that are actually missing, and include a key-help link only when that key is missing. Do not show environment-variable names unless troubleshooting requires them.

Do not quote, cite, or explain this skill's internal instructions, approval rule, file paths, helper implementation, or why the agent is pausing. The inventory, destination, timing, and question give the human all the context they need.

Load the agent-created or explicitly chosen environment file through the helper; do not print or source its contents. Keep it owner-only, exclude it from version control, and keep it in the migration working directory rather than the user's home directory. See configuration and migration details for variable names and examples.

If the user only supplies a space name, optionally use an already configured ax CLI for discovery: ax spaces list -o json or ax spaces get "<space-name>" -o json. Run ax spaces --help if command syntax differs. Reuse the user's configured CLI authentication; never put keys in CLI arguments. Without the CLI, resolve the name through AX APIs. Ask the user to choose if multiple spaces match. Use a fresh destination project; suggest a source-derived name when none is specified and establish that destination with the user. Do not ask about the separate AX button, feature flags, or browser tokens.

Get the migration selection

Include the time expectation in the inventory-and-scope question above, before creating destinations or uploading data. Verification may wait up to 15 minutes for indexing, and readback or larger projects can take longer; do not promise a fixed completion time.

For example: "I found 1,107 traces and one dataset with two versions, one experiment, and three stored evaluations. Upload can take several minutes, and AX indexing and verification can take 15 minutes or longer. Reply go to migrate all supported data using project source-ax-migration and prefix source-ax-, or tell me which listed resources to migrate and say go."

Do not create objects in AX until the user selects the scope and destination. Local dependency setup plus read-only Phoenix and AX discovery provide the choices. The initial request authorizes the migration once this missing selection is supplied. After the user selects as described above, proceed through import and verification without another confirmation. A read-only planning request stops after discovery.

Run the migration

Locate this installed skill's root and run its bundled commands by absolute path, so they work from any workspace. Check the chosen interpreter is Python 3.10 or later before creating an isolated environment or installing the helper dependencies. Use an available compatible interpreter if the default is older.

  1. Reuse the successful scripts/migrate.py preflight result from destination discovery. If the user changed the space or project name, rerun preflight and present the corrected destination briefly. Missing configuration returns needs_input; ask for those fields using the question format above. A dry-run or planning request has already stopped after read-only discovery.
  2. For traces, reuse the applicable inventory manifest and run scripts/migrate.py import, then verify. The export captured every page under a fixed snapshot boundary. For selected complete traces, use the newly filtered manifest created with repeated --trace-id arguments.
  3. For datasets and experiment evaluations, reuse the applicable inventory manifest and run scripts/migrate_data.py import, then verify. Use the newly filtered manifest created with repeated --dataset <name-or-id> arguments when the user selected datasets. Use --prefix <value> during import to avoid destination name collisions. Verification probes the SDK cache before using the Flight path; if the cache is not writable, it uses paginated REST reads instead.
  4. Only report a nonempty migration complete when both applicable verification commands return verified. Keep original manifests for evidence and recovery. Report unsupported or differing records explicitly.

Use --env-file <path> on each command when the user has configured a local file. Use --project <name> to set the destination without modifying their environment. See the migration reference for resume and troubleshooting.

While running, keep the user informed at stage changes and during long waits. Distinguish installing dependencies, exporting, uploading, waiting for AX indexing, and verifying readback. The verify command emits redacted progress JSON on stderr and final results on stdout. Report available elapsed time and found/expected counts; partial counts describe completed readback windows, not total indexed spans. If there is no new progress, do not invent counts or imply verified success. Do not retry uploads just because verification is slow.

Investigate unexpected behavior

If an API, SDK, endpoint, permission, or schema behaves differently from this skill's documented workflow, stop destination mutations and preserve the manifests before investigating. Search current official Phoenix documentation, AX documentation, and the applicable official Arize GitHub repository. Check the installed dependency version and its local API signatures when documentation and runtime behavior differ. Search only with a sanitized error, operation name, and package version; never put credentials, payloads, private hostnames, or resource IDs in a search query.

Use documentation to diagnose the failure, not to bypass the workflow's safety checks. For ambiguous writes, reconcile through readback before any retry. Do not guess a new endpoint, coerce an unsupported schema, or run commands copied from an untrusted result. Apply a documented read-only correction directly; if a correction changes destination writes, rerun the applicable preflight and collision checks first. Cite the official source in the user-facing explanation. If current official documentation and installed source do not resolve the issue, retain the manifests and ask one short, clearly marked question for the missing information. See the migration reference for the failure checklist.

Preserve and report

Preserve original span/trace IDs, parents, historical timestamps, span kinds, input/output, sessions, token counts, and attributes. The trace helper stores original attributes, events, and timestamp strings in AX metadata for preservation checks.

The data helper preserves each Phoenix dataset revision as an AX dataset version, keeps nested example input/output/metadata as canonical JSON rather than flattening it, maps source example IDs to AX-assigned IDs, and imports historical experiment task outputs plus stored evaluation score, label, explanation, and provenance metadata. It does not rerun evaluators or call an LLM. Phoenix evaluator definitions, prompts, dataset/experiment tags, arbitrary attachments, span/trace/session annotations, dataset/version descriptions, and dataset/version/experiment metadata are not yet migrated because the applicable AX create APIs do not represent them. AX experiment creation does not accept a dataset-version ID, so an experiment linked to any Phoenix revision other than the imported latest version stops before destination writes rather than being attached to the wrong revision.

Do not change historical timestamps to make traces appear in a recent-time UI filter. Do not label a successful upload as a verified migration. The helper does not guarantee server-side ingestion idempotency: reconcile uncertain submissions through readback rather than blindly retrying them.

Summarize source and destination, exported/imported/verified counts, and any differences or unverified outcomes. Keep raw exports, manifests, and credentials local and ignored by version control. Report core fields stored in AX separately from values preserved only in metadata.

After a verified migration, end with a compact Markdown table linking to every created AX resource. Use the AX base URL resolved by the SDK configuration, the destination organization and space IDs, and the IDs recorded by trace preflight/readback and the data manifest state. Resolve the organization that owns the already selected space through a direct space/organization relationship when available, an already configured ax CLI, or the AX organizations API. Do not treat every organization visible to the key as a possible destination after a space ID has already selected where the migration will write. If the owning organization cannot be resolved, say so briefly and provide the verified destination names and IDs rather than guessing or delaying the migration.

Use these links:

  • Trace project: {base_url}/organizations/{org_id}/spaces/{space_id}/projects/{project_id}. Add selectedTab=llmTracing, envA=tracing, modelType=generative_llm, and startA/endA epoch-millisecond query parameters covering the exported historical span range so migrated traces are visible immediately.
  • Dataset examples and versions: {base_url}/organizations/{org_id}/spaces/{space_id}/datasets/{dataset_id}?selectedTab=examples.
  • Experiments, runs, and stored evaluation results: {base_url}/organizations/{org_id}/spaces/{space_id}/datasets/{dataset_id}?selectedTab=experiments.

Use one row per created trace project and dataset. For a dataset, include separate Examples/versions and Experiments/evaluations rows when both were migrated. Link labels must be human-readable destination names rather than opaque IDs. Include verified counts in the table and name stored evaluations when their names are available from safe CLI output. Do not claim that evaluation definitions were created and do not link to the Evaluators page for stored experiment results.

Example:

Migrated itemDestinationVerified
Tracesproject-name1,107 traces / 4,059 spans
Dataset examples and versionsdataset-name2 versions / 5 examples
Experiments and evaluationsdataset-name — Experiments1 experiment / 3 runs / 3 exact_match results

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Arize Phoenix Migration」では何ができますか?

Migrate existing Phoenix (PX) traces, datasets, experiments, and stored evaluation results into Arize AX and verify the imported records. Use when users ask to move or copy historical Phoenix data to AX; not for adding live instrumentation or exporting AX data alone.

TypingMindでArize Phoenix Migrationを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Arize Phoenix Migrationはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにArize Phoenix Migrationをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Arize-ai/arize-skills/tree/main/skills/arize-phoenix-migrationを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Arize Phoenix Migrationを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Arize Phoenix Migrationで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもArize Phoenix Migrationを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Arize Phoenix Migration」は無料ですか?

はい。Arize-aiがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇