railway
Skill15 starsChanged 42 days agoMITView on GitHub
Expert Railway cloud platform assistance covering Nixpacks buildpacks, instant deployments, PostgreSQL/Redis plugins, and environment variables. Use when deploying full-stack web applications without infrastructure overhead.
- Reads credentials
10 other projects use a version of this.
Adopted by
Most recently taken up by
- pietz/skillstheir own version, first seen Nov 8, 2026
- hoodini/ai-agents-skillstheir own version, first seen Oct 25, 2026
- Makiya1202/awesome-codex-computer-usetheir own version, first seen Oct 11, 2026
- duniecdawid/ultra-claudetheir own version, first seen Jul 16, 2026
- ArgentAIOS/agent-skillstheir own version, first seen Mar 30, 2026
- alanalvestech/hitanktheir own version, first seen Mar 5, 2026
Used with
Projects with it also use analytics-metrics, aws-account-management and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
hoodiniSkillanalytics-metrics
Build data visualization and analytics dashboards. Use when creating charts, KPI displays, metrics dashboards, or data visualization components. Triggers on analytics, dashboard, charts, metrics, KPI, data visualization, Recharts.
Also in 3 projects that use this
hoodiniSkillaws-account-management
Manage AWS accounts, organizations, IAM, and billing. Use when setting up AWS Organizations, managing IAM policies, controlling costs, or implementing multi-account strategies. Triggers on AWS Organizations, AWS IAM, AWS billing, Cost Explorer, SCPs, multi-account, AWS SSO, Identity Center.
Also in 3 projects that use this
- +7 more from hoodini
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- hoodini/ai-agents-skills★ 295same name
- alanalvestech/hitank★ 38same name
- mshumer/claude-skill-railway★ 30same name
- ArgentAIOS/agent-skills★ 4same name
- Makiya1202/ai-agents-skills★ 2same name
- Makiya1202/awesome-codex-computer-use★ 2same name
- pietz/skills★ 2same name
- imehr/skills★ 1same name
- tygwan/skills★ 1same name
- duniecdawid/ultra-claude★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository350 other files it gives its agents.
- airflowSkill
- catboostSkill
- claudeSkill
- comfyuiSkill
- cursor-aiSkill
- dalleSkill
- daskSkill
- dbtSkill
- deepseekSkill
- fastaiSkill
- geminiSkill
- github-copilotSkill
- huggingfaceSkill
- jaxSkill
- jupyterSkill
- kerasSkill
- langchainSkill
- lightgbmSkill
- llamaindexSkill
- llamaSkill
- matplotlibSkill
- midjourneySkill
- mistralSkill
- mlflowSkill
- nltkSkill
- numpySkill
- ollamaSkill
- openai-gptSkill
- opencvSkill
- pandasSkill
- perplexitySkill
- plotlySkill
- polarsSkill
- pytorchSkill
- raySkill
- scikit-learnSkill
- seabornSkill
- spacySkill
- sparkSkill
- stable-diffusionSkill
- tensorflowSkill
- vaexSkill
- weights-biasesSkill
- whisperSkill
- xgboostSkill
- api-gatewaySkill
- clean-architectureSkill
- cqrsSkill
- domain-driven-designSkill
- event-drivenSkill
- event-sourcingSkill
- graphqlSkill
- grpcSkill
- hexagonalSkill
- microservicesSkill
- modular-monolithSkill
- monolithSkill
- rest-apiSkill
- sagaSkill
- serverlessSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 105
Use Railway Private Networking (*.railway.internal) for service-to-service communication.
- Very specific: line 113
Commit .env files; use Railway's encrypted environment variables dashboard or CLI.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Railway
Railway is a modern PaaS that offers "Infrastructure from Code". It introspects your repo and deploys it. Can also deploy Databases (Postgres, Redis, Mongo).
When to Use
- Frictionless Full-Stack Cloud Hosting: Deploying databases, microservices, and frontends with instant Git synchronization.
- Private Mesh Networking: Communicating between services over secure private IPv6 addresses without internet traversal.
- Managed Production Databases: One-click provisioning of PostgreSQL, Redis, MySQL, and MongoDB with automated backups.
- Ephemeral PR Preview Environments: Creating isolated staging environments automatically for every pull request.
Quick Start
railway login
railway init
railway upCore Concepts
Declarative Service Configuration (railway.json)
Defining build commands, health checks, and restart policies:
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"buildCommand": "npm run build"
},
"deploy": {
"startCommand": "npm start",
"healthcheckPath": "/healthz",
"healthcheckTimeout": 100,
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 5
}
}Private Networking Across Microservices
Connecting internal services securely using Railway private domains:
// Using internal private networking domain (zero public exposure)
const databaseUrl =
process.env.DATABASE_PRIVATE_URL ||
"postgresql://postgres:secret@postgres.railway.internal:5432/railway";
const redisUrl =
process.env.REDIS_PRIVATE_URL ||
"redis://default:secret@redis.railway.internal:6379";Railway CLI Workflow
Managing environments and deploying from terminal:
# Log in to Railway account
railway login
# Link local directory to Railway project
railway link
# Run command locally with remote environment variables injected
railway run npm run migrate
# Trigger deployment from local branch
railway upCommon Patterns
Nixpacks Configuration with Custom System Packages
Problem: Applications requiring system packages (e.g. ffmpeg, graphicsmagick) fail to build on standard container buildpacks.
Solution:
Specify custom runtime packages in nixpacks.toml:
[phases.setup]
nixPkgs = ["nodejs-20_x", "ffmpeg", "openssl"]
[phases.build]
cmds = ["npm run build"]
[start]
cmd = "npm start"Best Practices
Do:
- Use Railway Private Networking (
*.railway.internal) for service-to-service communication. - Define an explicit
healthcheckPathinrailway.jsonto enable zero-downtime rolling deployments. - Enable PR environments to test database migrations and frontend changes in isolated stacks.
- Utilize Nixpacks for automatic dependency and runtime version detection.
Don't:
- Expose databases publicly when microservices reside within the same Railway project.
- Commit
.envfiles; use Railway's encrypted environment variables dashboard or CLI. - Store persistent file uploads on the service container filesystem; use S3, R2, or Railway Volume mounts.
Troubleshooting
| Error | Cause | Solution |
Deploy failed: Process did not listen on $PORT | Web service hardcoding port instead of dynamic Railway $PORT. | Bind web server to dynamic port: process.env.PORT || 3000. |
Database connection timeout in production | Service connecting using public database proxy URL inside the same Railway project. | Use private internal DNS host provided by Railway for zero latency and free egress. |
Railway CLI: Unauthorized | Project token or user token missing. | Run railway login or export RAILWAY_TOKEN. |
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

