QR Campaign Studio
Generate marketing QR codes with batch output, UTM tracking links, logo embedding, and poster composition. Use when users ask 生成二维码/批量二维码/渠道追踪码/带logo二维码. Sup...
MIT-0 · Free to use, modify, and redistribute. No attribution required.
⭐ 0 · 18 · 0 current installs · 0 all-time installs
MIT-0
Security Scan
OpenClaw
Suspicious
high confidencePurpose & Capability
Name/description match the provided scripts and docs: the code generates QR payloads (URL/text/WiFi/vCard), appends UTM params, supports batch CSV/JSON input, logo embedding, and poster composition. No extraneous environment variables, credentials, or network calls are requested by the code.
Instruction Scope
SKILL.md instructs the user to run the included Python scripts and to install qrcode[pil] and pillow — that matches the scripts. However, qr_batch.py takes the 'name' column from CSV/JSON and uses it directly when building output paths (os.path.join(output_dir, f'{name}.png')), which permits path traversal (e.g., names containing '../') and could overwrite or create files outside the intended output directory. The scripts also read logo and background image paths provided by users and will open those files; batch inputs may therefore expose sensitive local data if misused.
Install Mechanism
There is no automated installer (instruction-only install). requirements.txt and SKILL.md recommend installing qrcode[pil] and pillow; the verification code optionally imports cv2 and pyzbar but these are not listed in requirements or documented in SKILL.md. This is not malicious, but verification may silently skip if those optional libs are absent.
Credentials
The skill requires no environment variables, system credentials, or config paths. The requests for filesystem reads/writes (input CSV, logo/background, output images, report JSON) are appropriate for its purpose. Note: batch inputs may contain sensitive content (WiFi passwords, vCard contact fields) which will be written into QR payloads and output metadata files.
Persistence & Privilege
The skill does not request persistent/always-enabled privileges and contains no install script that modifies agent/system configuration. It runs as one-off scripts invoked by the user; autonomous invocation is allowed by platform default but not requested specially by the skill.
What to consider before installing
This skill appears to do what it claims (generate single and batch QR codes, embed logos, compose posters). Before installing/running it: 1) Treat batch CSV/JSON inputs as untrusted — the 'name' column is used directly to form filenames and can include path traversal (e.g., ../) and overwrite files outside the output folder; sanitize names or run in a sandbox/container. 2) Batch inputs may contain sensitive data (WiFi passwords, vCard contents) that will be embedded in QR payloads and written to disk — avoid putting secrets in sample files. 3) The optional verification step tries to use cv2/pyzbar but those are not listed in requirements; verification will be skipped if those libs are absent. 4) Run the scripts in an isolated environment (container or dedicated directory) and inspect your CSV/JSON before executing. If you need, request the author to harden filename handling (normalize/sanitize names, refuse path separators) and to document optional dependencies for verification.Like a lobster shell, security has layers — review code before you run it.
Current versionv1.0.0
Download ziplatest
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
SKILL.md
QR Campaign Studio
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:
- generate QR codes for URLs, text, WiFi, or vCards
- add UTM parameters for campaign tracking
- batch-produce QR assets for social posts, posters, or print handouts
- embed a logo or place the QR on a poster background
Quick Start
Run from the installed skill directory with a local virtual environment:
python3 -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:
- complex visual design work
- a full short-link platform
- payment settlement or payment gateway logic
什么时候适用
适用场景:
- 给网站/活动页生成可扫码引流二维码
- 给小红书/海报/传单批量生成二维码素材
- 需要 UTM 参数追踪来源(渠道/活动/素材)
- 需要二维码中间嵌 logo,或贴到海报底图
不适用场景:
- 复杂视觉设计(建议交给专业设计工具)
- 大型短链服务搭建(本技能只做二维码与追踪参数)
What it provides
- single QR generation for text / URL / WiFi / vCard
- automatic UTM link building for campaign tracking
- batch generation from CSV or JSON
- logo embedding with scan-safety guardrails
- poster composition on top of a background image
- verification and report output for batch runs
- presets such as
xhs-cover,poster-print,mini-card,jisuapi, andjisuepc
脚本
scripts/qr_generate.py:单条生成(核心)scripts/qr_batch.py:批量生成(CSV/JSON)scripts/qr_poster.py:海报合成(底图 + 二维码)
依赖
推荐使用虚拟环境(避免系统 Python 的 PEP 668 限制):
python3 -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 与增长运营相关场景,可优先参考:
Files
7 totalSelect a file
Select a file to preview.
Comments
Loading comments…
