meituan-coupon-auto

自动领取美团优惠券。触发词: 领取美团优惠券, 运行美团优惠券技能, 设置每日自动领取, 查看优惠券, meituan coupon, 美团领券

3,891 stars

Best use case

meituan-coupon-auto is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

自动领取美团优惠券。触发词: 领取美团优惠券, 运行美团优惠券技能, 设置每日自动领取, 查看优惠券, meituan coupon, 美团领券

Teams using meituan-coupon-auto should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/meituan-coupon-auto/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/ayue-oss/meituan-coupon-auto/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/meituan-coupon-auto/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How meituan-coupon-auto Compares

Feature / Agentmeituan-coupon-autoStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

自动领取美团优惠券。触发词: 领取美团优惠券, 运行美团优惠券技能, 设置每日自动领取, 查看优惠券, meituan coupon, 美团领券

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# 美团优惠券自动领取

自动浏览器领取美团全部优惠券,**两次点击**解锁券明细弹窗,直接读取张数/总金额/分类明细。

## 验证数据
- 69张券,800元(2026-03-16 实测)
- 两次点击策略:第1次触发领取→页面跳转,第2次触发明细弹窗
- 覆盖:外卖神券 + 闪购券 + 堂食券 + 玩乐变美 + 生活服务

## 触发词
- "领取美团优惠券" / "美团领券" — 立即领取
- "运行美团优惠券技能" / "meituan coupon" — 运行技能
- "设置每日自动领取" — 设置定时任务
- "查看优惠券" — 查看今日领取记录

## 执行流程(5步)

### 步骤1:启动浏览器

```
browser(action=status, profile=openclaw)
# 未运行则先 start
browser(action=start, profile=openclaw)
```

### 步骤2:打开领券页(不等完整加载)

```
browser(action=open, profile=openclaw, url="https://click.meituan.com/t?t=1&c=2&p=mcB9ObxznZMn")
```

### 步骤3:等待页面就绪 + 第一次点击(触发领取)

等待2秒后执行第一次点击:

```
browser(action=act, kind=wait, timeMs=2000)
browser(action=act, kind=evaluate, fn="document.querySelector('.gundam-view.receive-btn, .receive-btn, [class*=\"receive-btn\"]')?.click()")
```

### 步骤4:等待页面跳转 + 第二次点击(触发明细弹窗)

等待2秒(等待页面跳转至 market.waimai.meituan.com),再点击一次触发明细弹窗:

```
browser(action=act, kind=wait, timeMs=2000)
browser(action=act, kind=evaluate, fn="document.querySelector('.gundam-view.receive-btn, .receive-btn, [class*=\"receive-btn\"]')?.click()")
```

### 步骤5:等待明细出现 + 读取快照 + 解析 + 关闭

```
browser(action=act, kind=wait, timeMs=2000)
browser(action=snapshot, profile=openclaw, compact=true)
→ 在快照中查找 "共X张券" / "总计Y元已到账" / 各优惠券明细
browser(action=stop, profile=openclaw)
```

## 快照解析规则

领取成功后,快照顶部会出现明细弹窗,格式如下:

```
共 69 张券, 总计 800 元已到账
¥17 满58可用 今日有效 外卖大额神券
¥12 满34可用 今日有效 外卖神券
¥5 满25可用 今日有效 闪购零食神券
...
```

解析逻辑(用 JS 或 regex 均可):

```javascript
// 从 snapshot text 提取汇总
const summary = text.match(/共\s*(\d+)\s*张券.*?总计\s*(\d+)\s*元已到账/);
// coupons = summary[1], totalValue = summary[2]

// 提取每张券明细(格式:¥金额 满X可用 有效期描述 类型名称)
const itemRe = /¥\s*(\d+)\s+(满\d+可用\s+)?(今日有效|有效期至[\d.]+|明日[\d:]+截止)\s+(.+)/g;
let m, items = [];
while ((m = itemRe.exec(text)) !== null) {
  items.push({ value: parseInt(m[1]), condition: m[2]?.trim() || '', validity: m[3], name: m[4].trim() });
}
```

## 输出格式(最终回复用户)

```
🛵 美团优惠券领取成功

📊 共 69 张券,总计 ¥800 已到账

🛵 外卖神券(今日有效)
  ¥17 满58可用 · 外卖大额神券
  ¥15 满38可用 · 外卖大额神券
  ¥12 满34可用 · 外卖神券

🛒 闪购券(今日有效)
  ¥35 满99可用 · 松鼠坚果
  ¥29 满109可用 · 闪购酒饮
  ... (其余汇总)

🍽️ 堂食/生活(至本周)
  ¥30 满300可用 · 堂食膨胀神券
  ...

⏱ 2026-03-16 13:18 | 今日有效券请尽快使用
```

## 状态检测

| 状态 | 识别关键词 | 处理 |
|------|-----------|------|
| ✅ 成功 | `共X张券.*总计Y元已到账` | 解析明细输出 |
| ⚠️ 需打开App | `请打开美团App继续查看` | 执行第二次点击 |
| 🔐 需登录 | `请输入手机号` / `登录` | 提示手动登录后重试 |
| ✋ 已领取 | `剩余 0 次` / `已领取` | 回复"今日已领过" |
| 🔥 太火爆 | `太火爆` | 提示30分钟后重试 |

## 选择器降级顺序

| 优先级 | 选择器 | 说明 |
|--------|--------|------|
| 1 | `.gundam-view.receive-btn.vyx6l` | 精确class(常用) |
| 2 | `.receive-btn` | 模糊class |
| 3 | `[class*="receive-btn"]` | 更宽松 |
| 4 | `innerText === '立即领取'` | 文本降级 |

## 定时任务(每天 10:00 & 13:18)

```json
{
  "name": "美团每日领券",
  "schedule": { "kind": "cron", "expr": "18 13 * * *", "tz": "Asia/Shanghai" },
  "payload": { "kind": "systemEvent", "text": "⏰ 定时提醒:领取美团优惠券" },
  "sessionTarget": "main",
  "delivery": { "mode": "none" }
}
```

> ⚠️ 必须使用 `sessionTarget: "main"` + `payload.kind: "systemEvent"`。
> 使用 `isolated` + `announce` 在无外部渠道(Telegram/Discord)时会报错:
> `Channel is required (no configured channels detected)`

## 领券页面地址

```
https://click.meituan.com/t?t=1&c=2&p=mcB9ObxznZMn
```
覆盖:外卖神券 · 闪购券 · 堂食券 · 玩乐变美 · 生活服务 · 医疗 · 超市

---

> 📋 实测记录(2026-03-16):
> - [x] 两次点击策略验证:第1次→页面跳转至 market.waimai.meituan.com,第2次→明细弹窗出现
> - [x] 成功读取:69张券 / ¥800 / 含外卖、闪购、堂食、玩乐变美等分类
> - [x] 每次点击后 wait 2000ms 确保页面稳定
> - [x] compact snapshot 可清晰读取券明细列表

Related Skills

agent-autonomy-kit

3891
from openclaw/skills

Stop waiting for prompts. Keep working.

Workflow & Productivity

n8n Workflow Mastery — Complete Automation Engineering System

3891
from openclaw/skills

You are an expert n8n workflow architect. You design, build, debug, optimize, and scale n8n automations following production-grade methodology. Every workflow you create is complete, functional, and follows the patterns in this guide.

Workflow & Productivity

Insurance Operations Automation

3891
from openclaw/skills

Comprehensive insurance operations framework for AI agents. Covers the full insurance lifecycle — underwriting, claims, policy management, renewals, compliance, and broker operations.

Workflow & Productivity

afrexai-business-automation

3891
from openclaw/skills

Turn your AI agent into a business automation architect. Design, document, implement, and monitor automated workflows across sales, ops, finance, HR, and support — no n8n or Zapier required.

Workflow & Productivity

Business Automation Strategy — AfrexAI

3891
from openclaw/skills

> The complete methodology for identifying, designing, building, and scaling business automations. Platform-agnostic — works with n8n, Zapier, Make, Power Automate, custom code, or any combination.

Auto Repair Shop Operations

3891
from openclaw/skills

Complete operational reference for independent auto repair shops. Covers labor rates, parts markup, ASE certification, EPA compliance, diagnostic workflows, flat rate times, KPIs, technician compensation, equipment costs, and growth playbook from solo shop to multi-location.

AI Automation Agency Blueprint

3891
from openclaw/skills

You are an AI Automation Agency strategist. Help the user build, price, sell, and scale an AI agent services business — from solo consultant to 7-figure agency. Every recommendation must be specific, actionable, and backed by real economics.

Business Strategy & Growth

Accounts Payable Automation Framework

3891
from openclaw/skills

You are an AP process optimizer. When the user describes their payable workflows, vendor relationships, or payment processes, generate a complete accounts payable management framework.

Workflow & Productivity

agent-autopilot

3891
from openclaw/skills

Self-driving agent workflow with heartbeat-driven task execution, day/night progress reports, and long-term memory consolidation. Integrates with todo-management for task tracking.

Workflow & Productivity

n8n-workflow-automation

3891
from openclaw/skills

Designs and outputs n8n workflow JSON with robust triggers, idempotency, error handling, logging, retries, and human-in-the-loop review queues. Use when you need an auditable automation that won’t silently fail.

Workflow & Productivity

autoresearch-pro

3891
from openclaw/skills

Automatically improve OpenClaw skills, prompts, or articles through iterative mutation-testing loops. Inspired by Karpathy's autoresearch. Use when user says 'optimize [skill]', 'autoresearch [skill]', 'improve my skill', 'optimize this prompt', 'improve my prompt', 'polish this article', 'improve this article', or explicitly requests quality improvement for any text-based content. Supports three modes: skill (SKILL.md files), prompt (any prompt text), and article (any document).

Workflow & Productivity

auto-respawn

3891
from openclaw/skills

Your agent always comes back. Anchor identity and memory on-chain so any new instance can resurrect from just an address — no local state, no single point of failure. Permanent identity and recovery on the Autonomys Network.

Agent Orchestration & Management