railway
Use for Railway operations — deploy or roll back a service, view, filter, or debug logs, or check project status (services, deployments, environments, metrics). Replaces /railway-deploy, /railway-logs, /railway-status.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- railway
- requires
- [ { "cli": "railway", "reason": "Railway CLI (>=4.27.3 for deploy) for deployment, logs, and project inspection" } ]
- description
- Use for Railway operations — deploy or roll back a service, view, filter, or debug logs, or check project status (services, deployments, environments, metrics). Replaces /railway-deploy, /railway-logs, /railway-status.
- argument-hint
- [deploy|logs|status] [service-or-args]
- user-invocable
- true
02 资源文件 3
03 SKILL.md 正文
Railway
Codex: Read
../_shared/codex-tools.mdbefore following this skill. Apply its tool, root and dispatch mappings throughout.
One engine for Railway — deploy, logs, and status as verb modes over the Railway CLI. Shared behavior lives in ../_shared/infra-cli-contract.md; this file supplies only routing and the Railway deltas.
Mode dispatch (contract §3)
Arguments to dispatch (first token = verb, the rest belong to the verb): $ARGUMENTS
No verb token → infer only when the request wording is unambiguous (e.g. "show me the service logs" → logs); otherwise print this table and stop — never guess a destructive verb.
| Verb | When | Depth file |
|---|---|---|
deploy |
Deploy a service, update an existing deployment, or roll back | deploy.md |
logs |
View, filter, or debug service logs | logs.md |
status |
Project overview — services, deployments, environments, metrics | status.md |
For the selected verb, read ONLY its depth file in this skill directory and follow it exactly — never load another verb's depth (contract §1, §3).
Pre-flight deltas (contract §4)
Run the ladder before any verb, stopping at the first failure with concrete guidance:
- CLI installed —
railway --version. Not found → install withnpm install -g @railway/cliorbrew install railway. No fallback invocation exists. - Minimum version >= 4.27.3 — parse the version from the same output. Below the gate → update with
npm update -g @railway/cli. - Authenticated —
railway whoami --json. Fails → runrailway login. - Target discovery —
railway status --jsonconfirms a linked project. Fails → runrailway linkto select one. Service-level targets come from the verb arguments or the depth file.
Execution, output, and failure conventions are contract §5–§7; the depth files assume them. deploy is this engine's destructive verb — its confirmation gate lives in deploy.md; logs and status are read-only and never gate.
04 同仓库更多 Skills
example-review
Use when you want to review pull requests with detailed, actionable feedback on code quality, correctness, and maintainability.
bad-skill
Too short
worktree
Use when starting feature work that needs isolation from the current workspace, or when running multiple Claude sessions in parallel on different branches — creates and manages git worktrees. For fetching latest main into every existing worktree and branch across your sibling repos, use /claudna:sync-branches instead.
weigh-development-paths
Use when at a development junction with multiple viable approaches — architecture choices, refactoring strategies, where to put new code, or which pattern to follow. Triggers on 'which approach', 'how should I', 'Option A vs B', or any point where the next step isn't obvious and the wrong choice creates rework.
verify-completion
Use when about to claim work is complete, fixed, or passing -- requires running verification commands and confirming output before making any success claims.
vercel
Use for Vercel operations — deploy to production or preview (or roll back), view, filter, or debug deployment logs, or check project status (deployments, domains, env vars, config). Replaces /vercel-deploy, /vercel-logs, /vercel-status.