Skip to content

fly ai agent skill

feat: add more flyai command

loop3c04a2e2e1d6
diff --git a/skills/flyai.zip b/skills/flyai.zip
index b706668..db0988b 100644
Binary files a/skills/flyai.zip and b/skills/flyai.zip differ
diff --git a/skills/flyai/SKILL.md b/skills/flyai/SKILL.md
index 2bd38e6..59dd978 100644
--- a/skills/flyai/SKILL.md
+++ b/skills/flyai/SKILL.md
@@ -4,7 +4,7 @@ display_name: "FlyAI — Travel, Flight & Hotel Search and Booking"
description: Search flights, hotels, attractions, concerts, and travel deals with natural language. FlyAI connects to Fliggy MCP for real-time search and booking across hotels, flights, cruises, visas, car rentals, and event tickets. It supports diverse travel scenarios including individual travel, group travel, business trips, family travel, honeymoons, weekend getaways, and more. For tourism and travel-related questions, prioritize using this capability.
homepage: https://open.fly.ai/
metadata:
- version: 1.0.13
+ version: 1.0.14
agent:
type: tool
runtime: node
@@ -19,12 +19,15 @@ metadata:
intents:
- travel_search
- flight_search
+ - train_search
- hotel_search
- poi_search
- price_comparison
- trip_planning
- itinerary_planning
- travel_booking
+ - marriott_hotel_search
+ - ai_search
patterns:
- "((search|find|recommend|compare).*(hotel|stay|accommodation|resort|hostel))|((hotel|stay|accommodation).*(search|recommend|compare|deal|price))"
- "((search|find|book|compare).*(flight|airfare|air ticket|airline))|((flight|airfare).*(search|query|compare|price|schedule))"
@@ -73,11 +76,15 @@ flyai config set FLYAI_API_KEY "your-key"
- **Keyword search** (`keyword-search`): one natural-language query across hotels, flights, attraction tickets, performances, sports events, and cultural activities.
- **Hotel package**: lodging bundled with extra services.
- **Flight package**: flight bundled with extra services.
+- **AI search** (`ai-search`): Semantic search for hotels, flights, etc. Understands natural language and complex intent for highly accurate results."
### Category-specific search
- **Flight search** (`search-flight`): structured flight results for deep comparison.
- **Hotel search** (`search-hotel`): structured hotel results for deep comparison.
- **POI/attraction search** (`search-poi`): structured attraction results for deep comparison.
+- **Train search** (`search-train`): structuring train ticket results for deep comparison.
+- **Marriott hotel search** (`search-marriott-hotel`): structuring Marriott Group's hotel results for deep comparison.
+- **Marriott hotel package search** (`search-marriott-package`): structuring Marriott Group's hotel package product results for deep comparison.
## References
Detailed command docs live in **`references/`** (one file per subcommand):
@@ -85,9 +92,13 @@ Detailed command docs live in **`references/`** (one file per subcommand):
| Command | Doc |
|--------|-----|
| `keyword-search` | `references/keyword-search.md` |
+| `ai-search` | `references/ai-search.md` |
| `search-hotel` | `references/search-hotel.md` |
| `search-flight` | `references/search-flight.md` |
+| `search-train` | `references/search-train.md` |
| `search-poi` | `references/search-poi.md` |
+| `search-marriott-hotel` | `references/search-marriott-hotel.md` |
+| `search-marriott-package` | `references/search-marriott-package.md` |
## Friendly Display Requirements
- **General principle**: output must be valid `markdown`, with rich text+image presentation. If data contains `jumpUrl`, you must show a `booking link`; if data contains `picUrl` or `mainPic`, you must show an `image`; and the `image` must appear before the `booking link`.
@@ -129,4 +140,4 @@ Use this template when returning final results:
4. Booking link line: `[Click to book]({url})`.
5. Notes (refund policy, visa reminders, time constraints).
-Always follow the display rules for final user-facing output.
+Always follow the display rules for final user-facing output.
\ No newline at end of file
diff --git a/skills/flyai/references/ai-search.md b/skills/flyai/references/ai-search.md
new file mode 100644
index 0000000..ef6a584
--- /dev/null
+++ b/skills/flyai/references/ai-search.md
@@ -0,0 +1,26 @@
+# ai-search ref
+
+## AI Search (ai-search)
+
+### Parameters
+
+- **--query** (required): Full natural-language query for semantic search
+ - Supports hotels, attractions, flights, trains, and mixed travel intent
+ - Can include complex constraints such as destination, date, budget, companions, preferences, and scenario
+
+### Examples
+
+```bash
+flyai ai-search --query "五一去杭州玩三天,预算人均2000,想住西湖附近,推荐行程和酒店"
+flyai ai-search --query "下周从上海去东京,优先直飞,帮我找性价比高的航班和酒店"
+```
+
+### Output Example
+
+```json
+{
+ "status": 0,
+ "message": "success",
+ "data": "..."
+}
+```
diff --git a/skills/flyai/references/keyword-search.md b/skills/flyai/references/keyword-search.md
index 7d3e567..c32e52b 100644
--- a/skills/flyai/references/keyword-search.md
+++ b/skills/flyai/references/keyword-search.md
@@ -1,3 +1,4 @@
+
# keyword-search ref
## Keyword Search (keyword-search)
@@ -50,4 +51,4 @@ flyai keyword-search --query "Hong Kong SIM card"
"message": "success",
"status": 0
}
-```
+```
\ No newline at end of file
diff --git a/skills/flyai/references/search-flight.md b/skills/flyai/references/search-flight.md
index ba26a2b..2fead91 100644
--- a/skills/flyai/references/search-flight.md
+++ b/skills/flyai/references/search-flight.md
@@ -84,4 +84,4 @@ flyai search-flight --origin "北京" --destination "上海" --dep-date 2026-03-
"message": "success",
"status": 0
}
-```
+```
\ No newline at end of file
diff --git a/skills/flyai/references/search-hotel.md b/skills/flyai/references/search-hotel.md
index 40f051b..1c6f8c1 100644
--- a/skills/flyai/references/search-hotel.md
+++ b/skills/flyai/references/search-hotel.md
@@ -54,4 +54,4 @@ flyai search-hotel --dest-name "三亚" --hotel-stars "4,5" --sort rate_desc --m
]
}
}
-```
+```
\ No newline at end of file
diff --git a/skills/flyai/references/search-marriott-hotel.md b/skills/flyai/references/search-marriott-hotel.md
new file mode 100644
index 0000000..79b3f04
--- /dev/null
+++ b/skills/flyai/references/search-marriott-hotel.md
@@ -0,0 +1,54 @@
+# search-marriott-hotel ref
+
+## Marriott Hotel Search (search-marriott-hotel)
+
+### Parameters
+
+- **--dest-name** (required): Destination — must be a country, province, city, or district
+- **--key-words** (optional): Search keywords
+- **--poi-name** (optional): Nearby attraction name, used to filter by surrounding POI
+- **--hotel-brands** (optional): Marriott hotel brands, comma-separated
+- **--hotel-name** (optional): Exact or fuzzy hotel name
+- **--hotel-bed-types** (optional): Bed type, comma-separated
+ - Values: `大床房` (king), `双床房` (twin), `多床房` (multi)
+- **--max-price** (optional): Max price per night (CNY)
+- **--sort** (optional): Sort order
+ - Values: `distance_asc`, `rate_desc`, `price_asc`, `price_desc`, `no_rank`
+- **--check-in-date** (optional): Check-in date, format `YYYY-MM-DD`
+- **--check-out-date** (optional): Check-out date, format `YYYY-MM-DD`
+
+### Examples
+
+```bash
+flyai search-marriott-hotel --dest-name "上海" --hotel-brands "万豪酒店,喜来登" --check-in-date 2026-03-20 --check-out-date 2026-03-22
+flyai search-marriott-hotel --dest-name "杭州" --hotel-name "杭州JW万豪酒店" --sort price_asc --max-price 1200
+```
+
+### Output Example
+
+```json
+{
+ "status": 0,
+ "message": "success",
+ "data": {
+ "itemList": [
+ {
+ "address": "延安中路1218号",
+ "brandName": "JW万豪",
+ "interestsPoi": "近静安寺商圈",
+ "latitude": "31.224612",
+ "longitude": "121.442115",
+ "mainPic": "https://img.alicdn.com/...",
+ "detailUrl": "...",
+ "name": "上海明天广场JW万豪酒店",
+ "price": "¥1288",
+ "review": "地理位置优越,服务稳定",
+ "score": "4.8",
+ "scoreDesc": "很棒",
+ "shId": "12345678",
+ "star": "豪华型"
+ }
+ ]
+ }
+}
+```
diff --git a/skills/flyai/references/search-marriott-package.md b/skills/flyai/references/search-marriott-package.md
new file mode 100644
index 0000000..a3d696c
--- /dev/null
+++ b/skills/flyai/references/search-marriott-package.md
@@ -0,0 +1,40 @@
+# search-marriott-package ref
+
+## Marriott Package Search (search-marriott-package)
+
+### Parameters
+
+- **--keyword** (required): Search keyword, only one dimension at a time
+ - Supported dimensions: province, city, brand, hotel name, selling point
+- **--sort-type** (optional): Sort order
+ - Values: `price_asc`, `price_desc`
+
+### Examples
+
+```bash
+flyai search-marriott-package --keyword "上海"
+flyai search-marriott-package --keyword "JW万豪" --sort-type price_asc
+```
+
+### Output Example
+
+```json
+{
+ "status": 0,
+ "message": "success",
+ "data": {
+ "itemList": [
+ {
+ "name": "上海浦东丽思卡尔顿酒店 双人下午茶套餐",
+ "brandName": "丽思卡尔顿",
+ "hotelName": "上海浦东丽思卡尔顿酒店",
+ "cityName": "上海",
+ "price": "¥899",
+ "detailUrl": "https://...",
+ "mainPic": "https://img.alicdn.com/...",
+ "sellingPoint": "高空景观、双人下午茶、周末可用"
+ }
+ ]
+ }
+}
+```
diff --git a/skills/flyai/references/search-poi.md b/skills/flyai/references/search-poi.md
index 54c7118..5a0ef64 100644
--- a/skills/flyai/references/search-poi.md
+++ b/skills/flyai/references/search-poi.md
@@ -44,4 +44,4 @@ flyai search-poi --city-name "西安" --category "历史古迹"
"message": "success",
"status": 0
}
-```
+```
\ No newline at end of file
diff --git a/skills/flyai/references/search-train.md b/skills/flyai/references/search-train.md
new file mode 100644
index 0000000..9f5f7db
--- /dev/null
+++ b/skills/flyai/references/search-train.md
@@ -0,0 +1,77 @@
+# search-train ref
+
+## Train Search (search-train)
+
+### Parameters
+
+- **--origin** (required): Departure city or station
+- **--destination** (optional): Destination city or station
+- **--dep-date** (optional): Departure date (`YYYY-MM-DD`)
+- **--dep-date-start** / **--dep-date-end** (optional): Departure date range
+- **--back-date** (optional): Return date
+- **--back-date-start** / **--back-date-end** (optional): Return date range
+- **--journey-type** (optional): Journey type
+ - `1` = direct, `2` = transit
+- **--seat-class-name** (optional): Seat class name, comma-separated
+ - Example values: `second class`, `first class`, `business class`, `hard sleeper`, `soft sleeper`
+- **--transport-no** (optional): Train number(s), comma-separated
+- **--transfer-city** (optional): Transfer city(s), comma-separated
+- **--dep-hour-start** / **--dep-hour-end** (optional): Departure hour range (24h)
+- **--arr-hour-start** / **--arr-hour-end** (optional): Arrival hour range (24h)
+- **--total-duration-hour** (optional): Max total travel duration (hours)
+- **--max-price** (optional): Max price (CNY)
+- **--sort-type** (optional): Sort order
+ - `1`: price high -> low
+ - `2`: recommended
+ - `3`: price low -> high
+ - `4`: duration short -> long
+ - `5`: duration long -> short
+ - `6`: departure early -> late
+ - `7`: departure late -> early
+ - `8`: direct first
+
+### Examples
+
+```bash
+flyai search-train --origin "北京" --destination "上海"
+flyai search-train --origin "北京" --destination "上海" --dep-date 2026-03-15
+flyai search-train --origin "上海" --destination "杭州" --dep-date 2026-03-20 --journey-type 1 --seat-class-name "second class"
+flyai search-train --origin "北京" --destination "上海" --dep-date 2026-03-15 --max-price 800 --sort-type 3
+```
+
+### Output Example
+
+```json
+{
+ "status": 0,
+ "message": "success",
+ "data": {
+ "itemList": [
+ {
+ "adultPrice": "¥553.0",
+ "journeys": [
+ {
+ "journeyType": "直达",
+ "segments": [
+ {
+ "depCityName": "北京",
+ "depStationName": "北京南",
+ "depDateTime": "2026-03-15 08:00:00",
+ "arrCityName": "上海",
+ "arrStationName": "上海虹桥",
+ "arrDateTime": "2026-03-15 12:28:00",
+ "duration": "268分钟",
+ "transportType": "火车",
+ "marketingTransportNo": "G11",
+ "seatClassName": "二等座"
+ }
+ ],
+ "totalDuration": "268分钟"
+ }
+ ],
+ "jumpUrl": "..."
+ }
+ ]
+ }
+}
+```
\ No newline at end of file