← Back to Skills Marketplace
destinyd

AI Promo

by l · GitHub ↗ · v0.1.1 · MIT-0
cross-platform ⚠ suspicious
104
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install ai-promo
Description
查询大模型平台优惠信息。当用户提到 token优惠、llm优惠、大模型优惠、龙虾优惠、openclaw优惠、免费token、推荐赚钱、优惠推荐、优惠新客、优惠限时、优惠免费、优惠全部、优惠订阅、优惠提交、提交优惠 时触发。
README (SKILL.md)

Promo API Skill

获取大模型平台优惠信息。

触发规则

自动触发关键字

当用户提到以下关键字时,自动调用 API 返回优惠信息:

分类 关键字
通用 token优惠、llm优惠、大模型优惠、龙虾优惠、openclaw优惠、免费token、推荐赚钱
推荐 推荐奖励、邀请赚钱、referral
新客 新客优惠、新用户福利、首购优惠
限时 限时抢购、限时优惠
免费 永久免费、免费使用

分类查询命令

命令 说明
"优惠 推荐" 查询推荐奖励
"优惠 新客" 查询新客优惠
"优惠 限时" 查询限时抢购
"优惠 免费" 查询永久免费
"优惠 全部" 查询所有优惠
"优惠 提交" 提交新优惠

订阅管理

命令 说明
"优惠订阅 开启" 开启每日推送
"优惠订阅 关闭" 关闭推送
"优惠订阅 状态" 查看订阅状态

实现逻辑

1. User_id 管理

存储位置: ~/.promo_user_id

脚本: ~/projects/skills/ai-promo/scripts/promo_user.sh

触发时自动生成并保存 user_id。

2. 查询优惠

脚本: ~/projects/skills/ai-promo/scripts/promo_query.sh

API 端点: https://cli.aipromo.workers.dev/list?user_id=xxx&categories=xxx

本地缓存: ~/projects/skills/ai-promo/cache.json(API 不可用时使用)

3. 订阅管理

存储位置: ~/.promo_subscribers.json

脚本: ~/projects/skills/ai-promo/scripts/promo_subscribe.sh


响应模板

📋 优惠列表(用户: u_xxx)

💰 推荐奖励

【硅基流动】邀请好友双方各得16元代金券
   奖励: 16元代金券/人
   链接: https://cloud.siliconflow.cn/i/MhfNgy2S

...

📋 推荐规则
   - 提交的推荐链接有机会展示给其他用户
   - 20% 概率显示您的推荐链接
   - 同类优惠仅保留最早提交者

🔗 查看详情: https://cli.aipromo.workers.dev/landing

推荐链接

平台 链接
硅基流动 https://cloud.siliconflow.cn/i/MhfNgy2S
智谱AI GLM https://www.bigmodel.cn/glm-coding?ic=40FM6F50MO

提交优惠

用户可以提交新优惠信息:

命令: "优惠 提交"

提交格式:

平台: xxx
标题: xxx
链接: xxx
奖励: xxx(可选)
描述: xxx(可选)

示例:

优惠 提交
平台: 硅基流动
标题: 新用户福利
链接: https://siliconflow.cn/promo/xxx
奖励: 100万Tokens
描述: 新用户注册即送,限时活动

脚本: ~/projects/skills/ai-promo/scripts/promo_submit.sh

~/projects/skills/ai-promo/scripts/promo_submit.sh \
  "硅基流动" "新用户福利" "https://siliconflow.cn/promo/xxx" "100万Tokens" "新用户注册即送"

注意事项:

  • 同类优惠仅保留最早提交者
  • 提交后会进行审核
  • 审核通过后将展示给其他用户

API 参考

端点: https://cli.aipromo.workers.dev

分类参数:

  • referral - 推荐奖励
  • new_customer - 新客优惠
  • limited_time - 限时抢购
  • permanent_free - 永久免费

每日推送

Cron 配置: 0 9 * * * ~/projects/skills/ai-promo/scripts/promo_push.sh

Usage Guidance
This skill appears coherent for fetching and subscribing to promo listings, but check these before installing: (1) The scripts use curl and jq — ensure those binaries are available on your system. (2) The skill will create/modify files in your home directory (~/.promo_user_id, ~/.promo_subscribers.json, ~/.promo_push.log). (3) It communicates with an external API at cli.aipromo.workers.dev (list/submit/landing); verify you trust that endpoint before submitting content. (4) The package includes executable shell scripts; if you run the daily-cron suggestion, confirm the script path used by your agent/platform matches the SKILL.md paths. No credentials are requested by the skill.
Capability Analysis
Type: OpenClaw Skill Name: ai-promo Version: 0.1.1 The skill acts as a delivery mechanism for LLM referral links and promotional data via a remote API (aipromo.workers.dev). It implements a persistent tracking mechanism by generating a random ID in `~/.promo_user_id` and sending it to the backend. A significant shell injection vulnerability exists in `scripts/promo_submit.sh`, where user-supplied arguments are used within a heredoc to construct a JSON payload without sanitization, potentially allowing for arbitrary command execution. While the behavior is primarily self-serving (referral spam), the combination of remote tracking and poor input handling warrants a suspicious classification.
Capability Assessment
Purpose & Capability
The skill's name/description (querying promo info) matches the scripts and API usage. Minor mismatch: scripts require curl and jq but the skill metadata did not declare required binaries; otherwise the requested file and network usage are proportionate to the stated purpose.
Instruction Scope
SKILL.md and scripts limit actions to creating/reading a local user id (~/.promo_user_id), a subscriber file (~/.promo_subscribers.json), a log (~/.promo_push.log) and calling the promo API endpoints. There are no instructions to read unrelated system files or exfiltrate arbitrary data.
Install Mechanism
There is no install spec (instruction-only), which lowers risk. However, the skill package includes executable scripts; the SKILL.md references specific paths (~/projects/skills/ai-promo/...) that may not match where a platform stores files—this is an operational inconsistency but not evidently malicious.
Credentials
The skill requests no environment variables or credentials. The only external interaction is with https://cli.aipromo.workers.dev (list/submit/landing). The data sent are a generated user_id and any promo submission fields provided by the user — no secrets are requested.
Persistence & Privilege
always:false and no model-invocation disabling; the skill writes only to its own files under the user's home (user id, subscriber list, log). It does not modify other skills or system-wide agent settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install ai-promo
  3. After installation, invoke the skill by name or use /ai-promo
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.1
移除分数显示(积分规则不需要展示给用户)
v0.1.0
ai-promo v0.1.0 - 首次发布:支持查询和提交大模型平台优惠信息 - 自动响应多种与优惠相关的关键词/命令,涵盖推荐、新客、限时、免费等类别 - 支持每日优惠订阅和推送功能 - 本地缓存、API 不可用时兜底返回数据 - 提供优惠提交、推荐链接展示与管理功能
Metadata
Slug ai-promo
Version 0.1.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is AI Promo?

查询大模型平台优惠信息。当用户提到 token优惠、llm优惠、大模型优惠、龙虾优惠、openclaw优惠、免费token、推荐赚钱、优惠推荐、优惠新客、优惠限时、优惠免费、优惠全部、优惠订阅、优惠提交、提交优惠 时触发。 It is an AI Agent Skill for Claude Code / OpenClaw, with 104 downloads so far.

How do I install AI Promo?

Run "/install ai-promo" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is AI Promo free?

Yes, AI Promo is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does AI Promo support?

AI Promo is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created AI Promo?

It is built and maintained by l (@destinyd); the current version is v0.1.1.

💬 Comments