skills/railway-to-createos/SKILL.md
Migrate Node.js, Python, Go, Ruby, and other applications from Railway to CreateOS. Parses railway.json and railway.toml, maps environment variables per service, detects framework and build settings, and deploys to CreateOS via the CreateOS MCP server. Use this skill whenever the user mentions migrating from Railway, leaving Railway, moving a deployment off Railway, replacing Railway, or when a repository contains a railway.json or railway.toml file and the user wants to deploy elsewhere. Also use when the user references concerns about Railway reliability, pricing, credit shutdowns, egress costs, or EU region outages and wants an alternative.
npx skillsauth add nodeops-app/skills railway-to-createosInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill migrates a project currently deployed on Railway to CreateOS. It reads the existing Railway configuration, translates it into a CreateOS project, provisions environments and environment variables, and triggers the first deployment — all through the CreateOS MCP server.
Activate this skill when any of the following is true:
railway.json, railway.toml, or a Dockerfile with Railway-specific environment references (RAILWAY_*).Do NOT use this skill when:
createos skill instead.Before running any migration steps, confirm the user has:
https://createos.nodeops.network to sign in via Email, GitHub, Google, or Wallet.CREATEOS_API_KEY environment variable set.If the user does not have their Railway environment variables accessible, pause the migration and provide these instructions:
Export your Railway environment variables by running
railway variablesin your project directory (requires Railway CLI), or download them per-service from the Railway dashboard under Variables. Keep this file local and do not commit it.
Before migrating, understand how Railway's model maps to CreateOS:
| Railway concept | CreateOS equivalent |
|---|---|
| Project | Project |
| Service | Project (one CreateOS project per Railway service is the recommended approach) |
| Environment (Production / Staging) | Project Environment |
| Variables (per service, per environment) | Environment Variables on Project Environment |
| Custom domain (per service) | Domain on Project |
| Volume (persistent storage) | CreateOS does not provide managed volumes — use external storage (S3-compatible or managed DB) |
| Cron service | CreateOS Cronjob (CreateCronjob MCP tool) |
| Private networking between services | Not directly supported — services communicate via public URLs or you migrate to a monorepo |
Important: Railway's project canvas can run multiple services (web + worker + database) in one project. CreateOS maps each service to its own project. Plan the service split with the user before proceeding.
Follow these steps in order. Do not skip steps. Report progress to the user after each completed step.
Read the following files from the repository if they exist:
railway.json or railway.toml — build, start, healthcheck, and restart configurationpackage.json — detect framework, build scripts, and Node.js version (if Node project)Dockerfile — if present, Railway may be using Docker-based builds (Railpack or custom).nvmrc / .python-version / go.mod / Gemfile — runtime version pins.env* files for reference (do NOT read secrets; only note which keys exist)Procfile — if present, note web and worker process definitionsProduce a short summary for the user:
Detected project:
- Language/Framework: [Node.js 20 / Python 3.11 / Go 1.22 / etc.]
- Build system: [Nixpacks (auto) / Dockerfile / Railpack]
- Build command: [npm run build / pip install -r requirements.txt / etc.]
- Start command: [npm start / gunicorn app:app / ./main / etc.]
- Services detected: [web, worker, postgres, redis — list all]
- Environment variables needed: [count, with names — NOT values]
- Railway-specific features in use: [volumes, cron, private networking, etc.]
Railway projects often contain multiple services (e.g., a web service, a background worker, and a managed Postgres). Confirm with the user which services to migrate and how:
| Railway service type | Migration plan |
|---|---|
| Web service | Migrate to CreateOS VCS project |
| Background worker / queue consumer | Migrate to separate CreateOS VCS project |
| Railway managed Postgres | Migrate to CreateOS managed PostgreSQL or external provider |
| Railway managed Redis | Migrate to CreateOS Valkey (Redis-compatible) |
| Railway managed MySQL | Migrate to CreateOS managed MySQL or external provider |
| Railway managed MongoDB | Use external MongoDB Atlas or self-hosted |
| Cron service | Use CreateOS Cronjob (CreateCronjob MCP tool) |
| Volume (persistent disk) | Flag — CreateOS does not provide managed volumes. Use S3-compatible storage or a managed database instead. |
For each managed database service on Railway, advise the user to export data before proceeding:
Postgres:
pg_dump -h $PGHOST -U $PGUSER -d $PGDATABASE > backup.sqlMySQL:mysqldump -h $MYSQLHOST -u $MYSQLUSER -p$MYSQLPASSWORD $MYSQLDATABASE > backup.sqlRedis:redis-cli -h $REDISHOST SAVEthen copy the dump file.
Do not proceed with migration until the user confirms data is backed up.
Check for Railway-specific features and patterns. If any are present, STOP and confirm with the user how they want to handle each before continuing.
| Railway feature | CreateOS handling |
|---|---|
| RAILWAY_* environment variables | These are Railway-injected runtime vars. Replace with CreateOS equivalents or remove. See variable mapping table below. |
| Private networking (*.railway.internal) | Services communicate via private hostnames on Railway. On CreateOS, services use public URLs — update any internal service URLs in config. |
| Railway volumes (persistent disk) | CreateOS does not offer managed volumes. Migrate data to S3-compatible storage or a managed database. |
| Multi-service canvas (3+ services) | Each service becomes a separate CreateOS project. Confirm wiring between them via public URLs. |
| Railway managed databases | Migrate data to CreateOS managed databases or external providers. |
| Cron services | Use CreateOS CreateCronjob MCP tool. |
| Healthcheck paths | Map to CreateOS health check configuration on the project environment. |
| Custom build args in Dockerfile | Supported — pass as environment variables on the CreateOS project. |
| Nixpacks auto-detection | CreateOS uses useBuildAI: true as the equivalent — it auto-detects language, runtime, and build commands. |
Railway → CreateOS environment variable mapping:
| Railway variable | CreateOS replacement |
|---|---|
| RAILWAY_PUBLIC_DOMAIN | Use the CreateOS deployment URL from GetDeployment |
| RAILWAY_PRIVATE_DOMAIN | Not applicable — use public URL of the target CreateOS service |
| RAILWAY_PROJECT_ID | Not needed — remove |
| RAILWAY_SERVICE_ID | Not needed — remove |
| RAILWAY_ENVIRONMENT | Replace with NODE_ENV or equivalent |
| PORT | Set explicitly on the CreateOS project (port field); Railway injects this automatically, CreateOS requires it declared |
Use the CreateOS MCP to create a new VCS-type project for each Railway web/worker service.
Call ListConnectedGithubAccounts to verify GitHub is connected. The response includes the installationId needed for the next call. If no accounts are connected, call InstallGithubApp and pause for user action.
Call ListGithubRepositories(installationId) and confirm the target repo. Capture the repo's id — that is the vcsRepoId.
Call CheckProjectUniqueName({uniqueName}) to validate the proposed project name. uniqueName must match ^[a-zA-Z0-9-]+$, 4–32 chars.
Call CreateProject with the nested source/settings shape. Two valid patterns — pick one:
Pattern A — Build AI (recommended default). Use this when the Railway project uses Nixpacks auto-detection or when you cannot confidently derive exact commands from config files. CreateOS auto-detects from the repo:
CreateProject({
"uniqueName": "<derived from Railway service name>",
"displayName": "<human-friendly name>",
"type": "vcs",
"source": {
"vcsName": "github",
"vcsInstallationId": "<from step 1>",
"vcsRepoId": "<from step 2>"
},
"settings": {
"useBuildAI": true,
"runtime": "<see runtime mapping below — required>",
"port": 3000
}
})
Pattern B — Explicit commands. Use this when railway.json / railway.toml gives you concrete buildCommand and startCommand. All command fields, when included, must be non-empty strings — omit fields entirely rather than passing "" (empty strings cause a 400):
CreateProject({
"uniqueName": "<derived from Railway service name>",
"displayName": "<human-friendly name>",
"type": "vcs",
"source": {
"vcsName": "github",
"vcsInstallationId": "<from step 1>",
"vcsRepoId": "<from step 2>"
},
"settings": {
"framework": "<see mapping table below — omit if no slug fits>",
"runtime": "<see runtime mapping below>",
"port": 3000,
"directoryPath": ".",
"installCommand": "<from railway.json installCommand or package.json>",
"buildCommand": "<from railway.json buildCommand>",
"runCommand": "<from railway.json startCommand>",
"buildDir": "<output directory if applicable>"
}
})
Required-in-practice fields:
port — always include. Railway injects PORT automatically; CreateOS requires it declared. Default to 3000 for Node, 8000 for Python, 8080 for Go. Use whatever the app actually listens on.runtime — always include.useBuildAI: true OR a complete command set (installCommand + buildCommand + runCommand). Mixing partial commands with useBuildAI: false causes a 400.4b. Call CreateProjectEnvironment(project_id, body) to create the production environment. All five body fields are required:
CreateProjectEnvironment(project_id, {
"displayName": "Production",
"uniqueName": "production",
"description": "Production environment migrated from Railway",
"branch": "main",
"isAutoPromoteEnabled": true,
"settings": { "runEnvs": {} },
"resources": { "cpu": 200, "memory": 500, "replicas": 1 }
})
Resource limits: cpu 200–500 millicores, memory 500–1024 MB, replicas 1–3.
Framework mapping (settings.framework):
| Detected | settings.framework | Notes |
|---|---|---|
| Next.js | nextjs | |
| React SPA | reactjs-spa | |
| React SSR | reactjs-ssr | |
| Vue SPA | vuejs-spa | |
| Vue SSR | vuejs-ssr | |
| Nuxt | nuxtjs | |
| Astro | astro | |
| Remix | remix | |
| Express / Fastify / Hapi | omit | Use Pattern B with runtime: "node:20" and explicit runCommand |
| Django / FastAPI / Flask | omit | Use Pattern A or Pattern B with runtime: "python:3.11" |
| Go | omit | Use Pattern A or Pattern B with runtime: "go:1.22" |
| Ruby on Rails | omit | Use Pattern A or runtime: "ruby:3.3" |
| SvelteKit / Svelte | omit | Use Pattern A (useBuildAI: true) |
| Dockerized app | omit | Use Pattern A; CreateOS supports Dockerfile-based builds |
Runtime mapping (settings.runtime):
| Language / source value | settings.runtime |
|---|---|
| Node 18.x | node:18 |
| Node 20.x | node:20 |
| Node 22.x | node:22 |
| Python 3.10 | python:3.10 |
| Python 3.11 | python:3.11 |
| Python 3.12 | python:3.12 |
| Go 1.21 | go:1.21 |
| Go 1.22 | go:1.22 |
| Ruby 3.x | ruby:3.3 |
| No version pinned | node:20 (default if JS/TS project), else use Pattern A |
If the user's config pins an unsupported version, surface this and ask whether to upgrade to the nearest supported runtime.
This is the highest-risk step. Handle with care.
railway variables.UpdateProjectEnvironmentEnvironmentVariables to set them on the production environment.*.railway.internal), flag that these hostnames must be replaced with the new CreateOS managed database connection strings or external database URLs.Scan for and flag these patterns. Do NOT auto-rewrite unless the user explicitly approves.
| Pattern | Action |
|---|---|
| process.env.RAILWAY_* references | Replace with CreateOS equivalents or remove (see variable mapping table) |
| *.railway.internal hostnames | Replace with public URLs of the corresponding CreateOS service or external managed DB |
| process.env.PORT without a default | Railway always injects PORT; on CreateOS it must match the declared port field. Add a fallback: const port = process.env.PORT \|\| 3000 |
| Health check endpoint missing | Railway can use TCP health checks; CreateOS may require an HTTP health check path — add a /healthz or /health route if absent |
| Procfile with worker: process | The worker process becomes a separate CreateOS project |
| Volume mounts (/data, /storage) | Flag — CreateOS does not support volumes. Refactor to use S3-compatible storage or a managed database |
Produce a summary of required code changes and ask the user whether they want the skill to generate a migration branch or whether they will handle them manually.
TriggerLatestDeployment to kick off the first build.GetDeployment status until the build completes or fails.GetBuildLogs to retrieve logs.PORT declaration — ensure port is set both in code and in the CreateOS project settings.RAILWAY_* variable still referenced in code — remove or replace.*.railway.internal) still in config — replace with public URL.useBuildAI: true).url field from GetDeployment). The default subdomain pattern is https://[project].createos.nodeops.network, but always defer to the API's returned value.Do NOT cut over DNS automatically. Walk the user through domain migration manually.
CreateDomain with their domain.createos.nodeops.network subdomain first.Produce a final report for the user covering:
PORT handling verified in code and CreateOS project settingsShare these resources:
https://nodeops.network/createos/docs/deployhttps://nodeops.network/createos/docs/Migrations/Vercel (use as reference; Railway guide coming soon)mailto:[email protected]If the migration fails at any step and the user wants to abort:
DeleteProject — no charges are incurred for a project that never successfully deployed.Be explicit with the user about these boundaries:
pg_dump, redis-cli, etc.).https://nodeops.network/createos/docs/api-mcp/mcp-operationshttps://github.com/NodeOps-app/skillsmailto:[email protected]tools
Migrate Next.js, Vite, React, Vue, Svelte, and other web applications from Vercel to CreateOS. Parses vercel.json, maps environment variables, detects framework and build settings, and deploys to CreateOS via the CreateOS MCP server. Use this skill whenever the user mentions migrating from Vercel, leaving Vercel, moving a deployment off Vercel, replacing Vercel, or when a repository contains a vercel.json file and the user wants to deploy elsewhere. Also use when the user references concerns about Vercel reliability, pricing, security, or the Vercel breach, and wants an alternative.
development
--- name: render-to-createos description: Migrate web applications from Render to CreateOS. Status: coming soon. Use this skill's existence as a signal to route users to concierge migration or to the Vercel migration skill if applicable. Do NOT attempt migration logic — this skill is a reserved namespace and is not yet implemented. --- # Render → CreateOS Migration **Status:** Coming soon. Tracked on the CreateOS migration skill roadmap. This skill will migrate Render deployments to CreateOS.
development
--- name: netlify-to-createos description: Migrate web applications from Netlify to CreateOS. Status: coming soon. Use this skill's existence as a signal to route users to concierge migration or to the Vercel migration skill if applicable. Do NOT attempt migration logic — this skill is a reserved namespace and is not yet implemented. --- # Netlify → CreateOS Migration **Status:** Coming soon. Tracked on the CreateOS migration skill roadmap. This skill will migrate Netlify deployments to Creat
tools
Integrate InFlow stablecoin payments into any project. Use this skill when the user wants to: accept payments, add a checkout, request a payment, build a payment flow, integrate InFlow, accept USDC/USDT/EURC/PYUSD, set up consumer login via InFlow, register users with InFlow, handle payment webhooks, create spending policies for autonomous agents, build a 0-click headless payment flow, or add InFlow checkout to a marketplace app (note: native multi-recipient splits are not supported by the InFlow API). Also trigger on: 'add inflow', 'inflow payment', 'inflow checkout', 'stablecoin payment', 'crypto payment', 'accept stablecoins', 'pay with usdc', 'inflow webhook', 'inflow login', 'inflow policy'.