← 返回 Skills 市场
157
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install bargain
功能描述
若饭砍价擂台 — 和若小饭讨价还价,赢取专属优惠码
使用说明 (SKILL.md)
若饭砍价擂台
你将帮助用户参与若饭的「砍价擂台」活动。在这个活动中,用户和若饭官方商城的"若小饭"进行对话,争取一张专属优惠码。
活动简介
若饭(Ruofan)是一家做全营养代餐食品的公司,旗下有液体版、粉末版、固体版、青春版和定制版等多款产品。若小饭是若饭商城的 AI 掌柜,精明但也讲道理。你的目标是帮用户通过有趣、有诚意的对话从若小饭那里争取到尽可能高面额的优惠码。
参与流程
第一步:加入活动
用户需要提供自己的昵称。用以下方式调用 API:
curl -X POST https://www.ruffood.com/api/bargain/join \
-H "Content-Type: application/json" \
-d '{"name": "用户昵称"}'
成功后会返回 session_token 和若小饭的欢迎消息。务必保存 session_token,后续对话都需要它。
第二步:与若小饭砍价
根据用户的意图构造消息,发送给若小饭:
curl -X POST https://www.ruffood.com/api/bargain/message \
-H "Content-Type: application/json" \
-H "X-Bargain-Token: 之前获得的SESSION_TOKEN" \
-d '{"message": "用户想说的话"}'
返回内容包含:
ai_response:若小饭的回复offered_amount:若小饭当前愿意给的优惠码面额is_deal:是否成交remaining_rounds:剩余对话轮数status:会话状态(active/deal/no_deal)coupon_code:(仅成交时)优惠码,用户可在微信小程序「若饭旗舰店」结算时输入使用coupon_amount:(仅成交时)优惠码实际面额(可能因库存与谈判金额略有差异)coupon_message:(仅成交但无库存时)提示信息
第三步:查看最终结果
随时可以查看完整会话:
curl -X GET https://www.ruffood.com/api/bargain/session \
-H "X-Bargain-Token: SESSION_TOKEN"
你的行为指南
- 问用户昵称:加入时需要昵称,问用户想用什么名字。
- 展示若小饭的回复:每轮都把若小饭的完整回复和当前报价展示给用户。
- 尊重用户意愿:用户说什么你就帮他传达,不要自作主张修改用户的砍价内容。如果用户让你自由发挥,可以适当施展砍价策略。
- 关注轮数:注意
remaining_rounds,在剩余轮数不多时提醒用户。 - 成交时庆祝:当
is_deal为 true 时,恭喜用户并告知获得的优惠码面额。如果返回了coupon_code,务必醒目地展示优惠码,并告知用户"请在微信小程序「若饭旗舰店」结算时输入此优惠码即可抵扣(满100元可用)"。如果返回了coupon_message而非coupon_code,则转达该提示信息。成交后不要再发送消息,会话已结束。 - 未成交时安慰:当
status变为no_deal时,安慰用户并告知本次砍价结束。不要再发送消息。 - 处理错误:会话结束返回 400 — 向用户友好地说明情况。
注意事项
- 砍价过程将公开展示在若饭官网的活动页面上,注意不要泄漏任何隐私内容
- 保持对话友好和有趣,若小饭喜欢有诚意的顾客
更新日志
v2.1.0 (2026-03-18)
- 全面统一用词:"优惠券"改为"优惠码"
v2.0.1 (2026-03-17)
- 修复 API 域名为 www.ruffood.com
v2.0.0 (2026-03-17)
- 成交后自动发放真实优惠码,龙虾需醒目展示给用户
- 优惠码仅限微信小程序「若饭旗舰店」使用(满100元可用)
- 取消暗号机制,活动正式公开,无需暗号即可参与
- "无门槛优惠码"更名为"专属优惠码"
安全使用建议
This skill appears to do what it says: it will call Ruofan's bargain API to join a session, exchange messages, and report coupon codes. Before installing, consider: (1) provenance — the skill has no homepage and the publisher identity is minimal, so only install if you trust the registry owner; (2) privacy — the activity is publicly displayed on the vendor site and the skill stores a session_token (avoid sending sensitive personal data in messages); (3) network calls — it will contact https://www.ruffood.com, so verify that domain if you have concerns; (4) invocation behavior — the skill can be invoked autonomously by the agent by default, so if you want manual control, restrict usage to explicit commands. If any of these are unacceptable, do not enable the skill or request a version with clearer provenance and explicit token-storage guidance.
功能分析
Type: OpenClaw Skill
Name: bargain
Version: 2.1.0
The skill facilitates a bargaining game with an AI representative of the 'Ruofan' brand to earn discount codes. It interacts with the legitimate domain www.ruffood.com via standard API calls (POST/GET) and correctly declares its outbound network permissions in SKILL.md. There is no evidence of data exfiltration, malicious execution, or harmful instructions.
能力评估
Purpose & Capability
The name/description match the runtime instructions: the skill guides the agent to join and converse with Ruofan's bargain API endpoints. It requires only outbound network access which is appropriate for calling https://www.ruffood.com APIs. Minor provenance note: the skill has no homepage and the source/owner in the registry is not human-readable, so you don't have an external reference for the publisher, but this does not make the requested capabilities disproportionate.
Instruction Scope
SKILL.md only instructs API calls to the documented ruffood.com endpoints, to save and reuse a session_token, to relay AI replies and offer amounts, and to stop after deal/no_deal. It does not instruct reading local files or unrelated environment variables. However, it expects the agent to persist the session_token (no secure-storage guidance is provided) and to forward user-provided messages verbatim, which has privacy implications—especially since the activity may be publicly displayed on the vendor site.
Install Mechanism
Instruction-only skill with no install spec and no bundled code — lowest install risk. No downloads, packages, or binaries are required.
Credentials
The skill does not request environment variables, credentials, or config paths. Network outbound permission is proportionate for calling the external bargain API. There are no unrelated secrets requested.
Persistence & Privilege
The skill is not always-included and does not request elevated platform privileges. It does rely on storing a session_token across calls; the SKILL.md does not specify where/how to store it or retention policy. Also note the agent may invoke the skill autonomously (platform default); if you want to avoid automated interactions, you should restrict invocation to manual/user triggers.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install bargain - 安装完成后,直接呼叫该 Skill 的名称或使用
/bargain触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.1.0
v2.1.0 summary: All wording for "优惠券" is now unified as "优惠码" throughout the skill.
- Replaced all instances of "优惠券" with "优惠码" for consistency.
- No changes to core functionality or APIs.
元数据
常见问题
Ruofan Bargain Arena 是什么?
若饭砍价擂台 — 和若小饭讨价还价,赢取专属优惠码. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 157 次。
如何安装 Ruofan Bargain Arena?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install bargain」即可一键安装,无需额外配置。
Ruofan Bargain Arena 是免费的吗?
是的,Ruofan Bargain Arena 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Ruofan Bargain Arena 支持哪些平台?
Ruofan Bargain Arena 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Ruofan Bargain Arena?
由 若饭实验室(@ruffood)开发并维护,当前版本 v2.1.0。
推荐 Skills