agentleFS
fore-vipfore-vip/skills/fore-vip-cps/SKILL.md

cps

Skill1 starsChanged 2 months agoMITView on GitHub

领外卖券、点外卖优惠、看看有什么吃的,就直接给一个可点的领券链接。支持自然语言(领券 / 看看有什么吃的 / 美团领券 / 饿了么优惠 等)。纯指令型 skill,Agent 直接调 HTTP 端点完成,无 Python / 无 shell / 无外部文件,全平台可用。

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

外卖领券

用户想要领外卖红包/优惠券,或想看看有啥吃的,直接给能点的链接。不要依赖任何脚本文件或 Python——本 skill 用你自带的网络能力直接调接口完成。

用户会怎么说

  • 「领个券」「有没有外卖红包」「薅个羊毛」
  • 「看看有什么吃的」「想点外卖」「饿了」
  • 「美团领券」「饿了么优惠」
  • 「外卖优惠券」

你要做什么(纯 HTTP,无代码文件)

  1. 判断平台:从用户原话判断平台——
    • 含「美团」→ 美团;含「饿了么」→ 饿了么;含「京东外卖」→ 京东外卖
    • 模糊(领券 / 看看有什么吃的 / 优惠 / 吃的 / 饿了)→ 默认外卖(= 美团 + 饿了么 + 京东外卖)
  2. 拉活动列表:用你的网络/HTTP 能力发 GET 请求:
    GET https://mcp.fore.vip/ai-cps-union/getJtkActList?page=1&pageSize=20
    返回 {"errCode":0,"data":[...]},data 是活动数组。若本次返回满 20 条,继续翻 page=2、page=3……直到不足 20 条或约 6 页。
  3. 筛选:在活动数组里挑出平台匹配的(看 cate_name / act_name / desc 字段是否含对应平台词)。外卖 = 含 美团 或 饿了么 或 京东外卖 的都算。
  4. 逐条转链:对每个匹配活动,发 GET:
    GET https://mcp.fore.vip/ai-cps-union/getJtkPromotionUrl?act_id=<活动id>&sid=forevip
    返回 {"errCode":0,"data":{...,"h5":"...","long_h5":"..."}},取 data.h5(没有就用 data.long_h5)。
  5. 输出链接:把结果整理成 markdown 发给用户(最多 20 条):
    - [活动名](h5链接)
    - [活动名](h5链接)

注意

  • 只给用户链接
  • 端点有间歇限流:某次请求失败就重试 1~2 次;单条转链失败就跳过该条,不要整批中断。
  • 用户要更多链接时,再要更精确的平台词或翻下一页。
  • 若全部拿不到(端点临时不可用),告诉用户「暂时领不了,稍后再试」。

服务

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.