railway-templates

Search and deploy services from Railway's template marketplace via GraphQL API.

30.5k|3.5k|Updated Jul 4, 2025
One-click install
npx skills add https://github.com/davila7/claude-code-templates --skill railway-templates
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: railway-templates
Source: https://github.com/davila7/claude-code-templates/tree/main/cli-tool/components/skills/railway/templates
Command: npx skills add https://github.com/davila7/claude-code-templates --skill railway-templates

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires railway-cli.

What problem does it solve?

Manually provisioning pre-configured services like Ghost, Strapi, n8n, or Minio on Railway requires navigating the dashboard and wiring configuration by hand. This Skill automates template discovery and deployment directly through Railway's GraphQL API.

Core Features & Use Cases

  • Template Search: Query Railway's template marketplace with filters for verified or recommended templates, respecting the 10 requests per minute rate limit.
  • Template Inspection: Fetch a template's ID and serializedConfig by code (e.g., postgres, ghost, n8n) before deploying.
  • One-Command Deployment: Deploy a template into an existing Railway project and environment using the templateDeployV2 mutation with project, environment, and workspace IDs.
  • Use Case: A user asks to "add Ghost CMS to my Railway project" — the Skill fetches the ghost template config and deploys it into the current project environment without leaving the CLI workflow.

Quick Start

Ask the assistant to search Railway templates for a CMS and deploy Ghost into the current Railway project.

Frequently Asked Questions about railway-templates

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a Railway template from the command line?

Fetch the template's id and serializedConfig with the template GraphQL query, then call the templateDeployV2 mutation passing the templateId, serializedConfig, projectId, environmentId, and workspaceId. The serializedConfig must be the exact JSON object returned by the query.

How do I search Railway marketplace templates?

Run the templates GraphQL query with optional arguments like first (result count, max ~100), verified, and recommended to filter results. Searches are rate limited to 10 requests per minute, so avoid repeated queries.

What services can I deploy with Railway templates?

Common template codes include postgres, redis, mysql, and mongodb for databases, ghost and strapi for CMS, minio for storage, n8n for automation, and uptime-kuma for monitoring. For databases, the railway-database skill is preferred.

Why does Railway template deployment fail with serializedConfig errors?

The serializedConfig field must be passed as the exact JSON object returned by the template query, not as a string. Re-fetch the template by code and copy the object directly into the deployTemplate mutation input.

What prerequisites are needed before deploying a Railway template?

You need the Railway CLI installed and an existing project. Run railway status --json to get the project ID and environment ID, then query the workspace ID via the Railway API before deploying.