Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
Version History
Enhance security and validation in QR code generation script.
What This Skill Does
Generates QR codes from text or URLs in SVG, PNG, or JPG formats. Supports custom colors, dot shapes, finder pattern styles, and error correction levels. Output files are saved to the workspace root with path traversal protection enforced.
Combines format flexibility, styling options, and error correction tuning in a single CLI tool, avoiding the need to use separate web services or image editors for QR code customization.
When to use it
- Generating a branded QR code for a business card with custom colors
- Creating a WiFi credential QR code for a guest network
- Producing a high-resolution QR code for a print poster
- Making a transparent PNG QR code for logo overlay use
- Generating a vCard QR code with rounded styling for social media
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: Generate a styled QR code for https://example.com with circular dots and blue color, suitable for a business card
- 1Runs generate.mjs with the URL, --dot circle, --eye rounded, --color #2563eb, --format svg, and --ec Q flags
- 2Saves the output SVG to the workspace root
- 3Displays the generated file using markdown image syntax
- 4Confirms the file path and format to the user
- 5Offers to regenerate with different size or styling if needed
SVG file at workspace root displaying a blue circular-dot QR code scannable to https://example.com