← 返回 Skills 市场
dingtom336-gif

golf-trip

作者 dingtom336-gif · GitHub ↗ · v3.2.0 · MIT-0
cross-platform ⚠ suspicious
66
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install golf-trip
功能描述
Book flights for golf trips to world-class golf resorts and courses. Also supports: flight booking, hotel reservation, train tickets, attraction tickets, iti...
使用说明 (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: golf-trip

Overview

Golf Trip Flights.

When to Activate

User query contains:

  • English: "golf flight", "golf trip", "golf resort flight", "golf course travel", "plan a trip"
  • Chinese: "高尔夫航班", "高尔夫旅行", "高尔夫度假", "球场出行", "出行规划"

Do NOT activate for: general leisure → solo-trip or family-trip

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: "golf 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. Golf tip — Hainan, Yunnan, and Southeast Asia have top golf 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
"golf trip" / "高尔夫旅行" --sort-type 2
"golf business class" / "高尔夫商务舱" --seat-class-name business --sort-type 2

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
安全使用建议
Before installing or enabling this skill, consider the following: (1) The skill forces the agent to install and run '@fly-ai/flyai-cli' from npm with no homepage or source listed — verify the npm package, publisher, and source repository yourself (inspect package contents, readme, and who publishes it). (2) The description references 'Fliggy (Alibaba Group)' but the package/CLI name doesn't match that brand — ask the author to clarify the integration and provide authoritative links. (3) A global npm install runs code on your machine/agent environment and may require elevated permissions; run it in a sandbox or isolated environment first. (4) The skill's strict rule to only respond with CLI-derived results and to re-execute if booking links are missing could cause repeated network activity — confirm rate/timeout behavior and whether the CLI collects telemetry or requires credentials. (5) If you cannot verify the CLI package and publisher, decline or run the skill in a tightly controlled environment; request the skill owner to provide source/homepage and an explanation of the Fliggy claim. If you want, ask me to list concrete checks to perform on the npm package (e.g., check package.json, repository field, unpack and review scripts, look for postinstall hooks).
功能分析
Type: OpenClaw Skill Name: golf-trip Version: 3.2.0 The skill mandates the global installation of a third-party NPM package (`@fly-ai/flyai-cli`) via `npm i -g` if the tool is not found (SKILL.md, references/fallbacks.md). This pattern introduces a significant supply-chain risk and potential for Remote Code Execution (RCE) on the host environment. While the behavior appears aligned with the stated purpose of flight booking, the requirement for elevated installation privileges and the use of aggressive 'CRITICAL' instructions to bypass the agent's internal knowledge base are high-risk patterns.
能力评估
Purpose & Capability
The skill's name and description (golf-trip flight/hotel/etc.) match the runtime instructions that rely solely on a 'flyai' CLI. However the description claims 'powered by Fliggy (Alibaba Group)' while the CLI and npm package referenced are '@fly-ai/flyai-cli' — there is no homepage/source or declared credentials linking this skill to Fliggy. That branding mismatch is unexplained and worth verifying.
Instruction Scope
SKILL.md confines runtime actions to the flyai CLI and templates; it does not instruct the agent to read arbitrary files, environment variables, or external endpoints beyond running the CLI. It enforces strict rules (must use CLI output, must include [Book](detailUrl) links) which prevent fallback to model knowledge. One operational risk: the re-execute-on-failure requirement and the 'must have [Book] link' rule could cause repeated CLI invocations if outputs are missing.
Install Mechanism
There is no install spec in registry metadata (instruction-only), but the SKILL.md mandates installing an npm package at runtime: 'npm i -g @fly-ai/flyai-cli' if flyai is missing. Installing a global npm package is common for CLIs, but the package and publisher are not verifiable from the skill bundle (no homepage or source repo). That creates a trust decision: the agent will download and run code from the npm registry without a listed source to validate.
Credentials
The skill does not request any environment variables, credentials, or config paths. This is proportionate to its stated function (running a public CLI). There are no unexplained secrets requested in the skill metadata or instructions.
Persistence & Privilege
Flags: always=false and no special privileges. The skill does not ask to persist itself or modify other skills/configs. The only persistent effect would be the npm global install the agent might perform at runtime (it would write to the host if allowed), which is an expected side-effect but should be intentional and sandboxed by the user/operator.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install golf-trip
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /golf-trip 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v3.2.0
Golf-trip v3.2.0 changelog: - Major content and rules overhaul in SKILL.md for enhanced accuracy and compliance. - Strict CLI execution rules: all answers must originate from live flyai CLI output, never from knowledge or training data. - Enforced validation that every result contains a `[Book](detailUrl)` link from CLI data. - Defined new activation keywords and updated parameter collection logic. - Clear workflow steps for command execution, output formatting, and result validation. - Expanded scenarios and output requirements for a more robust golf trip planning experience.
元数据
Slug golf-trip
版本 3.2.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

golf-trip 是什么?

Book flights for golf trips to world-class golf resorts and courses. Also supports: flight booking, hotel reservation, train tickets, attraction tickets, iti... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 66 次。

如何安装 golf-trip?

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

golf-trip 是免费的吗?

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

golf-trip 支持哪些平台?

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

谁开发了 golf-trip?

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

💬 留言讨论