railway-skills: Instructions file for Claude Code

AGENTS.md

railway-skills AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from railwayapp/railway-skills. It costs 2,147 tokens per session, scanned A, original, MIT.

Instructions for Railway agent plugins, which let coding agents work with Railway, a platform for deploying and running applications. They explain the plugin and skill structure across several coding-agent tools.

In plain words
What is it for?
Use them to understand the plugin files, marketplace entries, Railway skills, MCP connection, and command hooks for each supported tool.
Why use it?
They keep the shared Railway integration consistent when it is packaged for different agent environments.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: ${CLAUDE_PLUGIN_ROOT} variable, but also the file is AGENTS.md. Also seen: mentions .claude-plugin; mentions Claude Code; mentions Codex.

This is railwayapp/railway-skills's own configuration. It tells Claude Code, Codex and OpenCode how to work on railway-skills itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything railway-skills configures →

Runs only inside a plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else, and the catalogue could not identify which plugin ships it.

Reuse

Borrowing it

Nothing to install: this file belongs to railwayapp/railway-skills. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/railwayapp/railway-skills/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/railwayapp/railway-skills

Made for: Claude Code, Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for railway-skills AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/railwayapp/railway-skills/agents-md/github.svg)](https://agentmods.dev/instructions/railwayapp/railway-skills/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/railwayapp/railway-skills/agents-md"><img src="https://agentmods.dev/badge/instructions/railwayapp/railway-skills/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for railway-skills AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/railwayapp/railway-skills/agents-md"><img src="https://agentmods.dev/badge/instructions/railwayapp/railway-skills/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,147 This file is loaded in full into every session.
When invoked 2,147 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02147 $0.02147
Opus 5.5 $0.00859 $0.00859
Sonnet 5.5 $0.00429 $0.00429
Haiku 4.5 $0.00215 $0.00215

Measured 14d ago against content hash 4dc7289c0a8e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

railway-skills AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Railway Agent Plugins

Agent plugins for Railway. Interact with Railway through one orchestration skill and the Railway MCP server.

Plugin model

The shared plugin payload lives in plugins/railway.

  • Claude Code: plugins/railway/.claude-plugin/plugin.json, plugins/railway/.mcp.json, and the repo marketplace at .claude-plugin/marketplace.json.
  • OpenAI Codex: plugins/railway/.codex-plugin/plugin.json, plugins/railway/.mcp.json, and the repo marketplace at .agents/plugins/marketplace.json.
  • Grok Build / xAI marketplace: resolves plugins/railway as the plugin by using a remote source subpath (source.path: "plugins/railway"). The shared payload therefore exposes plugins/railway/.grok-plugin/plugin.json, plugins/railway/.grok-plugin/mcp.json, plugins/railway/skills, and plugins/railway/hooks directly.
  • Cursor: plugins/railway/.cursor-plugin/plugin.json, plugins/railway/.cursor-plugin/mcp.json, and the repo marketplace at .cursor-plugin/marketplace.json.
  • Google Antigravity: plugins/railway/.antigravity-plugin/plugin.json and plugins/railway/mcp_config.json, with plugins/railway/README.md rendered as the pre-install page and plugins/railway/assets/logo.svg as the Marketplace logo. Antigravity resolves every component path from plugins/railway, so only plugin.json may live in .antigravity-plugin/; skills, MCP config, and assets stay at the plugin root. Antigravity's MCP config uses serverUrl instead of type/url, and namespaces each server key as <plugin>-<key> (railway-mcp).

Claude Code and Grok Build also use plugins/railway/hooks/hooks.json for the existing Railway CLI/API auto-approval hook. The hook command resolves ${GROK_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/hooks/auto-approve-api.sh. Antigravity does not load this hook: it only reads hooks.json at the plugin root, names its shell tool run_command, and expects a decision response instead of hookSpecificOutput.

Skill model

Read the full file on GitHub · 120 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago Changed · +2 lines · +257 tokens per session 4dc7289c0a8e
  2. 28d ago Changed · +8 tokens per session 61a6113b0690
  3. 29d ago Changed · +17 tokens per session b4ee09aa9b7c
  4. 1mo ago Changed · +24 tokens per session 76043aa25177
  5. 1mo ago Changed · +23 tokens per session d0f68d427410
  6. 1mo ago Changed · +1 lines · +62 tokens per session 298f8e746108
  7. 1mo ago Changed · +2 lines · +206 tokens per session 61d7eb6380b2
  8. 1mo ago First seen · 115 lines · 1,550 tokens per session scan A e62e5771934e

Subscribe to this mod's changes

railway-skills AGENTS.md is an instructions file published in the GitHub repository railwayapp/railway-skills (338 stars, last pushed 13d ago), licensed MIT. It adds 2,147 tokens to every session, about $0.0086 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories