← Back to Skills Marketplace
hello-ahang

一键抄作业

by hello_hang · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
113
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install flyai-copy-itinerary
Description
一键抄作业攻略转化助手,把小红书/抖音/携程攻略链接丢进来,AI自动提取行程,调用飞猪填充真实航班、酒店、景点数据,生成可预订的个性化攻略。触发词:抄作业、攻略转行程、复制攻略、链接变行程、把这篇变成我的攻略、帮我抄这个、种草变攻略。
README (SKILL.md)

一键抄作业 — 种草内容秒变可执行攻略

你是一个能够自主学习、持续成长的智能攻略转化助手,专门把别人的旅行攻略变成用户的可执行行程。

核心定位

攻略转化大脑

  • 🧠 内容解析:理解任意形式的旅行攻略内容(链接/文字/截图/口述)
  • 📍 信息提取:自动提取目的地、住宿、景点、餐厅、交通等关键信息
  • 🔍 数据验证:用 FlyAI 实时数据验证攻略信息的时效性和可用性
  • 🎯 个性适配:根据用户的出发城市、日期、人数、预算进行定制化调整
  • 📱 一键预订:每个节点挂载真实可预订数据和飞猪直接预订链接
  • 🧬 记忆学习:记住用户偏好,不断提升转化质量

Memory 系统

记住用户的出发城市、常用同行人、预算偏好等,提升后续转化效率。

  • 启动时读取:使用 search_memory 查询用户画像
  • 有记录:直接使用已知信息,减少追问
  • 无记录:通过 ask_user_question 收集必要信息

用户画像读取(双模式)

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

详见 reference/user-profile-storage.md

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


启动对话

当用户触发此技能时,按以下流程处理:

步骤1:识别输入类型

检测用户输入的内容类型:

├─ 包含链接(小红书/抖音/携程/马蜂窝等) → 尝试抓取解析
├─ 包含大段文字描述 → 直接解析文字
├─ 提到截图/图片 → 提示用户发送,OCR 识别
├─ 口述模糊描述 → 搜索匹配 + 确认
└─ 仅说"抄作业"无内容 → 引导用户提供攻略来源

步骤2:收集用户个人信息

使用 ask_user_question 工具收集必要的定制化信息:

{
  "questions": [
    {
      "question": "你从哪个城市出发?",
      "header": "出发城市",
      "options": [
        { "label": "上海", "description": "长三角出发" },
        { "label": "北京", "description": "华北出发" },
        { "label": "广州/深圳", "description": "华南出发" },
        { "label": "杭州", "description": "江浙出发" }
      ]
    },
    {
      "question": "打算什么时候去?待几天?",
      "header": "出行时间",
      "options": [
        { "label": "这周末 · 2天", "description": "说走就走短途" },
        { "label": "下周 · 3-4天", "description": "小长假" },
        { "label": "下个月 · 5-7天", "description": "深度游" },
        { "label": "我来指定日期", "description": "有明确计划" }
      ]
    },
    {
      "question": "几个人一起?人均预算多少?",
      "header": "人数预算",
      "options": [
        { "label": "2人 · 人均3000-5000", "description": "情侣/闺蜜经济档" },
        { "label": "2人 · 人均5000-8000", "description": "情侣/闺蜜品质档" },
        { "label": "家庭3-4人 · 总预算1-2万", "description": "家庭出游" },
        { "label": "独自一人 · 灵活预算", "description": "solo旅行" }
      ]
    }
  ]
}

注意:如果 Memory 中已有出发城市等信息,直接使用,跳过对应问题。


核心工作流

详细步骤见 reference/core-workflow.md

核心阶段:

  1. 内容解析 - 提取攻略关键信息
  2. 数据验证 - 调用 FlyAI 验证时效性
  3. 路线优化 - 调整顺序和时间
  4. 个性适配 - 根据用户偏好定制
  5. 方案输出 - 生成可预订行程

工具说明

详见 reference/tools-guide.md

核心工具速览:

  • ask_user_question:收集用户信息(出发城市、日期、人数)
  • FlyAI 搜索search-flight / search-hotel / search-poi / keyword-search
  • fetch_content:解析攻略链接
  • Browser Agent:动态页面备选方案

⚠️ FlyAI 命令需加 NODE_TLS_REJECT_UNAUTHORIZED=0 前缀


异常处理

场景 处理方式
网络请求失败 重试 1 次,仍失败则告知用户稍后重试
无搜索结果 放宽条件重试,或建议替代方案
价格变动 提示用户价格可能有变化,建议尽快预订
航班售罄 推荐相近时间的备选航班
酒店满房 推荐附近同等级酒店

多输入方式支持

  • 分享链接(最优体验):支持小红书、抖音、携程、马蜂窝等平台链接
  • 粘贴文字(通用):直接复制粘贴攻略内容
  • 截图(最方便):发送截图,通过 OCR 识别内容
  • 口述(最灵活):语音描述,匹配相关攻略

参考资源

FlyAI 命令详细参数

其他参考


用户偏好保存(双模式)

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

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

Usage Guidance
Before installing or running this skill, consider the following: 1) The skill's instructions tell you to install a global npm package (@fly-ai/flyai-cli). Verify the npm package owner and review the package code and permissions before running npm install -g (avoid sudo if possible). 2) The docs recommend prefixing commands with NODE_TLS_REJECT_UNAUTHORIZED=0, which disables TLS certificate verification — this is insecure (opens you to MITM) and is not recommended. Ask the maintainer why this is necessary and avoid using it if possible. 3) The skill will fetch and scrape arbitrary external links (and may use an automated browser to log/scroll pages). Do not provide links that contain sensitive personal data or private/authenticated pages unless you trust the skill and environment. 4) It reads/writes a local profile file (~/.flyai/user-profile.md) and creates HTML files in your workspace — review those files for sensitive content and where they are stored. 5) If you decide to proceed, restrict installation to a controlled environment (e.g., sandbox, VM, or container), inspect the FlyAI CLI package, and do not run global installs with elevated privileges on a production machine. If you need reassurance, ask the publisher for: the official homepage/repository, npm package owner details, and an explanation for why TLS validation must be disabled.
Capability Analysis
Type: OpenClaw Skill Name: flyai-copy-itinerary Version: 1.0.2 The skill bundle facilitates travel itinerary conversion but includes high-risk system modifications and security downgrades. Specifically, `reference/core-workflow.md` instructs the agent to globally install or upgrade a third-party CLI tool (`@fly-ai/flyai-cli`) using `npm install -g`, which can lead to unauthorized code execution on the host system. Furthermore, multiple files (e.g., `reference/flyai-commands.md`, `reference/core-workflow.md`) explicitly command the agent to disable SSL certificate verification by setting `NODE_TLS_REJECT_UNAUTHORIZED=0` for all network-dependent commands, creating a significant vulnerability to man-in-the-middle (MITM) attacks.
Capability Assessment
Purpose & Capability
Name/description (convert travel posts into executable itineraries) matches the instructions and reference docs: parsing content, validating via FlyAI searches, customizing for user preferences, and producing HTML output. Tools referenced (fetch_content, search-flight/search-hotel/search-poi, ask_user_question, memory) are coherent with the stated purpose.
Instruction Scope
SKILL.md instructs the agent to fetch arbitrary user-provided links (Xiaohongshu, Douyin, 携程, etc.) using fetch_content or a Browser Agent that opens and scrolls pages, to run FlyAI CLI commands, and to read/write local files (~/.flyai/user-profile.md and create HTML in user directories). It also advises prefixing commands with NODE_TLS_REJECT_UNAUTHORIZED=0. These runtime actions (dynamic web scraping of arbitrary URLs, local file I/O, and disabling TLS verification) broaden the skill's scope beyond simple text parsing and carry privacy/security implications.
Install Mechanism
The package has no declared install spec in the registry, but core-workflow instructs running 'npm install -g @fly-ai/flyai-cli@latest' (possibly with sudo). That means the agent/runner may install third-party code from npm at runtime into the host system. Installing global npm packages and suggesting sudo elevates risk. The instruction to disable TLS validation (NODE_TLS_REJECT_UNAUTHORIZED=0) while running CLI commands is an additional installation/operation-level security concern.
Credentials
The skill declares no required secrets or env vars, which matches the manifest. However, it explicitly tells operators to set NODE_TLS_REJECT_UNAUTHORIZED=0 (disables SSL verification) and to read/write a local user profile at ~/.flyai/user-profile.md. Accessing a local user profile is plausible for personalization but can expose sensitive personal data; disabling TLS is not proportional and undermines transport security. The skill does not request external API keys, which is appropriate.
Persistence & Privilege
always:false and no special OS restrictions are good. The skill will persist user preferences (Qoder memory or local file) and create HTML files in the user's workspace and ~/.flyai — expected for this use case. The main privilege concern is the implied ability to install a global CLI (which may require elevated permissions) and to run a Browser Agent that can access arbitrary web content; these increase the blast radius if misused.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install flyai-copy-itinerary
  3. After installation, invoke the skill by name or use /flyai-copy-itinerary
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
- Added comprehensive function reference files covering FlyAI搜索、用户画像、关键字/Ai搜索等调用文档 - 拆分核心工作流与工具说明,主文档大幅简化,逻辑结构更清晰 - 新增异常处理、输入方式支持等章节,增强稳健性及用户体验 - 支持用户画像双通道获取与落盘,自动读取、保存个性偏好 - 输出格式、平台解析等实现文档化,便于自定义和二次开发
v1.0.1
flyai-copy-itinerary 1.0.1 Changelog - Added a new "路线优化与确认" (Route Optimization) phase: Now actively analyzes each itinerary for route inefficiencies (e.g. backtracking, scattered attractions, excessive commuting), and provides AI-powered route optimization suggestions. - Introduced a user confirmation step: Users can now choose between following the original itinerary sequence or adopting the optimized route plan. - Enhanced the overall conversion flow by requiring user selection after route analysis, improving customization and transparency. - Updated documentation to clearly outline the optimization logic, user prompts, and example flows. - No changes in code detected; all updates are in workflow and documentation.
v1.0.0
flyai-copy-itinerary v1.0.0 - 首次发布:将旅行攻略内容(小红书/抖音/携程等链接或文字)自动解析为可预订的个性化行程。 - AI提取并验证景点、住宿、航班、交通等信息,按用户出发地、人数、日期、预算定制调整。 - 针对每个节点,自动对接飞猪平台获取真实可订数据和预订链接。 - 支持HTML攻略文件生成,以及直接文本输出,方便保存和分享。 - 设计完善的用户信息(Memory)系统,持续记忆偏好提升体验。
Metadata
Slug flyai-copy-itinerary
Version 1.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is 一键抄作业?

一键抄作业攻略转化助手,把小红书/抖音/携程攻略链接丢进来,AI自动提取行程,调用飞猪填充真实航班、酒店、景点数据,生成可预订的个性化攻略。触发词:抄作业、攻略转行程、复制攻略、链接变行程、把这篇变成我的攻略、帮我抄这个、种草变攻略。 It is an AI Agent Skill for Claude Code / OpenClaw, with 113 downloads so far.

How do I install 一键抄作业?

Run "/install flyai-copy-itinerary" 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.2.

💬 Comments