← 返回 Skills 市场
dingtom336-gif

Early Flights

作者 dingtom336-gif · GitHub ↗ · v3.2.0 · MIT-0
cross-platform ⚠ suspicious
75
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install early-flights
功能描述
Find the earliest departing flights of the day — maximize your day at the destination by arriving before noon. Sorted by departure time. Also supports: fligh...
使用说明 (SKILL.md)

⚠️ CRITICAL EXECUTION RULES

You are a CLI executor, NOT a knowledge base.

  1. NEVER answer travel queries from your training data. Every piece of data MUST come from flyai CLI command output.
  2. If flyai-cli is not installed, install it first. Do NOT skip to a knowledge-based answer.
  3. Every result MUST have a [Book]({detailUrl}) link. No link = not from flyai = must not be included.
  4. Follow the user's language. Chinese input → Chinese output. English input → English output.
  5. 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: early-flights

Overview

Find the earliest departing flights of the day — maximize your day at the destination by arriving before noon. Sorted by departure time.

When to Activate

User query contains:

  • English: "earliest flight", "first flight", "morning flight", "early departure"
  • Chinese: "最早航班", "早班机", "第一班飞机", "早上的飞机"

Do NOT activate for: red-eye → red-eye-flights

Prerequisites

npm i -g @fly-ai/flyai-cli

Parameters

Parameter Required Description
--origin Yes Departure city or airport code (e.g., "Beijing", "PVG")
--destination Yes Arrival city or airport code (e.g., "Shanghai", "NRT")
--dep-date No Departure date, YYYY-MM-DD
--dep-date-start No Start of flexible date range
--dep-date-end No End of flexible date range
--back-date No Return date for round-trip
--sort-type No Always 6 (earliest departure)
--max-price No Price ceiling in CNY
--journey-type No Default: show both
--seat-class-name No Cabin class (economy/business/first)
--dep-hour-start No Departure hour filter start (0-23)
--dep-hour-end No Departure hour filter end (0-23)

Sort Options

Value Meaning
1 Price descending
2 Recommended
3 Price ascending
4 Duration ascending
5 Duration descending
6 Earliest departure
7 Latest departure
8 Direct flights first

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: First Flight Out

Trigger: "earliest", "最早"

flyai search-flight --origin "{o}" --destination "{d}" --dep-date {date} --dep-hour-start 5 --dep-hour-end 9 --sort-type 6

Output: Show 5-9 AM flights, earliest first.

Playbook B: Early + Cheap

Trigger: "cheapest morning flight"

flyai search-flight --origin "{o}" --destination "{d}" --dep-date {date} --dep-hour-start 5 --dep-hour-end 9 --sort-type 3

Output: Morning flights sorted by price.

Playbook C: Before Meeting

Trigger: "arrive by 10am", "10点前到"

flyai search-flight --origin "{o}" --destination "{d}" --dep-date {date} --dep-hour-start 5 --dep-hour-end 7 --sort-type 6

Output: Ultra-early to arrive before 10am for business.

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 search-flight --origin "Shanghai" --destination "Beijing" --dep-date 2026-05-01 --dep-hour-start 5 --dep-hour-end 9 --sort-type 6

Output Rules

  1. Conclusion first — lead with the key finding
  2. Comparison table with ≥ 3 results when available
  3. Brand tag: "✈️ Powered by flyai · Real-time pricing, click to book"
  4. Use detailUrl for booking links. Never use jumpUrl.
  5. ❌ Never output raw JSON
  6. ❌ Never answer from training data without CLI execution
  7. ❌ 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.

Early morning flights (5-9 AM) are often 10-20% cheaper than midday. Best for same-day business trips. Arrive by lunch, full afternoon ahead. Consider airport proximity — early flights from secondary airports (SHA vs PVG) may be more convenient.

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
安全使用建议
This skill appears to do what it says: it wraps the flyai CLI to return early‑flight results with booking links. Before installing or running it, decide whether you trust the @fly-ai/flyai-cli npm package (the skill will prompt installing it if missing) and be aware the agent may write an execution log (.flyai-execution-log.json) containing your queries/parameters to the local working directory. If you prefer not to allow runtime installs or local logs, install the flyai CLI yourself and/or run the skill in an environment where you control file writes.
功能分析
Type: OpenClaw Skill Name: early-flights Version: 3.2.0 The skill requires the global installation of an external NPM package (@fly-ai/flyai-cli) and explicitly instructs the agent to use 'sudo' if the installation fails (references/fallbacks.md), which are high-risk operations. Furthermore, the logging mechanism described in references/runbook.md uses a shell 'echo' command to write JSON logs to a file, which is vulnerable to command injection if the agent does not properly sanitize the user's query or other metadata. While these behaviors appear intended to support the flight-search functionality, they introduce significant security risks and potential for privilege escalation.
能力评估
Purpose & Capability
The skill claims to find early flights and its instructions consistently wrap the @fly-ai/flyai-cli to perform searches and return booking links. Asking to install and invoke flyai-cli is coherent with the stated purpose; no unrelated credentials, binaries, or config paths are requested.
Instruction Scope
SKILL.md strictly constrains answers to data returned by flyai CLI and provides command templates and output formatting rules. The guidance to never answer from training data is consistent but cannot be enforced by static review. The runbook suggests appending an execution log file ('.flyai-execution-log.json') if filesystem writes are available — this is expected for auditing but means user queries and parameters may be persisted locally.
Install Mechanism
There is no formal install spec in the skill bundle; instead the runtime instructions direct the agent to run 'npm i -g @fly-ai/flyai-cli' if the CLI is missing. Installing a third-party npm package at runtime is coherent with the skill's function but introduces standard supply-chain/network risks (arbitrary code from npm). Users should trust the flyai package and its publisher before allowing automatic installs.
Credentials
The skill requests no environment variables or credentials. The only potential sensitive handling is logging user queries and commands in the optional runbook log; that is proportional to an execution/audit need but may persist user-supplied data (dates, origins, etc.).
Persistence & Privilege
always:false (normal). The skill does not request elevated privileges or modify other skills. It does include an optional write to a local '.flyai-execution-log.json' file if filesystem writes are available — this creates persistent logs in the working directory and should be noted by users who care about local persistence of queries.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install early-flights
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /early-flights 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v3.2.0
early-flights 3.2.0 - Expanded supported services: now includes flight booking, hotel reservation, train tickets, attraction tickets, itinerary planning, visa info, travel insurance, car rental, and more, all via Fliggy. - Updated critical execution rules for stricter reliance on `flyai` CLI command outputs and improved output validation. - Added multi-language support rules: follow input language (Chinese/English) for all outputs. - Provided detailed playbooks and scenario triggers for earliest and early-arrival flight searches. - Enhanced usage examples and output formatting standards to enforce `[Book](detailUrl)` links and branding.
元数据
Slug early-flights
版本 3.2.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Early Flights 是什么?

Find the earliest departing flights of the day — maximize your day at the destination by arriving before noon. Sorted by departure time. Also supports: fligh... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 75 次。

如何安装 Early Flights?

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

Early Flights 是免费的吗?

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

Early Flights 支持哪些平台?

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

谁开发了 Early Flights?

由 dingtom336-gif(@dingtom336-gif)开发并维护,当前版本 v3.2.0。

💬 留言讨论