Files
u-claw/portable/skills-cn/qrcode-maker/SKILL.md
hfshfg 8bffa5d9d7 feat(portable): 预装国内渠道+本地模型自动发现+4个新技能
- release.yml 便携包离线预装 钉钉/飞书中国版/企业微信 插件(借鉴 openclaw-china 生态)
- config-server 新增 /api/local-models:自动探测 Ollama/LM Studio 本地模型(借鉴 RealShocky/openclaw-windows)
- Config.html 检测到本地模型自动生成卡片、免 Key 点选即用;新增钉钉渠道卡片
- skills-cn 新增 pdf-toolkit/web-to-markdown/qrcode-maker/image-compress(13→17)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 22:45:59 +08:00

53 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
name: qrcode-maker
description: "二维码生成 - 把网址/文本/WiFi 信息生成二维码图片,本地离线生成"
metadata: { "openclaw": { "emoji": "🔳" } }
---
# 二维码生成
帮用户把网址、文本、联系方式、WiFi 信息生成二维码图片,本地离线生成,不上传任何数据。
## 能力概述
- **网址/文本二维码**:任意内容转二维码 PNG
- **WiFi 二维码**:扫码即连,免手输密码
- **终端预览**:直接在对话里用字符画展示二维码
## 操作方式
用 Bash 工具Python 的 qrcode 库(轻量、纯本地):
```bash
python -c "import qrcode" 2>/dev/null || pip install -q "qrcode[pil]"
# 网址/文本 -> PNG
python - <<'PY'
import qrcode
qrcode.make("https://u-claw.org").save("qrcode.png")
print("已生成 -> qrcode.png")
PY
# WiFi 二维码(扫码自动连网)
python - <<'PY'
import qrcode
ssid, pwd, enc = "MyWiFi", "password123", "WPA" # enc: WPA / WEP / nopass
data = f"WIFI:T:{enc};S:{ssid};P:{pwd};;"
qrcode.make(data).save("wifi-qr.png")
print("已生成 WiFi 二维码 -> wifi-qr.png")
PY
# 终端字符画预览(不存文件,直接看)
python - <<'PY'
import qrcode
q = qrcode.QRCode(); q.add_data("https://u-claw.org"); q.make()
q.print_ascii(invert=True)
PY
```
## 使用建议
- 先确认用户要编码的内容、是否保存为文件
- 生成后用 Read 工具把 PNG 展示给用户看
- 内容过长(如整段文字)二维码会很密集,提示用户改用短链