railway

Deploys and operates apps on Railway: create or link projects and services, railway up, add Postgres, Redis, MySQL or MongoDB, variables and build config, domains, logs and failed builds, metrics, PR

SKILL.md

GitHub

Railway

One skill for everything on Railway. Read the topic file that matches the request, then follow it. Load only the topics you need.

Prerequisites

command -v railway && railway whoami

If the CLI is missing or logged out, follow the install and login steps in references/new.md. The GraphQL helper scripts/railway-api.sh (path relative to this skill folder) is used by the database, metrics, projects, service and templates topics.

Routing

The user wants to… Topic
Set up Railway for the first time, "deploy to railway" when nothing is linked, create a project or service, deploy from a GitHub repo, link a directory new
Push code that is already linked ("railway up", "ship", "redeploy my changes") deploy
Manage existing deployments: list, logs, build errors, why a deploy failed, restart, redeploy, stop, remove deployment
Ask "is it running", "what's deployed", deployment status or uptime status
Add a database (Postgres, Redis, MySQL, MongoDB) and wire DATABASE_URL / REDIS_URL database
Add any other template service (n8n, Ghost, Strapi, Minio, Uptime Kuma…) templates
View or change variables, build/start commands, root directory, replicas, repo source, delete a service environment
Service status, rename, icon, link services, create a service from a Docker image service
Add, generate, list or remove domains; get a service URL domain
CPU, memory, network, disk usage; "is my service slow" metrics
List, switch, rename projects; PR deploys; public/private projects
How a Railway feature works, or a docs.railway.com link docs
Search Central Station community threads or support questions central-station

When two topics could apply, use this order. If the directory is not linked yet, use new. If it is linked and the user only wants to ship code, use deploy. If something already deployed is broken, use deployment (and metrics for performance).

Shared references

Rules

  • Never print secret variable values back to the user.
  • Confirm before destructive actions: deleting services or volumes, removing deployments, detaching domains.
  • After any deploy, report the deployment status and the service URL. If it fails, read the logs (deployment topic) before guessing.