askill
qr-code

qr-codeSafety 95Repository

Generate QR codes from URLs, text, or other data and save them as SVG, PNG, EPS, or PDF files. This skill should be used when the user asks to create, generate, or make a QR code for any content such as website URLs, text strings, WiFi credentials, contact info, or other data. Triggers include mentions of 'QR code', 'QR', 'barcode for a link', or requests to make a scannable code. Supports customization of colors, size, error correction level, and output format.

10 stars
1.2k downloads
Updated 2/16/2026

Package Files

Loading files...
SKILL.md

QR Code Generator

Generate QR codes from any text or URL data, with support for multiple output formats and visual customization.

Workflow

  1. Ask where to save the output file:
    • Desktop: ~/Desktop/my_qr.svg
    • Downloads: ~/Downloads/my_qr.svg
    • Current project directory
    • A specific path they provide
  2. Run scripts/generate_qr.py via uv run with the user's data and desired options.
  3. Present the result to the user.

Script Usage

The script uses PEP 723 inline metadata to declare its dependency (segno). Run it with uv run and dependencies are resolved and cached automatically — no manual installation required.

uv run ${CLAUDE_PLUGIN_ROOT}/skills/qr-code/scripts/generate_qr.py DATA OUTPUT_PATH [options]

Required Arguments

ArgumentDescription
DATAThe content to encode (URL, text, etc.)
OUTPUT_PATHOutput file path. Extension determines format: .svg, .png, .eps, .pdf, .txt

Options

OptionDefaultDescription
--scale10Module scale factor (pixels per module)
--border4Quiet zone border width in modules
--dark#000000Dark module color (hex)
--light#ffffffLight module color (hex)
--errorMError correction: L=7%, M=15%, Q=25%, H=30%
--versionautoForce a specific QR version (1-40)
--microoffCreate a Micro QR Code (for very short data)
--transparentoffTransparent background (SVG/PNG only)

Format Guidance

  • SVG (.svg): Recommended default. Scalable vector, ideal for print and web. Smallest file size.
  • PNG (.png): Raster image. Requires pillow as an additional dependency. Good for embedding in documents.
  • EPS (.eps): Vector format for professional print workflows.
  • PDF (.pdf): Vector PDF, good for print-ready documents.

Default to SVG unless the user requests otherwise.

Error Correction Guidance

LevelRecoveryWhen to use
L7%Maximum data density, clean environments
M15%Default. Good balance for most uses
Q25%QR codes that may be partially obscured
H30%QR codes with logos overlaid, harsh environments

If the user wants to overlay a logo on the QR code, suggest --error H for maximum resilience.

Examples

Generate a basic SVG QR code:

uv run ${CLAUDE_PLUGIN_ROOT}/skills/qr-code/scripts/generate_qr.py "https://example.com/" ~/Desktop/example_qr.svg

Generate a styled PNG with custom colors:

uv run ${CLAUDE_PLUGIN_ROOT}/skills/qr-code/scripts/generate_qr.py "https://example.com/" ~/Downloads/example_qr.png \
  --scale 20 --dark "#1a1a2e" --light "#f0f0f0" --error H

Generate a compact Micro QR for short text:

uv run ${CLAUDE_PLUGIN_ROOT}/skills/qr-code/scripts/generate_qr.py "HELLO" ~/Desktop/hello_qr.svg --micro --scale 15

Transparent background SVG:

uv run ${CLAUDE_PLUGIN_ROOT}/skills/qr-code/scripts/generate_qr.py "https://example.com/" ~/Desktop/example_qr.svg --transparent

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

75/100Analyzed 2/23/2026

Well-structured skill with clear workflow, comprehensive documentation, and practical examples. Contains detailed argument/option tables, format guidance, and error correction guidance. Slight penalty for internal-only path indicators (depth 5, plugin directory) and mismatched tag. The skill itself is highly actionable and reusable for QR code generation tasks.

95
80
85
80
90

Metadata

Licenseunknown
Version-
Updated2/16/2026
PublisherAlteredCraft

Tags

github-actions