# 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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · 51 installs
- Author: Railway
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/railway/metrics
- Updated: 2026-11-17
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/metrics

## What it 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.

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill railway/metrics
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill railway-metrics -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/metrics/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/metrics/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill railway-metrics -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/metrics/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill railway-metrics -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/metrics/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates cli-tool/components/skills/railway/metrics
```

2. **Manually: put the files in place**
- File: `.github/skills/metrics/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill railway-metrics -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/railway/metrics
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/metrics/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/railway/metrics

## When to use it
- 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
- 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.

## Similar
- [metrics-dashboard](https://affpapa.org/en/nevibecode/skills/metrics-dashboard.md) — skill · 3200 installs
- [Polar Signals](https://affpapa.org/en/nevibecode/mcp/polar-signals.md) — MCP server
- [cost-trend](https://affpapa.org/en/nevibecode/skills/cost-trend.md) — skill · 683 installs
- [Performance Monitor](https://affpapa.org/en/nevibecode/agents/ruvnet-performance-monitor.md) — subagent · ★ 850 repo stars
- [adaptive-metrics](https://affpapa.org/en/nevibecode/skills/adaptive-metrics.md) — skill · 4600 installs
- [custom-metrics](https://affpapa.org/en/nevibecode/skills/vercel-custom-metrics.md) — skill · 148 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 745 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
