360 Secure SkillHub
360 安全技能中心

Skill QR Card

通过 Node 脚本按技能 slug、标题与载荷模式(安装命令、ClawHub 链接、GitHub 链接)生成样式化二维码卡片,默认输出 SVG,系统存在 ImageMagick convert 时可额外生成 PNG,并打印 MEDIA 路径便于分享;样式与载荷约定见参考文档。

分类:创作
jackleeio
jackleeio
热度 41.90
最近更新 2026-05-18 12:17:34

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add jackleeio/skill-qr-card
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
skill-qr-card
description
Generate styled QR images/cards for ClawHub skills so users can scan and install instantly. Supports install-command payloads, ClawHub links, and GitHub links, with share-ready outputs (SVG/PNG). Use when users ask for “scan to install” visuals, QR sharing assets, or branded QR variants for skill distribution.

Skill QR Card

Create a styled QR card (SVG or PNG) that users can scan to install a skill instantly.

Workflow

  1. Collect inputs
    • skill slug (required)
    • display title (optional)
    • target payload mode: install command / ClawHub URL / README URL
  2. Generate QR card
    • Use scripts/generate_qr_card.js.
  3. Return output files
    • SVG (always)
    • PNG (optional if ImageMagick convert is available)
  4. Share result
    • Send generated image path directly.

Commands

  • Basic:
    • node scripts/generate_qr_card.js --slug skill-feed
  • Custom title + mode:
    • node scripts/generate_qr_card.js --slug skill-feed --title "SkillFeed" --mode install
  • Custom output:
    • node scripts/generate_qr_card.js --slug skill-feed --out ./images/skillfeed-card.svg

Modes

  • install (default): QR payload = clawhub install <slug>
  • clawhub: QR payload = https://clawhub.ai/<slug>
  • github: QR payload = https://github.com/<owner>/<repo> (requires --github)

Output

  • MEDIA:./images/<file>.svg line is printed for quick sharing.
  • Optional PNG is generated when system has convert installed.

References

  • Styling and payload conventions: references/design-guidelines.md