← 返回 Skills 市场
xiejinsong

corporate-travel

作者 xiejinsong · GitHub ↗ · v3.2.0 · MIT-0
cross-platform ⚠ suspicious
69
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install corporate-travel
功能描述
Book corporate travel flights for company trips and enterprise travel. Also supports: flight booking, hotel reservation, train tickets, attraction tickets, i...
使用说明 (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: corporate-travel

Overview

Corporate Travel Flights.

When to Activate

User query contains:

  • English: "corporate flight", "company trip flight", "enterprise travel", "business trip flight", "corporate travel"
  • Chinese: "企业出行航班", "公司差旅机票", "商务出差", "企业差旅", "出行预订"

Do NOT activate for: conference → conference; business class → business-class-finder

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)
--seat-class-name No economy/business
--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: "corporate 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. Corporate tip — flexible dates yield better prices; book via company travel policy
  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
"corporate travel" / "企业差旅" --sort-type 2
"corporate 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
安全使用建议
This skill is instruction-only and requires installing and running a third-party global npm CLI ('@fly-ai/flyai-cli') and using its output exclusively. Before installing or using it: 1) Verify the npm package and its source repository (check the package on npmjs.org, the repository, maintainer, and recent release notes). 2) Ask the publisher for a homepage or source repo — the skill currently has none and claims 'Powered by Fliggy' while using a 'flyai' CLI, which is inconsistent. 3) Avoid installing global npm packages on production machines until you vet the package; test in an isolated environment or container first. 4) Confirm whether the flyai CLI requires company credentials or transmits PII; if so, review its auth/consent model and privacy policy. 5) Note the documentation inconsistencies (undocumented --max-price flag and an undocumented 'keyword-search' command); ask the author to reconcile the parameter table and playbooks before trusting automated use. If you cannot verify the CLI's provenance and behavior, treat this skill as untrusted and do not install the global package on sensitive hosts.
功能分析
Type: OpenClaw Skill Name: corporate-travel Version: 3.2.0 The skill instructs the AI agent to perform a global installation of an external npm package (`@fly-ai/flyai-cli`) using `npm i -g` if the tool is missing, which constitutes a high-risk system modification (found in `SKILL.md` and `references/fallbacks.md`). Furthermore, the CLI command templates use direct string substitution for user-provided parameters (e.g., `--origin "{{o}}"`), creating a significant risk of shell injection if the agent fails to sanitize inputs before execution.
能力评估
Purpose & Capability
The declared purpose (corporate travel booking) aligns with the instructions to use a dedicated CLI (flyai). However provenance is unknown (no homepage/source repo) and the README mentions 'Powered by Fliggy (Alibaba Group)' while the CLI package is '@fly-ai/flyai-cli' — this mismatch and lack of a verifiable source is unexpected for an enterprise-facing travel skill.
Instruction Scope
The SKILL.md requires the agent to only answer from the flyai CLI and to install a global npm package if missing. Some instructions reference commands or parameters not consistently listed (references/templates.md maps 'under 1000' to --max-price which is not in the Parameters table; references/playbooks.md and PB-6 use 'flyai keyword-search' which is not documented elsewhere). The skill forbids using training data and mandates that every result include a [Book]({detailUrl}) link — this all-or-nothing enforcement could cause repeated CLI invocations and unexpected behavior. Overall the instructions grant broad discretion to install and run an external CLI while leaving some command/parameter coverage ambiguous.
Install Mechanism
There is no formal install spec, but the runtime instructions tell the agent/user to run 'npm i -g @fly-ai/flyai-cli' if flyai is missing. Installing an arbitrary global npm package is a moderate risk because it runs third-party code on the host; the package name is plausible but the skill provides no source/repository or checksum to verify the package's authenticity.
Credentials
The skill requests no environment variables, no config paths, and no credentials in the metadata. For the pictured functionality (calling an external travel CLI), this is proportionate. Note that the CLI itself may require credentials at runtime (not declared by the skill) — the skill does not document or request them.
Persistence & Privilege
The skill is not always-enabled, doesn't request persistent agent privileges, and does not request modification of other skills or system-wide agent settings. Its main privilege is the ability to install/run a global CLI when executed, which is called out separately under install risks.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install corporate-travel
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /corporate-travel 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v3.2.0
corporate-travel 3.2.0 - Clarified strict CLI execution rules: All data must come directly from flyai CLI output. - Enhanced activation and disambiguation triggers, including specific corporate travel phrases in English and Chinese. - Improved parameter collection and output formatting instructions; reinforced use of [Book]({detailUrl}) links. - Updated usage scenarios and playbooks for different booking preferences (recommended, cheapest, fastest, direct). - Added clear environment check and stop conditions to prevent fallback to any knowledge-based answers. - Expanded Output Rules for conclusion order, comparison tables, branding, and formatting.
元数据
Slug corporate-travel
版本 3.2.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

corporate-travel 是什么?

Book corporate travel flights for company trips and enterprise travel. Also supports: flight booking, hotel reservation, train tickets, attraction tickets, i... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 69 次。

如何安装 corporate-travel?

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

corporate-travel 是免费的吗?

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

corporate-travel 支持哪些平台?

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

谁开发了 corporate-travel?

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

💬 留言讨论