Skill: alone86136/local-qrcode (version 1.0.0)

--- name: local-qrcode description: Generate QR codes locally from text/URL to PNG image or ASCII art. Pure local generation using qrcode library. No API key required. Use when users need to create QR codes for links, text, or any content. --- # local-qrcode ## Overview A simple skill for generating QR codes locally. Convert any text or URL to a QR code image (PNG) or display as ASCII art in terminal. Everything runs locally, no external API calls needed. ## Features - **Generate PNG QR code**: Save QR code as PNG image file - **ASCII QR output**: Display QR code directly in terminal as ASCII art - **Customizable**: Adjust box size and border size for output ## Dependencies Requires `qrcode` and `Pillow` Python packages: ```bash pip install qrcode pillow ``` ## Usage ### Generate PNG QR code ```bash python3 scripts/generate_png.py "https://example.com" output.png ``` ### Generate ASCII QR code ```bash python3 scripts/generate_ascii.py "Hello World" ``` ### Custom size ```bash python3 scripts/generate_png.py --box-size 10 --border 4 "content" output.png ``` ## Resources ### scripts/ - `generate_png.py` - Generate QR code as PNG image file - `generate_ascii.py` - Generate QR code as ASCII art for terminal output

path: scripts/generate_ascii.py
content: #!/usr/bin/env python3
import argparse
import qrcode

def generate_qr_ascii(content):
    qr = qrcode.QRCode(
        version=None,
        error_correction=qrcode.constants.ERROR_CORRECT_L,
        box_size=1,
        border=2,
    )
    qr.add_data(content)
    qr.make(fit=True)
    
    # Print ASCII QR code
    qr.print_ascii()
    print(f"\n✅ QR content: {content}")

def main():
    parser = argparse.ArgumentParser(description="Generate QR code as ASCII art for terminal")
    parser.add_argument("content", help="Text/URL content to encode in QR code")
    args = parser.parse_args()
    
    generate_qr_ascii(args.content)

if __name__ == "__main__":
    main()


path: scripts/generate_png.py
content: #!/usr/bin/env python3
import argparse
import qrcode
from qrcode.image.pil import PilImage

def generate_qr_png(content, output_path, box_size=10, border=4):
    qr = qrcode.QRCode(
        version=None,
        error_correction=qrcode.constants.ERROR_CORRECT_L,
        box_size=box_size,
        border=border,
    )
    qr.add_data(content)
    qr.make(fit=True)
    
    img = qr.make_image(fill_color="black", back_color="white")
    img.save(output_path)
    print(f"✅ QR code saved to: {output_path}")
    print(f"   Content: {content}")
    print(f"   Size: {img.size[0]}x{img.size[1]} pixels")

def main():
    parser = argparse.ArgumentParser(description="Generate QR code as PNG image")
    parser.add_argument("content", help="Text/URL content to encode in QR code")
    parser.add_argument("output", help="Output PNG file path")
    parser.add_argument("--box-size", type=int, default=10, help="Box size in pixels (default: 10)")
    parser.add_argument("--border", type=int, default=4, help="Border size (default: 4)")
    args = parser.parse_args()
    
    generate_qr_png(args.content, args.output, args.box_size, args.border)

if __name__ == "__main__":
    main()


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)