Agent skills for interacting with Railway, enabling automation of infrastructure tasks. Benefits operations teams by streamlining workflows and connecting to supported agents like Claude.
git clone https://github.com/railwayapp/railway-skills.gitAgent skills for interacting with Railway, enabling automation of infrastructure tasks. Benefits operations teams by streamlining workflows and connecting to supported agents like Claude.
[{"step":"Identify the Railway service and project","action":"Locate the [SERVICE_NAME] and [PROJECT_ID] in your Railway dashboard. Ensure you have admin access to the project.","tip":"Use the Railway CLI (`railway list`) to list all projects and services if you're unsure of the IDs."},{"step":"Prepare environment variables","action":"Gather the required environment variables (e.g., `DATABASE_URL`, `API_KEYS`) for the service. Store sensitive values securely in Railway's encrypted variables.","tip":"Use Railway's `railway variables` command to set variables programmatically or update them via the dashboard."},{"step":"Execute the automation","action":"Paste the prompt template into your AI agent (e.g., Claude) and replace the [PLACEHOLDERS] with your specific values. Run the automation to trigger the deployment.","tip":"For debugging, add `--verbose` flags to the Railway CLI commands if you're using the CLI directly."},{"step":"Monitor and verify","action":"Check the deployment logs and service health endpoint (e.g., `/health`) to confirm the service is running. Use Railway's dashboard or CLI (`railway logs`) for real-time monitoring.","tip":"Set up Railway's built-in alerts for critical failures (e.g., service crashes, high latency)."},{"step":"Document and iterate","action":"Document the automation steps in your team's runbooks. Refine the prompt template based on common deployment issues or new requirements.","tip":"Share the automation script with your team and store it in a shared repository (e.g., GitHub) for version control."}]
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/railwayapp/railway-skillsCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Automate the deployment of [SERVICE_NAME] on Railway using the Railway API. Execute the following steps: 1) Verify the current deployment status of [SERVICE_NAME] in the Railway project [PROJECT_ID]. 2) If the service is not running, deploy the latest version from the GitHub repository [REPO_URL] with the environment variables [ENV_VARS]. 3) Monitor the deployment logs and confirm successful completion. 4) If the deployment fails, provide troubleshooting steps for the error message [ERROR_MESSAGE].
### Railway Deployment Automation Report **Service Name:** `customer-api` **Project ID:** `proj_abc123xyz` **Repository:** `https://github.com/company/customer-api` #### Step 1: Deployment Status Check The current status of `customer-api` in Railway project `proj_abc123xyz` is **inactive**. No active deployments were found. #### Step 2: Deployment Initiation Triggered a new deployment for `customer-api` using the latest commit from `main` branch. Environment variables applied: - `DATABASE_URL`: `postgres://user:pass@db.example.com:5432/customer_db` - `REDIS_URL`: `redis://redis.example.com:6379` - `JWT_SECRET`: `supersecretkey123` #### Step 3: Deployment Logs ``` [2023-11-15 14:30:22] Deploying customer-api from commit 7a3b9c2... [2023-11-15 14:30:25] Building Docker image... [2023-11-15 14:31:45] Successfully built image (sha256:abc123...) [2023-11-15 14:32:10] Deploying to Railway... [2023-11-15 14:32:15] Service is now live at https://customer-api-production.up.railway.app ``` #### Step 4: Verification - **Service URL:** `https://customer-api-production.up.railway.app/health` - **Status:** ✅ Healthy (200 OK) - **Uptime:** 99.9% over the last 24 hours #### Troubleshooting (if applicable) No errors detected. If deployment fails in the future, common issues include: 1. **Environment variable misconfiguration:** Double-check `ENV_VARS` in the Railway dashboard. 2. **GitHub repository permissions:** Ensure the Railway integration has access to the repository. 3. **Resource limits:** Upgrade the Railway service tier if memory/CPU constraints are hit. **Next Steps:** - Monitor the service for the next 30 minutes for any runtime errors. - Set up automated alerts for deployment failures via Railway's monitoring tools. - Document this deployment process in the team's runbooks for future reference.
Infrastructure, instantly.
IronCalc is a spreadsheet engine and ecosystem
ITIL-aligned IT service management platform
Customer feedback management made simple
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan