Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计未展示

moai-platform-railway摩艾平台铁路

Agent Skill

moai-platform-railway 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

306

周安装

13

GitHub Stars

公开资料未说明

下载量

107
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:moai-platform-railway(摩艾平台铁路)
来源仓库:https://github.com/modu-ai/cc-plugins
仓库路径:skills/moai-platform-railway
安装命令:
npx skills add modu-ai/cc-plugins --skill "moai-platform-railway"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add modu-ai/cc-plugins --skill "moai-platform-railway"

简介

用于查找、检索和筛选相关信息,适合快速定位候选结果。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 中的平台研究场景。
  • 通过 github 安装,使用 npx skills add 命令添加指定技能。
  • 需确认权限范围、维护状态及是否触发联网或命令执行。
  • moai-platform-railway 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

moai-platform-railway: Container Deployment Specialist

Quick Reference

Railway Platform Core: Container-first deployment platform with Docker and Railpack builds, multi-service architectures, persistent volumes, private networking, and auto-scaling capabilities.

Railway Optimal Use Cases

Container Workloads:

  • Full-stack containerized applications with custom runtimes
  • Multi-service architectures with inter-service communication
  • Backend services requiring persistent connections such as WebSocket and gRPC
  • Database-backed applications with managed PostgreSQL, MySQL, and Redis

Infrastructure Requirements:

  • Persistent volume storage for stateful workloads
  • Private networking for secure service mesh
  • Multi-region deployment for global availability
  • Auto-scaling based on CPU, memory, or request metrics

Build Strategy Selection

Docker Build is optimal for custom system dependencies, multi-stage builds, and specific base images.

Railpack Build is optimal for standard runtimes including Node.js, Python, and Go, providing zero-config and faster builds.

Note: Nixpacks is deprecated. New services default to Railpack.

Key CLI Commands

Railway CLI workflow begins with railway login, railway init, and railway link commands. Use railway up to deploy the current directory. Use railway up with the detach flag to deploy without waiting for logs. Use railway variables with the set flag to configure environment variables. Use railway logs with the service flag to view service logs. Use railway rollback with the previous flag to revert to the previous deployment.


Module Index

Docker Deployment

Module at modules/docker-deployment.md covers multi-stage Dockerfiles for Node.js, Python, Go, and Rust. Includes build optimization, image size reduction, health checks, and Railpack migration.

Multi-Service Architecture

Module at modules/multi-service.md covers monorepo deployments, service communication, variable references, private networking, and message queue patterns.

Volumes and Storage

Module at modules/volumes-storage.md covers persistent volume configuration, file storage service, SQLite on volumes, and backup/restore patterns.

Networking and Domains

Module at modules/networking-domains.md covers private networking, custom domains with SSL, multi-region deployment, auto-scaling, and WebSocket support.


Implementation Guide

Phase 1: Project Setup

Begin with railway login, railway init, and railway link commands to authenticate, initialize, and link to a project.

The railway.toml configuration file specifies build settings with builder set to DOCKERFILE and dockerfilePath pointing to the Dockerfile. Deploy settings include healthcheckPath for the health endpoint, healthcheckTimeout in seconds, restartPolicyType for restart behavior, and numReplicas for instance count. Resource settings under deploy.resources specify memory allocation and CPU limits.

Phase 2: Container Configuration

For a quick start Node.js Dockerfile, the builder stage uses node:20-alpine as base, sets WORKDIR to /app, copies package files, runs npm ci, copies source files, and runs npm run build.

The runner stage also uses node:20-alpine, sets WORKDIR to /app, sets NODE_ENV to production, creates a nodejs group and appuser user with specific IDs, copies node_modules and dist from the builder stage, switches to appuser, exposes port 3000, and runs the node command with dist/main.js.

For detailed patterns, see modules/docker-deployment.md.

Phase 3: Multi-Service Setup

Service Variable References use the double curly brace syntax with dollar sign prefix. Reference Postgres.DATABASE_URL for database connections, Redis.REDIS_URL for Redis connections, and api.RAILWAY_PRIVATE_DOMAIN for internal service communication.

For Private Networking, create a getInternalUrl helper function that takes a service name and optional port defaulting to 3000. The function retrieves the RAILWAY_PRIVATE_DOMAIN environment variable for the service name in uppercase, returning the internal URL with http protocol and port, or localhost fallback.

For detailed patterns, see modules/multi-service.md.

Phase 4: Storage and Scaling

Volume Configuration in railway.toml uses a volumes array section specifying mountPath for the directory path, name for the volume identifier, and size for the storage allocation.

Auto-Scaling Configuration in deploy.scaling section specifies minReplicas, maxReplicas, and targetCPUUtilization percentage.

Multi-Region Configuration uses deploy.regions array with entries containing name for the region identifier and replicas for the instance count per region.


CI/CD Integration

For GitHub Actions integration, create a workflow file named Railway Deploy with trigger on push to main branch. The deploy job runs on ubuntu-latest, checks out code, installs Railway CLI globally using npm, and runs railway up with detach flag using the RAILWAY_TOKEN secret from GitHub secrets.


Context7 Documentation Access

Step 1: Use mcp__context7__resolve-library-id with "railway" to get the library ID.

Step 2: Use mcp__context7__get-library-docs with the resolved ID and specific topic.


Works Well With

  • moai-platform-vercel for edge deployment for frontend
  • moai-domain-backend for backend architecture patterns
  • moai-lang-python for Python FastAPI deployment
  • moai-lang-typescript for TypeScript Node.js patterns
  • moai-lang-go for Go service deployment

Additional Resources

  • reference.md provides extended documentation and configuration
  • examples.md provides working code examples for common scenarios

Status: Production Ready Version: 2.1.0 Updated: 2026-01-11

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30.38%
按下载量换算33

windsurf

24.15%
按下载量换算26

trae

19.39%
按下载量换算21

OpenCode

12.31%
按下载量换算13

Codex

7.83%
按下载量换算8

Antigravity

3.78%
按下载量换算4

安全审计

暂无安全审计结果可展示。

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills