# Qr Generator

> Generate QR codes from text, URLs, or data. Create QR codes for URLs, text, WiFi credentials, contact info (vCard), and more. No API key required.

- Skill: `winsorllc/qr-generator` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add winsorllc/qr-generator`
- Raw SKILL.md: https://api.skillmd.com/api/skills/winsorllc/qr-generator/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: winsorllc (https://skillmd.com/u/winsorllc)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/winsorllc/qr-generator

---


# QR Code Generator Skill

Generate QR codes for various data types using Python's qrcode library.

## When to Use

✅ **USE this skill when:**

- "Generate a QR code for this URL"
- "Create QR code for WiFi credentials"
- "Make a QR code for contact info"
- "Generate QR for this text"

## When NOT to Use

❌ **DON'T use this skill when:**

- Reading/scanning QR codes → use mobile device or dedicated scanner
- Creating barcodes (non-QR) → use barcode libraries

## Setup

Install required package:

```bash
pip install qrcode pillow
```

## Commands

### Basic QR Code

```bash
{baseDir}/qr.sh "https://example.com"
{baseDir}/qr.sh "Hello, World!" --out /tmp/qr.png
```

### WiFi QR Code

```bash
{baseDir}/qr-wifi.sh --ssid "MyNetwork" --password "secret123"
{baseDir}/qr-wifi.sh --ssid "MyNetwork" --password "secret123" --security WPA3
```

### vCard QR Code

```bash
{baseDir}/qr-vcard.sh --name "John Doe" --phone "+1234567890" --email "john@example.com"
{basedir}/qr-vcard.sh --name "Jane Doe" --phone "+1234567890" --org "Company" --url "https://example.com"
```

### Email QR Code

```bash
{baseDir}/qr-email.sh --to "user@example.com" --subject "Hello" --body "Check this out"
```

### Customize Options

```bash
{baseDir}/qr.sh "data" --size 20 --border 4 --color black --bg white
{baseDir}/qr.sh "data" --out /tmp/custom.png --size 30 --border 2
```

## Options

- `--out <path>`: Output file path (default: qr.png)
- `--size <N>`: Module size in pixels (default: 10)
- `--border <N>`: Border size in modules (default: 4)
- `--color <color>`: QR code color (default: black)
- `--bg <color>`: Background color (default: white)
- `--format <fmt>`: Output format: PNG, SVG (default: PNG)

## Output Formats

### PNG
Binary image file, widely compatible.

### SVG
Vector format, scalable without quality loss.

## Examples

**URL QR Code:**
```bash
{baseDir}/qr.sh "https://mywebsite.com/page?id=123" --out website.png
```

**WiFi QR Code (guests can scan to connect):**
```bash
{baseDir}/qr-wifi.sh --ssid "GuestNetwork" --password "guestpass" --security WPA
```

**Contact QR Code (scan to add to contacts):**
```bash
{baseDir}/qr-vcard.sh --name "Alice Smith" --phone "+15551234567" --email "alice@example.com"
```

## Notes

- QR codes can store up to ~4KB of data
- Larger data = denser QR = harder to scan
- Use URL shorteners for very long URLs
- Error correction allows partial damage recovery
