← 返回 Skills 市场
totti10hj

携程积分助手

作者 totti10hj · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
269
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install ctrip-points
功能描述
管理携程积分,查询余额、查看和推荐积分商城商品,自动监控新品并推送超值兑换提醒。
使用说明 (SKILL.md)

携程积分助手 (Ctrip Points)

一个帮你管理携程积分的 OpenClaw skill。

功能

  1. 查询积分余额 - 获取当前账户积分总数和估值
  2. 查看可兑换商品 - 浏览积分商城可兑换的商品
  3. 推荐商品 - 根据积分余额推荐最值得兑换的商品
  4. 自动监控新品 - 每天自动检查积分商城新上架的商品(通过 cron)
  5. 推送通知 - 发现超值商品或新品时主动推送给你

使用方法

在 OpenClaw 中直接使用

直接对我说:

  • "查询我的携程积分"
  • "查看积分商城商品"
  • "我有什么可兑换的"
  • "推荐一些商品"
  • "检查携程积分商城新品"

命令行使用

# 进入脚本目录
cd ~/.openclaw/skills/ctrip-points/scripts

# 查询积分
python3 ctrip.py points

# 查看商品列表
python3 ctrip.py products

# 查看可兑换商品(买得起的)
python3 ctrip.py affordable

# 推荐商品
python3 ctrip.py recommend

# 设置积分(手动更新)
python3 ctrip.py set-points \x3C数量>

# 添加商品到列表
python3 ctrip.py add-product "\x3C商品名称>" \x3C积分>

# 检查新品
python3 ctrip.py check-new

# 更新全部数据(需要Cookie)
python3 ctrip.py update

数据存储

  • Cookie: ~/.openclaw/data/ctrip-cookie.txt
  • 商品列表: ~/.openclaw/data/ctrip-products.json
  • 积分余额: ~/.openclaw/data/ctrip-points.json

自动任务

已设置 cron 任务,每天早上 9:00 自动检查积分商城新品,发现新商品会通过飞书推送。

查看 cron 任务:

openclaw cron list

依赖

  • Python 3
  • 无需额外依赖(使用内置模块)

注意事项

  1. 积分数据可能有延迟,以携程官方为准
  2. 手动更新积分请使用 set-points 命令
  3. 自动更新需要 Cookie(可选)

发布到 ClawHub

cd ~/.openclaw/skills/ctrip-points
npx clawhub@latest publish

License

MIT

安全使用建议
This skill appears to be a simple local Ctrip-points manager: it reads/writes files under ~/.openclaw/data and provides CLI commands for viewing and editing points and products. However, the README/ SKILL.md claims automated daily checks and Feishu push notifications — the shipped script does not implement network access or push logic and does not declare any Feishu token or other credentials. Before installing, consider: - If you expect automatic monitoring and notifications, understand that the current code only contains placeholders — automation and push would require adding network code and storing credentials (e.g., Feishu webhook/token), which are not present or declared here. - The skill will create and modify files in ~/.openclaw/data (ctrip-cookie.txt, ctrip-products.json, ctrip-points.json); review these files and the script to ensure you are comfortable with local storage of any cookies or tokens you might add manually. - If you need the promised automation, either request the author clarify and supply secure credential handling, or inspect/modify the script yourself to safely implement the push (avoid hardcoding secrets). Given the mismatched documentation vs. implementation, treat this as potentially sloppy or incomplete rather than outright malicious — but verify or fix automation/credential handling before relying on automatic notifications.
功能分析
Type: OpenClaw Skill Name: ctrip-points Version: 1.0.0 The skill is a local management tool for Ctrip points and product data. The Python script (ctrip.py) performs basic file I/O on local JSON files and lacks any networking capabilities, sensitive data exfiltration logic, or suspicious execution patterns. While the documentation (SKILL.md) mentions cookies and automated notifications, the actual implementation is manual and contains no malicious instructions or high-risk behaviors.
能力评估
Purpose & Capability
Name and description (manage Ctrip points, view/recommend products) align with the included script: local storage, listing, recommending, and manual update. However, SKILL.md promises automated monitoring and push notifications which the script does not implement.
Instruction Scope
SKILL.md instructs cron-based daily checking and Feishu push for new/valuable items, but the script's check/update functions are placeholders and contain no network calls or push logic. The documentation therefore overstates runtime behaviour and scope.
Install Mechanism
Instruction-only skill with one Python script; no install spec, no remote downloads, and no external packages required. Low installation risk.
Credentials
No environment variables or credentials are declared, yet SKILL.md claims push notifications via Feishu (which would require tokens/credentials). The absence of declared credentials is inconsistent with the claimed automated push feature.
Persistence & Privilege
always:false and no system-wide changes. The skill writes data only to ~/.openclaw/data (cookie, products, points) which is proportionate to its stated local storage needs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ctrip-points
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ctrip-points 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
携程积分助手 (Ctrip Points) 1.0.0 首发版本 - 新增携程积分余额查询功能,包括积分总数和估值。 - 支持浏览和筛选积分商城可兑换商品。 - 根据积分余额推荐最值得兑换的商品。 - 自动监控积分商城新品,每天定时检查并推送通知。 - 提供命令行工具,支持商品和积分管理、数据更新等操作。
元数据
Slug ctrip-points
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

携程积分助手 是什么?

管理携程积分,查询余额、查看和推荐积分商城商品,自动监控新品并推送超值兑换提醒。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 269 次。

如何安装 携程积分助手?

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

携程积分助手 是免费的吗?

是的,携程积分助手 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

携程积分助手 支持哪些平台?

携程积分助手 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 携程积分助手?

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

💬 留言讨论