关于 central-station
用于搜索和浏览 Railway Central Station 社区平台的技能,面向查找支持讨论、问题解决方案和近期话题的用户,可读取完整公开讨论内容。
主要功能
- 01搜索公开社区讨论与文档
- 02按主题获取近期讨论
- 03查看热门和置顶讨论
- 04通过导出数据检索讨论全文
适用场景
- 01查找部署失败相关的社区问题
- 02检索数据库连接讨论及解决方案
- 03了解特定主题的近期提问
- 04浏览社区反馈与热门话题
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ railwayapp/ railway-skills --skill central-station安装后在 Claude Code 中输入/central-station确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
references/environment-config.mdmonorepo.mdrailpack.mdvariables.md详细介绍
Central Station
搜索和浏览 Railway 的 Central Station——用于讨论串、讨论和文档的社区支持平台。
API 端点
| 端点 | URL |
|---|---|
| GraphQL | https://station-server.railway.com/gql |
| Thread Markdown | https://station-server.railway.com/api/threads/:slug |
| LLM Data Export | https://station-server.railway.com/api/llms-station |
| 前端 | https://station.railway.com |
适用场景
- 用户想搜索 Central Station 讨论串或文档
- 用户询问社区讨论或支持问题
- 用户想查找关于特定主题(部署、数据库等)的讨论串
- 用户询问“大家都在问关于 X 的什么问题”
- 用户想查看最新的讨论串或问题
- 用户提到 Central Station、社区讨论串或支持讨论
- 用户想在创建新讨论串前查找已有解决方案
不适用场景
- 用户想查阅 Railway 产品文档——使用
railway-docs技能 - 用户想检查自己的项目状态——使用
status技能 - 用户想管理自己的 Railway 项目——使用相应技能(deploy、environment 等)
文档搜索
对于 Railway 官方文档,请使用 railway-docs 技能,该技能会从 https://docs.railway.com/api/llms-docs.md 获取内容。
Central Station 的 unifiedSearch 可以识别文档类型,但可访问的字段有限:
curl -s 'https://station-server.railway.com/gql' \
-H 'content-type: application/json' \
--data-raw '{"query":"{ unifiedSearch(input: { query: \"volumes\", limit: 10 }) { results { document { __typename } } } }"}'
返回的文档类型:EsThreadItem(讨论串)和 DocSearchResult(文档)。
注意:要搜索讨论串内容,请改用 LLM Data Export 端点(见下文),该端点会提供完整的讨论串数据。
快速操作
获取最新讨论串
获取最新的讨论串,可按主题筛选:
curl -s 'https://station-server.railway.com/gql' \
-H 'content-type: application/json' \
-d '{"query": "{ threads(first: 10, sort: recent_activity) { edges { node { slug subject status topic { slug displayName } upvoteCount createdAt } } } }"}'
按主题筛选:
curl -s 'https://station-server.railway.com/gql' \
-H 'content-type: application/json' \
-d '{"query": "{ threads(first: 10, sort: recent_activity, topic: \"questions\") { edges { node { slug subject status topic { displayName } upvoteCount } } } }"}'
按 Slug 获取讨论串
获取指定讨论串及其内容:
curl -s 'https://station-server.railway.com/gql' \
-H 'content-type: application/json' \
-d '{"query": "{ thread(slug: \"THREAD_SLUG\") { slug subject status content { data } topic { displayName } upvoteCount } }"}'
获取 Markdown 格式的讨论串
如需更简洁的阅读体验,请以 Markdown 格式获取讨论串:
# Append .md to the frontend URL (requires topic slug)
curl -s 'https://station.railway.com/TOPIC_SLUG/THREAD_SLUG.md'
# Or use API with format query parameter
curl -s 'https://station-server.railway.com/api/threads/THREAD_SLUG?format=md'
# Or use API with Accept header
curl -s 'https://station-server.railway.com/api/threads/THREAD_SLUG' \
-H 'Accept: text/markdown'
列出主题
获取所有可用主题:
curl -s 'https://station-server.railway.com/gql' \
-H 'content-type: application/json' \
-d '{"query": "{ topics { slug displayName displayNamePlural } }"}'
返回:questions、feedback、community、billing、bug-bounty、privacy、abuse、templates
获取热门讨论串
获取当前热门的讨论串:
curl -s 'https://station-server.railway.com/gql' \
-H 'content-type: application/json' \
-d '{"query": "{ trendingThreads { slug subject status topic { displayName } upvoteCount } }"}'
获取置顶讨论串
获取置顶或重要的讨论串:
curl -s 'https://station-server.railway.com/gql' \
-H 'content-type: application/json' \
-d '{"query": "{ pinnedThreads { slug subject topic { displayName } } }"}'
通过 LLM Data Export 搜索
要搜索讨论串内容,请获取所有讨论串并在本地筛选:
curl -s 'https://station-server.railway.com/api/llms-station' | jq '.items[] | select(.title | test("postgres"; "i")) | {title, topic: .topic.name, status: .metadata.status}'
此端点会返回所有包含完整内容的公开讨论串,适合按关键词搜索。
讨论串状态
| 状态 | 说明 |
|---|---|
OPEN | 尚未解决,接受回复 |
SOLVED | 已标记为已解决 |
AWAITING_RAILWAY_RESPONSE | 等待 Railway 团队回复 |
AWAITING_USER_RESPONSE | 等待原发帖者回复 |
CLOSED | 不再接受回复 |
ARCHIVED | 已归档的旧讨论串,供查阅 |
排序选项
对于 threads 查询,请使用 sort 参数:
| 排序值 | 说明 |
|---|---|
recent_activity | 最近活跃的内容(默认) |
newest | 按最新内容优先 |
highest_votes | 按获赞数从高到低 |
展示结果
展示讨论串时:
- 讨论串标题 - 主题
- 主题 - 分类(questions、feedback 等)
- 状态 - 开放、已解决、等待回复
- 摘要 - 内容的简短预览
- 链接 -
https://station.railway.com/{topic_slug}/{thread_slug}
格式示例:
Found 3 threads about "postgres":
1. "Connection timeout when connecting to Postgres"
Topic: questions | Status: SOLVED | Upvotes: 5
https://station.railway.com/questions/connection-timeout-postgres
2. "How to connect to Postgres from local development"
Topic: community | Status: OPEN | Upvotes: 12
https://station.railway.com/community/connect-postgres-local
3. "Postgres SSL certificate verification failed"
Topic: questions | Status: AWAITING_RAILWAY_RESPONSE
https://station.railway.com/questions/postgres-ssl-verification
常见搜索模式
| 用户查询 | 筛选/搜索 |
|---|---|
| “为什么我的部署失败了?” | 主题:questions,搜索:“deploy” |
| “无法连接到数据库” | 主题:questions,搜索:“database”或“postgres” |
| “域名无法使用” | 主题:questions,搜索:“domain” |
| “功能请求” | 主题:feedback |
| “大家都在构建什么?” | 主题:community |
组合使用
- 找到讨论串后:总结解决方案或提供链接
- 未找到结果时:建议使用
railway-docs技能或创建新讨论串 - 找到技术问题时:使用相关技能(deploy、environment 等)协助解决
错误处理
未找到结果
No threads found. Try:
- Different topic filter
- Checking Railway docs instead
- Creating a new thread at https://station.railway.com
主题无效
请先列出可用主题:
curl -s 'https://station-server.railway.com/gql' -H 'content-type: application/json' -d '{"query": "{ topics { slug } }"}'
未找到帖子
Thread not found. It may have been deleted or marked private.
评论
支持 Markdown