Run railway

From yigitkonur/skills-by-yigitkonur · View interactive version

Run railway is an AI agent skill from the GitHub repository yigitkonur/skills-by-yigitkonur. Use if running railway CLI — deploys, logs, env vars, link, ssh, db shells, scaling.

How to use this skill

Skill file

run-railway

Drive the installed railway CLI from evidence, not memory. This skill is the routing layer: it picks the right reference, the right command, and the right scope (local binary vs upstream docs) for every Railway question an agent runs into during ongoing platform operations.

Use this skill when

Do NOT use this skill when

Non-negotiable rules

  1. Local snapshot is truth for the installed binary. The extracted help under references/cli/ describes what is actually invokable on this machine.
  2. Upstream docs are context, not proof. Newer Railway pages may show commands or families the installed CLI cannot run. Mark scope explicitly.
  3. Never guess flags, aliases, possible values, or nested subcommands from memory. Route to references/cli/railway-cli-command-reference.md.
  4. Read-safe by default. This skill is reference-first. Do not run mutating commands (up, redeploy, restart, down, delete, unlink, variable set, domain add, scale) unless the user explicitly asked for the operational action.
  5. Do not conflate near-twins. deploy ≠ up, redeploy ≠ restart, delete ≠ unlink, connect ≠ ssh, run ≠ shell ≠ dev. Always disambiguate when the user's wording is ambiguous.
  6. Trust explicit identifiers over the linked directory. A pasted dashboard URL or explicit --project / --environment / --service always wins over cwd link state.
  7. Version-drift gate. If the user says "latest" / "current" / "today", or the question references a family the local snapshot doesn't have (e.g. skills, agent, bucket, starship), read references/research/version-drift.md first.

Workflow

  1. Establish scope. Local installed CLI, upstream Railway sources, or both? State it on the first line of every answer.
  2. Run railway --version when version drift could plausibly matter and the user has a shell.
  3. Pick the smallest reference set using the splits below. Avoid loading the full command reference unless flags or aliases are needed.
  4. Answer in the output contract (scope → command → flags → near-neighbor distinction → version-drift note if material).

Decision splits — load-bearing routing

| Need | Read |

|---|---|

| up vs deploy, redeploy vs restart, rollback, down | references/cli/deployments-and-releases.md |

| link vs init, delete vs unlink, add, open, auth/context, docs, completion, upgrade | references/cli/context-projects-and-linking.md |

| run vs shell vs dev, dev configure, dev clean, local var injection | references/cli/local-development-and-shells.md |

| status, logs, connect vs ssh, service-level routing | references/cli/observability-and-access.md |

| environment, variable, domain, scale, service scale | references/cli/configuration-networking-and-scaling.md |

| Functions or volumes (attach/detach/delete distinctions) | references/cli/functions-and-volumes.md |

| "What Railway command should I use for this job?" (intent-first) | references/cli/common-workflows.md |

| Audit: every local top-level command family is covered | references/cli/command-family-coverage.md |

| Exact flags, aliases, nested subcommands, possible values | references/cli/railway-cli-command-reference.md |

| Raw help wording, examples, or formatting proof | references/cli/railway-cli-live-help-snapshot.md |

| Dashboard URL parsing, resource model, safe preflight | references/upstream/resource-model-and-preflight.md |

| First-party setup runbook (workspace, project, service, template) | references/upstream/operations/setup.md |

| First-party deploy runbook (up, redeploy/restart, build config, Railpack, Dockerfile, monorepo) | references/upstream/operations/deploy.md |

| First-party configure runbook (env, variables, domains, networking, config patches) | references/upstream/operations/configure.md |

| First-party operate runbook (status, logs, metrics, health, recovery) | references/upstream/operations/operate.md |

| Official docs endpoints, community search, GraphQL gaps, template discovery | references/upstream/docs-and-api/request.md |

| Railway DB analysis — pick the engine | references/database/analyze-db.md |

| Railway PostgreSQL analysis | references/database/analyze-db-postgres.md |

| Railway MySQL analysis | references/database/analyze-db-mysql.md |

| Railway Redis analysis | references/database/analyze-db-redis.md |

| Railway MongoDB analysis | references/database/analyze-db-mongo.md |

| "Latest"/"current"/"today" or docs show a command the local CLI lacks | references/research/version-drift.md |

Quick triage cues

Refresh the local snapshot

Run from this skill's content directory after a railway upgrade:

node scripts/extract-railway-cli-help.mjs
railway --version

This regenerates references/cli/railway-cli-command-reference.md, references/cli/railway-cli-live-help-snapshot.md, and references/cli/railway-cli-command-tree.json so this skill keeps tracking the installed binary.

Output contract

Return Railway answers in this order unless the user asks for a different shape:

  1. Scope line — local installed CLI, upstream Railway sources, or both.
  2. Best command or routed next step — copy-pasteable when the answer is a command.
  3. Important flags, aliases, nested subcommands, possible values — only what's relevant.
  4. Near-neighbor distinction — when the next confusion is one keystroke away.
  5. Version-drift note — only if it materially changes the answer.

Guardrails

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.