Source profileQuality 93/100Review permissions

modu-ai/moai-adk/.moai/archive/skills/v2.16/moai-platform-deployment/SKILL.md

moai-platform-deployment

Deployment and hosting platform specialist covering Vercel, Railway, and Convex. Use when deploying applications, configuring edge functions, setting up continuous deployment, or managing serverless infrastructure.

Source repository stars
1,186
Declared platforms
0
Static risk flags
2
Last source update
2026-08-25
Source checked
2026-08-25

Decision brief

What it does: where it fits

Comprehensive deployment platform guide covering Vercel (edge-first), Railway (container-first), and Convex (real-time backend).

Best for

  • Use when deploying applications, configuring edge functions, setting up continuous deployment, or managing serverless infrastructure.

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/modu-ai/moai-adk --skill ".moai/archive/skills/v2.16/moai-platform-deployment"
Safe inspection promptEditorial

Inspect the Agent Skill "moai-platform-deployment" from https://github.com/modu-ai/moai-adk/blob/a739d04b40e64f9ca7852b66c8fd6edc927a25aa/.moai/archive/skills/v2.16/moai-platform-deployment/SKILL.md at commit a739d04b40e64f9ca7852b66c8fd6edc927a25aa. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Vercel Quick Start

    Review the “Vercel Quick Start” section in the pinned source before continuing.

    Review and apply the “Vercel Quick Start” source section.
  2. 02

    Railway Quick Start

    Multi-Stage Dockerfile: dockerfile

    Multi-Stage Dockerfile: dockerfile
  3. 03

    Builder stage

    FROM node:20-alpine AS builder WORKDIR /app COPY package.json ./ RUN npm ci COPY . . RUN npm run build

    FROM node:20-alpine AS builder WORKDIR /app COPY package.json ./ RUN npm ci COPY . . RUN npm run build
  4. 04

    Runner stage

    FROM node:20-alpine WORKDIR /app ENV NODEENV=production RUN addgroup -g 1001 -S nodejs && adduser -S appuser -u 1001 COPY --from=builder /app/nodemodules ./nodemodules COPY --from=builder /app/dist ./dist USER appuser EXPOSE 3000 CMD ["node", "dist/main.js"] typescript import {…

    uses: actions/checkout@v3uses: amondnet/vercel-action@v25run: npm install -g @railway/cli
  5. 05

    Convex Quick Start

    Review the “Convex Quick Start” section in the pinned source before continuing.

    Review and apply the “Convex Quick Start” source section.

Permission review

Static risk signals and limitations

Network access

medium · line 150

The documentation includes network, browsing, or remote request actions.

"$schema": "https://openapi.vercel.sh/vercel.json",

Runs scripts

medium · line 293

The documentation asks the agent to run terminal commands or scripts.

run: npm install -g @railway/cli

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score93/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars1,186SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
modu-ai/moai-adk
Skill path
.moai/archive/skills/v2.16/moai-platform-deployment/SKILL.md
Commit
a739d04b40e64f9ca7852b66c8fd6edc927a25aa
License
Apache-2.0
Collected
2026-08-25
Default branch
main
View the original SKILL.md

Deployment Platform Specialist

Comprehensive deployment platform guide covering Vercel (edge-first), Railway (container-first), and Convex (real-time backend).


Quick Platform Selection

When to Use Each Platform

Vercel - Edge-First Deployment:

  • Next.js applications with SSR/SSG
  • Global CDN distribution required
  • Sub-50ms edge latency critical
  • Preview deployments for team collaboration
  • Managed storage needs (KV, Blob, Postgres)

Railway - Container-First Deployment:

  • Full-stack containerized applications
  • Custom runtime environments
  • Multi-service architectures
  • Persistent volume storage
  • WebSocket/gRPC long-lived connections

Convex - Real-Time Backend:

  • Collaborative real-time applications
  • Reactive data synchronization
  • TypeScript-first backend needs
  • Optimistic UI updates
  • Document-oriented data models

Decision Guide

By Application Type

Web Applications (Frontend + API):

  • Next.js → Vercel (optimal integration)
  • React/Vue with custom API → Railway (flexible)
  • Real-time collaborative → Convex + Vercel

Mobile Backends:

  • REST/GraphQL → Railway (stable connections)
  • Real-time sync → Convex (reactive queries)
  • Edge API → Vercel (global latency)

Full-Stack Monoliths:

  • Containerized → Railway (Docker support)
  • Serverless → Vercel (Next.js API routes)
  • Real-time → Convex (built-in reactivity)

By Infrastructure Needs

Compute Requirements:

  • Edge compute → Vercel (30+ edge locations)
  • Custom runtimes → Railway (Docker flexibility)
  • Serverless TypeScript → Convex (managed runtime)

Storage Requirements:

  • Redis/KV → Vercel KV or Railway
  • PostgreSQL → Vercel Postgres or Railway
  • File storage → Vercel Blob or Railway volumes
  • Document DB → Convex (built-in)

Networking Requirements:

  • CDN distribution → Vercel (built-in)
  • Private networking → Railway (service mesh)
  • Real-time WebSocket → Convex (built-in) or Railway

Common Deployment Patterns

Pattern 1: Next.js with Database

Stack: Vercel + Vercel Postgres/KV

Setup:

  1. Deploy Next.js app to Vercel
  2. Provision Vercel Postgres for database
  3. Use Vercel KV for session/cache
  4. Configure environment variables
  5. Enable ISR for dynamic content

Best For: Web apps with standard database needs, e-commerce, content sites

Pattern 2: Containerized Multi-Service

Stack: Railway + Docker

Setup:

  1. Create multi-stage Dockerfile
  2. Configure railway.toml for services
  3. Set up private networking
  4. Configure persistent volumes
  5. Enable auto-scaling

Best For: Microservices, complex backends, custom tech stacks

Pattern 3: Real-Time Collaborative App

Stack: Convex + Vercel/Railway (frontend)

Setup:

  1. Initialize Convex backend
  2. Define schema and server functions
  3. Deploy frontend to Vercel/Railway
  4. Configure Convex provider
  5. Implement optimistic updates

Best For: Collaborative tools, live dashboards, chat applications

Pattern 4: Hybrid Edge + Container

Stack: Vercel (frontend/edge) + Railway (backend services)

Setup:

  1. Deploy Next.js frontend to Vercel
  2. Deploy backend services to Railway
  3. Configure CORS and API endpoints
  4. Set up edge middleware for routing
  5. Use private networking for Railway

Best For: High-performance apps, global distribution with complex backends

Pattern 5: Serverless Full-Stack

Stack: Vercel (frontend + API routes) + Convex (backend)

Setup:

  1. Build Next.js app with API routes
  2. Initialize Convex for data layer
  3. Configure authentication (Clerk/Auth0)
  4. Deploy frontend to Vercel
  5. Connect Convex client

Best For: Rapid prototyping, startups, real-time web apps


Essential Configuration

Vercel Quick Start

vercel.json:

{
  "$schema": "https://openapi.vercel.sh/vercel.json",
  "framework": "nextjs",
  "regions": ["iad1", "sfo1", "fra1"],
  "functions": {
    "app/api/**/*.ts": {
      "memory": 1024,
      "maxDuration": 10
    }
  }
}

Edge Function:

export const runtime = "edge"
export const preferredRegion = ["iad1", "sfo1"]

export async function GET(request: Request) {
  const country = request.geo?.country || "Unknown"
  return Response.json({ country })
}

Railway Quick Start

railway.toml:

[build]
builder = "DOCKERFILE"
dockerfilePath = "Dockerfile"

[deploy]
healthcheckPath = "/health"
healthcheckTimeout = 100
restartPolicyType = "ON_FAILURE"
numReplicas = 2

[deploy.resources]
memory = "2GB"
cpu = "2.0"

Multi-Stage Dockerfile:

# Builder stage
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build

# Runner stage
FROM node:20-alpine
WORKDIR /app
ENV NODE_ENV=production
RUN addgroup -g 1001 -S nodejs && adduser -S appuser -u 1001
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist
USER appuser
EXPOSE 3000
CMD ["node", "dist/main.js"]

Convex Quick Start

convex/schema.ts:

import { defineSchema, defineTable } from "convex/server"
import { v } from "convex/values"

export default defineSchema({
  messages: defineTable({
    text: v.string(),
    userId: v.id("users"),
    timestamp: v.number(),
  })
    .index("by_timestamp", ["timestamp"])
    .searchIndex("search_text", {
      searchField: "text",
      filterFields: ["userId"],
    }),
})

React Integration:

import { useQuery, useMutation } from "convex/react"
import { api } from "../convex/_generated/api"

export function Messages() {
  const messages = useQuery(api.messages.list)
  const sendMessage = useMutation(api.messages.send)

  if (!messages) return <div>Loading...</div>

  return (
    <div>
      {messages.map((msg) => (
        <div key={msg._id}>{msg.text}</div>
      ))}
    </div>
  )
}

CI/CD Integration

GitHub Actions - Vercel

name: Deploy to Vercel
on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: amondnet/vercel-action@v25
        with:
          vercel-token: ${{ secrets.VERCEL_TOKEN }}
          vercel-org-id: ${{ secrets.ORG_ID }}
          vercel-project-id: ${{ secrets.PROJECT_ID }}

GitHub Actions - Railway

name: Deploy to Railway
on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - run: npm install -g @railway/cli
      - run: railway up --detach
        env:
          RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}

GitHub Actions - Convex

name: Deploy to Convex
on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
      - run: npm ci
      - run: npx convex deploy
        env:
          CONVEX_DEPLOY_KEY: ${{ secrets.CONVEX_DEPLOY_KEY }}

Advanced Patterns

Blue-Green Deployment (Vercel)

Deploy new version, test on preview URL, then switch production alias using Vercel SDK for zero-downtime releases.

Multi-Region (Railway)

Configure deployment regions in railway.toml:

[deploy.regions]
name = "us-west"
replicas = 2

[[deploy.regions]]
name = "eu-central"
replicas = 1

Optimistic Updates (Convex)

const sendMessage = useMutation(api.messages.send)

const handleSend = (text: string) => {
  sendMessage({ text })
    .then(() => console.log("Sent"))
    .catch(() => console.log("Failed, rolled back"))
}

Platform-Specific Details

For detailed platform-specific patterns, configuration options, and advanced use cases, see:

  • reference/vercel.md - Edge Functions, ISR, Analytics, Storage
  • reference/railway.md - Docker, Multi-Service, Volumes, Scaling
  • reference/convex.md - Reactive Queries, Server Functions, File Storage
  • reference/comparison.md - Feature Matrix, Pricing, Migration Guides

Works Well With

  • moai-domain-backend for backend architecture patterns
  • moai-domain-frontend for frontend integration
  • .claude/rules/moai/languages/typescript.md for TypeScript best practices (auto-loaded via paths frontmatter)
  • .claude/rules/moai/languages/python.md for Python deployment on Railway (auto-loaded via paths frontmatter)
  • moai-platform-auth for authentication integration
  • moai-platform-database for database patterns

Status: Production Ready Version: 2.0.0 Updated: 2026-02-09 Platforms: Vercel, Railway, Convex

Common Rationalizations

RationalizationReality
"I will configure the deployment platform after development is complete"Deployment configuration affects build output, environment variables, and runtime behavior. Configure early.
"Preview deployments are optional"Preview deployments catch deployment-specific bugs before production. They cost little and save a lot.
"Environment variables are the same across all environments"Production, staging, and development need different database URLs, API keys, and feature flags. One set of env vars is a security risk.
"Serverless cold starts are negligible"Cold starts add 200-2000ms latency on first request. For user-facing APIs, this matters. Measure and mitigate.
"I do not need a rollback strategy, I can just redeploy"Redeployment takes minutes. Rollback takes seconds. When production is down, seconds matter.

Red Flags

  • Production environment variables visible in build logs
  • No preview deployment configured for pull requests
  • Single environment used for both staging and production
  • No rollback mechanism documented or tested
  • Build artifacts include development dependencies or source maps

Verification

  • Environment variables separated by environment (dev, staging, production)
  • Preview deployments configured for pull requests (show platform config)
  • Rollback procedure documented and tested (show rollback command or process)
  • Production build excludes development dependencies and source maps
  • Deployment succeeds from a clean git checkout (no local state dependency)
  • Cold start time measured for serverless functions (show timing data)

Refactor Notes

R4 audit verdict (2026-04-23): REFACTOR — shrink triplet to Vercel-only primary; Railway/Convex as documentation-only SPEC: SPEC-V3R2-WF-001 §6.2 line 271 Refactor scope (deferred to future sub-SPEC):

  • Elevate Vercel as primary platform with full guidance; demote Railway and Convex to doc-only references
  • Move Railway and Convex deep-dives into Level-3 modules
  • Add CI/CD pipeline patterns section (GitHub Actions, Vercel CI integration)

This skill is retained in v3.0 but its body will be restructured in a follow-up SPEC.

Frequently asked questions

What to verify before installation and use

What does the moai-platform-deployment source document cover?

Comprehensive deployment platform guide covering Vercel (edge-first), Railway (container-first), and Convex (real-time backend).

How do I install moai-platform-deployment?

The source record exposes this install command: npx skills add https://github.com/modu-ai/moai-adk --skill ".moai/archive/skills/v2.16/moai-platform-deployment". Inspect the command and pinned source before running it.

Which permission-related actions were detected?

Static rules flagged network, exec-script in the source; the page lists the matching lines and excerpts.

Alternatives

Compare before choosing

Computed 95868

awslabs/agent-plugins

amplify-workflow

Build and deploy full-stack web and mobile apps with AWS Amplify Gen2 (TypeScript code-first). Covers auth (Cognito), data (AppSync/DynamoDB including schema modeling, enum types, relationships, authorization rules), storage (S3), functions, APIs, and AI (Amplify AI Kit with Bedrock). Supports React, Next.js, Vue, Angular, React Native, Flutter, Swift, and Android. Always use this skill for Amplify Gen2 topics — even for questions you think you know — it contains validated, version-specific patt

Computed 9358

naveedharri/benai-skills

agentic-os-setup

Set up an agentic OS — either inside an Obsidian vault (bundled command-center dashboard, 5 auto-installed plugins, button bar wired to Claude prompts) OR as a standalone Next.js web dashboard with live MCP integrations (Circle, Fireflies, YouTube/VidIQ, Unipile LinkedIn DMs, Apify Twitter, Reddit), Anthropic Agent SDK refreshes, and optional Railway deploy. Use when the user says "set up agentic OS", "install command center", "bootstrap a personal AI dashboard", "build a vault dashboard", "spin

Computed 9264

lovstudio/skills

lov-app-generator

Use it for deployment and engineering tasks; the detail page covers purpose, installation, and practical steps.

Computed 90141,923

vercel/next.js

next-rspack

Maintain @next/rspack-core and @next/rspack-binding packages. Use when editing rspack/package.json, rspack/crates/binding/Cargo.toml, rspack/rust-toolchain.toml, or packages/next-rspack/package.json. Covers upgrading @rspack/core npm version, rspack_* crate versions, Rust toolchain version, building and linking for local testing, and NEXT_RSPACK environment variable usage. Does NOT apply to root rust-toolchain.toml (that's for Turbopack).