railway

railway is a skill for Claude Code from onsager-ai/dev-skills. It costs 289 tokens per session (5,467 once invoked), scanned A, original, MIT.

A command-line assistant for managing applications hosted on Railway, a cloud platform for running apps.

In plain words
What is it for?
It helps deploy code, investigate failed builds or crashes, inspect requests and metrics, change environment variables, restart or roll back services, run commands, and connect to containers.
Why use it?
It brings deployment, logs, settings, metrics, and container access into one workflow, so you do not have to switch between separate tools.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code; mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is railway run --service api --environment production -- node scripts/migrate.js.

Good fit It helps deploy code, investigate failed builds or crashes, inspect requests and metrics, change environment variables, restart or roll back services, run commands, and connect to containers.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/onsager-ai/dev-skills
agentmods
npx agentmods add skills/onsager-ai/dev-skills/railway

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for railway

README.md
[![agentmods](https://agentmods.dev/badge/skills/onsager-ai/dev-skills/railway.svg)](https://agentmods.dev/skills/onsager-ai/dev-skills/railway)
Your own site
<a href="https://agentmods.dev/skills/onsager-ai/dev-skills/railway"><img src="https://agentmods.dev/badge/skills/onsager-ai/dev-skills/railway.svg" alt="Measured on agentmods" height="20"></a>
Per session 289 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,467 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00289 $0.05467
Opus 5 $0.00144 $0.02733
Sonnet 5 $0.00058 $0.01093
Haiku 4.5 $0.00029 $0.00547

Measured 8d ago against content hash 85ffb1592b3f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

railway scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/debug.sh, scripts/preflight.sh, scripts/smoke.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

allowed-tools: Bash(railway:*), Bash(npm install -g @railway/cli:*), Bash(which railway), Bash(jq:*), Bash(sh *), Bash(bash *), Bash(curl *), Bash(agent-browser:*), Bash(npx agent-browser:*), Bash(just *), Read, Write, E
skills/railway/SKILL.md · 347 lines

How it starts

The opening of the file, as written. The whole thing — 347 lines — stays where its author put it; the contents beside it link to each section on GitHub.

railway

One skill for the full Railway operator loop: status → debug → fix → deploy → verify. It wraps the railway CLI in a non-interactive, JSON-first style that an agent can drive without prompts, and it leans on RAILWAY_TOKEN from the environment instead of an interactive railway login.

This skill is repo-agnostic. It assumes the project is hosted on Railway (railway.com) and that a RAILWAY_TOKEN is exported in the environment. It makes no assumptions about the stack (Node, Python, Go, Docker, Nixpacks/Railpack — Railway's builder figures it out).

When this skill triggers

Phrases that should route here:

  • Deploy / build
    • "deploy this to railway"
    • "push to railway", "ship to railway", "railway up"
    • "build is failing on railway", "why did my build fail"
  • Logs / debugging
    • "show me the railway logs", "tail the logs", "railway logs --since 1h"
    • "why is my service crashing on railway"
    • "show me the 500s on railway", "show http logs", "show slow requests"
    • "find the request id abc123 in railway logs"
  • Ops
    • "redeploy on railway", "restart the api service", "roll back the last deploy"
    • "scale my railway service", "remove the latest deployment"
  • State / discovery
    • "list my railway projects", "what services are in this project", "list deployments"
    • "what's the status of my railway project", "is my service healthy"
  • Variables
    • "set a railway env var FOO=bar", "list railway variables", "delete a railway var"
  • Run / connect
    • "run this script with railway production env", "open a shell with railway env"
    • "ssh into my railway service", "connect to my railway postgres / redis / mongo"
  • Metrics
    • "what's the cpu/memory on railway", "is my service hitting limits"
    • "p95 latency on railway", "request rate on /api"

Skip when:

  • The host is not Railway (Fly, Render, Vercel, AWS, …). This skill knows the railway CLI; it does not generalise.
  • The fix is a code change with no operational lever — let the normal dev-process skills handle the code; come back here once it's time to deploy or read logs.

Read the full file on GitHub · 347 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 347 lines · 289 tokens per session scan A 85ffb1592b3f

Subscribe to this mod's changes

railway is a skill published in the GitHub repository onsager-ai/dev-skills (5 stars, last pushed 27d ago), licensed MIT. It adds 289 tokens to every session and 5,467 once invoked, about $0.0014 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

gke-compute-classes

Configures, optimizes, and troubleshoots GKE ComputeClasses. Use when configuring Spot VMs with on-demand fallback, targeting specific accelerators (GPUs/TPUs) or machine families, restricting ComputeClass access, or debugging pending pods related to node pool auto-creation. Do not use for cluster-level Node Auto…

google/skills · 83 tokens

gke-reliability

Improves GKE workload reliability, using PDBs, health probes, and topology spread constraints. Use when configuring GKE workload reliability, setting up PDBs, or configuring GKE health probes (liveness, readiness, startup). Don't use for disaster recovery setup or full cluster backups (use gke-backup-dr instead).

google/skills · 73 tokens

gke-workload-security

Audits, configures, and hardens workload-level security controls for Google Kubernetes Engine (GKE) applications and namespaces. Covers running cluster security audits (auditcluster.sh), configuring Workload Identity Federation (impersonation, KSA/GSA binding, and pod setup), enforcing Network Policies (default-deny…

google/skills · 181 tokens

nemo-automodel-launcher-config

Configure NeMo AutoModel job launches for interactive runs, Slurm clusters, and SkyPilot cloud execution.

NVIDIA/skills · 30 tokens

azure-mgmt-botservice-dotnet

Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".

microsoft/skills · 78 tokens

cloud-architect

Designs cloud architectures, creates migration plans, generates cost optimization recommendations, and produces disaster recovery strategies across AWS, Azure, and GCP. Use when designing cloud architectures, planning migrations, or optimizing multi-cloud deployments. Invoke for Well-Architected Framework, cost…

Jeffallan/claude-skills · 71 tokens