← Back to Skills Marketplace
hello-ahang

帮我凑假

by hello_hang · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
103
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install flyai-vacation-planner
Description
智能拼假日历助手,帮助用户计算最优请假方案。输入目的地、可请假天数和出发城市,自动生成拼假方案并查询机票价格。当用户提到"凑假"、"拼假"、"请假方案"、"怎么请假划算"、"假期规划"时使用。
README (SKILL.md)

智能拼假日历助手

帮助用户用最少的请假天数拼出最长的旅行时间,并提供目的地机票价格参考。

核心能力

FlyAI 能力

完整命令参考见 reference 目录

本技能主要使用search-flightsearch-hotel

能力 说明
📅 拼假计算 基于法定节假日+周末,计算最优请假方案
✈️ 机票查询 实时查询往返机票价格
🏨 酒店推荐 查询目的地酒店信息
🌍 目的地信息 获取景点、天气、签证等信息

工作流程

步骤 1:安装/升级 FlyAI CLI

在执行任何搜索之前,必须先执行安装命令(幂等安装,确保为最新版本):

npm install -g @fly-ai/flyai-cli@latest --registry=https://registry.npmjs.org

💡 此命令会自动处理首次安装和版本升级,无需手动判断是否已安装。

安装问题处理:

  • npm 未安装 → 提示安装 Node.js
  • 权限不足 → 使用 sudo 或 nvm
  • 网络问题 → 使用国内镜像 npm config set registry https://registry.npmmirror.com

步骤 2:读取用户画像(双模式)

启动时读取用户历史偏好,减少重复询问。

详见 reference/user-profile-storage.md

优先search_memory(query="用户旅行画像", category="user_hobby", keywords="flyai")
降级read_file(file_path="~/.flyai/user-profile.md")

步骤 3:收集用户输入

启动对话:

"我来帮你规划拼假方案!请告诉我:

  1. 你想去哪里?
  2. 最多能请几天假?
  3. 从哪个城市出发?"

必需信息:

  • 目的地: 具体城市或国家(如"冲绳"、"日本"、"三亚")
  • 可请假天数上限: 数字(如"2天"、"最多3天")
  • 出发城市: 用户所在城市(如"上海"、"北京")

如果目的地模糊(如只说"海岛"),追问偏好后推荐3个具体目的地。

步骤 4:计算拼假方案

基于当前日期,计算未来3个月内的最优拼假方案。

中国法定节假日参考(2026-2027)

春节: 2月17日-2月23日(2026)/ 2月6日-2月12日(2027)
清明节: 4月4日-6日
劳动节: 5月1日-5日
端午节: 6月19日-21日(2026)/ 6月8日-10日(2027)
中秋节: 9月25日-27日(2026)/ 9月15日-17日(2027)
国庆节: 10月1日-7日

拼假算法逻辑

  1. 识别周末: 每周六、周日
  2. 识别法定假日: 上述节假日
  3. 计算连续区间: 将相邻的周末和假日合并
  4. 插入请假日: 在连续区间的间隙中插入请假日,优先选择能拼出最长旅行时间的位置
  5. 排序方案: 按 (旅行天数 / 请假天数) 比值降序排列

方案筛选标准

  • 旅行总天数 >= 3天
  • 请假天数 \x3C= 用户指定上限
  • 优先推荐性价比高的方案(请假少、玩得久)

步骤 5:查询机票价格

命令详情见 reference/search-flight.md

/flyai search-flight --origin "{出发城市}" --destination "{目的地}" --dep-date {出发日期} --back-date {返回日期} --sort-type 3

如果机票查询失败,展示"参考价"并标注为历史同期估价。

步骤 6:补充目的地信息

命令详情见 reference/keyword-search.md

调用 keyword-search --query "{目的地} 旅游攻略 景点" 获取信息,补充:

  • 淡旺季标签: 根据节假日和旅游旺季判断
    • 🟢 淡季:价格低、人少
    • 🟡 平季:性价比较高
    • 🔴 旺季:价格高、人多(如国庆、春节)
  • 天气概况: 根据季节和目的地给出大致天气

步骤 7:输出方案卡片

按以下格式输出每个拼假方案:

━━━━━━━━━━━━━━━━━━━━
📋 方案{字母}({推荐标签})
  请假:{具体日期}(周几)
  旅行时段:{起始日期} - {结束日期},共{X}天{Y}晚
  机票参考:往返 ¥{最低价}-{最高价}
  天气:{温度} {天气描述}
  标签:{淡旺季标签} | {性价比评价}
  👉 下一步:{引导性问题}
━━━━━━━━━━━━━━━━━━━━

推荐标签规则:

  • 性价比最高的方案标记为"推荐⭐"
  • 旅行天数最长的方案标记为"最长假期"
  • 价格最低的方案标记为"最省钱💰"

下一步引导:

  • 淡季/平季方案: "要我帮你搜这个时段的机+酒套餐吗?"
  • 旺季方案: "要我设置降价提醒吗?"
  • 需要签证: "要我帮你查签证办理流程吗?"

异常处理

场景 处理方式
目的地模糊 追问偏好,推荐3个具体目的地
机票价格获取失败 展示"参考价",标注历史同期估价
可请假天数为0 仅推荐纯周末/法定假日方案
目的地需要签证 在方案卡片标红提示签证办理时间
找不到合适方案 建议用户增加可请假天数或调整目的地

签证提醒规则

签证办理时间详见 reference/visa-rules.md

如果目的地需要签证且方案出发日期距现在不足办理时间,标红提示:

⚠️ 签证办理约需X个工作日,该方案时间可能不足

后续操作

用户选定方案后,根据需求调用:


示例对话

详见 reference/examples.md

用户偏好保存(双模式)

发现新偏好时提示保存。详见 reference/user-profile-storage.md

保存流程:发现偏好 → 提示确认 → Qoder 用 update_memory / 非 Qoder 更新本地文件

Usage Guidance
This skill appears to do what it says: compute leave/holiday combos and query travel data. Before installing or enabling it, consider: 1) npm install -g will download and run a third‑party package globally — review the package (repository, maintainers, install scripts) or install in a controlled environment rather than globally; 2) the skill may read/write ~/.flyai/user-profile.md (personal preferences); do not store sensitive information (IDs, passports, payment data) there and review the file contents periodically; 3) if your agent environment supports Qoder memory, the skill will try to read/update it — confirm you’re comfortable with the memory storage behavior; 4) if you need tighter control, ask the developer for a non-global install option or a way to disable automatic saves. Overall the skill is internally consistent (benign) but exercise the usual caution around installing third‑party CLI tools and storing personal data.
Capability Analysis
Type: OpenClaw Skill Name: flyai-vacation-planner Version: 1.0.1 The skill instructs the AI agent to perform a global system modification by executing 'npm install -g @fly-ai/flyai-cli@latest' (SKILL.md) as a mandatory first step. It also implements a 'dual-mode' storage system that reads and writes sensitive user profile data to the local filesystem at '~/.flyai/user-profile.md' (reference/user-profile-storage.md). While these capabilities are aligned with the stated purpose of a travel planner, the automated global installation of external packages and local file persistence represent significant supply-chain and system integrity risks.
Capability Assessment
Purpose & Capability
Name/description (拼假日历、计算请假方案并查询机票/酒店) match the skill's instructions: it calls search-flight, search-hotel, keyword-search and computes holiday/ weekend combinations. No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
Runtime steps are narrowly scoped to: (1) install/upgrade the FlyAI CLI via npm, (2) read user preferences from Qoder memory or a specific local file (~/.flyai/user-profile.md), (3) collect trip parameters from the user, (4) compute拼假方案 and query flights/hotels/POI. This stays within the stated purpose, but it does explicitly read/write a local file and call memory APIs — both have privacy implications (personal data storage).
Install Mechanism
The SKILL.md requires running npm install -g @fly-ai/flyai-cli@latest from the public npm registry. This is a common approach for CLI tools but is a moderate-risk install: global npm packages can run install scripts and write to disk. The instruction is expected for the skill but users should verify the package source before installing globally.
Credentials
No environment variables, secrets, or unrelated credentials are requested. The only non-network resources accessed are Qoder memory APIs (if available) and the local file path ~/.flyai/user-profile.md for profile storage — which is proportional for personalization but may store PII, so users should avoid saving sensitive documents in that file.
Persistence & Privilege
The skill is not always-on and does not request elevated platform privileges. It may create and modify files under its own ~/.flyai directory or update Qoder memory (if available), which is reasonable for a personalization feature and limited in scope.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install flyai-vacation-planner
  3. After installation, invoke the skill by name or use /flyai-vacation-planner
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
Version 1.0.1 Changelog - 初步引入 reference 目录,新增12份详细命令及规则文档(如机票、酒店、签证、用户画像等)。 - 拼假助手主流程整理为分步操作,明确每步用到的能力和命令调用方法。 - 引入“用户画像双模式”方案,支持调用 search_memory/本地文件混合存储用户偏好。 - 安装 FlyAI CLI 流程优化为统一幂等升级命令,无需手动判断已装状态。 - 支持签证规则/目的地等信息动态查阅与提示,流程可扩展性更强。 - 详细补充标准输出格式、推荐标签以及方案后续引导。
v1.0.0
flyai-vacation-planner 1.0.0 – 初始发布! - 智能拼假日历助手上线,输入目的地、可请假天数和出发城市,自动规划拼假和机票查询方案 - 内置中国法定节假日及周末合并拼假算法,提供多种最优请假方案 - 同步查找目的地机票价格、景点与旅游信息,并给出天气与淡旺季标签 - 完备的异常处理,支持目的地模糊推荐、签证办理提示和历史机票参考价 - 便捷后续查询:一键搜索机+酒套餐、酒店或当地景点
Metadata
Slug flyai-vacation-planner
Version 1.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is 帮我凑假?

智能拼假日历助手,帮助用户计算最优请假方案。输入目的地、可请假天数和出发城市,自动生成拼假方案并查询机票价格。当用户提到"凑假"、"拼假"、"请假方案"、"怎么请假划算"、"假期规划"时使用。 It is an AI Agent Skill for Claude Code / OpenClaw, with 103 downloads so far.

How do I install 帮我凑假?

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

Is 帮我凑假 free?

Yes, 帮我凑假 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 帮我凑假 support?

帮我凑假 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 帮我凑假?

It is built and maintained by hello_hang (@hello-ahang); the current version is v1.0.1.

💬 Comments