.claude/skills/tzurot-deployment/SKILL.md
Railway deployment procedures. Invoke with /tzurot-deployment for deploying, checking logs, and troubleshooting.
npx skillsauth add lbds137/tzurot tzurot-deploymentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Invoke with /tzurot-deployment for Railway operations.
gh pr merge <PR-number> --rebase --delete-branch
railway status --json
railway logs --service api-gateway -n 100
curl https://api-gateway-development-83e8.up.railway.app/health
git revert HEAD
git push origin develop
# Railway auto-deploys the revert
# Tail specific service
railway logs --service bot-client -n 50
# Search for errors
railway logs --service api-gateway | grep "ERROR"
# Trace request across services
railway logs | grep "requestId:abc123"
# Find errors
railway logs | grep '"level":"error"'
# Preview changes (ALWAYS dry-run first)
pnpm ops deploy:setup-vars --env dev --dry-run
# Apply to dev
pnpm ops deploy:setup-vars --env dev
# List all for a service
railway variables --service api-gateway --json
# Set single variable
railway variables --set "KEY=value" --service ai-worker --environment development
# DELETE - Use Dashboard (CLI cannot delete!)
⚠️ Prisma uses LOCAL migrations folder! Checkout the branch matching deployed code first.
# 1. Checkout correct branch
git checkout main # For production
# 2. Check status
pnpm ops db:status --env prod
# 3. Apply migrations
pnpm ops db:migrate --env prod --force
# Generic pattern
pnpm ops run --env dev <command>
# One-off script
pnpm ops run --env dev tsx scripts/src/db/backfill.ts
# Prisma Studio
pnpm ops run --env dev npx prisma studio
# Note: 'railway restart' doesn't exist, use redeploy
railway redeploy --service bot-client --yes
| Symptom | Check | Solution |
| ------------------ | ------------------------------- | ----------------------- |
| Service crashed | railway logs -n 100 | Check missing env vars |
| Slow responses | railway logs \| grep duration | Check DB/Redis |
| Bot not responding | bot-client logs | Verify DISCORD_TOKEN |
| Migration failed | pnpm ops db:status | Apply with db:migrate |
docs/reference/RAILWAY_CLI_REFERENCE.mddocs/reference/deployment/RAILWAY_OPERATIONS.mddevelopment
Testing procedures. Invoke with /tzurot-testing for test execution, coverage audits, and debugging test failures.
tools
Git workflow procedures. Invoke with /tzurot-git-workflow for commit, PR, and release procedures.
documentation
Session workflow procedures. Invoke with /tzurot-docs for session start/end, CURRENT.md/BACKLOG.md management.
tools
Documentation and auto-memory freshness audit. Invoke with /tzurot-doc-audit to review docs and Claude auto-memory for staleness, items in the wrong layer, and missing-tool drift.