npx skills add https://github.com/railwayapp/railway-skills --skill projects列出、切换和配置 Railway 项目。
railway list --json 的输出可能非常庞大。请在子代理中运行,并仅返回必要字段:
项目:id、name
工作区:id、name
服务:name(可选,如果用户需要服务上下文)
railway list --json
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
提取并返回简化的摘要,而非完整的 JSON。
railway whoami --json
返回用户信息,包括用户所属的所有工作区。
将不同的项目链接到当前目录:
railway link -p <project-id-or-name>
或者交互式操作:
railway link
切换后,使用 status 技能查看项目详情。
通过 GraphQL API 修改项目设置。
railway status --json
从响应中提取 project.id。
bash <<'SCRIPT'
scripts/railway-api.sh \
'mutation updateProject($id: String!, $input: ProjectUpdateInput!) {
projectUpdate(id: $id, input: $input) { name prDeploys isPublic botPrEnvironments }
}' \
'{"id": "PROJECT_ID", "input": {"name": "new-name"}}'
SCRIPT
| 字段 | 类型 | 描述 |
|---|---|---|
name | String | 项目名称 |
description | String | 项目描述 |
isPublic | Boolean | 将项目设为公开/私有 |
prDeploys | Boolean | 启用/禁用 PR 部署 |
botPrEnvironments | Boolean | 启用 Dependabot/Renovate PR 环境 |
重命名项目:
scripts/railway-api.sh '<mutation>' '{"id": "uuid", "input": {"name": "new-name"}}'
启用 PR 部署:
scripts/railway-api.sh '<mutation>' '{"id": "uuid", "input": {"prDeploys": true}}'
将项目设为公开:
scripts/railway-api.sh '<mutation>' '{"id": "uuid", "input": {"isPublic": true}}'
多个字段:
scripts/railway-api.sh '<mutation>' '{"id": "uuid", "input": {"name": "new-name", "prDeploys": true}}'
status 技能new 技能environment 技能Not authenticated. Run `railway login` first.
No projects found. Create one with `railway init`.
You don't have permission to modify this project. Check your Railway role.
Project "foo" not found. Run `railway list` to see available projects.
每周安装量
851
代码仓库
GitHub 星标数
213
首次出现
2026 年 1 月 20 日
安全审计
安装于
opencode716
codex704
gemini-cli664
github-copilot635
claude-code633
amp566
List, switch, and configure Railway projects.
The railway list --json output can be very large. Run in a subagent and return only essential fields:
Project: id, name
Workspace: id, name
Services: name (optional, if user needs service context)
railway list --json
Extract and return a simplified summary, not the full JSON.
railway whoami --json
Returns user info including all workspaces the user belongs to.
Link a different project to the current directory:
railway link -p <project-id-or-name>
Or interactively:
railway link
After switching, use status skill to see project details.
Modify project settings via GraphQL API.
railway status --json
Extract project.id from the response.
bash <<'SCRIPT'
scripts/railway-api.sh \
'mutation updateProject($id: String!, $input: ProjectUpdateInput!) {
projectUpdate(id: $id, input: $input) { name prDeploys isPublic botPrEnvironments }
}' \
'{"id": "PROJECT_ID", "input": {"name": "new-name"}}'
SCRIPT
| Field | Type | Description |
|---|---|---|
name | String | Project name |
description | String | Project description |
isPublic | Boolean | Make project public/private |
prDeploys | Boolean | Enable/disable PR deploys |
botPrEnvironments | Boolean | Enable Dependabot/Renovate PR environments |
Rename project:
scripts/railway-api.sh '<mutation>' '{"id": "uuid", "input": {"name": "new-name"}}'
Enable PR deploys:
scripts/railway-api.sh '<mutation>' '{"id": "uuid", "input": {"prDeploys": true}}'
Make project public:
scripts/railway-api.sh '<mutation>' '{"id": "uuid", "input": {"isPublic": true}}'
Multiple fields:
scripts/railway-api.sh '<mutation>' '{"id": "uuid", "input": {"name": "new-name", "prDeploys": true}}'
status skillnew skillenvironment skillNot authenticated. Run `railway login` first.
No projects found. Create one with `railway init`.
You don't have permission to modify this project. Check your Railway role.
Project "foo" not found. Run `railway list` to see available projects.
Weekly Installs
851
Repository
GitHub Stars
213
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykPass
Installed on
opencode716
codex704
gemini-cli664
github-copilot635
claude-code633
amp566
Azure 升级评估与自动化工具 - 轻松迁移 Functions 计划、托管层级和 SKU
59,200 周安装
Gemini Interactions API 指南:统一接口、智能体交互与服务器端状态管理
833 周安装
Apollo MCP 服务器:让AI代理通过GraphQL API交互的完整指南
834 周安装
智能体记忆系统构建指南:分块策略、向量存储与检索优化
835 周安装
Scrapling官方网络爬虫框架 - 自适应解析、绕过Cloudflare、Python爬虫库
836 周安装
抽奖赢家选取器 - 随机选择工具,支持CSV、Excel、Google Sheets,公平透明
838 周安装
Medusa 前端开发指南:使用 SDK、React Query 构建电商商店
839 周安装