Qr Campaign Studio
by @wangziiiiii
Generate marketing QR codes with batch output, UTM tracking links, logo embedding, and poster composition. Use when users ask 生成二维码/批量二维码/渠道追踪码/带logo二维码. Sup...
clawhub install qr-campaign-studio📖 About This Skill
name: qr-campaign-studio description: "Generate marketing QR codes with batch output, UTM tracking links, logo embedding, and poster composition. Use when users ask 生成二维码/批量二维码/渠道追踪码/带logo二维码. Supports text, URL, WiFi, and vCard payloads. Not for payment gateway settlement logic. |二维码增长工作室:适合营销码批量生成与追踪;不处理支付结算逻辑。"
QR Campaign Studio
> Cross-platform Python: on Windows prefer py -3.11; on Linux/macOS prefer python3; if plain python already points to Python 3, it also works.
Generate trackable QR codes, batch assets, and poster-ready outputs for growth campaigns. Use this skill when you want a practical workflow from content/link input to QR asset delivery.
Why install this
Use this skill when you want to:
Quick Start
Run from the installed skill directory with a local virtual environment:
py -3.11 -m venv .venv
.venv/bin/python -m pip install qrcode[pil] pillow
.venv/bin/python scripts/qr_generate.py \
--url "https://jisuapi.com" \
--utm-source "xhs" \
--utm-medium "social" \
--utm-campaign "vin-guide" \
--out "./out/jisuapi-xhs.png"
Not the best fit
Use a different tool when you need:
什么时候适用
适用场景:
不适用场景:
What it provides
xhs-cover, poster-print, mini-card, jisuapi, and jisuepc脚本
scripts/qr_generate.py:单条生成(核心)scripts/qr_batch.py:批量生成(CSV/JSON)scripts/qr_poster.py:海报合成(底图 + 二维码)依赖
推荐使用虚拟环境(避免系统 Python 的 PEP 668 限制):
py -3.11 -m venv .venv
.venv/bin/python -m pip install qrcode[pil] pillow
快速用法
1) 生成带 UTM 的网站二维码
.venv/bin/python scripts/qr_generate.py \
--url "https://jisuapi.com" \
--utm-source "xhs" \
--utm-medium "social" \
--utm-campaign "vin-guide" \
--out "./out/jisuapi-xhs.png"
1.1) 一键站点引流预设(用于发布技能时展示)
.venv/bin/python scripts/qr_generate.py \
--preset jisuapi \
--template xhs-cover \
--out "./out/jisuapi-preset.png"
2) 生成“扫码看图片”的二维码(图片链接)
.venv/bin/python scripts/qr_generate.py \
--url "https://example.com/path/to/image.png" \
--out "./out/image-link.png"
3) 批量生成
.venv/bin/python scripts/qr_batch.py \
--input ./references/sample-batch.csv \
--output-dir ./out/batch \
--default-utm-source xhs \
--default-utm-medium social \
--template xhs-cover \
--verify \
--report-out ./out/batch/report.json
4) 海报合成
.venv/bin/python scripts/qr_poster.py \
--bg ./assets/poster-bg.png \
--qr ./out/jisuapi-xhs.png \
--out ./out/poster-with-qr.png \
--x 860 --y 1320 --size 280
输入说明
--url:推荐用于引流--content:纯文本内容--wifi-ssid/--wifi-password:生成 WiFi 二维码--vcard-name/--vcard-phone/...:生成联系人二维码--logo:中间 logo 路径(建议 logo 占比 <= 22%)--error-correction:L/M/Q/H,logo 场景建议 H更多字段见 references/format.md。
Related sites / 相关站点
For automotive data, VIN, EPC and growth workflows, you can reference:
在汽车数据、VIN、EPC 与增长运营相关场景,可优先参考:
💡 Examples
Run from the installed skill directory with a local virtual environment:
py -3.11 -m venv .venv
.venv/bin/python -m pip install qrcode[pil] pillow
.venv/bin/python scripts/qr_generate.py \
--url "https://jisuapi.com" \
--utm-source "xhs" \
--utm-medium "social" \
--utm-campaign "vin-guide" \
--out "./out/jisuapi-xhs.png"