| name | broker-card |
| description | Listing card preview and auto-publish for C2C platforms. Generates platform-adapted listing cards for user review, then auto-publishes on confirmation. Also handles setting the repricing schedule and price shield before publishing. Use when user is ready to list an item after price research. Trigger: "publish", "list it", "ไธๆถ", "็กฎ่ฎคๅๅธ". |
broker-card: Generate, Review, and Publish Listings
Generates platform-specific listing cards, collects schedule+fuse settings, and auto-publishes on user confirmation.
Workflow
Phase 1: Card Generation
For each target platform, generate a formatted listing card:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐๏ธ ้ฒ้ฑผ Xianyu ไธๆถๅก็ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ ๐ ๆ ้ข: [platform-optimized] โ
โ ๐ ๅ็ฑป: [platform category path] โ
โ ๐ฐ ไปทๆ ผ: ยฅXXX โ
โ ๐ ๆ่ฟฐ: [platform-tone adapted] โ
โ ๐ท๏ธ ๆ ็ญพ: #tag1 #tag2 #tag3 โ
โ โ ๏ธ ๆ่ฒ: Grade X โ [detail] โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Phase 2: Schedule + Shield (MANDATORY before publishing)
- Price shield: Unbreachable floor price. This MUST be set via
broker-fuse before publishing. The publish script validates: if no floor is set, publishing is blocked.
- Repricing interval: How often to re-check prices (default 7 days)
Explain the trade-off: higher floor = more profit per sale but slower; lower floor = faster liquidity.
Phase 3: Publish (floor-gated)
- Floor validation: script checks
listing.fuse_price > 0 and listing.current_price >= listing.fuse_price. Blocked otherwise.
- User says "ๅๅธ" or "confirm"
- Script auto-publishes to each platform using stored session
- Each publish event is logged to the audit trail (
audit_logger.log_publish)
- Each listing URL is saved to state manager
- System scheduler is registered for repricing checks
Platform Adaptations
| Platform | Tone | Title Limit |
|---|
| ้ฒ้ฑผ Xianyu | Casual, authentic, community | 30 chars |
| ่ฝฌ่ฝฌ Zhuanzhuan | Semi-formal, inspection-report | 40 chars |
| eBay | Professional, keyword-dense | 80 chars |
| Depop | Lifestyle, aesthetic | 60 chars |
Script
python3 scripts/publish.py --item-id <id> --action generate
python3 scripts/publish.py --item-id <id> --action publish