← Back to Skills Marketplace
二维码生成器
by
nbf819-web
· GitHub ↗
· v3.0.0
638
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install pr-generator
Description
Generate QR codes from text, URLs, or images. Use when users ask to 'generate QR code', 'create QR', or 'make QR code for'. Supports text content, URLs, and...
Usage Guidance
This skill appears to do exactly what it says. Before installing or invoking it: (1) only provide image file paths you trust (the skill will read the file and may embed it in the QR), (2) be aware embedding whole images as base64 often creates very dense or unscannable QR codes—use an image URL when possible, (3) install the listed Python packages in a virtualenv to avoid system-wide package changes, and (4) review/scan the included agent.py if you require extra assurance (it currently performs only local file reading, base64 encoding, and writing to the temp directory).
Capability Analysis
Type: OpenClaw Skill
Name: pr-generator
Version: 3.0.0
The `agent.py` skill is suspicious due to a Local File Inclusion (LFI) vulnerability. The `image_path` parameter in the `handle_call` function, which is processed by `file_to_base64`, allows reading arbitrary files on the system (e.g., `/etc/passwd`, `~/.ssh/id_rsa`). The content of these files is then base64 encoded and embedded into a QR code image, whose path is returned by the skill. While the skill's stated purpose is to generate QR codes from images, the lack of input sanitization or path restrictions on `image_path` creates a significant information disclosure risk, allowing an attacker to potentially extract sensitive data via crafted input. There is no evidence of intentional malicious behavior like exfiltration to external servers or backdoor installation, classifying this as a vulnerability rather than malware.
Capability Assessment
Purpose & Capability
Name/description (QR code generation) matches the files and declared requirements: the skill only depends on qrcode and Pillow, reads specified local image paths, and writes QR images to the temp directory. There are no unexpected environment variables, binaries, or config paths requested.
Instruction Scope
SKILL.md and agent.py restrict file access to supplied image paths and temp dir, and the code returns an image path. Minor note: the implementation embeds local images as base64 data URLs into the QR payload when small enough, which can produce very dense/unscannable QR codes; SKILL.md mentions preferring URLs but does not enforce or warn about scannability. Also the SKILL.md prints full source — that's transparent but not a security issue.
Install Mechanism
No custom install spec; dependencies are standard Python packages (qrcode[pil], Pillow) listed in requirements.txt and suggested pip install in SKILL.md. No downloads from arbitrary URLs or archive extraction.
Credentials
The skill requests no environment variables or credentials. It legitimately reads local image files (as declared) and writes to the system temp directory; that access is proportional to its purpose. Users should be aware that any local file path they pass will be read.
Persistence & Privilege
always is false, no special persistence or system-wide config changes are requested, and the skill 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 pr-generator - After installation, invoke the skill by name or use
/pr-generator - Provide required inputs per the skill's parameter spec and get structured output
Version History
v3.0.0
Summary: Major update introducing new features and improved functionality.
- Generate QR codes from text, URLs, or local images with automatic compression.
- Supports customizable QR code size and colors.
- Returns the image path for easy sharing.
- Improved error handling for large image files (>10MB).
- Expanded usage examples and documentation.
Metadata
Frequently Asked Questions
What is 二维码生成器?
Generate QR codes from text, URLs, or images. Use when users ask to 'generate QR code', 'create QR', or 'make QR code for'. Supports text content, URLs, and... It is an AI Agent Skill for Claude Code / OpenClaw, with 638 downloads so far.
How do I install 二维码生成器?
Run "/install pr-generator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 二维码生成器 free?
Yes, 二维码生成器 is completely free (open-source). You can download, install and use it at no cost.
Which platforms does 二维码生成器 support?
二维码生成器 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 二维码生成器?
It is built and maintained by nbf819-web (@nbf819-web); the current version is v3.0.0.
More Skills