360 Secure SkillHub
360 安全技能中心

Qr Generator

核心功能:根据指定文本或URL生成可自定义尺寸、颜色的QR码,支持输出为PNG/SVG图片或终端ASCII艺术码。典型场景:快速转换长链接、WiFi凭证、文本片段为QR码,供移动端扫码获取,还可结合飞书接口发送给指定用户。输入为命令行参数,输出对应格式的QR码文件或终端显示内容。

autogame-17
autogame-17
热度 75.82
最近更新 2026-05-20 03:35:36
分类:效率依赖:代码执行应用场景:文件转换

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add qr-generator
Metadata
name
qr-generator
description
Generate QR codes from text or URL for mobile scanning.

QR Generator

Generates a QR code image (PNG/SVG) or terminal output from a given text or URL. Useful for transferring long URLs, WiFi credentials, or text snippets to mobile devices via Feishu (scan QR).

Usage

# Generate a QR code image
node skills/qr-generator/index.js --text "https://openclaw.ai" --output "qr_code.png"

# Generate to terminal (ASCII art)
node skills/qr-generator/index.js --text "Hello World" --terminal

Options

  • -t, --text <text>: The text or URL to encode (required).
  • -o, --output <path>: Output file path (e.g., code.png, code.svg).
  • --terminal: Output QR code as ASCII art to the terminal.
  • --width <number>: Width of the image (default: 500).
  • --color-dark <hex>: Dark color (default: #000000).
  • --color-light <hex>: Light color (default: #ffffff).

Example: Send QR to Feishu

# 1. Generate QR code
node skills/qr-generator/index.js --text "https://example.com" --output "temp_qr.png"

# 2. Send to user via Feishu
node skills/feishu-image/send.js --target "ou_xxx" --file "temp_qr.png"

# 3. Clean up
rm temp_qr.png