← Back to Skills Marketplace
402
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install my-generate-qr-code
Description
生成二维码/条形码,支持文本、URL、WiFi 配置等内容,可自定义尺寸、颜色并指定保存路径
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install my-generate-qr-code - After installation, invoke the skill by name or use
/my-generate-qr-code - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
my-generate-qr-code 1.0.0
- 初始版本发布,支持生成二维码/条形码,可处理文本、URL、WiFi 配置信息。
- 可自定义二维码尺寸、颜色及保存路径(默认保存到桌面)。
- 具备错误处理:内容为空、路径无权限、缺少依赖库等常见场景。
- 依赖 qrcode 与 Pillow 库,未安装时自动尝试安装并给出提示。
- 支持识别和过滤特殊字符,确保二维码生成的有效性。
Metadata
Frequently Asked Questions
What is My Generate Qr Code?
生成二维码/条形码,支持文本、URL、WiFi 配置等内容,可自定义尺寸、颜色并指定保存路径. It is an AI Agent Skill for Claude Code / OpenClaw, with 402 downloads so far.
How do I install My Generate Qr Code?
Run "/install my-generate-qr-code" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is My Generate Qr Code free?
Yes, My Generate Qr Code is completely free (open-source). You can download, install and use it at no cost.
Which platforms does My Generate Qr Code support?
My Generate Qr Code is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created My Generate Qr Code?
It is built and maintained by JayXu-D (@jayxu-d); the current version is v1.0.0.
More Skills