railway-templates

davila7/claude-code-templates · updated Apr 8, 2026

$npx skills add https://github.com/davila7/claude-code-templates --skill railway-templates
0 commentsdiscussion
summary

Search and deploy services from Railway's template marketplace.

skill.md

Railway Templates

Search and deploy services from Railway's template marketplace.

When to Use

  • User asks to "add Postgres", "add Redis", "add a database"
  • User asks to "add Ghost", "add Strapi", "add n8n", or any other service
  • User wants to find templates for a use case (e.g., "CMS", "storage", "monitoring")
  • User asks "what templates are available?"
  • User wants to deploy a pre-configured service

Common Template Codes

Category Template Code
Databases PostgreSQL postgres
Redis redis
MySQL mysql
MongoDB mongodb
CMS Ghost ghost
Strapi strapi
Storage Minio minio
Automation n8n n8n
Monitoring Uptime Kuma uptime-kuma

For other templates, use the search query below.

Prerequisites

Get project context:

railway status --json

Extract:

  • id - project ID
  • environments.edges[0].node.id - environment ID

Get workspace ID:

bash <<'SCRIPT'
${CLAUDE_PLUGIN_ROOT}/skills/lib/railway-api.sh \
  'query getWorkspace($projectId: String!) {
    project(id: $projectId) { workspaceId }
  }' \
  '{"projectId": "PROJECT_ID"}'
SCRIPT

Search Templates

List available templates with optional filters:

bash <<'SCRIPT'
${CLAUDE_PLUGIN_ROOT}/skills/lib/railway-api.sh \
  'query templates($first: Int, $verified: Boolean) {
    templates(first: $first, verified: $verified) {
      edges {
        node {
          name
          code
          description
          category
        }
      }
    }
  }' \
  '{"first": 20, "verified": true}'
SCRIPT

Arguments

Argument Type Description
first Int Number of results (max ~100)
verified Boolean Only verified templates
recommended Boolean Only recommended templates

Rate Limit

10 requests per minute. Don't spam searches.

Get Template Details

Fetch a specific template by code:

bash <<'SCRIPT'
${CLAUDE_PLUGIN_ROOT}/skills/lib/railway-api.sh \
  'query template($code: String!) {
    template(code: $code) {
      id
      name
      description
      serializedConfig
    }
  }' \
  '{"code": "postgres"}'
SCRIPT

Returns:

  • id - template ID (needed for deployment)
  • serializedConfig - service configuration (needed for deployment)

Deploy Template

Step 1: Fetch Template

bash <<'SCRIPT'
${CLAUDE_PLUGIN_ROOT}/skills/lib/railway-api.sh \
  'query template($code: String!) {
    template(code: $code) {
      id
      serializedConfig
    }
  }' \
  '{"code": "postgres"}'
SCRIPT

Step 2: Deploy to Project

bash <<'SCRIPT'
${CLAUDE_PLUGIN_ROOT}/skills/lib/railway-api.sh \
  'mutation deployTemplate($input: TemplateDeployV2Input!) {
    templateDeployV2(input: $input) {
      projectId
      workflowId
    }
  }' \
  '{
    "input": {
      "templateId": "TEMPLATE_ID_FROM_STEP_1",
      "serializedConfig": SERIALIZED_CONFIG_FROM_STEP_1,
      "projectId": "PROJECT_ID",
      "environmentId": "ENVIRONMENT_ID",
      "workspaceId": "WORKSPACE_ID"
    }
  }'
SCRIPT

Important: serializedConfig is the exact JSON object from the template query, not a string.

Composability

  • Connect services: Use railway-environment skill to add variable references
  • View deployed service: Use railway-service skill
  • Check logs: Use railway-deployment skill
  • Add domains: Use railway-domain skill

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.770 reviews
  • Aisha Tandon· Dec 28, 2024

    railway-templates reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Evelyn Park· Dec 12, 2024

    Useful defaults in railway-templates — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Yuki Farah· Dec 8, 2024

    Solid pick for teams standardizing on skills: railway-templates is focused, and the summary matches what you get after install.

  • Amina Srinivasan· Dec 8, 2024

    I recommend railway-templates for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Layla Flores· Nov 27, 2024

    railway-templates fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Aisha Ndlovu· Nov 19, 2024

    Registry listing for railway-templates matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Yash Thakker· Nov 11, 2024

    Solid pick for teams standardizing on skills: railway-templates is focused, and the summary matches what you get after install.

  • Hassan Srinivasan· Nov 3, 2024

    railway-templates has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Yuki Chen· Oct 22, 2024

    Keeps context tight: railway-templates is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Aisha Li· Oct 18, 2024

    Registry listing for railway-templates matched our evaluation — installs cleanly and behaves as described in the markdown.

showing 1-10 of 70

1 / 7