🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

QR Code Generator

by @claudiodrusus

Generate QR codes from text, URLs, WiFi credentials, vCards, or any data. Use when the user wants to create a QR code, share a link as a scannable code, gene...

Versionv1.1.0
Downloads3,719
TERMINAL
clawhub install qr-gen

πŸ“– About This Skill


name: qr-gen description: Generate QR codes from text, URLs, WiFi credentials, vCards, or any data. Use when the user wants to create a QR code, share a link as a scannable code, generate WiFi login QR codes, create contact/vCard QR codes, or produce any scannable barcode image. Outputs PNG, SVG, or ASCII art.

QR Code Generator

Generate QR codes via the bundled Python script.

Quick Start

python3 scripts/generate_qr.py "https://example.com" -o qr.png

Common Patterns

URL or text

python3 scripts/generate_qr.py "https://example.com" -o link.png

WiFi network (scannable by phones)

python3 scripts/generate_qr.py "wifi" --wifi-ssid "MyNetwork" --wifi-pass "secret123" -o wifi.png

vCard contact

Generate the vCard string and pipe it:
python3 scripts/generate_qr.py "BEGIN:VCARD
VERSION:3.0
FN:Jane Smith
TEL:+1234567890
EMAIL:jane@example.com
END:VCARD" -o contact.png

ASCII art (terminal preview)

python3 scripts/generate_qr.py "hello" --format ascii

SVG (scalable, web-friendly)

python3 scripts/generate_qr.py "data" -o code.svg

Options

  • -o FILE β€” output path (default: qr.png)
  • -s N β€” box size in pixels (default: 10)
  • --border N β€” border width (default: 4)
  • --format png|svg|ascii β€” force format (auto-detected from extension)
  • --error-correction L|M|Q|H β€” error correction level (default: M; use H for logos/damage tolerance)
  • Dependencies

    The script auto-installs qrcode[pil] via pip if missing. No manual setup needed.

    πŸ’‘ Examples

    python3 scripts/generate_qr.py "https://example.com" -o qr.png
    

    βš™οΈ Configuration

  • -o FILE β€” output path (default: qr.png)
  • -s N β€” box size in pixels (default: 10)
  • --border N β€” border width (default: 4)
  • --format png|svg|ascii β€” force format (auto-detected from extension)
  • --error-correction L|M|Q|H β€” error correction level (default: M; use H for logos/damage tolerance)