本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)33k · #8910

railway-projects

できること

このスキルは、Railwayのプロジェクトを管理します。たとえば、複数のワークスペースにまたがってプロジェクトを一覧にしたり、設定を変更したりします。Railwayのプロジェクトを複数整理する開発者向けです。

使う場面

  • ✓Railwayのすべてのプロジェクトとワークスペースを確認したいとき。
  • ✓このフォルダーを別のRailwayプロジェクトに切り替えたいとき。
  • ✓プロジェクトの名前を変えたり、公開の設定やPRデプロイを変えたりしたいとき。

スキルのリンク

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/railway/projects/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/railway/projects/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“Railwayのすべてのプロジェクトを表示し、このフォルダーをステージング用のプロジェクトに切り替えてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、アカウントからプロジェクトとワークスペースを一覧にし、選んだプロジェクトにフォルダーをリンクします。依頼に応じて、RailwayのAPIでプロジェクトの設定を更新します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Railway Project Management

List, switch, and configure Railway projects.

When to Use

  • User asks "show me all my projects" or "what projects do I have"
  • User asks about projects across workspaces
  • User asks "what workspaces do I have"
  • User wants to switch to a different project
  • User asks to rename a project
  • User wants to enable/disable PR deploys
  • User wants to make a project public or private
  • User asks about project settings

List Projects

The railway list --json output can be very large. Run in a subagent and return only essential fields:

  • Project: id, name
  • Workspace: id, name
  • Services: name (optional, if user needs service context)
railway list --json

Extract and return a simplified summary, not the full JSON.

List Workspaces

railway whoami --json

Returns user info including all workspaces the user belongs to.

Switch Project

Link a different project to the current directory:

railway link -p <project-id-or-name>

Or interactively:

railway link

After switching, use railway-status skill to see project details.

Update Project

Modify project settings via GraphQL API.

Get Project ID

railway status --json

Extract project.id from the response.

Update Mutation

bash <<'SCRIPT'
${CLAUDE_PLUGIN_ROOT}/skills/lib/railway-api.sh \
  'mutation updateProject($id: String!, $input: ProjectUpdateInput!) {
    projectUpdate(id: $id, input: $input) { name prDeploys isPublic botPrEnvironments }
  }' \
  '{"id": "PROJECT_ID", "input": {"name": "new-name"}}'
SCRIPT

ProjectUpdateInput Fields

Field Type Description
name String Project name
description String Project description
isPublic Boolean Make project public/private
prDeploys Boolean Enable/disable PR deploys
botPrEnvironments Boolean Enable Dependabot/Renovate PR environments

Examples

Rename project:

${CLAUDE_PLUGIN_ROOT}/skills/lib/railway-api.sh '<mutation>' '{"id": "uuid", "input": {"name": "new-name"}}'

Enable PR deploys:

${CLAUDE_PLUGIN_ROOT}/skills/lib/railway-api.sh '<mutation>' '{"id": "uuid", "input": {"prDeploys": true}}'

Make project public:

${CLAUDE_PLUGIN_ROOT}/skills/lib/railway-api.sh '<mutation>' '{"id": "uuid", "input": {"isPublic": true}}'

Multiple fields:

${CLAUDE_PLUGIN_ROOT}/skills/lib/railway-api.sh '<mutation>' '{"id": "uuid", "input": {"name": "new-name", "prDeploys": true}}'

Composability

  • View project details: Use railway-status skill
  • Create new project: Use railway-new skill
  • Manage environments: Use railway-environment skill

Error Handling

Not Authenticated

Not authenticated. Run `railway login` first.

No Projects

No projects found. Create one with `railway init`.

Permission Denied

You don't have permission to modify this project. Check your Railway role.

Project Not Found

Project "foo" not found. Run `railway list` to see available projects.
よくある質問

ワークスペースをまたいで一覧にできますか?

はい。プロジェクトと、あなたが所属するワークスペースを一覧にできます。

どの設定を変更できますか?

プロジェクト名、PRデプロイ、プロジェクトが公開か非公開かを変更できます。

一覧が長すぎて読みにくくなりませんか?

はい。全出力は非常に長くなることがあるため、主要な項目だけを返すことをスキルは勧めています。

詳細

作者による元の説明

List, switch, and configure Railway projects. Use when user wants to list all projects, switch projects, rename a project, enable/disable PR deploys, make a project public/private, or modify project settings.

repo: davila7/claude-code-templates

人気

GitHubのスター
33k
ランキング
#8910
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル