Pular para o conteúdo
Skillpedia
Deploy e nuvem (DevOps)33 mil · #8912

railway-service

O que ela faz

Esta skill verifica e atualiza serviços individuais do Railway. Ela é voltada para desenvolvedores que querem ver se um serviço está no ar ou mudar o nome, o ícone ou a imagem de origem.

Quando usar

  • ✓Quando você pergunta se um serviço do Railway foi publicado ou está saudável.
  • ✓Quando você quer renomear um serviço ou trocar o ícone.
  • ✓Quando você quer criar um serviço a partir de uma imagem Docker.

Link da skill

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/railway/service/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/railway/service/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Meu serviço de API no Railway está rodando agora, e você pode renomeá-lo para backend-api?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente verifica o status do serviço pelas ferramentas do Railway e depois atualiza o nome ou o ícone, ou cria um serviço a partir de uma imagem Docker pela API do Railway, quando você pede.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do GitHub.

Railway Service Management

Check status, update properties, and advanced service creation.

When to Use

  • User asks about service status, health, or deployments
  • User asks "is my service deployed?"
  • User wants to rename a service or change service icon
  • User wants to link a different service
  • User wants to deploy a Docker image as a new service (advanced)

Note: For creating services with local code (the common case), prefer the railway-new skill which handles project setup, scaffolding, and service creation together.

For GitHub repo sources: Use railway-new skill to create empty service, then railway-environment skill to configure source.repo via staged changes API.

Create Service

Create a new service via GraphQL API. There is no CLI command for this.

Get Context

railway status --json

Extract:

  • project.id - for creating the service
  • environment.id - for staging the instance config

Create Service Mutation

mutation serviceCreate($input: ServiceCreateInput!) {
  serviceCreate(input: $input) {
    id
    name
  }
}

ServiceCreateInput Fields

Field Type Description
projectId String! Project ID (required)
name String Service name (auto-generated if omitted)
source.image String Docker image (e.g., nginx:latest)
source.repo String GitHub repo (e.g., user/repo)
branch String Git branch for repo source
environmentId String If set and is a fork, only creates in that env

Example: Create empty service

bash <<'SCRIPT'
${CLAUDE_PLUGIN_ROOT}/skills/lib/railway-api.sh \
  'mutation createService($input: ServiceCreateInput!) {
    serviceCreate(input: $input) { id name }
  }' \
  '{"input": {"projectId": "PROJECT_ID"}}'
SCRIPT

Example: Create service with image

bash <<'SCRIPT'
${CLAUDE_PLUGIN_ROOT}/skills/lib/railway-api.sh \
  'mutation createService($input: ServiceCreateInput!) {
    serviceCreate(input: $input) { id name }
  }' \
  '{"input": {"projectId": "PROJECT_ID", "name": "my-service", "source": {"image": "nginx:latest"}}}'
SCRIPT

Connecting a GitHub Repo

Do NOT use serviceCreate with source.repo - use staged changes API instead.

Flow:

  1. Create empty service: serviceCreate(input: {projectId: "...", name: "my-service"})
  2. Use railway-environment skill to configure source via staged changes API
  3. Apply to trigger deployment

After Creating: Configure Instance

Use railway-environment skill to configure the service instance:

{
  "services": {
    "<serviceId>": {
      "isCreated": true,
      "source": { "image": "nginx:latest" },
      "variables": {
        "PORT": { "value": "8080" }
      }
    }
  }
}

Critical: Always include isCreated: true for new service instances.

Then use railway-environment skill to apply and deploy.

Check Service Status

railway service status --json

Returns current deployment status for the linked service.

Deployment History

railway deployment list --json --limit 5

Present Status

Show:

  • Service: name and current status
  • Latest Deployment: status (SUCCESS, FAILED, DEPLOYING, CRASHED, etc.)
  • Deployed At: when the current deployment went live
  • Recent Deployments: last 3-5 with status and timestamps

Deployment Statuses

Status Meaning
SUCCESS Deployed and running
FAILED Build or deploy failed
DEPLOYING Currently deploying
BUILDING Build in progress
CRASHED Runtime crash
REMOVED Deployment removed

Update Service

Update service name or icon via GraphQL API.

Get Service ID

railway status --json

Extract service.id from the response.

Update Name

bash <<'SCRIPT'
${CLAUDE_PLUGIN_ROOT}/skills/lib/railway-api.sh \
  'mutation updateService($id: String!, $input: ServiceUpdateInput!) {
    serviceUpdate(id: $id, input: $input) { id name }
  }' \
  '{"id": "SERVICE_ID", "input": {"name": "new-name"}}'
SCRIPT

Update Icon

Icons can be image URLs or animated GIFs.

Type Example
Image URL "icon": "https://example.com/logo.png"
Animated GIF "icon": "https://example.com/animated.gif"
Devicons "icon": "https://devicons.railway.app/github"

Railway Devicons: Query https://devicons.railway.app/{query} for common developer icons (e.g., `githu

Perguntas frequentes

Ela consegue criar um serviço a partir de uma imagem Docker?

Sim. Pode criar um serviço a partir de uma imagem como nginx, embora a skill trate isso como uma opção avançada.

E se eu estiver criando um serviço a partir do meu código local?

A skill diz que a skill railway-new é melhor para isso, pois cuida da configuração e da estrutura inicial juntas.

Ela consegue vincular outro serviço?

Sim. Pode vincular um serviço diferente à pasta atual.

Detalhes

Descrição original do autor

Check service status, rename services, change service icons, link services, or create services with Docker images. For creating services with local code, prefer railway-new skill. For GitHub repo sources, use railway-new skill to create empty service then railway-environment skill to configure source.

repo: davila7/claude-code-templates

Popularidade

Estrelas no GitHub
33 mil
Posição no ranking
#8912
Licença
MIT
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas