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 target audience; charge 0.10 USDT per request via /billing/charge; return payment_url when balance is insufficient; and enforce strict input validation plus error handling.
- License 许可
- MIT
- 最近更新
- 2026-06-10
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- ecommerce-ad-copy-generator
- description
- 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 target audience; charge 0.10 USDT per request via /billing/charge; return payment_url when balance is insufficient; and enforce strict input validation plus error handling.
03 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
- Parse and validate input fields:
user_idproduct_nameselling_points(list or delimited string)target_audience
- Call SkillPay
POST /billing/chargewith amount0.10 USDT. - If billing succeeds, generate exactly 5 platform-adapted ad copies.
- If billing returns insufficient balance, return
INSUFFICIENT_BALANCEwithpayment_url. - 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: truepricing.amount: "0.10"pricing.currency: "USDT"copies: exactly 5 items, each containing:platformheadlinebodycta
Billing failure:
VALIDATION_ERRORfor invalid inputINSUFFICIENT_BALANCEandpayment_urlwhen top-up is requiredBILLING_ERRORfor 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
04 同仓库更多 Skills
youtube-content
YouTube transcripts to summaries, threads, blogs.
xurl
X/Twitter via xurl CLI: post, search, DM, media, v2 API.
touchdesigner-mcp
Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.
test-driven-development
TDD: enforce RED-GREEN-REFACTOR, tests before code.
teams-meeting-pipeline
Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.
systematic-debugging
4-phase root cause debugging: understand bugs before fixing.