fly ai agent skill
docs: update README for v1.0.14 — add ai-search, search-train, search-marriott-hotel, search-marriott-package
yealexchen0336605d9984
diff --git a/README.md b/README.mdindex 5ac42c2..4f5208c 100644--- a/README.md+++ b/README.md@@ -11,7 +11,7 @@<a href="https://www.npmjs.com/package/@fly-ai/flyai-cli"><img src="https://img.shields.io/npm/v/@fly-ai/flyai-cli?label=flyai-cli&color=blue" alt="npm version"></a><a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green" alt="MIT License"></a><a href="https://github.com/alibaba-flyai/flyai-skill/stargazers"><img src="https://img.shields.io/github/stars/alibaba-flyai/flyai-skill?style=social" alt="GitHub Stars"></a>- <a href="https://github.com/alibaba-flyai/flyai-skill"><img src="https://img.shields.io/badge/version-1.0.13-orange" alt="Skill Version"></a>+ <a href="https://github.com/alibaba-flyai/flyai-skill"><img src="https://img.shields.io/badge/version-1.0.14-orange" alt="Skill Version"></a></p><p align="center"><a href="https://open.fly.ai/">Homepage</a> ·@@ -33,7 +33,7 @@You're deep in a conversation with your AI coding agent — planning a trip, researching venues, comparing options. FlyAI lets you **search real-time travel inventory without leaving your terminal**. It connects [Claude Code](https://docs.anthropic.com/en/docs/claude-code), [OpenClaw](https://github.com/nicepkg/openclaw), and other skill-compatible agents to [Fliggy](https://www.fliggy.com/)'s massive travel platform (part of Alibaba Group), giving you structured, bookable results in seconds.- **Natural language in, structured data out** — ask in plain English or Chinese, get JSON you can pipe, filter, or render-- **Four specialized search commands** — broad discovery or deep comparison, your call+- **Eight specialized search commands** — broad discovery, AI-powered semantic search, or deep comparison, your call- **Bookable results** — every result includes direct booking links- **Zero config to start** — works out of the box, optional API key for enhanced results@@ -81,14 +81,18 @@ flyai config set FLYAI_API_KEY "your-key"## Commands-FlyAI provides four commands, each tailored to a different search pattern:+FlyAI provides eight commands, each tailored to a different search pattern:| Command | Purpose | Required Params ||---------|---------|-----------------|| `keyword-search` | Natural-language keyword search across all travel categories | `--query` |+| `ai-search` | Semantic search — understands complex intent for highly accurate results | `--query` || `search-flight` | Structured flight search with deep filtering | `--origin` |+| `search-train` | Structured train ticket search with deep filtering | `--origin` || `search-hotel` | Structured hotel search by destination | `--dest-name` || `search-poi` | Attraction & POI search by city | `--city-name` |+| `search-marriott-hotel` | Marriott Group hotel search by destination | `--dest-name` |+| `search-marriott-package` | Marriott Group hotel package search | `--keyword` |### `keyword-search` — Broad Discovery@@ -116,6 +120,23 @@ One query, all categories. Hotels, flights, tickets, tours, cruises, visas, SIMflyai keyword-search --query "Hangzhou 3-day trip"```+### `ai-search` — Semantic Search++AI-powered semantic search that understands natural language and complex travel intent. Supports hotels, attractions, flights, trains, and mixed queries.++**OpenClaw / Claude Code:**++```+/flyai ai-search --query "3-day trip to Hangzhou for Labor Day, budget 2000 per person, want to stay near West Lake"+/flyai ai-search --query "Direct flight from Shanghai to Tokyo next week, find good value flights and hotels"+```++**CLI:**++```bash+flyai ai-search --query "3-day trip to Hangzhou for Labor Day, budget 2000 per person"+```+### `search-flight` — Flight ComparisonStructured flight search with sorting, cabin class, price caps, and time filters.@@ -162,6 +183,52 @@ flyai search-flight \</details>+### `search-train` — Train Comparison++Structured train ticket search with sorting, seat class, price caps, and time filters.++**OpenClaw / Claude Code:**++```+/flyai search-train --origin "Beijing" --destination "Shanghai" --dep-date 2026-04-15+```++**CLI:**++```bash+# Basic one-way search+flyai search-train --origin "Beijing" --destination "Shanghai" --dep-date 2026-04-15++# Direct trains only, second class, sorted by price (low → high)+flyai search-train \+ --origin "Shanghai" --destination "Hangzhou" \+ --dep-date 2026-04-20 --journey-type 1 \+ --seat-class-name "second class" --sort-type 3+```++<details>+<summary><strong>All train search options</strong></summary>++| Flag | Description |+|------|-------------|+| `--origin` | Departure city or station **(required)** |+| `--destination` | Destination city or station |+| `--dep-date` | Departure date (`YYYY-MM-DD`) |+| `--dep-date-start` / `--dep-date-end` | Departure date range |+| `--back-date` | Return date |+| `--back-date-start` / `--back-date-end` | Return date range |+| `--journey-type` | `1` = direct, `2` = transit |+| `--seat-class-name` | Seat class: `second class` · `first class` · `business class` · `hard sleeper` · `soft sleeper` |+| `--transport-no` | Train number(s), comma-separated |+| `--transfer-city` | Transfer city(s), comma-separated |+| `--dep-hour-start` / `--dep-hour-end` | Departure hour range (24h) |+| `--arr-hour-start` / `--arr-hour-end` | Arrival hour range (24h) |+| `--total-duration-hour` | Max total travel duration (hours) |+| `--max-price` | Price ceiling (CNY) |+| `--sort-type` | `1` price desc · `2` recommended · `3` price asc · `4` duration asc · `5` duration desc · `6` depart early · `7` depart late · `8` direct first |++</details>+### `search-hotel` — Hotel ComparisonSearch by destination with filters for star rating, bed type, price range, and nearby POIs.@@ -235,7 +302,79 @@ flyai search-poi --city-name "Hangzhou" --keyword "West Lake" --category "山湖| `--city-name` | City name **(required)** || `--keyword` | Attraction name keyword || `--poi-level` | Attraction level (`1`–`5`) |-| `--category` | Single category from: 自然风光 · 山湖田园 · 森林丛林 · 峡谷瀑布 · 沙滩海岛 · 沙漠草原 · 人文古迹 · 古镇古村 · 历史古迹 · 园林花园 · 宗教场所 · 主题乐园 · 水上乐园 · 影视基地 · 动物园 · 植物园 · 海洋馆 · 体育场馆 · 演出赛事 · 剧院剧场 · 博物馆 · 纪念馆 · 展览馆 · 地标建筑 · 市集 · 文创街区 · 城市观光 · 滑雪 · 漂流 · 冲浪 · 潜水 · 露营 · 温泉 |+| `--category` | Single category from: 自然风光 · 山湖田园 · 森林丛林 · 峡谷瀑布 · 沙滩海岛 · 沙漠草原 · 人文古迹 · 古镇古村 · 历史古迹 · 园林花园 · 宗教场所 · 公园乐园 · 主题乐园 · 水上乐园 · 影视基地 · 动物园 · 植物园 · 海洋馆 · 体育场馆 · 演出赛事 · 剧院剧场 · 博物馆 · 纪念馆 · 展览馆 · 地标建筑 · 市集 · 文创街区 · 城市观光 · 户外活动 · 滑雪 · 漂流 · 冲浪 · 潜水 · 露营 · 温泉 |++</details>++### `search-marriott-hotel` — Marriott Hotel Search++Search Marriott Group hotels by destination with filters for brand, bed type, price, and nearby POIs.++**OpenClaw / Claude Code:**++```+/flyai search-marriott-hotel --dest-name "Shanghai" --hotel-brands "JW Marriott,Sheraton" --check-in-date 2026-04-10 --check-out-date 2026-04-12+```++**CLI:**++```bash+# Marriott hotels in Shanghai+flyai search-marriott-hotel \+ --dest-name "Shanghai" --hotel-brands "JW Marriott,Sheraton" \+ --check-in-date 2026-04-10 --check-out-date 2026-04-12++# Marriott hotels in Hangzhou under ¥1200, sorted by price+flyai search-marriott-hotel \+ --dest-name "Hangzhou" --sort price_asc --max-price 1200+```++<details>+<summary><strong>All Marriott hotel search options</strong></summary>++| Flag | Description |+|------|-------------|+| `--dest-name` | Destination (country/province/city/district) **(required)** |+| `--key-words` | Search keywords |+| `--poi-name` | Nearby attraction name |+| `--hotel-brands` | Marriott brands, comma-separated |+| `--hotel-name` | Exact or fuzzy hotel name |+| `--hotel-bed-types` | `大床房` (king) · `双床房` (twin) · `多床房` (multi) |+| `--max-price` | Max price per night (CNY) |+| `--sort` | `distance_asc` · `rate_desc` · `price_asc` · `price_desc` · `no_rank` |+| `--check-in-date` | Check-in date (`YYYY-MM-DD`) |+| `--check-out-date` | Check-out date (`YYYY-MM-DD`) |++</details>++### `search-marriott-package` — Marriott Package Search++Search Marriott Group hotel packages and bundled deals (e.g., afternoon tea, spa packages) by city, brand, or hotel name.++**OpenClaw / Claude Code:**++```+/flyai search-marriott-package --keyword "Shanghai"+/flyai search-marriott-package --keyword "JW Marriott" --sort-type price_asc+```++**CLI:**++```bash+# Marriott packages in Shanghai+flyai search-marriott-package --keyword "Shanghai"++# JW Marriott packages, sorted by price+flyai search-marriott-package --keyword "JW Marriott" --sort-type price_asc+```++<details>+<summary><strong>All Marriott package search options</strong></summary>++| Flag | Description |+|------|-------------|+| `--keyword` | Search keyword — province, city, brand, hotel name, or selling point **(required)** |+| `--sort-type` | `price_asc` · `price_desc` |</details>@@ -263,6 +402,30 @@ FlyAI chains `search-flight`, `search-hotel`, and `search-poi` to give you a com/flyai search-hotel --dest-name "Sanya" --hotel-stars 4 --hotel-bed-types "双床房" --max-price 500 --sort rate_desc```+### Train Trip Planning++> "Find a direct high-speed train from Beijing to Shanghai next Tuesday, second class"++```+/flyai search-train --origin "Beijing" --destination "Shanghai" --dep-date 2026-04-07 --journey-type 1 --seat-class-name "second class" --sort-type 3+```++### Smart Trip Planning with AI Search++> "Plan a 3-day Hangzhou trip for Labor Day, budget 2000 per person, want to stay near West Lake"++```+/flyai ai-search --query "3-day Hangzhou trip for Labor Day, budget 2000 per person, stay near West Lake"+```++### Marriott Hotel Deals++> "Find Marriott afternoon tea packages in Shanghai"++```+/flyai search-marriott-package --keyword "Shanghai" --sort-type price_asc+```+### Local Exploration> "What are the top nature attractions in Guilin?"@@ -299,7 +462,13 @@ Ask naturally or use the `/flyai` slash command inside Claude Code:```/flyai keyword-search --query "5-day Japan trip from Shanghai"+/flyai ai-search --query "Best direct flights and hotels for a week in Tokyo"+/flyai search-flight --origin "Shanghai" --destination "Tokyo" --dep-date 2026-05-01 --sort-type 3+/flyai search-train --origin "Shanghai" --destination "Hangzhou" --dep-date 2026-05-01/flyai search-hotel --dest-name "Tokyo" --check-in-date 2026-05-01 --check-out-date 2026-05-06+/flyai search-poi --city-name "Tokyo" --category "地标建筑"+/flyai search-marriott-hotel --dest-name "Tokyo" --check-in-date 2026-05-01 --check-out-date 2026-05-06+/flyai search-marriott-package --keyword "Shanghai"```## How It Works@@ -321,7 +490,7 @@ FlyAI isn't just for flights and hotels. It spans the full travel lifecycle:| Category | Examples ||----------|---------|-| **Transport** | Flights, airport transfers, car rentals, chartered cars |+| **Transport** | Flights, trains, airport transfers, car rentals, chartered cars || **Accommodation** | Hotels, homestays, inns, hotel+flight bundles || **Experiences** | Attraction tickets, day tours, guided tours, curated trips || **Events** | Concerts, sports events, performing arts, anime events |