Complete Railway infrastructure management: projects, services, databases, deployments, environments, object storage, and troubleshooting.
Works with
Operates across Railway's resource hierarchy: workspaces, projects, environments, services, buckets, and deployments with CLI context management
Covers five operational domains: resource setup, code deployment, configuration management, health monitoring, and API/docs access
Includes preflight authentication checks, context resolution, and multi-s
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionuse-railwayExecute the skills CLI command in your project's root directory to begin installation:
Fetches use-railway from railwayapp/railway-skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate use-railway. Access via /use-railway in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
2
total installs
2
this week
225
GitHub stars
0
upvotes
Run in your terminal
2
installs
2
this week
225
stars
Railway organizes infrastructure in a hierarchy:
production, staging). Each environment has its own variables, config, and deployment history.Most CLI commands operate on the linked project/environment/service context. Use railway status --json to see the context, and --project, --environment, --service flags to override.
Users often paste Railway dashboard URLs. Extract IDs before doing anything else:
https://railway.com/project/<PROJECT_ID>/service/<SERVICE_ID>?environmentId=<ENV_ID>
https://railway.com/project/<PROJECT_ID>/service/<SERVICE_ID>
The URL always contains projectId and serviceId. It may contain environmentId as a query parameter. If the environment ID is missing and the user specifies an environment by name (e.g., "production"), resolve it:
scripts/railway-api.sh \
'query getProject($id: String!) {
project(id: $id) {
environments { edges { node { id name } } }
}
}' \
'{"id": "<PROJECT_ID>"}'
Match the environment name (case-insensitive) to get the environmentId.
Prefer passing explicit IDs to CLI commands (--project, --environment, --service) and scripts (--project-id, --environment-id, --service-id) instead of running railway link. This avoids modifying global state and is faster.
Before any mutation, verify context:
command -v railway # CLI installed
railway whoami --json # authenticated
railway --version # check CLI version
Context resolution — URL IDs always win:
railway status --json — it returns the locally linked project, which is usually unrelated.railway status --json for the linked project/environment/service.If the CLI is missing, guide the user to install it.
bash <(curl -fsSL cli.new) # Shell script (macOS, Linux, Windows via WSL)
brew install railway # Homebrew (macOS)
npm i -g @railway/cli # npm (macOS, Linux, Windows). Requires Node.js version 16 or higher.
If not authenticated, run railway login. If not linked and no URL was provided, run railway link --project <id-or-name>.
If a command is not recognized (for example, railway environment edit), the CLI may be outdated. Upgrade with:
railway upgrade
These are frequent enough to handle without loading a reference:
railway status --json # current context
railway whoami --json # auth and workspace info
railway project list --json # list projects
railway service status --all --json # all services in current context
railway variable list --service <svc> --json # list variables
railway variable set KEY=value --service <svc> # set a variable
railway logs --service <svc> --lines 200 --json # recent logs
railway up --detach -m "<summary>" # deploy current directory
railway bucket list --json # list buckets in current environment
railway bucket info --bucket <name> --json # bucket storage and object count
railway bucket credentials --bucket <name> --json # S3-compatible credentials
For anything beyond quick operations, load the reference that matches the user's intent. Load only what you need, one reference is usually enough, two at most.
| Intent | Reference | Use for |
|---|---|---|
| Analyze a database ("analyze <url>", "analyze db", "analyze database", "analyze service", "introspect", "check my postgres/redis/mysql/mongo") | analyze-db.md | Database introspection and performance analysis. analyze-db.md directs you to the DB-specific reference. This takes priority over the status/operate routes when a Railway URL to a database service is provided alongside "analyze". |
| Create or connect resources | setup.md | Projects, services, databases, buckets, templates, workspaces |
| Ship code or manage releases | deploy.md | Deploy, redeploy, restart, build config, monorepo, Dockerfile |
| Change configuration | configure.md | Environments, variables, config patches, domains, networking |
| Check health or debug failures | operate.md | Status, logs, metrics, build/runtime triage, recovery |
| Request from API, docs, or community | request.md | Railway GraphQL API queries/mutations, metrics queries, Central Station, official docs |
If the request spans two areas (for example, "deploy and then check if it's healthy"), load both references and compose one response.
scripts/railway-api.sh for operations the CLI doesn't expose.--json output where available for reliable parsing.These commands modify database state and require the user to run them directly in their terminal. Do NOT execute these with Bash. Instead, show the command and ask the user to run it.
| Command | Why user-only |
|---|---|
python3 scripts/enable-pg-stats.py --service <name> |
Modifies shared_preload_libraries, may restart database |
python3 scripts/pg-extensions.py --service <name> install <ext> |
Installs database extension |
python3 scripts/pg-extensions.py --service <name> uninstall <ext> |
Removes database extension |
ALTER SYSTEM SET ... |
Changes PostgreSQL configuration |
DROP EXTENSION ... |
Removes database extension |
CREATE EXTENSION ... |
Installs database extension |
When these operations are needed:
Multi-step workflows follow natural chains:
When composing, return one unified response covering all steps. Don't ask the user to invoke each step separately.
When the user wants to create or deploy something, determine the right action from current context:
railway status --json in the current directory.railway add --service <name>). Do not create a new project unless the user explicitly says "new project" or "separate project".cd .. && railway status --json).
rootDirectory to the sub-app path.railway list --json and look for a project matching the directory name.
railway link --project <name>).railway init --name <name>).railway whoami --json.Naming heuristic: app names like "flappy-bird" or "my-api" are service names, not project names. Use the directory or repo name for the project.
For all operational responses, return:
Keep output concise. Include command evidence only when it helps the user understand what happened.
Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
davila7/claude-code-templates
intellectronica/agent-skills
am-will/codex-skills
sickn33/antigravity-awesome-skills
myzy-ai/dokie-ai-ppt
sickn33/antigravity-awesome-skills
use-railway reduced setup friction for our internal harness; good balance of opinion and flexibility.
use-railway fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
Registry listing for use-railway matched our evaluation — installs cleanly and behaves as described in the markdown.
Solid pick for teams standardizing on skills: use-railway is focused, and the summary matches what you get after install.
use-railway fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
use-railway is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
use-railway has been reliable in day-to-day use. Documentation quality is above average for community skills.
use-railway has been reliable in day-to-day use. Documentation quality is above average for community skills.
use-railway fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
I recommend use-railway for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
showing 1-10 of 69