metrics — Claude Code skill for Railway metrics
metrics is a Claude Code skill that queries resource metrics for Railway services. It activates for questions about CPU, memory, network, disk, or service performance.
MIT 51 installs updated 2026-11-17
npx claude-code-templates@latest --skill railway/metricsWhat metrics does
The skill fetches Railway service metrics over a chosen time range, including CPU load, memory, network traffic, and disk use. Results can be grouped by service, region, deployment, or deployment instance, with timestamps for each value.
The query needs an environment ID and a service ID from railway status --json. Omit the service ID to fetch metrics across the environment. The setup requires railway-cli and access to the Railway project; the sample response-processing commands use jq.
Services without an active deployment return an empty metrics set. Set startDate in ISO 8601 format to define the time range.
What it helps with
- check CPU load for a Railway service
- inspect memory and disk use over a time range
- compare network traffic across services in an environment
- group metrics by region or deployment
Example prompts for the agent
- Show the CPU and memory usage of my Railway service for the last hour.
- How much memory and disk space is this Railway service using?
- Compare network traffic across all services in this environment.
How to install metrics
1claude-code-templates
npx claude-code-templates@latest --skill railway/metrics2Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill railway-metrics -a claude-code3Manually: put the files in place
~/.claude/skills/metrics/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/metrics/
1Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill railway-metrics -a codex2Manually: put the files in place
.agents/skills/metrics/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill railway-metrics -a cursor2Manually: put the files in place
.cursor/skills/metrics/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install davila7/claude-code-templates cli-tool/components/skills/railway/metrics2Manually: put the files in place
.github/skills/metrics/SKILL.md1Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill railway-metrics -a gemini-cli2Platform CLI
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/railway/metricsManually: put the files in place
.devin/skills/metrics/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about metrics
How do I install metrics in Claude Code?
Run npx claude-code-templates@latest --skill railway/metrics. This installation method uses that command.
What does metrics do?
It queries Railway service resource measurements, including CPU, memory, network, and disk usage. Results can be grouped by service, region, deployment, or deployment instance.
What does metrics need to run?
It requires railway-cli, access to the Railway project, and the environment ID from railway status --json. Leave out the service ID to query all services in that environment.