# Node.js to Rust Migration Pack: 15 Skills

> Fifteen skills that let your AI agent move a Node.js product (Express, Next.js, React Native, Socket.IO, Postgres) to Rust without breaking the clients and users you already have, with tools that prove every step.

Node.js to Rust Migration Pack: 15 Skills is a paid AI agent skill pack (several skills in one listing) on Agensi by jolupa, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $49 (one-time purchase)
- Creator: [jolupa](https://www.agensi.io/creators/jolupa)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0.0
- Last updated: 2026-12-04
- Security: scan passed (2026-12-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/node-js-to-rust-migration-pack-15-skills
- Tags: ai-agents, security, devops, rust-migration, nodejs-to-rust, express-to-axum, axum, sqlx

## What it does

- Finds every endpoint, socket event, job and setting of your Node.js app before anything is rewritten
- Plans the migration as small tasks several AI agents can work on at once without editing the same files
- Keeps mobile users signed in and links working when the React Native app becomes native
- Reviews and attacks the rewrite for security holes the port opened, and leaves tests that prove them
- Plans a staged switch to the new system with a rehearsed way back, and judges each stage
- Compares the new Rust API with the old one and lists every difference your apps would notice

## About this skill

Rewriting a working product is easy to start and hard to finish without breaking someone. The old API returned ids as strings, the old app kept tokens in a keychain entry nobody remembers, the old router accepted a trailing slash, the old middleware checked a role the new code forgot. A general AI agent misses most of these. This pack gives your agent the checklists, references and tools to find them first.

**What's inside**

- **Understand the legacy:** `legacy-app-inventory` (every endpoint with its full path and middleware, sockets, jobs, env vars, clients) and `legacy-behavior-spec` (cited, testable behavior specs).
- **Plan and coordinate:** `rust-migration-director` splits the work into task contracts with write scopes, independent reviews and gates, for several agents in parallel.
- **Port:** `express-to-axum`, `sqlx-database-parity`, `realtime-protocol-parity` (including old Socket.IO 2.x mobile clients), `nextjs-to-leptos`, `react-native-to-native` (SwiftUI and Compose apps that install over the store version without signing anyone out) and `rust-cross-platform-core` (one Rust core for web, iOS and Android).
- **Prove it:** `api-parity-testing` (record the legacy, replay against the rewrite, classify every difference), `visual-parity-testing` (screens and accessibility snapshots, state by state) and `migration-evidence-gate` (nothing is "done" without a passing recorded run and an independent review).
- **Attack it:** `migration-security-review` (what the port stopped enforcing, secrets in web and mobile bundles) and `migration-red-team` (authorization attacks that leave exploit tests).
- **Ship it:** `staged-cutover-rollback` (canary stages, thresholds, rehearsed rollback and a verdict per stage).

Each skill has its SKILL.md, references that load only when needed, templates and a bundled tool. The 18 Python scripts use the standard library only, are covered by 191 unit tests, and read nothing beyond the files and local URLs you give them.

**One program or many agents:** the director checks where it runs. Inside Orca it uses Orca worktrees and worker agents; anywhere else it uses your program's own subagents (Claude Code, Codex, Cursor and others), or runs tasks one by one.

**Where it stops:** the skills plan, port, test and review. They never deploy, publish apps, move production traffic or change production data; those steps stay with the people your plan names. Probes only target local or approved staging instances.

**Measured, not just claimed**

In a blind-graded benchmark, the same AI agent (Claude Opus 5.5) did 16 realistic migration tasks twice: once with these skills and once without any skill. The graders scored 114 assertions without knowing which run used the skills.

| | With the pack | Same agent, no skills |
|---|---|---|
| Assertions passed | 113 / 114 (99%) | 106 / 114 (93%) |
| Tasks won / tied / lost | 5 / 11 / 0 | |

Without the skills, the agent missed these:
- parallel tasks editing the same file
- an admin list reachable through a trailing slash
- a canary declared healthy on too little traffic to prove it
- database collation
- the deep links a native app must keep

It also quoted part of a secret in a security review. With the skills, it used a fingerprint. On easy tasks a strong agent often does as well without help. The pack's value shows on the details that break production. The method, every task and the limitations are in BENCHMARK.md.

## Requires

- Runs on macOS only
- Python 3.9+
- An AI agent with a terminal tool
- Node.js
- Playwright
- Optional: Git
- Optional: Rust toolchain (cargo, rustup)
- Optional: Node.js 18+ and Playwright
- Optional: Xcode or Android SDK (native apps)
- Optional: Orca (multi-agent mode)

Each step uses the toolchains your migration already needs; a missing one is recorded as a blocker and the other skills keep working. The scripts install and download nothing.

## Known limitations

It plans, ports, tests and reviews; it never deploys, publishes apps, moves production traffic or changes production data. Probes and attacks run only against local or approved staging instances with synthetic accounts. Building native apps needs Xcode (macOS) and the Android SDK. Parity checks compare behavior you can observe or record; they cannot prove behavior no test exercises. The guidance targets the library versions in the compatibility note. Orca is optional and not included.

## Technical details

15 Agent Skills folders, each with SKILL.md, references loaded on demand, templates and Python 3.9+ standard-library tools (18 scripts, 191 unit tests). Tools: inventory.py (routes with full mount paths and middleware chains, sockets, jobs, env names), spec_lint.py, parity.py (record, replay, classify API drift: types, nulls, headers, cookies, caching, errors), evidence.py and gate.py (run receipts, task, feature and release gates), express_routes.py, legacy_compat.rs (Axum 0.8 helpers for legacy error bodies and JSON), db_audit.py (pg type parsers, time zones, collation, transactions), rt_parity.py (SocketIO EIO3/EIO4 probe and trace diff), next_routes.py (Next.js to Leptos route table and skeleton), rn_inventory.py (Expo secure-store, AsyncStorage, identifiers, deep links), portability_check.py (wasm32, iOS, Android hazards; optional cargo check per target), png_diff.py and capture.js (Playwright), rust_security_lint.py and secret_scan.py, authz_probe.py and campaign_check.py, cutover_check.py (thresholds, Wilson bounds, stage verdicts). State lives in migration-project/ in your repository. The director detects Orca from environment variables and otherwise uses the host's subagents.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Node.js to Rust Migration Pack: 15 Skills skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Does my app have to be Express, Next.js and React Native?

No. The skills cover the common Node.js stack in depth (Express or other Node APIs, Next.js, React Native or Expo, Socket.IO, PostgreSQL), and each one works on its own. The parity, evidence, security and cutover skills work for any stack you rewrite in Rust or another language.

### Do I need Orca or several agents?

No. Outside Orca the director uses your program's own subagents, or runs the tasks one by one with independent reviews. Inside Orca it detects it and uses Orca worktrees and workers.

### Which AI agents does it work with?

Any client that reads Agent Skills (SKILL.md) and gives the agent a terminal, such as Claude Code, Codex, Cursor, Gemini CLI and OpenCode. No skill depends on a specific model.

### Will it deploy or change production?

No. It never deploys, publishes apps, moves traffic or changes production data. The cutover skill writes and checks the plan and judges each stage from your measurements; people you name make the switch.

### Are the security and red-team tools safe to run?

They only target local instances unless you pass --allow-remote for an approved staging environment, use synthetic accounts, and report secrets by location and fingerprint, never by value.

### What does the agent do differently with the pack?

It runs tools instead of guessing: it resolves real routes and middleware, replays legacy traffic and diffs it, reads the exact keychain and keystore locations the old app used, lints the port for dropped auth layers and refuses to call work done without a passing recorded run.

### Does it write the Rust code for me?

Yes, through your agent: the porting skills give it the patterns, compatibility helpers and checks to write Axum, SQLx, Leptos, SwiftUI and Compose code that behaves like the legacy. Every port is then verified against the legacy, not just compiled.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
