find-full-compartment

find-full-compartment is a skill for Codex from slavb18/rzd-api. It costs 121 tokens per session (1,054 once invoked), scanned A, original, MIT.

A tool for finding fully empty four-berth or two-berth compartments on Russian trains over a chosen date range, with a carriage diagram showing the berths.

In plain words
What is it for?
Use it to search RZD trains for a whole compartment, family compartment, or four berths together, and to identify the exact carriage and seats.
Why use it?
It removes the need to check train availability and carriage layouts manually when a group wants to travel together behind one door.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to search RZD trains for a whole compartment, family compartment, or four berths together, and to identify the exact carriage and seats.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/slavb18/rzd-api/find-full-compartment
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add slavb18/rzd-api --skill find-full-compartment
Clone the repo
git clone --depth 1 https://github.com/slavb18/rzd-api

Made for: Codex.

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 find-full-compartment

README.md
[![agentmods](https://agentmods.dev/badge/skills/slavb18/rzd-api/find-full-compartment/github.svg)](https://agentmods.dev/skills/slavb18/rzd-api/find-full-compartment)
Your own site
<a href="https://agentmods.dev/skills/slavb18/rzd-api/find-full-compartment"><img src="https://agentmods.dev/badge/skills/slavb18/rzd-api/find-full-compartment/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 find-full-compartment

Your own site · 80×15
<a href="https://agentmods.dev/skills/slavb18/rzd-api/find-full-compartment"><img src="https://agentmods.dev/badge/skills/slavb18/rzd-api/find-full-compartment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,054 The whole file, excluding the scripts and references it only reads on demand.
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.00121 $0.01054
Opus 5.5 $0.00048 $0.00422
Sonnet 5.5 $0.00024 $0.00211
Haiku 4.5 $0.00012 $0.00105

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

Security

Grade A, and why

find-full-compartment 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 2mo 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.

skills/find-full-compartment/SKILL.md · 69 lines

How it starts

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

Find a full train compartment

Reading the request

A request names a direction, a period and sometimes a party size: "Москва → Владивосток, полное купе, с 1 по 30 сентября 2026 с картинкой" carries all three. Fill the rest in yourself and say what you assumed - do not interrogate the traveller for parameters that have an obvious default.

  • Party size. "Полное купе", "целое купе", "купе целиком" mean four berths unless a number is given. "СВ" or "купе на двоих" means two: pass it as places, because a two-berth carriage has two berths behind its door and four would never be confirmed there.
  • Period. Convert to an inclusive ISO range. A bare month means the whole month, "ближайшие даты" means from today. Ranges are capped at 31 days: if a longer one is asked for, search the first 31 days and say the range was cut.
  • Drawing. Show it by default for the best match. "С картинкой", "покажи схему", "где именно места" all confirm it; only skip it if the traveller asks for text alone.

Ask a question only when the direction is genuinely ambiguous - "Владивосток" resolves to two station codes, so find_stations first and pick or ask.

Answering

  1. Call search_full_compartments once with the direction, the ISO range and places. It returns the three nearest options and stops looking there, which is what someone planning a trip wants; pass max_results when a number is asked for ("покажи 5 вариантов").
  2. Report only confirmed entries as a compartment. Each carries the car and compartment number and the exact berths the carriage response listed inside that compartment.
  3. Never promote a candidates entry. A candidate is a carriage with enough free berths that the API did not confirm as one compartment, and its reason says why:
    • places_not_in_one_compartment - the berths sit in different compartments; offer them as separate seats, never as a compartment;
    • compartment_layout_missing - the response carried no compartment breakdown; say the compartment could not be confirmed. When nothing is confirmed, say so plainly and offer the candidates as what they are, or suggest widening the range.
  4. Earliest dates first. Give train, local departure and arrival, car, compartment, berths, service class, price per berth and total.
  5. Keep the berth markers exactly as returned: 36Ж is a berth in a women-only compartment, 6С one in a mixed compartment. The traveller sees these on the ticket, so never strip them to the bare number - and mention what the marker means, since a women-only compartment changes who can travel there.
  6. For the best match, call get_car_scheme with that car's metadata from get_carriages, include_image: true and the compartment's berths in free_places. Without free_places every berth stays the same near-white and the drawing reads as an empty carriage. The reply carries a PNG of about 60 KB; imageUrls also holds a link to the original drawing.
  7. State the checkedAt timestamp and warn that availability and prices change in real time.
  8. Report every entry in errors and every date in unchecked as a date that was not searched, never as a date with no compartments. unchecked holds the dates the scan stopped short of, either because enough options were found or because it hit its request budget. On "покажи ещё" or "а на следующие даты", search again from the first date in unchecked.
  9. omitted counts what was found and not returned. Mention it in one clause - "ещё 12 вагонов с той же причиной" - rather than listing everything.
  10. Never claim to reserve or buy tickets; point to an authorized RZD sales channel.

Read the full file on GitHub · 69 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 69 lines · 121 tokens per session scan A 4c6f953a912b

Subscribe to this mod's changes

find-full-compartment is a skill published in the GitHub repository slavb18/rzd-api (1 stars, last pushed 3mo ago), licensed MIT. It adds 121 tokens to every session and 1,054 once invoked, about $0.0005 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-31.

Related

find-full-compartment compared with skills from other repositories

find-full-compartment next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
find-full-compartmentslavb18/rzd-apiSkill13mo agoMITA121Codex
imagegenopenai/codexSkill136ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101kyesterdayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill81k5d agoMITA200Claude Code, Codex
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code