ktx-booking

Automate KTX and Korail ticket search, reservation, inspection, and cancellation.

7.1k|836|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/NomaDamas/k-skill --skill ktx-booking
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ktx-booking
Source: https://github.com/NomaDamas/k-skill/tree/main/ktx-booking
Command: npx skills add https://github.com/NomaDamas/k-skill --skill ktx-booking

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires korail2-ncard, pycryptodome, and includes scripts (resource) components.

What problem does it solve?

KTX and Korail reservations are time-consuming because you must repeatedly search train availability, confirm the correct train/session, and then manage booking status (reserve/cancel) without making mistakes.

Core Features & Use Cases

  • KTX/Korail 조회→예약→예약 확인/취소: Searches matching KTX/Korail options, then reserves only after the target train is unambiguous, and finally inspects or cancels a reservation when needed.
  • Korail anti-bot–aware helper flow: Uses the korail2 base plus a helper that supplies required tokens/fields (e.g., x-dynapath-m-token, Sid, and a recent app version) to restore a working reservation flow.
  • N-card–discount support (reservation-side): Lists N-cards (masked output), searches discounted trains for a chosen N-card index, and reserves using that card (without automating payment).

Quick Start

Ask to reserve the KTX route you want by telling the origin, destination, travel date (YYYYMMDD), and desired start time (HHMMSS), plus passenger/seat preferences, then confirm the suggested train_id and perform the reservation step.

Frequently Asked Questions about ktx-booking

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate KTX ticket booking and reservation management without hitting anti-bot blocks?

Automate KTX ticket booking by using a korail2 base with a helper script that supplies required anti-bot tokens like x-dynapath-m-token and Sid. This restores the working reservation flow for searching, reserving, inspecting, and canceling Korean train tickets.

What do I need to start automating Korail train search and reservation?

To start Korail train automation, you need the korail2 and pycryptodome dependencies, plus KSKILL_KTX_ID and KSKILL_KTX_PASSWORD credentials. You provide the origin, destination, travel date (YYYYMMDD), and desired start time (HHMMSS).

Can I apply N-card discounts when automating KTX seat reservations?

Yes, you can apply N-card discounts during KTX seat reservations. The automation lists available N-cards in masked output, searches discounted trains for a chosen N-card index, and reserves using that card without automating the actual payment process.

How does the automated Korail booking system identify the correct train?

The automated Korail booking system identifies the correct train using a change-resistant stable train_id. It searches matching KTX options and reserves only after the target train is unambiguous, ensuring accurate session confirmation and optional waiting-list handling.

Does the KTX reservation automation handle ticket cancellation and inspection?

Yes, KTX reservation automation handles ticket cancellation and inspection. After searching and reserving a train, the workflow inspects the reservation status and cancels the reservation when needed, covering the full ticket management lifecycle.

Why does my Korail reservation automation fail with missing token errors?

Korail reservation automation fails with missing token errors when the anti-bot helper flow is inactive. The helper script must supply recent app version data, Sid, and x-dynapath-m-token fields to bypass anti-bot restrictions and restore the booking flow.