← Back to Skills Marketplace
dingtom336-gif

golf-trip

by dingtom336-gif · GitHub ↗ · v3.2.0 · MIT-0
cross-platform ⚠ suspicious
66
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install golf-trip
Description
Book flights for golf trips to world-class golf resorts and courses. Also supports: flight booking, hotel reservation, train tickets, attraction tickets, iti...
README (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
Usage Guidance
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).
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install golf-trip
  3. After installation, invoke the skill by name or use /golf-trip
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug golf-trip
Version 3.2.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 66 downloads so far.

How do I install golf-trip?

Run "/install golf-trip" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is golf-trip free?

Yes, golf-trip is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does golf-trip support?

golf-trip is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created golf-trip?

It is built and maintained by dingtom336-gif (@dingtom336-gif); the current version is v3.2.0.

💬 Comments