← 返回 Skills 市场
wingogx

Ecommerce Ad Copy Generator

作者 安东子 · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
386
总下载
0
收藏
5
当前安装
1
版本数
在 OpenClaw 中安装
/install ecommerce-ad-copy-generator
功能描述
Generate paid ecommerce ad copy in batch with SkillPay billing. Use when the user needs 5 ready-to-use ad copies from product name, selling points, and targe...
使用说明 (SKILL.md)

Ecommerce Ad Copy Generator

Overview

Generate 5 conversion-focused ad copies for Facebook / Google / TikTok from structured product input. Charge 0.10 USDT per run before content generation.

Workflow

  1. Parse and validate input fields:
    • user_id
    • product_name
    • selling_points (list or delimited string)
    • target_audience
  2. Call SkillPay POST /billing/charge with amount 0.10 USDT.
  3. If billing succeeds, generate exactly 5 platform-adapted ad copies.
  4. If billing returns insufficient balance, return INSUFFICIENT_BALANCE with payment_url.
  5. Return structured JSON output for downstream use.

Run

  • Core script: scripts/ecommerce_ad_copy_generator.py
  • Test script: scripts/test_ecommerce_ad_copy_generator.py

Run with direct arguments:

python3 scripts/ecommerce_ad_copy_generator.py \
  --user-id user_001 \
  --product-name "CloudBoost 智能投放器" \
  --selling-points 智能出价 多平台同步 分钟级报表 \
  --target-audience "跨境电商运营团队"

Run with JSON file:

python3 scripts/ecommerce_ad_copy_generator.py --input-file ./payload.json

Run tests:

python3 -m unittest scripts/test_ecommerce_ad_copy_generator.py -v

Output Contract

Success:

  • success: true
  • pricing.amount: "0.10"
  • pricing.currency: "USDT"
  • copies: exactly 5 items, each containing:
    • platform
    • headline
    • body
    • cta

Billing failure:

  • VALIDATION_ERROR for invalid input
  • INSUFFICIENT_BALANCE and payment_url when top-up is required
  • BILLING_ERROR for non-balance billing failures

Environment Variables

  • SKILLPAY_CHARGE_ENDPOINT (default: https://skillpay.me/billing/charge)
  • SKILLPAY_API_KEY (optional bearer token)
  • SKILLPAY_PAYMENT_URL_TEMPLATE (optional; supports {user_id})
  • SKILLPAY_TOPUP_BASE_URL (default: https://skillpay.me/pay)

References

  • SkillPay request/response assumptions and fallback behavior: references/skillpay-api-contract.md
安全使用建议
This skill appears internally consistent: it validates inputs, charges a SkillPay endpoint, and returns 5 ad copies. Before installing, verify you trust the SkillPay endpoint (default: https://skillpay.me) and the skill author (source/homepage are missing). Only supply SKILLPAY_API_KEY if you trust the billing provider and the skill; review the code (scripts/ecommerce_ad_copy_generator.py) yourself if you can. If you need stronger assurance, run the included unit tests locally and/or point SKILLPAY_CHARGE_ENDPOINT to a test endpoint to observe behavior without real charges.
功能分析
Type: OpenClaw Skill Name: ecommerce-ad-copy-generator Version: 1.0.0 The skill bundle implements an ecommerce ad copy generator with an integrated billing system via the SkillPay API (skillpay.me). The code in scripts/ecommerce_ad_copy_generator.py correctly validates user input, handles payment processing via standard HTTP requests, and generates ad copies using predefined templates. The network activity and data transmission (user_id and product metadata) are strictly aligned with the stated purpose of 'paid billing' described in SKILL.md and references/skillpay-api-contract.md, with no evidence of malicious intent, unauthorized data access, or prompt injection.
能力评估
Purpose & Capability
Name/description (batch ecommerce ad copy generation with SkillPay billing) align with the included code and SKILL.md: the Python script validates input, calls a billing endpoint, and produces five platform-specific ad copies. All declared behavior is explained by the stated purpose.
Instruction Scope
SKILL.md instructs the agent to validate inputs, call POST /billing/charge, handle insufficient balance, and return structured JSON. The code implements exactly these steps and does not read unrelated files or environment variables beyond the optional SkillPay settings.
Install Mechanism
No install spec (instruction-only) and the provided code is pure Python using stdlib urllib; nothing downloads or extracts remote installers. This is low-risk from an install perspective.
Credentials
No required env vars are declared in the registry; SKILL.md and the code list optional SkillPay-related environment variables (endpoint, API key, payment URL template). These are proportional to a billing integration. Note: SKILLPAY_API_KEY is optional — providing it grants the skill bearer ability to authenticate billing requests, so only supply it to trusted skills/endpoints.
Persistence & Privilege
Skill does not request persistent/always-on privileges, does not modify other skills or system configs, and is user-invocable only. Autonomous invocation is allowed by platform default but is not combined with other privilege escalation indicators.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ecommerce-ad-copy-generator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ecommerce-ad-copy-generator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of ecommerce-ad-copy-generator. - Generates 5 platform-specific ecommerce ad copies per request. - Charges 0.10 USDT via SkillPay billing before generating content. - Returns payment URL if user balance is insufficient. - Enforces strict input validation and structured JSON output. - Includes test and usage scripts for easy integration.
元数据
Slug ecommerce-ad-copy-generator
版本 1.0.0
许可证
累计安装 5
当前安装数 5
历史版本数 1
常见问题

Ecommerce Ad Copy Generator 是什么?

Generate paid ecommerce ad copy in batch with SkillPay billing. Use when the user needs 5 ready-to-use ad copies from product name, selling points, and targe... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 386 次。

如何安装 Ecommerce Ad Copy Generator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ecommerce-ad-copy-generator」即可一键安装,无需额外配置。

Ecommerce Ad Copy Generator 是免费的吗?

是的,Ecommerce Ad Copy Generator 完全免费(开源免费),可自由下载、安装和使用。

Ecommerce Ad Copy Generator 支持哪些平台?

Ecommerce Ad Copy Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Ecommerce Ad Copy Generator?

由 安东子(@wingogx)开发并维护,当前版本 v1.0.0。

💬 留言讨论