devops/deploy-railway

devops/deploy-railway is a skill for Claude Code from echoVic/boss-skill. It costs 49 tokens per session (1,728 once invoked), scanned A, original, MIT.

A deployment guide for running backend services and managed databases on Railway with its command-line tool. It covers common languages, Docker applications, and PostgreSQL, MySQL, Redis, and MongoDB services.

In plain words
What is it for?
Use it to deploy APIs, full-stack applications, Docker services, and projects that need hosted databases or multiple connected services.
Why use it?
It explains how to create or link a project, detect the application build, configure startup commands, and manage several services together.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: agent in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is cd ../frontend && railway init --name my-frontend.

Part of the boss plugin — 39 skills, 10 commands, 9 agents, 8 hooks shipped together

Good fit Use it to deploy APIs, full-stack applications, Docker services, and projects that need hosted databases or multiple connected services.

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/echoVic/boss-skill
agentmods
npx agentmods add skills/echovic/boss-skill/deploy-railway

Made for: Claude Code.

Or install boss, the plugin that ships this one along with the rest of its 39 skills, 10 commands, 9 agents, 8 hooks.

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 devops/deploy-railway

README.md
[![agentmods](https://agentmods.dev/badge/skills/echovic/boss-skill/deploy-railway/github.svg)](https://agentmods.dev/skills/echovic/boss-skill/deploy-railway)
Your own site
<a href="https://agentmods.dev/skills/echovic/boss-skill/deploy-railway"><img src="https://agentmods.dev/badge/skills/echovic/boss-skill/deploy-railway/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for devops/deploy-railway

Your own site · 80×15
<a href="https://agentmods.dev/skills/echovic/boss-skill/deploy-railway"><img src="https://agentmods.dev/badge/skills/echovic/boss-skill/deploy-railway.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,728 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00049 $0.01728
Opus 5.5 $0.00020 $0.00691
Sonnet 5.5 $0.00010 $0.00346
Haiku 4.5 $0.00005 $0.00173

Measured 2d ago against content hash acf1a31deab5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

devops/deploy-railway scanned grade A with 0 findings 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 2d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skill/skills/devops/deploy-railway/SKILL.md · 252 lines

How it starts

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

Railway 部署

适用场景

  • 后端 API 服务:Node.js、Python、Go、Java、Ruby、PHP、Rust
  • 全栈应用:后端 + 托管数据库
  • Docker 化应用:通过 Dockerfile 部署
  • 需要托管数据库:PostgreSQL、MySQL、Redis、MongoDB
  • 多服务项目:一个 project 下管理多个服务 + 数据库

前置条件

  1. 安装 Railway CLI:npm i -g @railway/cli
  2. 登录 Railway:railway login(需要用户交互完成授权)
  3. 验证登录:railway whoami

部署流程

1. 初始化 Railway 项目

# 在项目根目录初始化(交互式,选择创建新项目或链接已有项目)
railway init

2. 自动构建检测

Railway 使用 Nixpacks 自动检测项目类型并构建,无需手动配置:

项目类型 检测依据 构建命令 启动命令
Node.js package.json npm install + npm run build npm start
Python requirements.txt / pyproject.toml pip install -r requirements.txt python main.py 或 gunicorn
Go go.mod go build 编译产物
Java pom.xml / build.gradle mvn package java -jar target/*.jar
Ruby Gemfile bundle install rails s 或 ruby app.rb
Docker Dockerfile Docker build Docker CMD

3. 配置启动命令(如自动检测失败)

创建 railway.json 或 railway.toml:

{
  "$schema": "https://railway.app/railway.schema.json",
  "build": {
    "builder": "NIXPACKS"
  },
  "deploy": {
    "startCommand": "node dist/server.js",
    "restartPolicyType": "ON_FAILURE",
    "restartPolicyMaxRetries": 10
  }
}
[build]
builder = "NIXPACKS"

[deploy]
startCommand = "python main.py"
restartPolicyType = "ON_FAILURE"
restartPolicyMaxRetries = 10

4. 部署

# 部署到 Railway
railway up

# 部署并指定环境
railway up --environment production

# 查看部署日志
railway logs

Read the full file on GitHub · 252 lines

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. 2d ago First seen · 252 lines · 49 tokens per session scan A acf1a31deab5

Subscribe to this mod's changes

devops/deploy-railway is a skill published in the GitHub repository echoVic/boss-skill (544 stars, last pushed 2d ago), licensed MIT. It adds 49 tokens to every session and 1,728 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-28.

Related

Other skills, from other repositories

headless-step-provision-wordpress

Provision a headless WordPress backend for the Hostinger Headless flow: create the headless website with WordPress at /cms, verify and self-heal, then record it in site.json.

hostinger/api-mcp-server · 48 tokens

headless-step-provision-webapp

Provision a plain Node.js app host for the Hostinger Headless flow: create an empty website (no WordPress, no store engine, no /cms), optionally a MySQL database, then record it in site.json. For any webapp / SPA / app that brings its own code and data.

hostinger/api-mcp-server · 69 tokens

edge-computing

Cloudflare Workers, Deno Deploy, Vercel Edge Functions, edge patterns (geo-routing, caching). Use when implementing edge compute, CDN logic, or global low-latency APIs.

TheBeardedBearSAS/claude-craft · 44 tokens

api-gateway

API Gateway patterns (Kong, Traefik, AWS API Gateway) — rate limiting, auth, routing, versioning. Use when implementing API gateway, reverse proxy, or API management.

TheBeardedBearSAS/claude-craft · 43 tokens

cometchat-self-host

Run CometChat on your own infrastructure — when to self-host, the deployment models (Docker Swarm, Kubernetes, air-gapped), sizing & prerequisites, and how to point your app at the self-hosted instance. CometChat's enterprise differentiator: full data sovereignty. Triggers: 'self-host cometchat', 'on-prem cometchat'…

cometchat/cometchat-skills · 124 tokens

laravel-reverb

Use when configuring Laravel Reverb — the first-party WebSocket server with Pusher protocol compatibility, horizontal scaling, and Pulse monitoring.

event4u-app/agent-config · 31 tokens