use-railway

Operate Railway infrastructure including projects, services, databases, deployments, and object storage.

Updated May 20, 2026
One-click install
npx skills add https://github.com/TechCorp25/kingdom --skill use-railway-techcorp25
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: use-railway
Source: https://github.com/TechCorp25/kingdom/tree/main/.claude/skills/use-railway
Command: npx skills add https://github.com/TechCorp25/kingdom --skill use-railway-techcorp25

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Managing Railway infrastructure through dashboards and raw CLI commands is slow and error-prone, especially when resolving project, environment, and service context or diagnosing database performance issues. ## Core Features & Use Cases - Infrastructure Operations: Create projects, provision services and databases, manage S3-compatible buckets, deploy code, configure environments, variables, and domains via the Railway CLI and GraphQL API. - Database Analysis: Deep introspection of PostgreSQL, MySQL, Redis, and MongoDB services over SSH, collecting cache hit ratios, slow queries, vacuum health, and infrastructure metrics with 7-day and 24-hour trend windows. - Troubleshooting & Recovery: Triage build and runtime failures, analyze logs and metrics, and verify recovery after fixes. - Use Case: Paste a Railway dashboard URL for a slow PostgreSQL service and receive a full performance report with per-query analysis, cache diagnostics, and prioritized tuning recommendations. ## Quick Start Ask the assistant to analyze the Railway database at your pasted dashboard URL and explain any performance problems it finds.

Frequently Asked Questions about use-railway

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy an app to Railway from the command line?▼

Run railway up --detach -m "summary" from your project directory after linking with railway link --project <name>. The skill resolves context first, then deploys and verifies health with logs and status checks.

How do I analyze a slow PostgreSQL database on Railway?▼

Provide the Railway dashboard URL for the database service. The skill runs scripts/analyze-postgres.py over SSH to collect cache hit ratios, pg_stat_statements query data, vacuum health, and 7-day infrastructure metrics, then explains root causes.

Can I use a Railway dashboard URL instead of linking a project?▼

Yes. The skill extracts project, service, and environment IDs directly from URLs like railway.com/project/<id>/service/<id> and passes them as explicit flags, avoiding changes to your local linked state.

What databases does Railway database analysis support?▼

PostgreSQL, MySQL, Redis, and MongoDB are supported, each with a dedicated analysis script and reference covering engine-specific metrics, thresholds, and tuning guidance.

Why does database introspection fail with SSH key errors?▼

Railway SSH introspection requires a registered SSH key. The skill checks registered keys with railway ssh keys and local keys in ~/.ssh, then guides you to register, import from GitHub, or generate a new key.

Which commands does the skill refuse to run directly?▼

Database-mutating commands like enable-pg-stats.py, pg-extensions.py install/uninstall, ALTER SYSTEM SET, and CREATE/DROP EXTENSION are shown to the user to run manually, since they modify database state or trigger restarts.