skills/railway-tools/SKILL.md
Use when deploying to Railway, editing railway.toml, railway.json, Procfile, configuring Railway services, databases, workers, environment variables, or troubleshooting Railway deployments.
npx skillsauth add cofin/flow railway-toolsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
For full project management, deployment automation, and service orchestration, we highly recommend installing the official Railway agent skills:
Installation:
npx skills add railwayapp/railway-skills
The patterns below provide additional context for Flow-specific multi-service architectures and serverless constraints.
Railway's serverless feature puts services to sleep after 10 minutes of no outbound traffic.
When to disable serverless (sleepApplication: false):
For applications with background task processing, use distinct configuration files (e.g., railway.app.json and railway.worker.json) to manage different runtime requirements.
sleepApplication: false for background worker services.${{Service.VARIABLE}} syntax (e.g., ${{Postgres.DATABASE_URL}}) instead of hardcoding values.${{PORT}} for application port injection.
</guardrails>
sleepApplication: false for Workers: Ensure any background worker has sleepApplication explicitly set to false.${{PORT}}.
</validation>
Configuration (railway.worker.json):
{
"service": {
"name": "worker",
"sleepApplication": false
},
"deploy": {
"startCommand": "python -m saq my_app.tasks.worker --workers 4"
}
}
</example>development
Use when tracing execution paths, mapping dependencies, understanding unfamiliar code, following data flow, investigating end-to-end behavior, debugging call chains, or deciding which files to read next.
development
Use when reviewing authentication, authorization, user input, secrets, API keys, database queries, file uploads, session management, external API calls, OWASP risks, or data handling attack surface.
testing
Use when analyzing tradeoffs, comparing approaches, weighing options, assessing risks, stress-testing conclusions, identifying blind spots, or applying multiple viewpoints to a decision.
development
Use when reviewing hot paths, slow code, database queries, N+1 risks, memory usage, loops, I/O, caching strategy, concurrency, latency-sensitive paths, or resource efficiency.