360 Secure SkillHub
360 安全技能中心

Skill QR Card

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

jackleeio
jackleeio
热度 56.18
最近更新 2026-05-18 12:17:34
分类:创作依赖:代码执行 / 读写文件应用场景:图像生成 / 品牌素材 / 模板

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add 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