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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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/clior
brew install railwayThen 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 linkTo 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
activeDeploymentsfield) - 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.
热度
- GitHub 星标
- 33k
- 排名
- #8913
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
owasp-security
33k教你的智能体掌握面向网页应用、API、移动端、容器和 AI 智能体的 OWASP 安全指南,以便发现常见弱点并提出修复建议。
agent-management
33k让你的智能体使用 AI Maestro 命令行工具创建、列出、休眠、唤醒、重命名和删除 AI 智能体,管理每个智能体的生命周期。
agent-messaging
33k让你的智能体使用智能体消息协议,在 AI 智能体之间发送、接收和回复带签名的消息,大部分在你自己的电脑上完成。
docs-search
33k让你的智能体搜索自动生成的代码文档,查找函数签名、类定义和注释,从而在修改代码之前核对真实的 API。