Skip to content

Manage Railway service domains by adding, viewing, or removing custom and generated URLs.

CCM score
69 of 100
skills.sh installs
275
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers adding a domain, generating a Railway-provided domain, listing current domains, reading a service URL, and removing a domain
  • Designed for users who need to configure how a Railway service is reached over the web

Install

$ npx -y skills add davila7/claude-code-templates --skill railway-domain -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Railway Domain Management

Add, view, or remove domains for Railway services.

When to Use

  • User asks to "add a domain", "generate a domain", "get a URL"
  • User wants to add a custom domain
  • User asks "what's the URL for my service"
  • User wants to remove a domain

Add Railway Domain

Generate a railway-provided domain (max 1 per service):

railway domain --json

For a specific service:

railway domain --json --service backend

Response

Returns the generated domain URL. Service must have a deployment.

Add Custom Domain

railway domain example.com --json

Response

Returns required DNS records:

{
  "domain": "example.com",
  "dnsRecords": [
    { "type": "CNAME", "host": "@", "value": "..." }
  ]
}

Tell user to add these records to their DNS provider.

Read Current Domains

Use railway-environment skill to see configured domains, or query directly:

query domains($envId: String!) {
  environment(id: $envId) {
    config(decryptVariables: false)
  }
}

Domains are in config.services.<serviceId>.networking:

  • serviceDomains - Railway-provided domains
  • customDomains - User-provided domains

Details

Repository
github.com/davila7/claude-code-templates
Category
DevOps & Cloud
First seen
Jun 3, 2026

Questions

What does the railway-domain skill do?

railway-domain adds, views, or removes domains for Railway services. It can generate a Railway-provided domain with railway domain --json, add a custom domain by returning the DNS records to set at your provider, and read or remove existing domains through the railway-environment skill.

How do I install the railway-domain skill?

Run npx -y skills add davila7/claude-code-templates --skill railway-domain -y in a project to install it. Once installed, railway-domain lets the agent handle requests to add a domain, generate a railway domain, or get the URL for a service.

What does railway-domain need before it works?

railway-domain needs the Railway CLI, listed as its dependency, and a linked service or a --service flag to choose the target. A railway-provided domain also requires the service to have a deployment, so run railway up first.

Can railway-domain add a custom domain like example.com?

Yes, railway-domain runs railway domain with your domain name and returns the DNS records you must add at your DNS provider. Its CLI also takes a port flag, so you can set which port the domain connects to.

More from davila7/claude-code-templates

All 398

Similar to Railway Domain

More DevOps & Cloud