Meta Open Source logo

Skill

qr-code

generate QR codes locally

Covers Automation Images Python

Description

Generate QR codes locally without third-party services or dependencies. Uses a self-contained pure Python script (stdlib only). Data never leaves the machine. Supports PNG file output.

SKILL.md

QR Code Generator

Generate QR codes locally using a pure Python script with zero external dependencies. All data stays on the local machine — nothing is sent to any third-party service.

When This Skill Activates

  • User wants to generate a QR code for a URL, text, or any data
  • User asks to create a scannable QR code image (PNG)

How to Use

The QR generator script is at:

skills/qr-code/scripts/qr_generator.py

Run it with python3 (macOS/Linux) or python (Windows).

PNG File Output

Save the QR code as a PNG image file:

python3 skills/qr-code/scripts/qr_generator.py --png /tmp/qr_output.png "https://example.com"

Options

FlagDescriptionDefault
--png FILESave as PNG to FILE(required)
--scale NPNG pixels per QR module10
--openOpen the PNG in the OS default image viewer after savingoff

Workflow

  1. Determine what the user wants to encode (URL, text, etc.)
  2. Run the script via Bash tool with --png <path> --open to save as PNG and open it for scanning
  3. Inform the user of the saved file path

Limitations

  • Supports QR versions 1-10 (up to ~271 characters)
  • Only byte mode encoding (handles all UTF-8 text, URLs, etc.)

Examples

Generate QR for a URL:

python3 skills/qr-code/scripts/qr_generator.py --png /tmp/link_qr.png --open "https://meta.com"

Generate QR for plain text:

python3 skills/qr-code/scripts/qr_generator.py --png /tmp/message_qr.png --open "Thank god it's Friday!"

© 2026 YourAI.tools. Every skill from an identity-verified publisher.

Independent catalog. Not affiliated with, endorsed by, or sponsored by Anthropic or any listed publisher. All trademarks belong to their respective owners.