This skill should be used when the user wants to push code to Railway, says "railway up", "deploy", "deploy to railway", "ship", or "push". For initial setup or creating services, use new skill. For Docker images, use environment skill.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install railway-deploy或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install railway-deploy⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/railway-deploy/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: deploy description: This skill should be used when the user wants to push code to Railway, says "railway up", "deploy", "deploy to railway", "ship", or "push". For initial setup or creating services, use new skill. For Docker images, use environment skill. allowed-tools: Bash(railway:*) ---
Deploy code from the current directory to Railway using railway up.
Always use the -m flag with a descriptive commit message summarizing what's being deployed:
railway up --detach -m "Add user authentication endpoint"
Good commit messages:
Starts deploy and returns immediately. Use for most deploys.
railway up --detach -m "Deploy description here"
Streams build logs until complete. Use when user wants to watch the build or needs to debug issues.
railway up --ci -m "Deploy description here"
When to use CI mode:
Default is linked service. To deploy to a different service:
railway up --detach --service backend -m "Deploy description here"
Deploy to a project without linking first:
railway up --project <project-id> --environment production --detach -m "Deploy description here"
Requires both --project and --environment flags.
| Flag | Description | |------|-------------| | -m, --message | Commit message describing the deploy (always use this) | | -d, --detach | Don't attach to logs (default) | | -c, --ci | Stream build logs, exit when done | | -s, --service | Target service (defaults to linked) | | -e, --environment | Target environment (defaults to linked) | | -p, --project | Target project (requires --environment) | | [PATH] | Path to deploy (defaults to current directory) |
Railway CLI walks UP the directory tree to find a linked project. If you're in a subdirectory of a linked project, you don't need to relink.
For subdirectory deployments, prefer setting rootDirectory via the environment skill, then deploy normally with railway up.
Deploying to <service>...
Use deployment skill to check build status (with --lines flag).
Build logs stream inline. If build fails, the error will be in the output.
Do NOT run railway logs --build after CI mode - the logs already streamed. If you need more context, use deployment skill with --lines flag (never stream).
service skilldeployment skillenvironment skillenvironment skillNo Railway project linked. Run `railway link` first.
No service linked. Use --service flag or run `railway service` to select one.
The build logs already streamed - analyze them directly from the railway up --ci output. Do NOT run railway logs after CI mode (it streams forever without --lines).
Common issues:
安装 Railway Deploy 后,可以对 AI 说这些话来触发它
Help me get started with Railway Deploy
Explains what Railway Deploy does, walks through the setup, and runs a quick demo based on your current project
Use Railway Deploy to this skill should be used when the user wants to push code to Railw...
Invokes Railway Deploy with the right parameters and returns the result directly in the conversation
What can I do with Railway Deploy in my developer & devops workflow?
Lists the top use cases for Railway Deploy, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/railway-deploy/ 目录(个人级,所有项目可用),或 .claude/skills/railway-deploy/(项目级)。重启 AI 客户端后,用 /railway-deploy 主动调用,或让 AI 根据上下文自动发现并使用。
Railway Deploy 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Railway Deploy 可免费安装使用。请查阅仓库了解许可证信息。
This skill should be used when the user wants to push code to Railway, says "railway up", "deploy", "deploy to railway", "ship", or "push". For initial setup or creating services, use new skill. For Docker images, use environment skill.
Railway Deploy 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Railway Deploy
Identifies repetitive steps in your workflow and sets up Railway Deploy to handle them automatically