Nemo relay migrate from flow

From NVIDIA/skills · View interactive version

Nemo relay migrate from flow is an AI agent skill from the GitHub repository NVIDIA/skills. Use this skill when migrating applications, examples, integrations, documentation, manifests, or repository code from NeMo Flow to NeMo Relay across Python, Rust, Node.js, Go, C FFI, CLI, configuration, and observability surfaces.

How to use this skill

Skill file

Migrate From NeMo Flow To NeMo Relay

Use this skill when a user has existing NeMo Flow code or documentation and

wants it converted to NeMo Relay. Treat the migration as a mechanical rename

plus language-specific validation, not a behavior rewrite.

Keep compatibility exceptions explicit before applying broad renames.

Default Workflow

  1. Inspect the working tree and identify touched surfaces: Rust, Python,

Node.js, Go, C FFI, CLI/config, docs, or integrations.

  1. Resolve SKILL_DIR to the absolute directory containing this SKILL.md and

TARGET_PATH to the source repository or target project. Run the bundled

helper in dry-run mode before editing:

python3 "$SKILL_DIR/scripts/migrate_from_nemo_flow.py" "$TARGET_PATH" --rename-paths

  1. Review the reported text edits, path renames, and legacy project

configuration warnings with the user. Do not migrate project-local

.nemo-flow/config.toml or .nemo-flow/plugins.toml into .nemo-relay.

Move those settings manually to a supported user or explicit configuration

path after review.

  1. Obtain explicit confirmation for the resolved target root, then rerun with

--write, --rename-paths, and --confirm-root "$TARGET_PATH".

  1. Apply language-specific cleanup for package manager lockfiles, generated

artifacts, and public API examples.

  1. Search for remaining Flow names and verify the affected language surfaces.

Mechanical Rename Map

NeMo-Flow -> NeMo-Relay

python/nemo_flow -> python/nemo_relay

nemo-relay-adaptive, nemo_flow:: -> nemo_relay::

points such as /typed, /plugin, /adaptive, and /observability

github.com/NVIDIA/NeMo-Relay/go/nemo_relay, package aliases

nemo_flow -> nemo_relay, and source directories go/nemo_flow ->

go/nemo_relay

nemo_relay_*, NemoFlow* -> NemoRelay*, and NEMO_FLOW_* ->

NEMO_RELAY_*

~/.config/nemo-flow -> ~/.config/nemo-relay, NEMO_FLOW_* ->

NEMO_RELAY_*, and x-nemo-flow-* -> x-nemo-relay-*. Do not blindly

rename project-local .nemo-flow/config.toml or .nemo-flow/plugins.toml

into .nemo-relay; those files require manual migration to a supported user

or explicit configuration path.

Do not replace bare flow, Flow, or FlowError. Those can be domain words

or intentional compatibility names.

Language Cleanup

package paths, extras, and native module names. Regenerate or refresh lockfiles

with the user's package workflow after source edits.

references, and use nemo_relay::... imports. Let Cargo regenerate

Cargo.lock when dependencies changed.

native addon artifact names, and imports from nemo-relay-node. Run the

package manager to refresh locks.

local directory layout under go/nemo_relay.

type names, macro constants, loader paths, and downstream bindings.

links, hosted docs URLs, CLI commands, config paths, and integration names.

Automation Helper

Use $SKILL_DIR/scripts/migrate_from_nemo_flow.py for first-pass edits. The

helper:

leaves them unchanged, and reports that they require manual migration to a

supported user or explicit configuration path

writing, and refuses filesystem-root or home-directory writes

symbolic links, and refuses write mode on platforms that cannot provide those

guarantees

mutation fails

config paths, headers, environment variables, and FFI type prefixes

The helper does not classify arbitrary JSON, YAML, TOML, or INI files as secret.

Review every configuration file in the dry-run report. If any reported file is

unreviewed or credential-bearing, do not use --write on that root. Apply the

reviewed changes manually and leave secret-bearing files untouched without

reading or displaying their values.

Set shell-safe absolute paths before invoking the helper. Replace the example

values with the resolved skill directory and either the source repository or the

user's target project:

SKILL_DIR="/resolved/absolute/path/to/nemo-relay-migrate-from-flow"
TARGET_PATH="/resolved/absolute/path/to/target-project"

python3 "$SKILL_DIR/scripts/migrate_from_nemo_flow.py" "$TARGET_PATH" --rename-paths
python3 "$SKILL_DIR/scripts/migrate_from_nemo_flow.py" "$TARGET_PATH" \
  --write --rename-paths --confirm-root "$TARGET_PATH"

Use --include-lockfiles only when the user wants lockfiles edited directly;

otherwise regenerate them with Cargo, uv/pip, npm, or Go tooling.

Verification

rg -n "NeMo Flow|NeMo-Flow|nemo_flow|nemo-flow|NEMO_FLOW|NemoFlow|nemo_flow\\.h|nemo_flow_"

environment.

install commands, or API references changed.

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.