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
- Inspect the working tree and identify touched surfaces: Rust, Python,
Node.js, Go, C FFI, CLI/config, docs, or integrations.
- 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
- 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.
- Obtain explicit confirmation for the resolved target root, then rerun with
--write, --rename-paths, and --confirm-root "$TARGET_PATH".
- Apply language-specific cleanup for package manager lockfiles, generated
artifacts, and public API examples.
- Search for remaining Flow names and verify the affected language surfaces.
Mechanical Rename Map
- Brand and repository:
NeMo Flow -> NeMo Relay,
NeMo-Flow -> NeMo-Relay
- Python:
nemo-flow -> nemo-relay, nemo_flow -> nemo_relay,
python/nemo_flow -> python/nemo_relay
- Rust:
nemo-flow -> nemo-relay, nemo-flow-adaptive ->
nemo-relay-adaptive, nemo_flow:: -> nemo_relay::
- Node.js:
nemo-flow-node -> nemo-relay-node, including related entry
points such as /typed, /plugin, /adaptive, and /observability
- Go:
github.com/NVIDIA/NeMo-Flow/go/nemo_flow ->
github.com/NVIDIA/NeMo-Relay/go/nemo_relay, package aliases
nemo_flow -> nemo_relay, and source directories go/nemo_flow ->
go/nemo_relay
- C FFI:
nemo_flow.h -> nemo_relay.h, nemo_flow_* ->
nemo_relay_*, NemoFlow* -> NemoRelay*, and NEMO_FLOW_* ->
NEMO_RELAY_*
- CLI/config:
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
- Python: update
pyproject.toml, imports, type stubs, integration
package paths, extras, and native module names. Regenerate or refresh lockfiles
with the user's package workflow after source edits.
- Rust: update
Cargo.toml crate names, workspace dependencies, package
references, and use nemo_relay::... imports. Let Cargo regenerate
Cargo.lock when dependencies changed.
- Node.js: update
package.json, workspace names, package-lock entries,
native addon artifact names, and imports from nemo-relay-node. Run the
package manager to refresh locks.
- Go: update
go.mod, import paths, package declarations, aliases, and any
local directory layout under go/nemo_relay.
- C FFI: update header includes, exported symbol names, status and callback
type names, macro constants, loader paths, and downstream bindings.
- Docs and examples: update badges, package install commands, repository
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:
- runs as a dry run unless
--write is passed
- skips common vendor, build, cache, and generated directories
- skips lockfiles unless
--include-lockfiles is passed
- skips symbolic links and credential-bearing dotenv files
- detects project-local
.nemo-flow/config.toml and .nemo-flow/plugins.toml,
leaves them unchanged, and reports that they require manual migration to a
supported user or explicit configuration path
- requires the reviewed target root to be repeated with
--confirm-root before
writing, and refuses filesystem-root or home-directory writes
- anchors writes and renames to verified directory handles without following
symbolic links, and refuses write mode on platforms that cannot provide those
guarantees
- uses atomic no-replace path renames and exits nonzero when any requested
mutation fails
- can report or perform path renames with
--rename-paths
- rewrites only explicit NeMo Flow identifiers, package names, repository names,
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
- Search for remaining explicit Flow identifiers:
rg -n "NeMo Flow|NeMo-Flow|nemo_flow|nemo-flow|NEMO_FLOW|NemoFlow|nemo_flow\\.h|nemo_flow_"
- Run targeted tests for every affected language surface.
- For Rust changes, run
cargo test or the repository's Rust test recipe.
- For Python changes, run the relevant import check and tests in the target
environment.
- For Node.js changes, run package install, type checks, and package tests.
- For Go changes, run
go test ./... from the updated module.
- For docs-only migrations, build or link-check docs if the site navigation,
install commands, or API references changed.
Related Skills
nemo-relay-get-started
nemo-relay-instrument-calls
nemo-relay-debug-runtime-integration
1---2name: nemo-relay-migrate-from-flow3description: 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.4license: Apache-2.05---67# Migrate From NeMo Flow To NeMo Relay89Use this skill when a user has existing NeMo Flow code or documentation and10wants it converted to NeMo Relay. Treat the migration as a mechanical rename11plus language-specific validation, not a behavior rewrite.12Keep compatibility exceptions explicit before applying broad renames.1314## Default Workflow15161. Inspect the working tree and identify touched surfaces: Rust, Python,17 Node.js, Go, C FFI, CLI/config, docs, or integrations.182. Resolve `SKILL_DIR` to the absolute directory containing this `SKILL.md` and19 `TARGET_PATH` to the source repository or target project. Run the bundled20 helper in dry-run mode before editing:21 `python3 "$SKILL_DIR/scripts/migrate_from_nemo_flow.py" "$TARGET_PATH" --rename-paths`223. Review the reported text edits, path renames, and legacy project23 configuration warnings with the user. Do not migrate project-local24 `.nemo-flow/config.toml` or `.nemo-flow/plugins.toml` into `.nemo-relay`.25 Move those settings manually to a supported user or explicit configuration26 path after review.274. Obtain explicit confirmation for the resolved target root, then rerun with28 `--write`, `--rename-paths`, and `--confirm-root "$TARGET_PATH"`.295. Apply language-specific cleanup for package manager lockfiles, generated30 artifacts, and public API examples.316. Search for remaining Flow names and verify the affected language surfaces.3233## Mechanical Rename Map3435- Brand and repository: `NeMo Flow` -> `NeMo Relay`,36 `NeMo-Flow` -> `NeMo-Relay`37- Python: `nemo-flow` -> `nemo-relay`, `nemo_flow` -> `nemo_relay`,38 `python/nemo_flow` -> `python/nemo_relay`39- Rust: `nemo-flow` -> `nemo-relay`, `nemo-flow-adaptive` ->40 `nemo-relay-adaptive`, `nemo_flow::` -> `nemo_relay::`41- Node.js: `nemo-flow-node` -> `nemo-relay-node`, including related entry42 points such as `/typed`, `/plugin`, `/adaptive`, and `/observability`43- Go: `github.com/NVIDIA/NeMo-Flow/go/nemo_flow` ->44 `github.com/NVIDIA/NeMo-Relay/go/nemo_relay`, package aliases45 `nemo_flow` -> `nemo_relay`, and source directories `go/nemo_flow` ->46 `go/nemo_relay`47- C FFI: `nemo_flow.h` -> `nemo_relay.h`, `nemo_flow_*` ->48 `nemo_relay_*`, `NemoFlow*` -> `NemoRelay*`, and `NEMO_FLOW_*` ->49 `NEMO_RELAY_*`50- CLI/config: `nemo-flow` -> `nemo-relay`,51 `~/.config/nemo-flow` -> `~/.config/nemo-relay`, `NEMO_FLOW_*` ->52 `NEMO_RELAY_*`, and `x-nemo-flow-*` -> `x-nemo-relay-*`. Do not blindly53 rename project-local `.nemo-flow/config.toml` or `.nemo-flow/plugins.toml`54 into `.nemo-relay`; those files require manual migration to a supported user55 or explicit configuration path.5657Do not replace bare `flow`, `Flow`, or `FlowError`. Those can be domain words58or intentional compatibility names.5960## Language Cleanup6162- **Python**: update `pyproject.toml`, imports, type stubs, integration63 package paths, extras, and native module names. Regenerate or refresh lockfiles64 with the user's package workflow after source edits.65- **Rust**: update `Cargo.toml` crate names, workspace dependencies, package66 references, and `use nemo_relay::...` imports. Let Cargo regenerate67 `Cargo.lock` when dependencies changed.68- **Node.js**: update `package.json`, workspace names, package-lock entries,69 native addon artifact names, and imports from `nemo-relay-node`. Run the70 package manager to refresh locks.71- **Go**: update `go.mod`, import paths, package declarations, aliases, and any72 local directory layout under `go/nemo_relay`.73- **C FFI**: update header includes, exported symbol names, status and callback74 type names, macro constants, loader paths, and downstream bindings.75- **Docs and examples**: update badges, package install commands, repository76 links, hosted docs URLs, CLI commands, config paths, and integration names.7778## Automation Helper7980Use `$SKILL_DIR/scripts/migrate_from_nemo_flow.py` for first-pass edits. The81helper:8283- runs as a dry run unless `--write` is passed84- skips common vendor, build, cache, and generated directories85- skips lockfiles unless `--include-lockfiles` is passed86- skips symbolic links and credential-bearing dotenv files87- detects project-local `.nemo-flow/config.toml` and `.nemo-flow/plugins.toml`,88 leaves them unchanged, and reports that they require manual migration to a89 supported user or explicit configuration path90- requires the reviewed target root to be repeated with `--confirm-root` before91 writing, and refuses filesystem-root or home-directory writes92- anchors writes and renames to verified directory handles without following93 symbolic links, and refuses write mode on platforms that cannot provide those94 guarantees95- uses atomic no-replace path renames and exits nonzero when any requested96 mutation fails97- can report or perform path renames with `--rename-paths`98- rewrites only explicit NeMo Flow identifiers, package names, repository names,99 config paths, headers, environment variables, and FFI type prefixes100101The helper does not classify arbitrary JSON, YAML, TOML, or INI files as secret.102Review every configuration file in the dry-run report. If any reported file is103unreviewed or credential-bearing, do not use `--write` on that root. Apply the104reviewed changes manually and leave secret-bearing files untouched without105reading or displaying their values.106107Set shell-safe absolute paths before invoking the helper. Replace the example108values with the resolved skill directory and either the source repository or the109user's target project:110111```bash112SKILL_DIR="/resolved/absolute/path/to/nemo-relay-migrate-from-flow"113TARGET_PATH="/resolved/absolute/path/to/target-project"114115python3 "$SKILL_DIR/scripts/migrate_from_nemo_flow.py" "$TARGET_PATH" --rename-paths116python3 "$SKILL_DIR/scripts/migrate_from_nemo_flow.py" "$TARGET_PATH" \117 --write --rename-paths --confirm-root "$TARGET_PATH"118```119120Use `--include-lockfiles` only when the user wants lockfiles edited directly;121otherwise regenerate them with Cargo, uv/pip, npm, or Go tooling.122123## Verification124125- Search for remaining explicit Flow identifiers:126 `rg -n "NeMo Flow|NeMo-Flow|nemo_flow|nemo-flow|NEMO_FLOW|NemoFlow|nemo_flow\\.h|nemo_flow_"`127- Run targeted tests for every affected language surface.128- For Rust changes, run `cargo test` or the repository's Rust test recipe.129- For Python changes, run the relevant import check and tests in the target130 environment.131- For Node.js changes, run package install, type checks, and package tests.132- For Go changes, run `go test ./...` from the updated module.133- For docs-only migrations, build or link-check docs if the site navigation,134 install commands, or API references changed.135136## Related Skills137138- `nemo-relay-get-started`139- `nemo-relay-instrument-calls`140- `nemo-relay-debug-runtime-integration`