← 返回 Skills 市场
liangnex

Tour Compare

作者 Liang · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
93
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install tour-compare
功能描述
专业旅游线路对比分析,支持多平台商品链接和截图,提供价格、行程、评分等多维度智能对比与个性化推荐。
安全使用建议
What to consider before installing or running this skill: - The code and docs match the described purpose (URL scraping, OCR, analysis), but the package will try to install node dependencies at runtime (compare.sh auto-runs npm install). Puppeteer (optional) will download Chromium; canvas/tesseract.js have native or large-assets requirements. If you run this on your machine, expect big downloads and possible native build steps. - SKILL.md contains unicode control characters (a prompt-injection signal). Treat this as suspicious: view the raw SKILL.md (hex/visible control-char safe viewer) and confirm there are no hidden instructions or data before running automated processes. - package-lock entries reference a non-standard registry mirror (registry.anpm.alibaba-inc.com). Prefer installing only from official registries or inspect package-lock and network traffic. Consider running npm install with a lockfile you trust or in a sandbox. - Do not run the demo script or compare.sh in an environment with sensitive data or unattended automation. demo.sh uses read -p and /dev/tty (interactive) which can hang or behave unexpectedly in non-interactive agents. compare.sh will install deps automatically — to avoid unexpected installs, run npm install manually after reviewing package.json and package-lock. - Run in an isolated sandbox (VM/container) or code-audit first: search for network endpoints, hard-coded URLs, exfiltration logic, or unexpected child_process.exec usage. Pay attention to any code that posts data to remote endpoints or runs arbitrary shell commands. - If you only need the comparison logic without crawling, use JSON-mode inputs (no network fetch) and avoid enabling puppeteer/optional deps. Consider disabling autonomous execution of the skill in your agent unless you reviewed/approved its behavior. - If you want to proceed, recommended steps: inspect SKILL.md raw, review src/crawler/ota-crawler.js and src/crawler/image-recognizer.js for any outbound endpoints, run npm install with a trusted registry and verify packages, and execute in a sandboxed environment.
功能分析
Type: OpenClaw Skill Name: tour-compare Version: 1.0.0 The skill bundle contains several high-risk patterns, most notably hardcoded absolute file paths referencing a specific local user directory (`/Users/zihui/`) in both `SKILL.md` and `src/ui/summary-template.js`. This presents a significant risk for path traversal or local information disclosure if the agent attempts to write reports to these locations. Additionally, the use of `puppeteer` in `src/crawler/ota-crawler.js` for web scraping without robust URL sanitization introduces potential SSRF (Server-Side Request Forgery) vulnerabilities. While these issues appear to be unintentional 'lazy' coding or leftover development configurations rather than intentional data exfiltration, the combination of arbitrary file writing and network crawling capabilities makes the bundle high-risk.
能力评估
Purpose & Capability
Name/description (旅游线路对比) matches the included code: crawler (ota-crawler.js), OCR (image-recognizer.js), analyzer and exporter. The declared capabilities (URL fetch, screenshot OCR, JSON input, PNG export) align with the code files and package.json optional deps (puppeteer, tesseract.js, canvas). No unrelated credentials or bizarre binaries are requested.
Instruction Scope
SKILL.md and docs instruct the agent to fetch arbitrary OTA product URLs, OCR user-provided screenshots, write HTML/PNG reports to file:///Users/zihui/.openclaw/workspace/..., and run local CLI scripts. The packaged scripts (compare.sh, demo.sh) will run node src/index.js and demo.sh uses read -p /dev/tty which can block automated runs. The SKILL.md also contains unicode control chars (prompt-injection signal). Overall the instructions go beyond purely stateless text processing (they instruct network fetches, filesystem writes, and local installs) — reasonable for this tool but should be executed with care and explicit consent.
Install Mechanism
There is no declared install spec in the registry metadata, but package.json and scripts expect npm installs. compare.sh will auto-run npm install if node_modules is missing, which causes dependencies (optional deps include puppeteer and canvas) to be fetched at runtime. Puppeteer will fetch Chromium (large binary) and canvas may require system libraries. package-lock references a non-standard registry mirror (registry.anpm.alibaba-inc.com) in some entries, increasing supply-chain observation risk. No direct arbitrary remote archive downloads were found, but implicit npm installs and Chromium downloads are a non-trivial runtime action.
Credentials
The skill requests no environment variables, no credentials, and no config paths in the registry metadata. The code and docs do not require API keys or other secrets. That is proportionate for a web-scraping/OCR/comparison tool. (Caveat: running npx clawhub publish examples or npx clawhub login noted in docs would require user tokens — these are optional publishing steps, not core to the skill's function.)
Persistence & Privilege
The skill is not 'always: true' and does not request elevated privileges. However it will write local report files (examples show a user-local file:// path) and the packaged demo/CLI will run npm install and write to the workspace. Autonomous invocation is allowed (default), which combined with the earlier concerns (auto-installs and prompt-injection markers) increases blast radius — consider requiring explicit user approval before running network installs or the crawler.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install tour-compare
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /tour-compare 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
tour-compare 1.0.0 - 首次发布,提供旅游线路横向智能对比与个性化分析 - 支持主流 OTA 链接、截图 OCR、JSON 多种输入方式 - 自动识别价格、天数、团型、酒店等核心维度差异 - 输出文字分析、可视化报告及相关决策引导 - 内置避坑提醒、人群画像适配和跨目的地对比功能
元数据
Slug tour-compare
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Tour Compare 是什么?

专业旅游线路对比分析,支持多平台商品链接和截图,提供价格、行程、评分等多维度智能对比与个性化推荐。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 93 次。

如何安装 Tour Compare?

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

Tour Compare 是免费的吗?

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

Tour Compare 支持哪些平台?

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

谁开发了 Tour Compare?

由 Liang(@liangnex)开发并维护,当前版本 v1.0.0。

💬 留言讨论