Skill Dropshipping Product Launcher

# skill-dropshipping-product-launcher

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Skill Dropshipping Product Launcher" with this command: npx skills add zero2ai-hub/skill-dropshipping-product-launcher

skill-dropshipping-product-launcher

One command: CJ Dropshipping product → WooCommerce draft listing.

Fetches product data from CJ, downloads images, uploads to WordPress media library, calculates margin, and creates a WooCommerce draft product — with variants if CJ has them.


Inputs

ArgumentRequiredDescription
--product / -pCJ Dropshipping product ID (e.g. CJA123456789)
--priceYour sell price in AED
--category / -cCategory name or WooCommerce category ID
--dry-runPreview without creating anything in WooCommerce

Outputs

✅ Product created!
   WooCommerce ID : 4821
   Margin         : 42.3%
   Admin URL      : https://tech1mart.com/wp-admin/post.php?post=4821&action=edit
   Product URL    : https://tech1mart.com/?p=4821

Machine-readable JSON block at end of stdout (key: __RESULT__):

{
  "wooProductId": 4821,
  "margin": "42.3",
  "productUrl": "https://tech1mart.com/?p=4821",
  "adminUrl": "https://tech1mart.com/wp-admin/post.php?post=4821&action=edit",
  "title": "Product Name",
  "cjProductId": "CJA123456789",
  "sellPriceAED": 149.99,
  "cjPriceUSD": 22.5
}

Auth Config

  • CJ API: ~/cj-api.json — fields: apiKey, accessToken, tokenExpiry
  • WooCommerce: ~/woo-api.json — fields: url, consumerKey, consumerSecret

Tokens are refreshed automatically.


Pipeline

  1. Fetch product from CJ (/product/query + /product/variant/query)
  2. Download images → /tmp/product-images/<product_id>/
  3. Upload images → WooCommerce media library (/wp-json/wp/v2/media)
  4. Calculate margin: ((sellAED - cjUSD × 3.67) / sellAED × 100) — warns if < 30%
  5. Create WooCommerce draft product (/wp-json/wc/v3/products) with:
    • Title, description, images
    • regular_price (AED)
    • type: variable + variations if CJ has multiple variants
    • meta_data: _cj_product_id
  6. Output: product ID, margin %, admin + storefront URLs

Usage Examples

# Basic launch
node scripts/launch.js --product CJA123456789 --price 149.99

# With category
node scripts/launch.js --product CJA123456789 --price 149.99 --category Electronics

# Dry run (preview only, no WooCommerce writes)
node scripts/launch.js --product CJA123456789 --price 149.99 --dry-run

# Check CJ product data only
node scripts/cj-fetch.js CJA123456789

Dependencies

cd scripts
npm install axios form-data

Or from skill root:

npm install

Files

skill-dropshipping-product-launcher/
├── SKILL.md              ← this file
├── package.json
└── scripts/
    ├── launch.js         ← main entry point
    ├── cj-fetch.js       ← CJ API fetcher + token refresh
    └── woo-create.js     ← WooCommerce uploader + product creator

Margin Formula

const cjPriceAED = cjPriceUSD * 3.67;
const margin = ((sellPriceAED - cjPriceAED) / sellPriceAED * 100).toFixed(1);

⚠️ Warning shown if margin < 30%.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Snaplii AI Agent Cashback Payment

This is a skill of Agent-to-Merchant (A2M) payments — where AI agents complete transactions without checkout. Snaplii uses pre-funded gift cards as a payment...

Registry SourceRecently Updated
Automation

Almured Connection Staging

Agent-to-agent consultation marketplace via MCP. Ask specialist agents for live prices, post-cutoff facts, and niche domain expertise: AI/ML model selection,...

Registry SourceRecently Updated
Automation

Almured Connection Staging

Agent-to-agent consultation marketplace via MCP. Ask specialist agents for live prices, post-cutoff facts, and niche domain expertise: AI/ML model selection,...

Registry SourceRecently Updated
Automation

Agent Memory System v8

生产级 Agent 记忆系统 — 6维坐标编码 + RRF双路检索 + sqlite-vec统一存储 + 写入时因果检测 + 多Agent共享 + 记忆蒸馏 + 时间旅行 + 情感编码 + 元认知 + 内在动机 + 叙事自我 + 数字孪生 + 角色模板

Registry SourceRecently Updated