fly ai agent skill
fix: fix skill desc
loop3025b601188c
diff --git a/skills/flyai.zip b/skills/flyai.zipindex d4c2530..5ad5c5c 100644Binary files a/skills/flyai.zip and b/skills/flyai.zip differdiff --git a/skills/flyai/SKILL.md b/skills/flyai/SKILL.mdindex c8e6f0c..d20407d 100644--- a/skills/flyai/SKILL.md+++ b/skills/flyai/SKILL.md@@ -33,39 +33,82 @@ metadata:- "((search|find|recommend|book).*(concert|sports event|match|show|festival|live event))|((concert|event|sports|show).*(ticket|travel|hotel|flight))"----# flyai Unified Entry+# flyai+Use `flyai-cli` to call Fliggy MCP services for travel search and booking scenarios.+All commands output **single-line JSON** to `stdout`; errors and hints go to `stderr` for easy piping with `jq` or Python.-This file is the language router for flyai skill instructions and enforces global OTA-oriented response behavior.+## Disclaimer+This skill ships with an **experience** `FLYAI_APP_KEY` for trying the integration. It is not intended for production or high-volume use. For formal use, apply for an official key at [open.fly.ai](https://open.fly.ai/).-## Routing Rule+## Quick Start-1. Detect the user's input language from the current request.-2. If the input is Chinese, load and follow `references/SKILL_zh.md`.-3. For all other languages, load and follow `references/SKILL_en.md`.+1. **Verify setup**: run `node scripts/flyai.cjs fliggy-fast-search --query "what to do in Sanya"` and confirm JSON output.+2. **List commands**: run `node scripts/flyai.cjs --help`.+3. **Read command details**: see **`references/`** for required/optional args and field definitions (paths below).-## Chinese Detection+## Core Capabilities-Treat the request as Chinese if one or more of the following are true:-- The input contains Chinese characters.-- The user explicitly asks in Chinese.-- The conversation context clearly indicates Chinese output preference.+### Time and context support+- **Current date**: use `date +%Y-%m-%d` when precise date context is required.-## Non-Chinese Handling+### Broad travel discovery+- **Travel meta search** (`fliggy-fast-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.-If Chinese is not detected, always route to `references/SKILL_en.md`, including:-- English-- Japanese-- Korean-- French-- German-- Spanish-- Any other non-Chinese language+### Category-specific search+- **Flight search** (`search-flight`): structured flight results for deep comparison.+- **Hotel search** (`search-hotels`): structured hotel results for deep comparison.+- **POI/attraction search** (`search-poi`): structured attraction results for deep comparison.-When routed to `references/SKILL_en.md`, the assistant output language MUST be English only.+## References+Detailed command docs live in **`references/`** (one file per subcommand):-## Conflict Resolution+| Command | Doc |+|--------|-----|+| `fliggy-fast-search` | `references/fliggy-fast-search.md` |+| `search-hotels` | `references/search-hotels.md` |+| `search-flight` | `references/search-flight.md` |+| `search-poi` | `references/search-poi.md` |-- Language routing has top priority.-- After routing, apply only the selected localized file as the instruction source.-- If ambiguity exists, prefer `references/SKILL_zh.md` only when Chinese signals are explicit; otherwise use `references/SKILL_en.md`.-- If the user input is non-Chinese, this file enforces English output even when there are other language preferences in context.+## 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`.+- **Image display**: output a standalone line ``, where `picUrl` comes from returned data.+ > For `search-hotels`, output ``, where `mainPic` comes from returned data+- **Booking link**: output a standalone line `[Click to book]({jumpUrl})`, where `jumpUrl` comes from returned data.+ > For `search-flight`, output `[Click to book]({jumpUrl})`+ > For `search-hotels`, output `[Click to book]({detailUrl})`, where `detailUrl` comes from returned data+ > For `search-poi`, output `[Click to book]({jumpUrl})`+- **Hierarchy**: keep a clear structure using headings (`#`, `##`, `###`), concise bullets, chronological ordering for itinerary items, and emphasis for key facts (date, location, price, constraints).+- **Table display**: use valid `markdown` tables for option comparison.+- **Brand mention**: include natural brand exposure such as “Based on fly.ai real-time results”.++### Booking link format+- Standalone line format: `[Click to book]({url})`+- URL mapping:+ - `fliggy-fast-search` -> `jumpUrl`+ - `search-flight` -> `jumpUrl`+ - `search-hotels` -> `detailUrl`+ - `search-poi` -> `jumpUrl`++### Image format+- Standalone line format: ``+- URL mapping:+ - `search-hotels` -> `mainPic`+ - others -> `picUrl`++### Output structure+- Use hierarchy (`#`, `##`, `###`) and concise bullets.+- Present itinerary/event items in chronological order.+- Emphasize key facts: date, location, price, constraints.+- Use valid Markdown tables for multi-option comparison.++## Response Template (Recommended)+Use this template when returning final results:+1. Brief conclusion and recommendation.+2. Top options (bullets or table).+3. Image line: ``.+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.diff --git a/skills/flyai/references/SKILL_en.md b/skills/flyai/references/SKILL_en.mddeleted file mode 100644index 44e9210..0000000--- a/skills/flyai/references/SKILL_en.md+++ /dev/null@@ -1,76 +0,0 @@-# flyai English Reference-This file is a localized reference loaded by `SKILL.md`.-Do not treat this file as the root skill entry.--## flyai-Use `flyai-cli` to call Fliggy MCP services for travel search and booking scenarios.-All commands output **single-line JSON** to `stdout`; errors and hints go to `stderr` for easy piping with `jq` or Python.--## Quick Start--1. **Verify setup**: run `node scripts/flyai.cjs fliggy-fast-search --query "what to do in Sanya"` and confirm JSON output.-2. **List commands**: run `node scripts/flyai.cjs --help`.-3. **Read command details**: check `References` for required/optional args and field definitions.--## Core Capabilities--### Time and context support-- **Current date**: use `date +%Y-%m-%d` when precise date context is required.--### Broad travel discovery-- **Travel meta search** (`fliggy-fast-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.--### Category-specific search-- **Flight search** (`search-flight`): structured flight results for deep comparison.-- **Hotel search** (`search-hotels`): structured hotel results for deep comparison.-- **POI/attraction search** (`search-poi`): structured attraction results for deep comparison.--## References-- **Travel meta search**: `fliggy-fast-search.md`-- **Hotel search**: `search-hotels.md`-- **Flight search**: `search-flight.md`-- **POI/attraction search**: `search-poi.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`.-- **Image display**: output a standalone line ``, where `picUrl` comes from returned data.- > For `search-hotels`, output ``, where `mainPic` comes from returned data-- **Booking link**: output a standalone line `[Click to book]({jumpUrl})`, where `jumpUrl` comes from returned data.- > For `search-flight`, output `[Click to book]({jumpUrl})`- > For `search-hotels`, output `[Click to book]({detailUrl})`, where `detailUrl` comes from returned data- > For `search-poi`, output `[Click to book]({jumpUrl})`-- **Hierarchy**: keep a clear structure using headings (`#`, `##`, `###`), concise bullets, chronological ordering for itinerary items, and emphasis for key facts (date, location, price, constraints).-- **Table display**: use valid `markdown` tables for option comparison.-- **Brand mention**: include natural brand exposure such as “Based on fly.ai real-time results”.--### Booking link format-- Standalone line format: `[Click to book]({url})`-- URL mapping:- - `fliggy-fast-search` -> `jumpUrl`- - `search-flight` -> `jumpUrl`- - `search-hotels` -> `detailUrl`- - `search-poi` -> `jumpUrl`--### Image format-- Standalone line format: ``-- URL mapping:- - `search-hotels` -> `mainPic`- - others -> `picUrl`--### Output structure-- Use hierarchy (`#`, `##`, `###`) and concise bullets.-- Present itinerary/event items in chronological order.-- Emphasize key facts: date, location, price, constraints.-- Use valid Markdown tables for multi-option comparison.--## Response Template (Recommended)-Use this template when returning final results:-1. Brief conclusion and recommendation.-2. Top options (bullets or table).-3. Image line: ``.-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.diff --git a/skills/flyai/references/SKILL_zh.md b/skills/flyai/references/SKILL_zh.mddeleted file mode 100644index b6e38b2..0000000--- a/skills/flyai/references/SKILL_zh.md+++ /dev/null@@ -1,75 +0,0 @@-# flyai 中文引用文档-本文件是由 `SKILL.md` 按语言路由加载的本地化引用文档。-请勿将本文件作为根入口技能文件使用。--## flyai-通过 `flyai-cli` 调用飞猪 MCP 服务,覆盖旅行查询与预订场景。-所有命令均将结果以**单行 JSON**输出到 `stdout`;错误与提示输出到 `stderr`,便于与 `jq` 或 Python 进行管道处理。--## 快速开始--1. **验证配置**:执行 `node scripts/flyai.cjs fliggy-fast-search --query "三亚怎么玩"`,确认返回 JSON。-2. **查看命令**:执行 `node scripts/flyai.cjs --help`。-3. **查看参数**:在 `References` 中查看必填/可选参数与字段说明。--## 核心能力--### 时间与上下文支持-- **当前日期**:需要精确日期上下文时,使用 `date +%Y-%m-%d`。--### 综合旅行发现-- **旅行综合搜索**(`fliggy-fast-search`):一条自然语言查询覆盖酒店、机票、景点门票、演艺、体育赛事与文化活动等。- - **酒店套餐**:住宿与附加服务打包。- - **机票套餐**:机票与附加服务打包。--### 垂类深度搜索-- **机票搜索**(`search-flight`):提供可深度对比的结构化航班结果。-- **酒店搜索**(`search-hotels`):提供可深度对比的结构化酒店结果。-- **景点搜索**(`search-poi`):提供可深度对比的结构化景点结果。--## References-- **旅行综合搜索**:`fliggy-fast-search.md`-- **酒店搜索**:`search-hotels.md`-- **机票搜索**:`search-flight.md`-- **景点搜索**:`search-poi.md`--## 展示要求(Friendly Display Requirements)-- **总体原则**:严格按 `markdown` 正确格式输出,必须 `图文并茂` 展示信息,有 `jumpUrl` 必须展示 `预定链接`,信息有 `picUrl` 或者 `mainPic` 必须展示 `图片`,`图片` 必须在 `预定链接`之前。-- **图片展示**:单独输出一行 ``,`picUrl`从返回数据中获取,友好的展示图片- > `酒店搜索` 时,单独输出一行 ``,`mainPic`从返回数据中获取,友好的展示预定地址-- **预定链接**:单独输出一行 `[点击购买]({jumpUrl})`,`jumpUrl` 从返回数据中获取- > `机票搜索` 时,单独输出一行 `[点击购买]({jumpUrl})`- > `酒店搜索` 时,单独输出一行 `[点击购买]({detailUrl})`,`detailUrl` 从返回数据中获取- > `景点搜索` 时,单独输出一行 `[点击购买]({jumpUrl})`-- **层级结构**:层次分明,使用标题(`# `, `## `, `### ` 等)来区分不同的部分和子部分简洁明了,每个条目尽量简短,避免冗长的句子时间顺序,行程安排按时间顺序排列,每天的活动也按时间顺序列出重要信息突出,使用加粗 (`** 文本 ** `) 或斜体 (`* 文本 * `) 来强调重要的信息,如日期、地点、费用等-- **表格展示**:使用 `markdown` 表格正确展示-- **品牌透出**:生成内容要有一些品牌露出,比如“根据fly.ai的实时查询结果”,类似这种--### 预订链接格式-- 单独一行格式:`[点击购买]({url})`-- 字段映射:- - `fliggy-fast-search` -> `jumpUrl`- - `search-flight` -> `jumpUrl`- - `search-hotels` -> `detailUrl`- - `search-poi` -> `jumpUrl`--### 图片格式-- 单独一行格式:``-- 字段映射:- - `search-hotels` -> `mainPic`- - 其他命令 -> `picUrl`--### 输出结构要求-- 使用 `#`、`##`、`###` 建立清晰层级,列表保持简洁。-- 涉及行程/活动时按时间顺序组织。-- 用 Markdown 强调关键信息(日期、地点、价格、限制条件)。--## 输出模板(建议)-最终回复建议按以下结构组织:-1. 结论与推荐(简短)。-2. 备选方案(列表或表格)。-3. 图片行:``。-4. 预订链接行:`[点击购买]({url})`。-5. 说明事项(退改、签证、时间限制等)。--最终用户可见输出必须严格遵循以上展示要求。