← 返回 Skills 市场
jayxu-d

My Generate Qr Code

作者 JayXu-D · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
402
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install my-generate-qr-code
功能描述
生成二维码/条形码,支持文本、URL、WiFi 配置等内容,可自定义尺寸、颜色并指定保存路径
安全使用建议
This skill appears to do what it claims: generate and save QR images. Before installing or using it consider: (1) it will attempt to run pip at runtime to install 'qrcode' and 'pillow' from PyPI (network download and disk writes) — if you prefer, install those packages yourself ahead of time; (2) it will write files to the filesystem (default: Desktop) and will create directories if necessary — ensure the save path is trusted and writable; (3) there are minor implementation issues (it checks for 'pillow' via __import__('pillow') though Pillow is imported as PIL, and it claims to filter special characters / validate WiFi format but the code does not enforce these), so avoid feeding sensitive data until you review or test behaviour; (4) if you need stricter validation or want to avoid runtime package installs, review/modify the agent.py before use.
功能分析
Type: OpenClaw Skill Name: my-generate-qr-code Version: 1.0.0 The skill is classified as suspicious due to a critical arbitrary file write vulnerability in `agent.py`. The `save_path` parameter in the `generate_qr` function is directly used to save the image without sufficient sanitization or restriction, allowing an attacker to potentially write files to arbitrary locations on the filesystem via prompt injection against the agent. Additionally, the `install_dependencies` function uses `subprocess.check_call` to install packages, which, while used for legitimate dependencies here, represents a risky capability for executing external commands.
能力评估
Purpose & Capability
Name/description match the included agent.py and SKILL.md: the skill generates QR images, supports size/color, and saves to a path. It does not request unrelated credentials, binaries, or config paths.
Instruction Scope
SKILL.md instructs the agent to call generate_qr and to auto-install qrcode/Pillow if missing — the code does perform these actions. However, SKILL.md mentions filtering special characters and WiFi-format validation; the provided code does not implement explicit content filtering or WiFi-format validation, so behavior for those edge cases is not implemented as claimed.
Install Mechanism
There is no external install spec, but agent.py will attempt to run pip at runtime (sys.executable -m pip install ...) to fetch qrcode and pillow from PyPI. These are standard packages (no custom URLs), but the runtime pip install performs network downloads and writes to disk. Also, the import check uses '__import__("pillow")' while Pillow is imported as 'PIL', which may trigger unnecessary pip installs.
Credentials
The skill requests no credentials and no special env vars. It does read USERPROFILE to locate the Windows Desktop when save_path is omitted; that is reasonable for determining a default path but is undocumented in requires.env and could raise a KeyError on unusual environments.
Persistence & Privilege
The skill is not always-enabled, does not persist agent-wide changes, and only writes image files to the filesystem (user-specified paths). It does not modify other skills or system settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install my-generate-qr-code
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /my-generate-qr-code 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
my-generate-qr-code 1.0.0 - 初始版本发布,支持生成二维码/条形码,可处理文本、URL、WiFi 配置信息。 - 可自定义二维码尺寸、颜色及保存路径(默认保存到桌面)。 - 具备错误处理:内容为空、路径无权限、缺少依赖库等常见场景。 - 依赖 qrcode 与 Pillow 库,未安装时自动尝试安装并给出提示。 - 支持识别和过滤特殊字符,确保二维码生成的有效性。
元数据
Slug my-generate-qr-code
版本 1.0.0
许可证
累计安装 1
当前安装数 1
历史版本数 1
常见问题

My Generate Qr Code 是什么?

生成二维码/条形码,支持文本、URL、WiFi 配置等内容,可自定义尺寸、颜色并指定保存路径. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 402 次。

如何安装 My Generate Qr Code?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install my-generate-qr-code」即可一键安装,无需额外配置。

My Generate Qr Code 是免费的吗?

是的,My Generate Qr Code 完全免费(开源免费),可自由下载、安装和使用。

My Generate Qr Code 支持哪些平台?

My Generate Qr Code 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 My Generate Qr Code?

由 JayXu-D(@jayxu-d)开发并维护,当前版本 v1.0.0。

💬 留言讨论