跳到正文
Skillpedia
部署与云(DevOps)33k · #8913

railway-status

它能做什么

这项技能显示与当前文件夹关联的 Railway 项目的现状。适合想知道应用是否在运行、以及部署了哪些内容的开发者。

适用场景

  • ✓当你询问 Railway 应用是否在运行,或部署了什么内容时。
  • ✓当你想在部署或修改项目之前先检查项目时。
  • ✓当你想查看已关联项目的环境或域名的时候。

技能链接

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/railway/status/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/railway/status/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我的 Railway 应用现在是否在运行?里面部署了什么?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会检查 Railway 命令行工具是否已安装,以及你是否已登录,然后读取该文件夹的项目状态,并汇总服务和部署情况。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Railway Status

Check the current Railway project status for this directory.

When to Use

  • User asks about Railway status, project, services, or deployments
  • User mentions deploying or pushing to Railway
  • Before any Railway operation (deploy, update service, add variables)
  • User asks about environments or domains

When NOT to Use

Use the railway-environment skill instead when user wants:

  • Detailed service configuration (builder type, dockerfile path, build command, root directory)
  • Deploy config (start command, restart policy, healthchecks, predeploy command)
  • Service source (repo, branch, image)
  • Compare service configs
  • Query or change environment variables

Check Status

Run:

railway status --json

First verify CLI is installed:

command -v railway

Handling Errors

CLI Not Installed

If command -v railway fails:

Railway CLI is not installed. Install with:

npm install -g @railway/cli

or

brew install railway

Then authenticate: railway login

Not Authenticated

If railway whoami fails:

Not logged in to Railway. Run:

railway login

No Project Linked

If status returns "No linked project":

No Railway project linked to this directory.

To link an existing project: railway link To create a new project: railway init

Presenting Status

Parse the JSON and present:

  • Project: name and workspace
  • Environment: current environment (production, staging, etc.)
  • Services: list with deployment status
  • Active Deployments: any in-progress deployments (from activeDeployments field)
  • Domains: any configured domains

Example output format:

Project: my-app (workspace: my-team)
Environment: production

Services:
- web: deployed (https://my-app.up.railway.app)
- api: deploying (build in progress)
- postgres: running

The activeDeployments array on each service shows currently running deployments with their status (building, deploying, etc.).

常见问题

如果没有关联项目怎么办?

这项技能会说明如何使用 Railway 命令行工具关联现有项目,或创建新项目。

它会修改配置吗?

不会。它只用于检查状态。变量和配置相关的问题应交给 railway-environment 技能。

它如何呈现状态?

它会解析状态数据,并以易读的摘要形式呈现。

详情

作者的原始描述

Check current Railway project status for this directory. Use when user asks "railway status", "is it running", "what's deployed", "deployment status", or about uptime. NOT for variables or configuration queries - use railway-environment skill for those.

repo: davila7/claude-code-templates

热度

GitHub 星标
33k
排名
#8913
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能