← 返回 Skills 市场
美团红包助手
作者
Meituan-OpenPlatform
· GitHub ↗
· v1.0.9
· MIT-0
268
总下载
0
收藏
0
当前安装
10
版本数
在 OpenClaw 中安装
/install meituan-coupon
功能描述
【美团官方】美团红包助手,支持外卖、餐饮团购、酒店住宿、门票度假、休闲娱乐、闪购、医药等多品类优惠券/红包/神券的一键领取与历史领取记录查询。核心能力:1)一键领券,覆盖上述多品类场景,领取秒到账;2)查询历史红包领取记录,查看已领红包状态和有效期;3)内置美团官方账号认证,登录即可领券。重要说明:如存在多个美团...
安全使用建议
该 Skill 在功能上与“美团领券”声明一致,但有几点需要您确认/注意后再安装:
- 迁移与共享 token:脚本包含“迁移旧 token”的逻辑,会读取默认路径(例如 ~/.xiaomei-workspace 下的文件以及 ~/.openclaw/workspace/auth_tokens.json 等)。若您在这些位置保留了其他 Skill 或平台的认证信息,Skill 可能会读取并将其写入自己的共享缓存(mt_auth_tokens.json)。确认您是否允许该 Skill 访问并迁移这些本地认证文件。
- 本地持久化与脱敏约束:Skill 会在本地写入用户的 user_token/device_token 和历史记录(skills_local_cache/.shared/mt_auth_tokens.json、mt_ods_coupon_history.json 等)。文档要求不要在外部上传完整 token,但在本地存储仍然存在敏感信息泄露风险。请在可信设备/隔离环境中运行,或检查并审计写入文件的内容和权限。
- 定时任务(自动化)能力:Skill 的说明中包含自动创建跨平台 cron job 的流程。一旦启用,Skill 会定期在无交互情况下运行发券流程。只有在您信任该 Skill 且理解自动触发带来的后果(例如频繁调用外部接口、长期持有 token)时才启用该功能。
- 运行前建议:审阅 scripts/* 源码(已包含在包内),确认 BASE_URL、config.json 中的 subChannelCode 与您期望的渠道一致;检查并备份任何存在于 ~/.xiaomei-workspace 或 ~/.openclaw/workspace 的 auth 文件,避免意外迁移不应共享的凭据;在受控环境(非生产/无敏感凭据)中先做一次手动测试。
- 若您不接受迁移行为或不希望 Skill 自动操控定时任务,请在安装/运行前询问提供者是否能禁用迁移与定时相关逻辑,或仅手动运行 issue.py/query.py 而不启用自动化流程。
功能分析
Type: OpenClaw Skill
Name: meituan-coupon
Version: 1.0.9
The skill bundle is a well-engineered tool for automating Meituan coupon collection, showing no signs of malicious intent. It handles sensitive user data (phone numbers and tokens) by storing them strictly in a local workspace (~/.xiaomei-workspace) and communicating only with official Meituan endpoints (peppermall.meituan.com). The SKILL.md contains 'Critical Rules' that explicitly forbid uploading privacy data to third parties and mandate local-only storage. The inclusion of a robust local cache manager (skill_cache_cli.py) and transparently documented cron-based persistence for automated tasks further aligns with its stated purpose without employing obfuscation or unauthorized data exfiltration.
能力评估
Purpose & Capability
名为“美团红包助手”的 Skill 所包含的脚本(auth.py, issue.py, query.py 等)与其声明的功能(登录、发券、查询历史)相符;使用官方域名 BASE_URL 也符合预期。但实现里包含“迁移旧版 token”的逻辑,会遍历并读取多个历史路径(包括 ~/.openclaw/workspace/auth_tokens.json 等),即会尝试访问其他平台/其他 Skill 的认证文件以迁移数据——这超出单纯“本 Skill 管理自己 token”的最小权限预期,值得注意与确认。
Instruction Scope
SKILL.md 强制代理每次实际执行本地脚本、静默检查并可能创建/操控定时任务、并要求从会话上下文提取 USER_ID 来创建平台级 cron job。说明中还指示读取/写入本地持久化 token/history 文件及调用外部平台命令(CronCreate/RemoteTrigger/openclaw cron add)。这些步骤会导致广泛的本地文件访问、持久化更改以及跨平台调度行为——超出仅“回答/查询优惠券”所需的狭义范围,且对代理授予了较大操作自由。
Install Mechanism
没有下载或运行外部二进制、也无 install spec;所有代码都随 Skill 一并提供并在本地以 Python 脚本运行。相比通过远程 URL 下载可执行文件,该方式风险较低,但仍需要在主机上执行未审计脚本。
Credentials
注册元数据声明不需要任何环境变量或凭据,但脚本会读取/使用多种环境变量(SKILL_CACHE_WORKSPACE, XIAOMEI_AUTH_FILE, SKILL_CACHE_CLI_PATH, SKILL_CACHE_PYTHON 等)作为可选配置,并会读写共享缓存文件(skills_local_cache/.shared/mt_auth_tokens.json)以及兼容性迁移时访问旧路径(~/.xiaomei-workspace、~/.openclaw/workspace/auth_tokens.json)。特别是迁移逻辑会读取其他位置的 auth_tokens.json,这可能导致该 Skill 获得并搬移不止本 Skill 的认证数据——这在权限上超出“仅管理本 Skill 的凭据”的合理范围。
Persistence & Privilege
Skill 本身没有设置 always:true,但 SKILL.md 明确包含创建平台级定时任务(cron)以实现每日自动领券的完整流程,且指示代理在不同平台上调用具体的 cron 创建/保存命令。虽然这需要用户确认/同意(文档描述了交互),一旦代理按文档创建定时任务,Skill 将获得长期自动执行的效果。结合上文中对共享 token 文件的写入,这是需要谨慎授权的持久化能力。
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install meituan-coupon - 安装完成后,直接呼叫该 Skill 的名称或使用
/meituan-coupon触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.9
meituan-coupon 1.0.9
- 全面重构并规范化 SKILL.md,完善执行规则、环境探测、时区处理和意图识别流程
- 新增 references/auth-flow.md、cron-rules.md、response-copy.md,分离协议确认、定时任务和话术模板说明
- 新增 scripts/common.py、skill_cache_cli.py 增强脚本功能和 CLI 支持
- 账号协议(terms-of-service)迁移到 references/auth-flow.md,原文件已移除
- 更新和细化认证、发券、查询历史、异常处理等流程规范,统一用户输出模板
- 加强安全与合规约束,完整覆盖美团各消费场景和平台适配路径
v1.0.8
**服务协议确认和法律合规全面升级,体验流程及合规要求大幅更新:**
- 新增服务协议确认流程,所有用户在首次使用前需确认并接受《Skill服务使用规则》,流程含协议查阅、接受/拒绝、撤销管理(见 references/terms-of-service.md)。
- 修改 Skill 名称描述,更贴合官方定位(如 displayName、description 名称文本变更)。
- 优化对 is_first_issue 字段的处理,严格区分首次/重复领取时的用户提示,避免信息误导。
- 新增时区检查要求,明确所有时间参数需以北京时间(UTC+8)为准,防止跨时区领券日期出错。
- 完善错误和分支流程说明、脚本返回值处理与用户交互指引。
- 增加对协议接受状态的存储及撤销逻辑说明,确保合规持久化。
v1.0.7
No file changes detected.
- No changes were made to the code or documentation in this version.
- Functionality, documentation, and version remain the same as the previous release.
v1.0.6
meituan-coupon 1.0.6
- Improved: Updated authentication logic in `auth.py` for enhanced reliability.
- Fixed: Bug fixes in `issue.py` and `query.py` to improve coupon issuance and history query stability.
- Maintenance: Code clean-up across core scripts for better maintainability and performance.
v1.0.5
**Changelog for meituan-coupon 1.0.5**
- Updated version and endpoint references in documentation (SKILL.md), including version and public URL details, to reflect latest deployment standards.
- Changed naming: displayName is now “美团优惠领取工具” (was “美团红包助手”).
- Adjusted examples and documentation wording for clarity (e.g., 优惠券 → 优惠).
- Improved privacy and device token handling instructions in SKILL.md.
- Minor corrections to usage notes, history description, and help messaging for account/device management.
- Internal scripts updated to align with recent documentation changes and improved version checks.
v1.0.4
## meituan-coupon 1.0.4 Changelog
- Skill名称更改为“meituan-coupon”,显示名更新为“美团红包助手”。
- 认证流程安全验证说明优化:“send-sms”返回安全验证跳转链接时,必须使用 JSON 输出字段,不得拼装链接。
- 相关文档中关于美团 App 优惠券入口描述更精确,由「我的-优惠券」修订为「我的-红包卡券」。
- 修正和补充了认证流程的跳转、错误处理及提示文案细节。
- 版本号从 1.0.0-SNAPSHOT/1.0.3 更新为 1.0.4,文档保持同步。
v1.0.3
- Renamed the skill from "meituan-coupon" to "meituan-coupon-get-tool" and updated displayName/description for clarity.
- Added and clarified a mandatory rule: when coupon issuance fails (success=false), an explicit failure message must be shown to the user, and the process must stop immediately—do not proceed to historical query (Step 3) unless explicitly requested by the user.
- Updated documentation to emphasize proper error handling sequence, preventing confusion between issuance failure and historical record display.
- Improved instructions and notice sections to ensure correct and secure usage flow.
v1.0.2
- Major update: Skill now focuses on coupon issuance and redemption history, with built-in Meituan account authentication.
- Adds support for direct coupon issuance (指定券领取) and querying historical coupon redemption records.
- Introduces full onboarding and authentication flow; users log in and verify via SMS directly within the Skill.
- Removes dependency on external authentication Skills; now uses internal scripts/auth.py for all login and token handling.
- Provides robust error handling and clearer end-user prompts for all major success and failure cases.
- Strongly enforces parameter security and execution flow integrity, prohibiting any external modification of key configs.
- Adds four new scripts: auth.py, issue.py, query.py, and config.json for core operations.
v1.0.1
Version 1.0.1 improves clarity and expands feature descriptions:
- Updated documentation to detail core features and usage instructions for querying,筛选, and管理美团优惠券.
- Added trigger word examples and step-by-step user interaction flows for querying lists, filtering coupons, and highlighting expiring coupons.
- Clarified user authentication requirements and error handling scenarios.
- Expanded the coverage of supported use cases for greater flexibility.
- Removed the MVP placeholder messaging, signaling readiness for production use.
v1.0.0
meituan-coupon 1.0.0 – Initial Release
- Introduced a tool for querying and managing Meituan coupons.
- Provides friendly guidance when users ask about their coupons, current status, or expiring offers.
- Core features announced (query list, view details, filter usable/expiring coupons) but not yet active—users are informed functionality is under development.
- Directs users to check coupons in the Meituan App during MVP phase.
元数据
常见问题
美团红包助手 是什么?
【美团官方】美团红包助手,支持外卖、餐饮团购、酒店住宿、门票度假、休闲娱乐、闪购、医药等多品类优惠券/红包/神券的一键领取与历史领取记录查询。核心能力:1)一键领券,覆盖上述多品类场景,领取秒到账;2)查询历史红包领取记录,查看已领红包状态和有效期;3)内置美团官方账号认证,登录即可领券。重要说明:如存在多个美团... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 268 次。
如何安装 美团红包助手?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install meituan-coupon」即可一键安装,无需额外配置。
美团红包助手 是免费的吗?
是的,美团红包助手 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
美团红包助手 支持哪些平台?
美团红包助手 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 美团红包助手?
由 Meituan-OpenPlatform(@meituan-openplatform)开发并维护,当前版本 v1.0.9。
推荐 Skills