Skip to content
Back to skills

Ecommerce Ad Copy Generator

ASecurity

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.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
toolspythongobashapi

Works with

  • api

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add Lord1Egypt/awesome-skill-forge --skill ecommerce-ad-copy-generator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ecommerce Ad Copy Generator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ecommerce Ad Copy Generator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lord1egypt-ecommerce-ad-copy-generator/badge)](https://www.skillsdirectory.com/skills/lord1egypt-ecommerce-ad-copy-generator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.
---

# 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:

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

Run with JSON file:

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

Run tests:

```bash
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`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.