platform-knowledge
4
总安装量
4
周安装量
#52160
全站排名
安装命令
npx skills add https://github.com/doubleslashse/claude-marketplace --skill platform-knowledge
Agent 安装分布
opencode
4
gemini-cli
3
claude-code
3
codex
3
qoder
2
antigravity
2
Skill 文档
Platform Knowledge Skill
Overview
This skill provides comprehensive knowledge of the infrastructure platforms: GitHub Actions, Railway, Supabase, and Postgres. It covers architecture, configuration, troubleshooting, and best practices for each platform.
Platform Overview
GitHub Actions
- Purpose: CI/CD automation
- Key Features: Workflow automation, testing, deployment
- Config Files:
.github/workflows/*.yml - CLI:
gh
Railway
- Purpose: Application hosting and deployment
- Key Features: Auto-deployments, instant rollbacks, environment management
- Config Files:
railway.toml,nixpacks.toml,Procfile - CLI:
railway
Supabase
- Purpose: Backend-as-a-Service (Postgres, Auth, Storage, Realtime)
- Key Features: Managed Postgres, authentication, file storage, realtime subscriptions
- Config Files:
supabase/config.toml, migrations - Access: MCP tools, Dashboard, CLI
Postgres
- Purpose: Relational database
- Key Features: ACID compliance, extensions, full-text search, JSON support
- Config: Connection strings, postgresql.conf
- Access: SQL queries via MCP or psql
Platform Interaction Map
ââââââââââââââââ ââââââââââââââââ
â GitHub â â Railway â
â Actions ââââââ¶â (App) â
â (CI/CD) â â â
ââââââââââââââââ ââââââââ¬ââââââââ
â
â¼
ââââââââââââââââ
â Supabase â
â (Backend) â
â â
â ââââââââââââ â
â â Postgres â â
â ââââââââââââ â
ââââââââââââââââ
Quick Reference
Tool Access by Platform
| Platform | MCP Tools | CLI | Logs |
|---|---|---|---|
| GitHub Actions | No | gh |
gh run view --log |
| Railway | No | railway |
railway logs |
| Supabase | Yes | supabase |
MCP get_logs |
| Postgres | Yes (via Supabase) | psql |
MCP get_logs |
Common Operations
| Task | GitHub | Railway | Supabase |
|---|---|---|---|
| Deploy | Push/workflow | Git push / railway up |
Dashboard / CLI |
| Logs | gh run view --log |
railway logs |
MCP get_logs |
| Status | gh run list |
railway status |
MCP get_project |
| Rollback | Re-run workflow | Dashboard | Run migration down |
| Secrets | Repository settings | Environment variables | Project settings |
Troubleshooting Decision Tree
Issue Reported
â
â¼
âââââââââââââââââââââââââââââââââââââââ
â Where does the issue manifest? â
âââââââââââââââââââââââââââââââââââââââ
â
ââ⺠Build/Deploy fails ââ⺠GitHub Actions / Railway
â
ââ⺠API errors ââ⺠Supabase API / Edge Functions
â
ââ⺠Auth issues ââ⺠Supabase Auth
â
ââ⺠Database errors ââ⺠Postgres
â
ââ⺠App crashes ââ⺠Railway / Edge Functions
â
ââ⺠Performance ââ⺠All platforms (profile each)
Platform-Specific Guides
Detailed guides for each platform:
- GitHub Actions – CI/CD workflows, secrets, debugging
- Railway – Deployment, configuration, troubleshooting
- Supabase – Auth, API, Realtime, Storage
- Postgres – Queries, performance, administration
Cross-Platform Issues
Deployment Chain Failure
Symptom: Deploy succeeds but app broken
Check all stages:
- GitHub Actions – Build/test passed?
- Railway – Deploy successful?
- Supabase – Migrations applied?
- Environment – Variables set?
Environment Variable Issues
Common causes:
- Set in wrong environment
- Typo in variable name
- Not propagated after change
Verify across platforms:
# GitHub Actions - Check secrets
# (Can't view, only verify existence)
# Railway
railway variables
# Supabase - Check project settings
# Dashboard or MCP
Connection Issues Between Services
Railway â Supabase:
- Check Supabase URL format
- Verify API key (anon vs service_role)
- Check connection pooling settings
- Verify IP restrictions
GitHub Actions â Services:
- Check secrets are accessible
- Verify network egress allowed
- Check for rate limiting
Performance Troubleshooting Matrix
| Symptom | GitHub Actions | Railway | Supabase | Postgres |
|---|---|---|---|---|
| Slow | Cache missing, big deps | Cold start, resources | Edge function | Query optimization |
| Timeout | Step timeout | Health check | API timeout | Statement timeout |
| Memory | OOM on build | Container limit | Function limit | work_mem |
| CPU | Concurrent jobs | Container limit | N/A | Query complexity |
Configuration Files Reference
GitHub Actions
# .github/workflows/deploy.yml
name: Deploy
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# ... more steps
Railway
# railway.toml
[build]
builder = "nixpacks"
buildCommand = "npm run build"
[deploy]
startCommand = "npm start"
healthcheckPath = "/health"
Supabase
# supabase/config.toml
[api]
port = 54321
schemas = ["public", "graphql_public"]
[db]
port = 54322
Postgres
-- Key settings
SHOW max_connections;
SHOW statement_timeout;
SHOW work_mem;