Back to Skills

ktx-booking

Search, reserve, inspect, and cancel KTX or Korail tickets in Korea.

5,188stars561forksUpdated 5/26/2026

Security Assessment

Safe(90/100)

Detected risks:

Sensitive File Access([SKILL.md] .env)
Security Score90/100

About ktx-booking

The ktx-booking skill provides a structured workflow for searching, reserving, inspecting, and canceling KTX and Korail train reservations in Korea. It builds on the korail2 library and a dedicated helper script to restore and support the current Korail booking flow, including handling requirements related to recent anti-bot protections. The skill is designed to help users find available train services, review reservation options, manage existing bookings, and perform ticket cancellations without relying on unofficial scraping methods. It also enforces credential-based access through configured Korail account credentials and follows a defined credential resolution process.

Key capabilities include train schedule searches, reservation creation, reservation inspection, cancellation handling, support for multiple train categories through train-type selection, and management of waiting-list reservations when available. The workflow requires searching through the helper script before booking, presenting a shortlist of matching trains, and reserving only after a specific train identifier has been selected. The skill also supports N-card discount workflows, including listing available N-cards, searching discounted train options, and creating reservations using a selected N-card. Installation guidance, environment variable requirements, seat preferences, passenger information, and train identifier handling are included as part of the documented process.

Typical use cases include travelers searching for KTX routes between cities, users checking reservation status, customers canceling existing Korail reservations, and passengers looking for the earliest available train after a specific time. It is particularly useful for users who need N-card discounted reservations or who want access to non-KTX train categories supported by the workflow. The skill is intended for authenticated Korail account holders using Python-based tooling and does not automate final payment confirmation.

FAQ

How do I search for available trains before making a reservation?

The workflow requires using the helper script's search operation first. Users provide departure station, arrival station, travel date, desired start time, and optional train-type filters to obtain a shortlist of available trains and train identifiers.

Which train services are supported?

The skill supports KTX by default and also supports additional train categories through train-type selection, including ITX-Cheongchun, ITX-Saemaeul, Mugunghwa, Nuriro, Tonggeun, Airport, and an all-trains option.

What credentials are required to use the skill?

Korail account credentials are required through the KSKILL_KTX_ID and KSKILL_KTX_PASSWORD environment variables. The documentation also describes alternative credential retrieval methods and fallback storage options.

Can the skill complete ticket payment automatically?

No. Reservation responses may include reservation details such as booking information and purchase deadlines, but payment automation is explicitly not performed by this skill.

Does the skill support SRT reservations?

No. The documentation states that the skill should not be used for SRT booking scenarios.

Install ktx-booking

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill