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 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 4 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 Arize-ai 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Arize Phoenix Migration AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

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

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

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,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Arize Phoenix Migration。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Arize Phoenix Migration 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 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

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Arize Phoenix Migration AI 技能有什么作用?

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,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Arize Phoenix Migration?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Arize Phoenix Migration 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Arize Phoenix Migration 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Arize Phoenix Migration AI 技能免费吗?

是的。Arize-ai 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇