{
  "schemaVersion": "1.0",
  "item": {
    "slug": "generate-qr-code",
    "name": "我的二维码生成技能",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/YangZhenFu/generate-qr-code",
    "canonicalUrl": "https://clawhub.ai/YangZhenFu/generate-qr-code",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/generate-qr-code",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=generate-qr-code",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "agent.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/generate-qr-code"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/generate-qr-code",
    "agentPageUrl": "https://openagent3.xyz/skills/generate-qr-code/agent",
    "manifestUrl": "https://openagent3.xyz/skills/generate-qr-code/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/generate-qr-code/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "1. Description",
        "body": "当用户需要将文本、URL、WiFi 信息等转换为可视化二维码时，使用此技能生成二维码图片，并保存到指定路径（默认保存到桌面），支持自定义尺寸和颜色。"
      },
      {
        "title": "2. When to use",
        "body": "用户说：“帮我把 https://openclaw.ai 生成二维码”\n用户说：“生成一个包含 WiFi 信息的二维码，名称：MyWiFi，密码：12345678”\n用户说：“生成黑色二维码，内容是‘Hello OpenClaw’，保存到 D 盘根目录”\n用户说：“帮我做一个 400px 大小的二维码，内容是我的手机号 13800138000”"
      },
      {
        "title": "3. How to use",
        "body": "从用户消息中提取核心参数：\n\n必选：生成内容（文本/URL/WiFi 信息，WiFi 格式需为“WIFI:S:名称;T:类型;P:密码;;”）；\n可选：尺寸（默认 300px）、颜色（默认黑色）、保存路径（默认桌面）；\n\n\n若用户未指定可选参数，使用默认值；\n调用 agent.py 中的 generate_qr 函数执行生成操作；\n返回结果：告知用户二维码保存路径，若生成失败，说明具体原因（如路径无权限、内容为空）。"
      },
      {
        "title": "4. Implementation（代码关联说明）",
        "body": "依赖库：qrcode（生成二维码）、Pillow（图片处理）；\n核心函数：async def generate_qr(text: str, size: int = 300, color: str = \"black\", save_path: str = None)；\n参数说明：\n\ntext：二维码内容（必选）；\nsize：二维码尺寸（单位 px，默认 300）；\ncolor：填充颜色（默认 black，支持英文颜色名或十六进制色值，如 #FF0000）；\nsave_path：保存路径（默认桌面，文件名：qr_code.png）。"
      },
      {
        "title": "5. Edge cases",
        "body": "内容为空：回复“请提供需要生成二维码的内容（如文本、URL、WiFi 信息）”；\n保存路径无权限：回复“指定路径无写入权限，请更换保存路径（如桌面）”；\n未安装依赖库：自动尝试安装 qrcode 和 Pillow，若安装失败，提示用户手动执行“pip install qrcode pillow”；\n特殊字符内容：自动过滤无效字符，确保二维码可正常识别。"
      }
    ],
    "body": "name: generate-qr-code description: 生成二维码/条形码，支持文本、URL、WiFi 配置等内容，可自定义尺寸、颜色并指定保存路径 version: 1.0.0 author: 你的名字 permissions: 文件写入权限（用于保存二维码图片）\nGenerate QR Code Skill（生成二维码技能）\n1. Description\n\n当用户需要将文本、URL、WiFi 信息等转换为可视化二维码时，使用此技能生成二维码图片，并保存到指定路径（默认保存到桌面），支持自定义尺寸和颜色。\n\n2. When to use\n用户说：“帮我把 https://openclaw.ai 生成二维码”\n用户说：“生成一个包含 WiFi 信息的二维码，名称：MyWiFi，密码：12345678”\n用户说：“生成黑色二维码，内容是‘Hello OpenClaw’，保存到 D 盘根目录”\n用户说：“帮我做一个 400px 大小的二维码，内容是我的手机号 13800138000”\n3. How to use\n从用户消息中提取核心参数：\n必选：生成内容（文本/URL/WiFi 信息，WiFi 格式需为“WIFI:S:名称;T:类型;P:密码;;”）；\n可选：尺寸（默认 300px）、颜色（默认黑色）、保存路径（默认桌面）；\n若用户未指定可选参数，使用默认值；\n调用 agent.py 中的 generate_qr 函数执行生成操作；\n返回结果：告知用户二维码保存路径，若生成失败，说明具体原因（如路径无权限、内容为空）。\n4. Implementation（代码关联说明）\n依赖库：qrcode（生成二维码）、Pillow（图片处理）；\n核心函数：async def generate_qr(text: str, size: int = 300, color: str = \"black\", save_path: str = None)；\n参数说明：\ntext：二维码内容（必选）；\nsize：二维码尺寸（单位 px，默认 300）；\ncolor：填充颜色（默认 black，支持英文颜色名或十六进制色值，如 #FF0000）；\nsave_path：保存路径（默认桌面，文件名：qr_code.png）。\n5. Edge cases\n内容为空：回复“请提供需要生成二维码的内容（如文本、URL、WiFi 信息）”；\n保存路径无权限：回复“指定路径无写入权限，请更换保存路径（如桌面）”；\n未安装依赖库：自动尝试安装 qrcode 和 Pillow，若安装失败，提示用户手动执行“pip install qrcode pillow”；\n特殊字符内容：自动过滤无效字符，确保二维码可正常识别。"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/YangZhenFu/generate-qr-code",
    "publisherUrl": "https://clawhub.ai/YangZhenFu/generate-qr-code",
    "owner": "YangZhenFu",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/generate-qr-code",
    "downloadUrl": "https://openagent3.xyz/downloads/generate-qr-code",
    "agentUrl": "https://openagent3.xyz/skills/generate-qr-code/agent",
    "manifestUrl": "https://openagent3.xyz/skills/generate-qr-code/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/generate-qr-code/agent.md"
  }
}