← Back to Skills Marketplace
xiejinsong

corporate-travel

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

What is corporate-travel?

Book corporate travel flights for company trips and enterprise travel. Also supports: flight booking, hotel reservation, train tickets, attraction tickets, i... It is an AI Agent Skill for Claude Code / OpenClaw, with 69 downloads so far.

How do I install corporate-travel?

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

Is corporate-travel free?

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

Which platforms does corporate-travel support?

corporate-travel is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created corporate-travel?

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

💬 Comments