mcpField
Q
qr-code-generator

qr-code-generator

github.com/nicepkgMarketing & growth28864 installsUpdated 40w ago
Repository

About qr-code-generator

A skill that creates QR codes from URLs, with optional captions, UTM parameters, and PNG or SVG exports. It supports single-code generation and CSV batches, with URL checks and print-oriented recommendations.

Key features

  1. 01Generate QR codes from URLs
  2. 02Export PNG and SVG
  3. 03Add captions and UTM parameters
  4. 04Generate batches from CSV
  5. 05Validate URLs and provide usage notes

Use cases

  1. 01Create a QR code for a web page
  2. 02Prepare print-ready QR artwork
  3. 03Generate QR codes for a CSV list

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/nicepkg/ai-workflow --skill qr-code-generator

After installing, type/qr-code-generatorin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

assets/templates/
print_notes.md
prompt_snippets.md
utm_template.json
references/
safety_and_quality.md
scripts/
batch_generate.py
generate_qr.py
requirements.txt

Details

From the project README

QR Code Generator

What this skill does

Given a URL, this skill generates:

  • a QR code that encodes the URL
  • optional captions (human-readable URL or short label)
  • exports in PNG and/or SVG
  • optional batch runs from a CSV

Guardrails

  • Don’t generate QR codes for suspicious links (phishing, credential prompts, malware). If unsure, ask for confirmation or suggest a safer destination page.
  • Prefer HTTPS URLs.
  • If the QR is for print, prefer SVG (scales cleanly) and high error correction.

Inputs

Required:

  • URL

Optional:

  • label/caption text (e.g., “Scan to book a call”)
  • whether to show the URL under the QR (yes/no)
  • output formats: PNG, SVG
  • UTM params (source, medium, campaign, content, term)
  • size intent: screen / print / sticker

Workflow

  1. Validate the URL (scheme + domain).
  2. Optionally append UTM parameters (using assets/templates/utm_template.json).
  3. Generate QR:
    • Error correction: M (default), H for print/complex usage
    • Border: 4 (default)
  4. Export:
    • PNG (good for web)
    • SVG (best for print)
  5. If caption enabled:
    • PNG: add label and/or URL under the QR
    • SVG: add a text element under the QR
  6. Return links + a quick “usage notes” block (recommended minimum size, print tips).

Output format (required)

  • Encoded URL (final URL after UTM, if used)
  • Files generated (with links)
  • Recommendations (error correction, min size, when to use SVG vs PNG)

Scripts in this pack

  • scripts/generate_qr.py — single QR (PNG/SVG, optional caption)
  • scripts/batch_generate.py — batch from CSV (id,url,label)

Templates

  • assets/templates/utm_template.json
  • assets/templates/print_notes.md
  • assets/templates/prompt_snippets.md

Comments

Markdown supported