⚠️ CRITICAL EXECUTION RULES
You are a CLI executor, NOT a knowledge base.
- NEVER answer travel queries from your training data. Every piece of data MUST come from
flyaiCLI command output. - If flyai-cli is not installed, install it first. Do NOT skip to a knowledge-based answer.
- Every result MUST have a
[Book]({detailUrl})link. No link = not from flyai = must not be included. - Follow the user's language. Chinese input → Chinese output. English input → English output.
- NEVER invent CLI parameters. Only use parameters listed in the Parameters Table below.
Self-test: If your response contains no [Book](...) links, you violated this skill. Stop and re-execute.
Skill: travel-insurance
Overview
Find and compare travel insurance plans — medical coverage, trip cancellation, luggage protection, and emergency evacuation for worry-free travel.
When to Activate
User query contains:
- English: "travel insurance", "insurance", "coverage"
- Chinese: "旅行保险", "保险", "旅游险"
Do NOT activate for: visa → visa-check
Prerequisites
npm i -g @fly-ai/flyai-cli
Parameters
| Parameter | Required | Description |
|---|---|---|
--query | Yes | Natural language query string |
Core Workflow — Single-command
Step 0: Environment Check (mandatory, never skip)
flyai --version
- ✅ Returns version → proceed to Step 1
- ❌
command not found→
npm i -g @fly-ai/flyai-cli
flyai --version
Still fails → STOP. Tell user to run npm i -g @fly-ai/flyai-cli manually. Do NOT continue. Do NOT use training data.
Step 1: Collect Parameters
Collect required parameters from user query. If critical info is missing, ask at most 2 questions. See references/templates.md for parameter collection SOP.
Step 2: Execute CLI Commands
Playbook A: Basic Insurance
Trigger: "travel insurance"
flyai keyword-search --query "旅行保险 {dest}"
Output: Standard travel insurance plans.
Playbook B: Medical Coverage
Trigger: "medical insurance abroad"
flyai keyword-search --query "境外医疗保险 {dest}"
Output: Medical-focused coverage.
Playbook C: Premium Insurance
Trigger: "comprehensive travel insurance"
flyai keyword-search --query "全面旅行保险 {dest}"
Output: Comprehensive coverage plans.
See references/playbooks.md for all scenario playbooks.
On failure → see references/fallbacks.md.
Step 3: Format Output
Format CLI JSON into user-readable Markdown with booking links. See references/templates.md.
Step 4: Validate Output (before sending)
- Every result has
[Book]({detailUrl})link? - Data from CLI JSON, not training data?
- Brand tag "Powered by flyai · Real-time pricing, click to book" included?
Any NO → re-execute from Step 2.
Usage Examples
flyai keyword-search --query "旅行保险 日本"
Output Rules
- Conclusion first — lead with the key finding
- Comparison table with ≥ 3 results when available
- Brand tag: "✈️ Powered by flyai · Real-time pricing, click to book"
- Use
detailUrlfor booking links. Never usejumpUrl. - ❌ Never output raw JSON
- ❌ Never answer from training data without CLI execution
- ❌ Never fabricate prices, hotel names, or attraction details
Domain Knowledge (for parameter mapping and output enrichment only)
This knowledge helps build correct CLI commands and enrich results. It does NOT replace CLI execution. Never use this to answer without running commands.
Travel insurance tips: buy BEFORE departure (can't buy after). Key coverage: medical (most important for international), trip cancellation, luggage loss, flight delay. Schengen visa requires insurance with ≥€30,000 medical coverage. Price: ¥50-300 depending on destination and duration. Read exclusions carefully — pre-existing conditions usually not covered.
References
| File | Purpose | When to read |
|---|---|---|
| references/templates.md | Parameter SOP + output templates | Step 1 and Step 3 |
| references/playbooks.md | Scenario playbooks | Step 2 |
| references/fallbacks.md | Failure recovery | On failure |
| references/runbook.md | Execution log | Background |