搜索

PythonReactSEOPDF
GitHub Skill

qr-code

Generate QR codes from URLs displayed in terminal. Use when user wants to create a QR code from a URL, link, or web address. Triggers on /qr-code commands.

erikdrouhard☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

QR Code Generator

Generate QR codes from any URL and display them directly in the terminal, save to file, or copy to clipboard.

Usage

/qr-code <url>
/qr-code <url> --output qr.png
/qr-code <url> --output qr.svg
/qr-code <url> --clipboard

Examples:

  • /qr-code https://claude.ai — Display in terminal
  • /qr-code https://claude.ai --output qr.png — Save as PNG file
  • /qr-code https://claude.ai --output qr.svg — Save as SVG file
  • /qr-code https://claude.ai --clipboard — Copy to clipboard for pasting into Figma, PowerPoint, etc.
  • /qr-code https://claude.ai -o qr.png -c — Save to file AND copy to clipboard

Execution

Run the script with uv:

# Terminal display only
uv run --with qrcode scripts/generate_qr.py <url>

# Save to PNG (requires pillow)
uv run --with qrcode --with pillow scripts/generate_qr.py <url> --output qr.png

# Save to SVG
uv run --with qrcode scripts/generate_qr.py <url> --output qr.svg

# Copy to clipboard (requires pillow)
uv run --with qrcode --with pillow scripts/generate_qr.py <url> --clipboard

Arguments:

  • url (required): The URL to encode as a QR code
  • --output, -o (optional): Save to file (.png or .svg)
  • --clipboard, -c (optional): Copy PNG to system clipboard

Output

Depending on options:

  1. Default: ASCII QR code in terminal (scannable with phone camera)
  2. --output: Saves image file + shows ASCII preview
  3. --clipboard: Copies PNG to clipboard + shows ASCII preview

Platform Support

  • macOS: Full support (clipboard uses osascript)
  • Linux: Clipboard requires xclip or xsel
  • Windows: File output only (clipboard not yet supported)

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!