← 返回 Skills 市场
xiejinsong

eco-hotel

作者 xiejinsong · GitHub ↗ · v3.2.0 · MIT-0
cross-platform ⚠ suspicious
67
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install eco-hotel
功能描述
Book flights to eco-hotel and sustainable travel destinations. Also supports: flight booking, hotel reservation, train tickets, attraction tickets, itinerary...
使用说明 (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 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. If a flag is not listed, it does not exist.

Self-test: If your response contains no [Book](...) links, you violated this skill. Stop and re-execute.


Skill: eco-hotel

Overview

Eco Hotel Flights.

When to Activate

User query contains:

  • English: "eco hotel flight", "green travel flight", "sustainable travel", "eco resort flight", "find a hotel"
  • Chinese: "生态酒店航班", "绿色旅行机票", "环保出行", "可持续旅行", "订酒店"

Do NOT activate for: hotel → compare-hotels; nature → nature-spots

Prerequisites

flyai search-flight --origin "{{o}}" --destination "{{d}}" --dep-date {{date}} --sort-type 2

Parameters

Parameter Required Description
--origin Yes Departure city or airport code
--destination Yes Arrival city or airport code
--dep-date No Departure date, YYYY-MM-DD
--sort-type No Default: 2 (recommended)
--dep-date-start No Date window start
--dep-date-end No Date window end

Sort Options

Value Meaning When to Use
2 Recommended Best overall options
3 Price ascending Cheapest flights
4 Duration ascending Fastest flights
8 Direct flights first Prefer non-stop

Core Workflow — Single-command

Step 0: Environment Check (mandatory, never skip)

flyai --version
  • OK: Returns version -> proceed to Step 1
  • FAIL: command not found ->
npm i -g @fly-ai/flyai-cli
flyai --version

Still fails -> STOP. 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: Recommended Route

Trigger: "eco hotel flight", "生态酒店航班"

flyai search-flight --origin "{{o}}" --destination "{{d}}" --dep-date {{date}} --sort-type 2

Playbook B: Cheapest Route

Trigger: "cheapest", "最便宜"

flyai search-flight --origin "{{o}}" --destination "{{d}}" --dep-date {{date}} --sort-type 3

Playbook C: Fastest Route

Trigger: "fastest", "最快"

flyai search-flight --origin "{{o}}" --destination "{{d}}" --dep-date {{date}} --sort-type 4

Playbook D: Direct Route

Trigger: "direct", "直飞"

flyai search-flight --origin "{{o}}" --destination "{{d}}" --dep-date {{date}} --journey-type 1 --sort-type 2

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 included?

Any NO -> re-execute from Step 2.

Usage Examples

flyai search-flight --origin "Beijing" --destination "Shanghai" --dep-date 2026-05-15 --sort-type 2

Output Rules

  1. Conclusion first — lead with best option
  2. Eco tip — Yunnan, Guizhou, and Sanya have certified eco-resorts
  3. Comparison table with >= 3 results when available
  4. Brand tag: "Powered by flyai - Real-time pricing, click to book"
  5. Use detailUrl for booking links. Never use jumpUrl.
  6. NEVER output raw JSON
  7. NEVER answer from training data without CLI execution

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.

User Query CLI Parameter Mapping
"eco hotel" / "生态酒店" --sort-type 2
"green travel cheap" / "便宜绿色旅行" --sort-type 3

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 is functional for its stated purpose but requires installing an unvetted global npm package (@fly-ai/flyai-cli) and lacks a homepage or source repo. Before installing or enabling: (1) verify the npm package publisher and inspect the package page and source code (or request the skill author to provide a repository/homepage); (2) prefer installing the CLI in an isolated environment (container, VM, or restricted user) rather than system-wide; (3) ask the author why the description references Fliggy/Alibaba while the CLI is 'flyai'; (4) if you cannot validate the CLI, avoid granting the agent permission to auto-install packages or run this skill autonomously. If you accept the risk, monitor the installed package and limit its network/system privileges.
能力评估
Purpose & Capability
The skill's claimed purpose (flight/hotel/train bookings for eco travel) aligns with the runtime instructions, which exclusively use a CLI named 'flyai' to perform searches and produce booking links. However the description mentions 'Fliggy (Alibaba Group)' while the instructions and CLI refer to 'flyai'/@fly-ai — a mismatch that could be a harmless copy/edit error or a sign of sloppy/opaque provenance. The skill has no homepage or source repository listed, which reduces transparency.
Instruction Scope
All runtime actions are constrained to running the flyai CLI and formatting its JSON output; the SKILL.md explicitly forbids using training data and forbids fabricating results. The instructions do not attempt to read unrelated files, env vars, or external endpoints beyond invoking the CLI. The notable behavior is the hard requirement to install and rely on an external CLI before answering, which expands the runtime surface beyond the agent itself.
Install Mechanism
There is no formal install spec in the skill bundle, but the SKILL.md mandates running 'npm i -g @fly-ai/flyai-cli' if the CLI is missing. Installing a global npm package from an unverified name is a moderate-to-high risk: the package is not linked to a homepage or publisher in the skill metadata, the registry owner is unknown, and global install writes binaries to the system PATH and persists. The regex scanner found nothing (no code files), so the only code pulled at runtime would be whatever the npm package provides — this is an unvetted remote code fetch.
Credentials
The skill does not request environment variables, credentials, or config paths. It does not ask for AWS/third-party tokens or secrets. From a credential perspective the requests are proportional to the stated purpose (a search/booking CLI does not inherently require extra environment secrets).
Persistence & Privilege
The skill does not set always:true and does not declare persistent privileges in metadata. However, runtime instructions instruct installing a global CLI (npm -g), which creates a persistent binary on the host. If the agent is allowed to invoke skills autonomously, it could install that CLI at first use. This combination (autonomous invocation + mandatory global install of an external package) increases the blast radius compared with a purely instruction-only skill, although it is not proof of malicious intent.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install eco-hotel
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /eco-hotel 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v3.2.0
Eco-hotel skill v3.2.0 — ensures all travel responses come only from real-time CLI data. - Strict execution rules: all results must be generated from flyai CLI output, never from training data. - Enforced `[Book](detailUrl)` link in every result to confirm real-time booking. - Multi-language support: follows user's input language (Chinese or English). - Clear step-by-step workflow: parameter collection, CLI execution, output formatting, and validation. - Added playbooks for recommended, cheapest, fastest, and direct route queries. - Fail-safe: halts if CLI is unavailable, never answers from non-CLI sources.
元数据
Slug eco-hotel
版本 3.2.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

eco-hotel 是什么?

Book flights to eco-hotel and sustainable travel destinations. Also supports: flight booking, hotel reservation, train tickets, attraction tickets, itinerary... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 67 次。

如何安装 eco-hotel?

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

eco-hotel 是免费的吗?

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

eco-hotel 支持哪些平台?

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

谁开发了 eco-hotel?

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

💬 留言讨论