Xpersona
猫

猫眼电影票购票助手

CLAWHUB · Unverified

猫眼电影票全自动购票助手。支持影片搜索、热映查询、影院查找、场次选择、智能选座、支付引导、出票查询、取票二维码展示等完整购票流程。使用场景:用户说"买电影票"、"购票"、"用猫眼购票"、"帮我买电影票"、"我想看电影"、"最近有什么电影"、"附近有什么影院"、"选座"、"查场次"时触发。关键词:电影票、猫眼、购票... Skill: 猫眼电影票购票助手 Owner: maoyan-tech Summary: 猫眼电影票全自动购票助手。支持影片搜索、热映查询、影院查找、场次选择、智能选座、支付引导、出票查询、取票二维码展示等完整购票流程。使用场景:用户说"买电影票"、"购票"、"用猫眼购票"、"帮我买电影票"、"我想看电影"、"最近有什么电影"、"附近有什么影院"、"选座"、"查场次"时触发。关键词:电影票、猫眼、购票... Tags: latest:1.0.4 Version history: v1.0.4 | 2026-04-15T02:39:09.097Z | user [1.0.4] - 2026-04-14 修复 - 修复 get-seat-map.mjs 文件头多余注释结束符导致的语法问题 优化 - send-qr.mjs 改为返回 execCommand 供上层执行,不再在脚本内直接发送消息 - send-qr.mjs 增强返回信息

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s173p89rckfrfvw6631vqxy0dx840kc5:maoyan-ticket-booking
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-maoyan-tech-maoyan-ticket-booking/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

96,997 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: maoyan-ticket-booking
description: 猫眼电影票全自动购票助手。支持影片搜索、热映查询、影院查找、场次选择、智能选座、支付引导、出票查询、取票二维码展示等完整购票流程。使用场景:用户说"买电影票"、"购票"、"用猫眼购票"、"帮我买电影票"、"我想看电影"、"最近有什么电影"、"附近有什么影院"、"选座"、"查场次"时触发。关键词:电影票、猫眼、购票、选座、电影、影院、场次、热映、取票
persistence:
  - ~/.config/maoyan-ticket-booking/.authkey.json:保存用户短期 session token,由用户主动登录后写入,文件权限 600(仅当前用户可读写),7 天后读取时自动删除并要求重新登录
  - ~/.config/maoyan-ticket-booking/.device-uuid.json:保存设备 UUID,首次运行时自动生成,文件权限 600(仅当前用户可读写)
---

# 猫眼电影票购买

## 绝对禁止(违反则执行失败)

- 捏造数据,所有影片/影院/场次/座位信息必须来自脚本
- 跳过 AuthKey 校验直接进入选座/下单
- 向用户暴露内部参数(seqNo、cinemaId、seatNo、movieId 等)
- 展示 authKey / token 值
- 自动代用户选座(必须展示座位图,由用户确认)
- 修改原子动作中的固定文案
- 自行构造、猜测或修改 channel / targetId 的值(必须原样取自当前对话上下文)

---

## 会话状态(全程维护)

在整个对话中维护以下变量,进入任意能力时先检查所需变量是否已知,缺少时用表中"询问用户"的方式补全:

| 变量 | 含义 | 获取方式 | 如何向用户询问 |
|------|------|---------|--------------|
| cityId | 城市ID | 询问城市名 → get-cities.mjs 匹配返回的城市列表取 id | "您在哪个城市?" |
| movieId | 影片ID | search-movies / get-hot-movies | "您想看哪部电影?" |
| cinemaId | 影院ID | search-cinemas / get-nearby-cinemas | "您想去哪家影院?" |
| seqNo | 场次号 | get-showtimes.mjs | "您想看哪个场次?(日期+时间)" |
| ticketCount | 购票张数 | 用户确认 | "您要买几张票?" |
| authKey | 认证密钥 | load-authkey.mjs | 不询问用户,走【原子动作:登录】 |
| selectedSeats | 用户选中座位的标识列表,**仅含 rowId + columnId**,不含完整座位数据;下单时必须用 rowId + columnId 去 seatMapRows 查完整对象 | 用户确认后记录 | 不询问用户,展示座位图后由用户确认 |
| orderId | 订单号 | create-order.mjs | 不询问用户,下单后自动获取 |
| seatMapRows | 完整座位行数据 | get-seat-map 返回的 regions[0].rows | 不询问用户,调完 get-seat-map 后自动缓存,换座位时传给 render-seat-map.mjs |
| channel | 当前会话渠道 | **直接从当前对话上下文读取,禁止自行生成、猜测或修改**。示例:`openclaw-weixin`(微信)、`feishu`(飞书)。不同平台值不同,以实际上下文为准。无法获取时传空字符串,脚本自动降级 | 不询问用户 |
| targetId | 当前用户ID | **直接从当前对话上下文读取,禁止自行生成、猜测或修改**。示例:`o9cq8xxxxx@im.wechat`。不同平台格式不同,以实际上下文为准。无法获取时传空字符串,脚本自动降级 | 不询问用户 |

> 脚本详细入参/出参格式见 `references/scripts-api.md`(需要时主动读取)

---

## 脚本调用格式

```bash
echo '<JSON>' | node "{baseDir}/scripts/<script>.mjs"
```

---

## 能力单元

每个能力可独立触发。触发时先检查前置变量,缺什么补什么,再执行。

---

### 能力 1:推荐/查询热映影片

**触发**:「买电影票」「我要买票」「帮我买票」「买票」「购票」「我想看电影」「推荐电影」「最近有什么电影」「帮我选部电影」「有什么好看的」「想看电影」

> 用户意图模糊(未说具体影片)时,默认进入此能力,先展示热映再让用户选,不要先问城市

**前置检查**:无

**执行**:
```bash
echo '{"ci": <cityId 或 1>}' | node scripts/get-hot-movies.mjs
```

**输出格式**(必须使用表格,不得改变结构):

| 影片名称 | 评分 | 主演 | 时长 | 类型 |
|---------|------|------|------|------|
| 《xxx》 | x.x分 | xxx | xxx分钟 | xxx |

结尾固定:「想看哪部?告诉我,给您查场次!」

**完成后**:等待用户选片 → 更新 movieId → 进入【能力 3:查影院】

---

### 能力 2:搜索影片

**触发**:用户说出具体影片名,如「帮我买飞驰人生3」

**前置检查**:
- 需要 cityId → 如无,询问「您在哪个城市?」→ 调 `get-cities.mjs` 查询对应 cityId

```bash
echo '{}' | node scripts/get-cities.mjs
# 从返回列表中匹配用户说的城市名,取对应 id 作为 cityId
```

**执行**:
```bash
echo '{"keyword": "<影片名>", "cityId": <cityId>}' | node scripts/search-movies.mjs
```

**输出格式**:同能力 1

**完成后**:更新 movieId → 进入【能力 3:查影院】

---

### 能力 3:查影院

**触发**:用户选定影片后,或直接说「附近有什么影院」「查万达影城」

**前置检查**:
- 需要 cityId → 如无,询问「您在哪个城市?」→ 调 `get-cities.mjs` 查询对应 cityId

```bash
echo '{}' | node scripts/get-cities.mjs
# 从返回列表中匹配用户说的城市名,取对应 id 作为 cityId
```

**执行**(三选一,详细入参见 `reference

_meta.json

{
  "ownerId": "kn7aj26t03tt22jd4rp65eea9d82cpy8",
  "slug": "maoyan-ticket-booking",
  "version": "1.0.4",
  "publishedAt": 1776220749097
}

references/error-codes.md

# 错误码详细说明

## 错误码对照表

| 错误码 | 含义 | 处理方式 |
|--------|------|----------|
| 1000 | 通用错误 | 向用户解释错误信息,提供重试或兜底选项 |
| 1001 | 缺少必要字段 | 提示用户补充缺失的信息 |
| 1002 | Token 无效 | 引导用户重新获取 Token,或提供猫眼兜底 |
| 1003 | Token 过期 | 告知用户 Token 已过期,重新获取或跳转猫眼 |
| 1004 | 座位已被占用 | 说明情况,提供重新选座或切换场次 |
| 1005 | 场次已满 | 推荐同影院其他场次或附近影院 |
| 1006 | 订单已关闭 | 说明支付超时,座位已释放,引导重新开始 |
| 1007 | 出票中 | 告知用户正在处理,请稍后再查 |
| 1008 | 出票失败 | 解释支付成功但出票异常,提供重试或支持 |
| 1009 | 网络超时 | 建议检查网络,稍后重试 |
| 1010 | 系统维护 | 告知系统正在维护,提供猫眼兜底或稍后重试 |

## 兜底场景处理

### 座位不满意
- 提供同场次的另一组座位
- 提供同影院的其他场次
- 提供附近其他影院
- 提供猫眼相关页面兜底跳转

### 未提供 Token 或拒绝提供 Token
- 允许继续浏览影院、电影和场次摘要
- 不要进入座位图、选座、订单或状态查询步骤
- 如果用户仍希望继续购买,提供猫眼兜底

### 支付超时
- 说明订单可能已关闭,座位可能已释放
- 提供重新开始购票流程的引导
- 可以推荐同场次或其他场次作为替代

### 创建订单失败(1004/其他)
- 检查错误信息,判断是否为参数错误:
  - `seatNo` 是否使用了接口返回的原始值(不同影院格式不同)
  - `sectionId` 是否正确
  - `rowId`、`columnId` 是否与 `seatNo` 匹配
- 如确认参数错误,修复后重试创建订单
- 如参数正确但仍失败,建议用户换场次或换影院

### 出票失败
- 明确解释支付和出票是两个不同阶段
- 如适合,建议用户稍后再次查询(5-10分钟后)
- 如果有可用支持流程,转入支持或兜底流程
- 提供猫眼相关页面作为替代方案

### 用户中途放弃
- 确认用户是否真的要放弃
- 如果确认,提供猫眼相关页面链接,方便用户后续自行购买
- 记录当前进度,方便用户后续恢复

### 网络异常
- 告知用户网络问题
- 建议检查网络连接
- 提供稍后重试的选项
- 如持续失败,提供猫眼兜底

references/scripts-api.md

# 脚本 API 参考文档

> 当需要脚本的详细入参/出参格式时读此文件。

---

## 调用格式

```bash
echo '<JSON>' | node "{baseDir}/scripts/<script>.mjs"
```

---

## 查询类脚本

### get-cities.mjs

**用途**:获取猫眼城市列表,用于获取 cityId

**入参**:无(传 `{}` 即可)

**出参**:
```json
{
  "cities": [
    { "id": 1, "name": "北京" },
    { "id": 2, "name": "上海" }
  ]
}
```

---

### get-hot-movies.mjs

**用途**:获取当前热映影片列表

**入参**:
```json
{
  "cityId": 1
}
```
| 参数 | 必填 | 说明 |
|------|------|------|
| cityId | 否 | 城市ID,默认1(北京)。兼容 `ci`,统一推荐使用 `cityId` |

**出参**:
```json
{
  "movies": [
    {
      "id": 123456,
      "nm": "影片名称",
      "sc": 9.2,
      "dir": "导演名",
      "star": "主演1,主演2",
      "dur": 120,
      "cat": "剧情,动作",
      "desc": "简介"
    }
  ]
}
```

---

### search-movies.mjs

**用途**:按关键词搜索影片

**入参**:
```json
{
  "keyword": "飞驰人生"
}
```
| 参数 | 必填 | 说明 |
|------|------|------|
| keyword | 是 | 搜索关键词 |

**出参**:同 `get-hot-movies.mjs`

---

### get-nearby-cinemas.mjs

**用途**:获取用户附近的影院

**入参**:
```json
{
  "lat": 39.9042,
  "lng": 116.4074,
  "cityId": 1
}
```
| 参数 | 必填 | 说明 |
|------|------|------|
| lat | 是 | 纬度 |
| lng | 是 | 经度 |
| cityId | 是 | 城市ID(从 get-cities.mjs 获取) |

**出参**:
```json
{
  "cinemas": [
    {
      "id": 11111,
      "nm": "万达影城(某某店)",
      "addr": "某某路123号",
      "dist": 0.5,
      "eTicketFlag": 1,
      "lowestPrice": 35
    }
  ]
}
```

---

### search-cinemas.mjs

**用途**:按关键词搜索影院

**入参**:
```json
{
  "keyword": "万达",
  "cityId": 1
}
```
| 参数 | 必填 | 说明 |
|------|------|------|
| keyword | 是 | 搜索关键词(自动提取核心词) |
| cityId | 是 | 城市ID |

**出参**:同 `get-nearby-cinemas.mjs`

---

### get-cinemas-by-movie.mjs

**用途**:查询放映某部影片的影院

**入参**:
```json
{
  "movieId": 123456,
  "cityId": 1
}
```
| 参数 | 必填 | 说明 |
|------|------|------|
| movieId | 是 | 影片ID(从搜索结果获取) |
| cityId | 是 | 城市ID |

**出参**:同 `get-nearby-cinemas.mjs`

---

### get-showtimes.mjs

**用途**:获取某影院的排片场次,返回该影院所有在映影片及场次

**入参**:
```json
{
  "cinemaId": 11111,
  "cityId": 1
}
```
| 参数 | 必填 | 说明 |
|------|------|------|
| cinemaId | 是 | 影院ID |
| cityId | 否 | 城市ID,默认1(北京)。兼容 `ci`,统一推荐使用 `cityId` |

> ⚠️ 不需要传 movieId,接口返回该影院所有在映影片的全部场次

**出参**:
```json
{
  "cinemaName": "青春光线国际影城",
  "movies": [
    {
      "movieId": 123456,
      "name": "影片名称",
      "score": 9.2,
      "dur": 120,
      "shows": [
        {
          "showDate": "2026-04-03",
          "dateShow": "今天 4月3日",
          "plist": [
            {
              "seqNo": "202604030409791",
              "tm": "10:30",
              "dt": "2026-04-03",
              "lang": "国语",
              "hallType": "2D",
              "price": 45
            }
          ]
        }
      ]
    }
  ]
}
```

> ⚠️ 已知影片名时用 `movies.find(m => m.name.includes("影片名"))` 筛选;未指定影片时直接展示所有在映影片供用户选择

---

## AuthKey 管理脚本

### load-authkey.mjs

**用途**:读取本地保存的 AuthKey

**入参**:`{}`

**出参(有效)**:
```json
{
  "token": "xxxxx",
  "nickname": "用户昵称",
  "userId": "12345"
}
```

**出参(无/过期)**:
```json
{
  "token": null
}
```

---

### validate-maoyan-authkey.mjs

**用途**:验证 AuthKey 是否有效

**入参**:
```json
{
 

skill-card.md

## Description:

猫眼电影票购票助手 helps users search Maoyan movies and cinemas, choose showtimes and seats, create ticket orders, open payment links, and check ticket status.

This skill is ready for commercial/non-commercial use.

## Publisher:

[maoyan-tech](https://clawhub.ai/user/maoyan-tech)

### License/Terms of Use:

MIT-0

## Use Case:

External users use this agent to complete a Maoyan movie-ticket workflow: finding movies and cinemas, comparing showtimes, selecting seats, creating an order, paying, and checking ticket issuance.

### Deployment Geography for Use:

China

## Known Risks and Mitigations:

Risk: The skill handles Maoyan session tokens and stores an AuthKey locally.

Mitigation: Install only when the user is comfortable granting Maoyan session access; avoid exposing token values and prefer safer credential storage or authorization before broader deployment.

Risk: The skill can create ticket orders after user confirmations.

Mitigation: Require explicit user confirmation for seats and order details before order creation, and keep payment as a user-directed link or QR step.

Risk: Some workflows return generated shell command strings for message delivery.

Mitigation: Validate channel and target identifiers and replace returned shell strings with structured shell-free execution before production use.

## Reference(s):

- [Scripts API Reference](references/scripts-api.md)
- [Error Codes Reference](references/error-codes.md)
- [Maoyan Mobile Site](https://m.maoyan.com/)
- [ClawHub Skill Page](https://clawhub.ai/maoyan-tech/skills/maoyan-ticket-booking)
- [Publisher Profile](https://clawhub.ai/user/maoyan-tech)

## Skill Output:

**Output Type(s):** [Text, Markdown, Shell commands, Configuration, Guidance]

**Output Format:** [Markdown conversation responses with JSON-driven shell command examples and links]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May display movie, cinema, showtime, seat-map, payment, and ticket-status information returned by Maoyan scripts.]

## Skill Version(s):

1.0.4 (source: ClawHub release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to 猫眼电影票购票助手 and adjacent AI workflows.