# domain

This skill creates Railway-provided domains or adds custom ones to Railway services. Use it to get a service URL or retrieve DNS records for a custom domain.

- skill · `type=skill` · Claude Code · 56 installs
- Author: Railway
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/railway/domain
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/domain

## What it does

The skill uses the Railway CLI to create a Railway-provided domain or add a custom domain. Pass `--service` to target a named service; `--json` returns the result as JSON. When adding a custom domain, the CLI returns DNS records for you to add at your DNS provider.

You need `railway-cli` and a selected service. A Railway-provided domain requires a deployment, and each service can have only one. The `railway-environment` skill handles viewing and removing domains, then applies removal changes.

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill railway/domain
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill domain -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/domain/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/domain/

### Codex

**Manually: put the files in place**
- File: `.agents/skills/domain/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/domain/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates domain
```

2. **Manually: put the files in place**
- File: `.github/skills/domain/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/railway/domain
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/domain/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/railway/domain

## When to use it
- create a Railway domain for a service
- add a custom domain and retrieve its DNS records
- get the URL returned for a service domain
- remove a domain through `railway-environment`

## Example prompts
- Create a Railway domain for `backend` and return the result as JSON.
- Add `example.com` to the selected service and show the DNS records to configure.
- Find the URL assigned to the service after creating its domain.

## Similar
- [wizard](https://affpapa.org/en/nevibecode/skills/wizard.md) — skill · 553369 installs
- [hyperframes-cli](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes-cli.md) — skill · 1300000 installs
- [setup-pre-commit](https://affpapa.org/en/nevibecode/skills/setup-pre-commit.md) — skill · 489289 installs
- [using-git-worktrees](https://affpapa.org/en/nevibecode/skills/using-git-worktrees.md) — skill · 217153 installs
- [finishing-a-development-branch](https://affpapa.org/en/nevibecode/skills/finishing-a-development-branch.md) — skill · 214439 installs
- [orca-cli](https://affpapa.org/en/nevibecode/skills/orca-cli.md) — skill · 354000 installs

## Other versions with the same name
- [domain · coreyhaines31](https://affpapa.org/en/nevibecode/skills/coreyhaines31-domain.md) — 343 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 804 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
