← 返回 Skills 市场
美团优惠券
作者
Meituan-OpenPlatform
· GitHub ↗
· v1.0.4
· MIT-0
159
总下载
0
收藏
0
当前安装
5
版本数
在 OpenClaw 中安装
/install waimai-coupon
功能描述
美团优惠领取工具,为用户提供更多的美团优惠,使用户在美团可以获得更好的体验。一期支持:指定券领取(发放美团优惠券)和历史领券记录查询。内置美团账号认证,无需额外安装其他 Skill。当用户输入「领取美团权益」、「领美团券」、「我要领券」、「领优惠券」、「美团发券」、「美团优惠」、「美团红包」、「外卖红包」、「外卖...
安全使用建议
此 Skill 的代码与说明总体一致 —— 它会要求并存储你的手机号/短信验证码产生的 user_token,然后用该 token 向美团官方接口(peppermall.meituan.com)请求发券与查询记录。建议在安装/运行前注意:
- 如果你担心凭据隔离,可在运行前设置环境变量 XIAOMEI_AUTH_FILE 和 XIAOMEI_COUPON_HISTORY_FILE 指定临时路径(如 /tmp/...),避免写入默认用户主目录。SKILL.md 已说明如何覆盖这些路径。
- 脚本将 token 存在 auth_tokens.json 下的固定键("meituan-c-user-auth"),这会使同一宿主用户下的其他 Skill(若也读该文件)复用该 token;如果你不希望跨 Skill 共享认证,请使用自定义 XIAOMEI_AUTH_FILE 并仅对本 Skill 暴露。
- Skill 会向 clawhub.ai 请求公开页面以做版本比对;这不会包含你的凭据,但会使 agent 与外网通信。确保你在受信任的 agent 环境中运行并已审阅脚本源码。
- 如果不熟悉代码或不信任来源,最好在隔离环境(临时容器、受限用户帐户或 CI 沙箱)中先试用,或要求开发者/发布方提供更多来源与审核信息。
能力评估
Purpose & Capability
Skill 名称/描述、SKILL.md 中的运行步骤与代码文件一致:脚本调用美团域名(peppermall.meituan.com)完成 token 校验、发送短信、发券与查询。没有要求与功能无关的云凭据、系统服务或额外二进制。
Instruction Scope
运行说明明确要求用本地 Python 执行三个脚本,按流程向用户询问手机号与验证码并展示结果。脚本会读/写本地的 token 与历史文件以实现持久化,这与声明的“内置认证与历史记录查询”功能一致。没有发现说明中要求读取无关系统文件或发送数据到非声明的域名(除版本检查使用 clawhub.ai 页面)。
Install Mechanism
Skill 为 instruction-only(无安装 spec),但包含可执行的 Python 源码文件并期望在 agent 环境中直接运行。这降低了 install 安全管理的可见性——需确保运行环境中 Python 可用且源码来源可信。版本检查步骤会让 agent 使用 WebFetch 访问 clawhub.ai(公开页面)。
Credentials
在 registry metadata 中没有声明必须的环境变量或凭据,脚本支持通过可选环境变量(XIAOMEI_AUTH_FILE、XIAOMEI_COUPON_HISTORY_FILE、CLAUDE_CONFIG_DIR 等)覆盖存储路径,这对隔离是有利的。需要注意:脚本会在本地持久化 user_token 和 device_token,并使用固定的 AUTH_KEY("meituan-c-user-auth")来共享 token(即不同 Skill 可能复用同一 token),这可能导致跨 Skill 的凭据共享。
Persistence & Privilege
Skill 会在用户主目录下创建 ~/.xiaomei-workspace/auth_tokens.json 与 mt_ods_coupon_history.json(可被环境变量覆盖),并尝试设置 0600 权限以限制访问。always:false,默认仅在被调用时运行。持久化是功能所需但会在磁盘上保存认证信息,用户应知悉持久化位置与共享 key 的含义。
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install waimai-coupon - 安装完成后,直接呼叫该 Skill 的名称或使用
/waimai-coupon触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.4
No functional or documentation changes in this version.
- Version updated to 1.0.4.
- File and content remain unchanged from the previous release.
v1.0.3
Version 1.0.3
- Renamed skill from "meituan-coupon-get-tool" to "meituan-coupon".
- Updated version number references and URLs to match the new skill name.
- Enhanced安全验证限流(SMS安全验证)流程,明确要求从 JSON 输出读取 redirect_url 字段,优化用户引导语和异常处理。
- 增加「账号管理」说明,支持「退出登录」与「清除设备标识」等操作,并完善隐私与本地数据说明。
- 相关文档、流程与错误处理细则同步调整和优化。
v1.0.2
**Changelog for waimai-coupon 1.0.2**
- Strengthened error handling: Added mandatory guidance to explicitly display failure reasons to the user when issuing coupons fails (success=false), and clarified that the flow must stop after a failed issuance.
- Updated documentation: Refined wording and examples to clarify that historical coupon query (Step 3) should only occur when the user explicitly requests it, and not automatically after a failed issuance.
- Renamed internal skill name and displayName from “美团外卖红包领取” to “美团优惠领取工具”.
- Minor corrections and clearer warnings to prevent user confusion and inappropriate script invocation order.
v1.0.1
- Renamed and repositioned the skill as "meituan-waimai-coupon" with a focus on Meituan Waimai (food delivery) coupon issuance and history query.
- Added internal authentication module (auth.py) eliminating the need for external Skill dependencies.
- Introduced scripts for coupon issuance (issue.py), querying history (query.py), and configuration (config.json).
- Expanded documentation with detailed step-by-step instructions for version checking, authentication flow, coupon issuance, and history query.
- Included robust error handling and security guidelines to prohibit external parameter overrides.
v1.0.0
- Initial release of the 美团优惠券工具 (meituan-coupon).
- Supports viewing, filtering, and managing Meituan coupons after user authentication.
- Allows querying coupon lists, filtering by type, amount, and expiry date.
- Highlights soon-to-expire coupons with clear formatting.
- Handles common error scenarios including authentication and no available coupons.
元数据
常见问题
美团优惠券 是什么?
美团优惠领取工具,为用户提供更多的美团优惠,使用户在美团可以获得更好的体验。一期支持:指定券领取(发放美团优惠券)和历史领券记录查询。内置美团账号认证,无需额外安装其他 Skill。当用户输入「领取美团权益」、「领美团券」、「我要领券」、「领优惠券」、「美团发券」、「美团优惠」、「美团红包」、「外卖红包」、「外卖... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 159 次。
如何安装 美团优惠券?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install waimai-coupon」即可一键安装,无需额外配置。
美团优惠券 是免费的吗?
是的,美团优惠券 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
美团优惠券 支持哪些平台?
美团优惠券 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 美团优惠券?
由 Meituan-OpenPlatform(@meituan-openplatform)开发并维护,当前版本 v1.0.4。
推荐 Skills