← 返回 Skills 市场
kevinjinko

Jinko

作者 kevinjinko · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
144
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install jinko-flight
功能描述
Guide for using the Jinko CLI (@gojinko/cli) — a terminal tool for searching flights, discovering destinations, managing trips, and booking travel. Use when:...
使用说明 (SKILL.md)

Jinko CLI Usage Guide

Installed at: /usr/local/lib/node_modules/@gojinko/cli/ Binary: jinko (symlinked to /usr/local/bin/jinko)

Authentication

You must authenticate before using any Jinko CLI commands.

Option 1: OAuth (Recommended)

The primary and recommended way to authenticate. Opens a browser-based OAuth flow to securely link your Jinko account.

jinko auth login

This opens your default browser, prompts you to sign in to your Jinko account, and stores the credentials locally. No API key management required.

Option 2: API Key

Alternatively, you can authenticate using an API key (prefixed jnk_...). Use this for CI/CD pipelines, scripts, or headless environments where a browser is not available.

# Set the API key via config
jinko config set api_key jnk_your_api_key_here

# Or pass it per-command
jinko find-flight --api-key jnk_your_api_key_here --from SFO --to NYC --date 2026-04-01

# Or set it as an environment variable
export JINKO_API_KEY=jnk_your_api_key_here

Auth Management

jinko auth login          # Authenticate via OAuth (recommended)
jinko auth logout         # Clear stored credentials
jinko auth status         # Show current auth status

Global Options

Option Description
--format \x3Cformat> Output format: json (default) or table
--api-key \x3Ckey> API key (jnk_...) — overrides env/config
-V, --version Show version

Important: Command Priority

Always prefer find-flight and flight-calendar over flight-search when possible. These commands use cached/indexed data and are ideal for:

  • Finding the cheapest dates to fly on a route
  • Setting up deal alerts and monitoring prices over time
  • Quickly comparing fares across multiple dates or destinations

Only fall back to flight-search (live search) when find-flight returns no results for the given route/date, or when you need real-time pricing to confirm an offer before booking.

Commands Overview

1. jinko find-flight — Cached Flight Search

Finds cheapest flights from cached/indexed data. Fast but prices may be stale. Returns offer_token for live pricing via flight-search.

jinko find-flight --from \x3CIATA> --to \x3CIATA> --date \x3CYYYY-MM-DD> [options]
Option Description
--from \x3Corigin> Origin IATA code (e.g. PAR, SFO)
--to \x3Cdestination> Destination IATA code (e.g. NYC, BKK)
--date \x3Cdate> Departure date (YYYY-MM-DD)
--return \x3Cdate> Return date for round-trip
--cabin \x3Cclass> economy, premium_economy, business, first (default: economy)
--direct-only Only show direct/nonstop flights
--max-price \x3Camount> Maximum price filter
--sort \x3Csort> lowest (default) or recommendation
--limit \x3Cn> Max results (default: 10)

Response fields: itineraries[] with id, offer_token (for price-check), total_amount, slices[] (segments), jinko_advice (price guidance).

Example:

jinko find-flight --from SFO --to NYC --date 2026-03-26 --sort lowest
jinko find-flight --from PAR --to BKK --date 2026-05-01 --return 2026-05-08 --direct-only

2. jinko find-destination — Destination Discovery

Discover where to fly from one or more origins. Use when the user doesn't know where to go.

jinko find-destination --from \x3CIATA...> [options]
Option Description
--from \x3Corigins...> One or more origin IATA codes (e.g. PAR CDG)
--date \x3Cdate> Departure date
--return \x3Cdate> Return date
--direct-only Only direct flights
--cabin \x3Cclass> Cabin class (default: economy)
--max-price \x3Camount> Max price filter
--sort \x3Csort> lowest or recommendation
--limit \x3Cn> Max destinations (default: 20)

Response fields: origin, destinations[] with iata_code, city_name, lowest_fare_flight, flights[].

Example:

jinko find-destination --from SFO --date 2026-04-01 --max-price 300
jinko find-destination --from CDG ORY --direct-only --sort lowest

3. jinko flight-search — Live Search / Price Check

Two modes:

  • Search mode: Live flight search with real-time pricing
  • Price-check mode: Verify current price for a specific offer from find-flight
# Mode A: Live search
jinko flight-search --from \x3CIATA> --to \x3CIATA> --date \x3CYYYY-MM-DD> [options]

# Mode B: Price-check a specific offer
jinko flight-search --offer-token \x3Ctoken>
Option Description
--from \x3Corigin> Origin IATA code
--to \x3Cdestination> Destination IATA code
--date \x3Cdate> Departure date
--return \x3Cdate> Return date for round-trip
--passengers \x3Cn> Number of passengers (default: 1)
--cabin \x3Cclass> Cabin class (default: economy)
--direct-only Only direct flights
--max-price \x3Camount> Max price filter
--offer-token \x3Ctoken> Price-check a specific offer (from find-flight)

Response fields: mode (search/price_check), status (confirmed/sold_out/price_changed), flights[] with fares[] containing trip_item_token (needed for trip creation), brand_name, total_price, refund_policy, change_policy, included_baggage.

Example:

jinko flight-search --from SFO --to JFK --date 2026-04-01 --direct-only
jinko flight-search --offer-token "es-abc123_AMD"

4. jinko flight-calendar — Price Calendar

Show cheapest prices across a month for a route. Great for finding the best travel dates.

jinko flight-calendar --from \x3CIATA> --to \x3CIATA> [options]
Option Description
--from \x3Corigin> Origin IATA code
--to \x3Cdestination> Destination IATA code
--month \x3Cmonth> Month to display (YYYY-MM), defaults to current
--cabin \x3Cclass> Cabin class (default: economy)
--direct-only Only direct flights

Example:

jinko flight-calendar --from PAR --to NYC --month 2026-05
jinko flight-calendar --from SFO --to BKK --month 2026-06 --direct-only

5. jinko trip — Trip Management

Create a trip, add flights, and set travelers. All in one command.

jinko trip [options]
Option Description
--trip-id \x3Cid> Existing trip ID (omit to create new)
--trip-item-token \x3Ctoken> Add a flight item (from flight-search fares)
--travelers \x3Cjson> Travelers as JSON array
--contact \x3Cjson> Contact as JSON {email, phone}

Response fields: trip_id, status, items[], travelers[], contact, totals, actions_performed[].

Traveler JSON format:

[{
  "first_name": "John",
  "last_name": "Doe",
  "date_of_birth": "1990-05-15",
  "gender": "MALE",
  "passenger_type": "ADULT"
}]

Example:

# Create trip with a flight
jinko trip --trip-item-token "offer__abc123:0-1-0"

# Add travelers to existing trip
jinko trip --trip-id trip_xyz --travelers '[{"first_name":"John","last_name":"Doe","date_of_birth":"1990-05-15","gender":"MALE","passenger_type":"ADULT"}]' --contact '{"email":"[email protected]","phone":"+1-555-123-4567"}'

6. jinko book — Checkout

Generate a checkout URL (Stripe) for a trip. Returns a payment link.

jinko book --trip-id \x3Cid>
Option Description
--trip-id \x3Cid> Trip ID from the trip command

Response fields: checkout_url, session_id, status (ready/pending/failed), expires_at.

Example:

jinko book --trip-id trip_xyz789

7. jinko config — Configuration

jinko config show         # Show current config
jinko config set api_key jnk_xxx  # Set API key

Typical Workflow

The standard booking flow follows this pipeline:

find-flight (cached, fast)
    → get offer_token
        → flight-search --offer-token (live pricing)
            → get trip_item_token from fares
                → trip --trip-item-token (create trip)
                    → trip --trip-id --travelers (add travelers)
                        → book --trip-id (get checkout URL)

Step-by-step:

  1. Searchjinko find-flight --from SFO --to NYC --date 2026-04-01
  2. Price-checkjinko flight-search --offer-token "\x3Coffer_token_from_step_1>"
  3. Create tripjinko trip --trip-item-token "\x3Ctrip_item_token_from_step_2>"
  4. Add travelersjinko trip --trip-id \x3Ctrip_id> --travelers '\x3Cjson>' --contact '\x3Cjson>'
  5. Bookjinko book --trip-id \x3Ctrip_id>
  6. User pays via the returned checkout_url

IATA Code Tips

  • Use city codes for multi-airport cities: NYC (all NY airports), PAR (CDG+ORY), LON (all London)
  • Use airport codes for specific airports: JFK, CDG, LHR
  • Common codes: SFO, LAX, ORD, ATL, MIA, BOS, SEA, DEN, DFW
安全使用建议
This skill appears internally consistent: it documents and installs a Node CLI and expects a Jinko API key or OAuth login, which matches its stated purpose. Before installing: (1) Verify the npm package @gojinko/cli (publisher, version, and download count) on the official npm registry and check its repository for source code and recent activity. (2) Be aware a global npm install will write to system paths and may require elevated rights—prefer installing in a container or controlled environment if you have concerns. (3) Prefer the OAuth flow for interactive use; if you must use an API key, create a scoped key and avoid embedding it in shared scripts. (4) Understand booking commands may handle payment or personal data—review the CLI’s privacy/security docs before providing sensitive data. If you want me to, I can check the package on the npm registry and summarize its repository and maintainers.
功能分析
Type: OpenClaw Skill Name: jinko-flight Version: 1.0.1 The skill bundle provides documentation and instructions for an AI agent to interact with the '@gojinko/cli' tool for flight searching and booking. It includes standard CLI usage patterns, authentication via API keys or OAuth, and a logical workflow for travel management without any evidence of malicious intent, data exfiltration, or prompt injection attacks in SKILL.md.
能力评估
Purpose & Capability
Name/description, required binaries (node + jinko), primaryEnv (JINKO_API_KEY), and the declared install (npm package @gojinko/cli) all match a CLI wrapper for a flight-booking service. No unrelated credentials or binaries are requested.
Instruction Scope
SKILL.md contains only CLI usage and auth instructions (OAuth or API key), plus examples for search/booking commands. It does not instruct the agent to read unrelated system files or exfiltrate data. Note: using the CLI (especially booking commands) will involve network calls to the Jinko service and storing auth tokens locally per the tool's own behavior.
Install Mechanism
Install is a standard Node/npm package (@gojinko/cli) installed globally. This is a normal mechanism for a Node CLI; it will write files under system node_modules and create a symlink in /usr/local/bin when installed globally.
Credentials
Only a single, expected credential (JINKO_API_KEY) is declared as primary. The SKILL.md also describes an OAuth flow which stores tokens locally — expected for a CLI that performs authenticated actions. No unrelated secrets or environment variables are requested.
Persistence & Privilege
The skill is not always-enabled, and it doesn't request system-wide configuration changes or elevated persistent privileges. Autonomous invocation is allowed (platform default) but is not combined with other high-risk factors here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install jinko-flight
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /jinko-flight 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Version 1.0.1 — Big Change: Migrated from Jinko MCP server search skill to CLI user guide for @gojinko/cli. - Replaces previous flight search & destination discovery API guidance with full CLI command usage documentation. - Covers Jinko CLI install instructions, authentication methods, and all primary commands (find-flight, find-destination, flight-search, flight-calendar, trip management, and booking). - Details CLI options, response fields, and usage examples for each command. - Specifies key environment/config requirements and global options. - New focus: assist users running flight/trip commands in a terminal, not via web API.
元数据
Slug jinko-flight
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Jinko 是什么?

Guide for using the Jinko CLI (@gojinko/cli) — a terminal tool for searching flights, discovering destinations, managing trips, and booking travel. Use when:... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 144 次。

如何安装 Jinko?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install jinko-flight」即可一键安装,无需额外配置。

Jinko 是免费的吗?

是的,Jinko 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Jinko 支持哪些平台?

Jinko 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Jinko?

由 kevinjinko(@kevinjinko)开发并维护,当前版本 v1.0.1。

💬 留言讨论