home / skills / aidotnet / moyucode / qrcode-generator
This skill generates QR codes from text, URLs, or data with customizable colors and embedded logos for flexible output.
npx playbooks add skill aidotnet/moyucode --skill qrcode-generatorReview the files below or copy the command above to add this skill to your agents.
---
name: qrcode-generator
description: 从文本、URL或数据生成二维码,支持自定义颜色、Logo和多种输出格式。
metadata:
short-description: 生成二维码
source:
repository: https://github.com/lincolnloop/python-qrcode
license: BSD
---
# QR Code Generator Tool
## Description
Generate QR codes with custom styling, colors, and embedded logos.
## Trigger
- `/qrcode` command
- User requests QR code generation
- User needs to encode data as QR
## Usage
```bash
# Generate simple QR code
python scripts/qrcode_generator.py --data "https://example.com" --output qr.png
# Generate with custom colors
python scripts/qrcode_generator.py --data "Hello" --output qr.png --fill-color "#000000" --back-color "#FFFFFF"
# Generate with logo
python scripts/qrcode_generator.py --data "https://example.com" --output qr.png --logo logo.png
```
## Tags
`qrcode`, `barcode`, `image`, `encoding`
## Compatibility
- Codex: ✅
- Claude Code: ✅
This skill generates QR codes from text, URLs, or arbitrary data with options for custom colors, embedded logos, and multiple output formats. It is implemented in TypeScript and exposes a simple command-style interface for quick generation of image files. The tool focuses on readable, high-quality QR output suitable for print and digital use.
You provide the input data (plain text, URL, or encoded payload) and the skill encodes it into a QR matrix, then renders that matrix to an image file. Rendering supports parameters for foreground/background colors, logo overlays centered in the code, and export formats such as PNG or SVG. The generator ensures sufficient error correction when a logo is used so the code remains scannable.
Can I include a logo without breaking the QR code?
Yes — the skill increases error correction when a logo is added; keep the logo small and test scanning across devices.
What output formats are supported?
Common formats such as PNG and SVG are supported to cover both raster and vector use cases.