| name | qr-generator |
| description | Generate QR codes from text or URL for mobile scanning. |
QR Generator
Generates a QR code image (PNG/SVG) or terminal output from a given text or URL.
Useful for transferring long URLs, WiFi credentials, or text snippets to mobile devices via Feishu (scan QR).
Usage
node skills/qr-generator/index.js --text "https://openclaw.ai" --output "qr_code.png"
node skills/qr-generator/index.js --text "Hello World" --terminal
Options
-t, --text <text>: The text or URL to encode (required).
-o, --output <path>: Output file path (e.g., code.png, code.svg).
--terminal: Output QR code as ASCII art to the terminal.
--width <number>: Width of the image (default: 500).
--color-dark <hex>: Dark color (default: #000000).
--color-light <hex>: Light color (default: #ffffff).
Example: Send QR to Feishu
node skills/qr-generator/index.js --text "https://example.com" --output "temp_qr.png"
node skills/feishu-image/send.js --target "ou_xxx" --file "temp_qr.png"
rm temp_qr.png