360 Secure SkillHub
360 安全技能中心

qr-code-toolkit

该 Skill 通过 Bash 脚本调用本地 qr 命令,按用户指令生成文本或 URL、WiFi、vCard 二维码,也支持从文本文件批量生成,并可读取图片中的二维码内容;结果以 PNG 文件或解码文本返回。

yushimohuang
yushimohuang
热度 76.35
最近更新 2026-05-11 17:29:59
分类:效率依赖:代码执行 / 读写文件应用场景:图像生成 / 自动化脚本 / 文件转换

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add qr-code-toolkit
Metadata
name
qr-code-tool
description
QR code generation and reading. Use when user says "generate QR code", "create QR", "read QR code", or wants to work with QR codes.

QR Code Tool

Generate and read QR codes quickly.

Commands

Generate QR Code

When user says: "generate QR code for X", "create QR for URL Y"

bash skills/qr-code-tool-1.0.0/scripts/qr.sh generate "<text/url>" [--output filename.png]

Generate WiFi QR

When user says: "create WiFi QR code"

bash skills/qr-code-tool-1.0.0/scripts/qr.sh wifi "<ssid>" "<password>" [--encryption WPA]

Generate vCard QR

When user says: "create contact QR"

bash skills/qr-code-tool-1.0.0/scripts/qr.sh vcard "<name>" "<phone>" "<email>"

Read QR Code

When user says: "read this QR code", "decode QR"

bash skills/qr-code-tool-1.0.0/scripts/qr.sh read "<image-path>"

Batch Generate

When user says: "generate QR codes for list"

bash skills/qr-code-tool-1.0.0/scripts/qr.sh batch "<input-file.txt>" [--output-dir ./qrcodes]

Examples

# Generate QR for URL
bash skills/qr-code-tool-1.0.0/scripts/qr.sh generate "https://example.com"

# Generate WiFi QR
bash skills/qr-code-tool-1.0.0/scripts/qr.sh wifi "MyNetwork" "password123"

# Generate contact QR
bash skills/qr-code-tool-1.0.0/scripts/qr.sh vcard "John Doe" "+1234567890" "john@example.com"

# Read QR from image
bash skills/qr-code-tool-1.0.0/scripts/qr.sh read "./qrcode.png"

# Batch generate from file
bash skills/qr-code-tool-1.0.0/scripts/qr.sh batch "./urls.txt" --output-dir ./qrcodes

Output

QR codes are saved to:

  • Default: workspace/qrcodes/
  • Custom: --output parameter

Response Format

When generating:

✅ QR Code Generated
   Content: https://example.com
   File: ./qrcodes/qr_20260310_103045.png
   Size: 300x300

When reading:

📱 QR Code Content:
https://example.com/page?id=123