qr-code
Generate QR codes from URLs, text, or other data and save them as SVG, PNG, EPS, or PDF files. This skill should be used when the user asks to create, generate, or make a QR code for any content such as website URLs, text strings, WiFi credentials, contact info, or other data. Triggers include mentions of 'QR code', 'QR', 'barcode for a link', or requests to make a scannable code. Supports customization of colors, size, error correction level, and output format.
Best use case
qr-code is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Generate QR codes from URLs, text, or other data and save them as SVG, PNG, EPS, or PDF files. This skill should be used when the user asks to create, generate, or make a QR code for any content such as website URLs, text strings, WiFi credentials, contact info, or other data. Triggers include mentions of 'QR code', 'QR', 'barcode for a link', or requests to make a scannable code. Supports customization of colors, size, error correction level, and output format.
Teams using qr-code should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/qr-code/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How qr-code Compares
| Feature / Agent | qr-code | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Generate QR codes from URLs, text, or other data and save them as SVG, PNG, EPS, or PDF files. This skill should be used when the user asks to create, generate, or make a QR code for any content such as website URLs, text strings, WiFi credentials, contact info, or other data. Triggers include mentions of 'QR code', 'QR', 'barcode for a link', or requests to make a scannable code. Supports customization of colors, size, error correction level, and output format.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
SKILL.md Source
# QR Code Generator
Generate QR codes from any text or URL data, with support for multiple output formats and visual customization.
## Workflow
1. **Ask** where to save the output file:
- Desktop: `~/Desktop/my_qr.svg`
- Downloads: `~/Downloads/my_qr.svg`
- Current project directory
- A specific path they provide
2. Run `scripts/generate_qr.py` via `uv run` with the user's data and desired options.
3. Present the result to the user.
## Script Usage
The script uses PEP 723 inline metadata to declare its dependency (`segno`). Run it with `uv run` and dependencies are resolved and cached automatically — no manual installation required.
```bash
uv run ${CLAUDE_PLUGIN_ROOT}/skills/qr-code/scripts/generate_qr.py DATA OUTPUT_PATH [options]
```
### Required Arguments
| Argument | Description |
|----------|-------------|
| `DATA` | The content to encode (URL, text, etc.) |
| `OUTPUT_PATH` | Output file path. Extension determines format: `.svg`, `.png`, `.eps`, `.pdf`, `.txt` |
### Options
| Option | Default | Description |
|--------|---------|-------------|
| `--scale` | `10` | Module scale factor (pixels per module) |
| `--border` | `4` | Quiet zone border width in modules |
| `--dark` | `#000000` | Dark module color (hex) |
| `--light` | `#ffffff` | Light module color (hex) |
| `--error` | `M` | Error correction: `L`=7%, `M`=15%, `Q`=25%, `H`=30% |
| `--version` | auto | Force a specific QR version (1-40) |
| `--micro` | off | Create a Micro QR Code (for very short data) |
| `--transparent` | off | Transparent background (SVG/PNG only) |
## Format Guidance
- **SVG** (`.svg`): Recommended default. Scalable vector, ideal for print and web. Smallest file size.
- **PNG** (`.png`): Raster image. Requires `pillow` as an additional dependency. Good for embedding in documents.
- **EPS** (`.eps`): Vector format for professional print workflows.
- **PDF** (`.pdf`): Vector PDF, good for print-ready documents.
Default to **SVG** unless the user requests otherwise.
## Error Correction Guidance
| Level | Recovery | When to use |
|-------|----------|-------------|
| L | 7% | Maximum data density, clean environments |
| **M** | **15%** | **Default. Good balance for most uses** |
| Q | 25% | QR codes that may be partially obscured |
| H | 30% | QR codes with logos overlaid, harsh environments |
If the user wants to overlay a logo on the QR code, suggest `--error H` for maximum resilience.
## Examples
Generate a basic SVG QR code:
```bash
uv run ${CLAUDE_PLUGIN_ROOT}/skills/qr-code/scripts/generate_qr.py "https://example.com/" ~/Desktop/example_qr.svg
```
Generate a styled PNG with custom colors:
```bash
uv run ${CLAUDE_PLUGIN_ROOT}/skills/qr-code/scripts/generate_qr.py "https://example.com/" ~/Downloads/example_qr.png \
--scale 20 --dark "#1a1a2e" --light "#f0f0f0" --error H
```
Generate a compact Micro QR for short text:
```bash
uv run ${CLAUDE_PLUGIN_ROOT}/skills/qr-code/scripts/generate_qr.py "HELLO" ~/Desktop/hello_qr.svg --micro --scale 15
```
Transparent background SVG:
```bash
uv run ${CLAUDE_PLUGIN_ROOT}/skills/qr-code/scripts/generate_qr.py "https://example.com/" ~/Desktop/example_qr.svg --transparent
```Related Skills
obsidian-cli
Use the Obsidian CLI to manage knowledge in an Obsidian vault — daily notes, search, tasks, tags, link graph analysis, properties, templates, and file operations. This skill should be used when the user asks to interact with their Obsidian vault, manage daily notes, search notes, manage tasks, explore tags or backlinks, set properties, use templates, or perform vault maintenance.
powerpoint
Create professional PowerPoint presentations. Use when asked to "create a PowerPoint", "make a presentation", "build slides", or generate pptx files.
pdf-ocr
Parse PDF files to markdown using GLM-OCR via Ollama locally. Converts each page to an image, runs OCR, and outputs clean markdown. Use when the user wants to extract text from a PDF.
ralph-method
Set up a Ralph Wiggum task - runs Phase 1 (requirements interview) and Phase 2 (implementation planning), then stops with instructions to run the building loop. Creates namespaced specs in specs/[task-name]/.
journal
An agent to journal developer activity over a specified time period.
walkthrough-creator
Create and maintain the walkthrough artifact during implementation
task-list-creator
Create or update the task list artifact from gathered requirements
implementation-plan-creator
Create the implementation plan artifact from an approved task list
adr-manager
Add Architecture Decision Record (ADR) entries to an ADR file. This skill should be used when recording significant architectural decisions during development. It handles formatting and appending entries using Michael Nygard's ADR template.
essay-draft-from-research
Produces a long-form essay draft grounded in a user-supplied directory of research documents via an interview workflow. Use whenever the user wants to "draft an essay from my research", "write an essay from these notes", "turn this research directory into an essay", "I've been collecting notes on X, help me draft an essay", or "draft a long-form piece using these sources". Do NOT use for: one-shot summarization of a single document, short notes or tweets under ~600 words, pure research-findings synthesis with no drafting, or essay drafting when there is no research corpus to ground in.
feature-spec-creator
Generates a feature spec for an existing codebase via an interview workflow. Use when the user wants to write, draft, or scope a feature spec — phrases like "write a feature spec", "spec out this feature", "draft a spec for X", "I want to add X to this codebase", "let's plan a new feature", or "scope out this feature". Do NOT use for bug fixes, pure refactors with no behavior change, or greenfield projects with no existing code.
create-skill
Creates a new Claude Code skill that follows the Anchored Interview pattern — ground in a CORPUS, run an interview anchored by that grounding, then produce a single ARTIFACT. Use whenever the user wants to scaffold, generate, or design an interview-style skill — phrases like "make me an anchored interview skill", "create a skill that interviews me about X and produces Y", "scaffold a skill that reads my <corpus> and writes a <artifact>", "I want a skill for spec/draft/plan/findings creation via interview", or any request to build a skill that has the ground-then-ask-then-act shape. Do NOT use for: running an anchored interview on a specific task (this skill *creates* such skills, it doesn't perform them — for that, use or create the appropriate task-specific skill); editing an existing SKILL.md; one-shot transformations with no judgment calls; or skills where there is no corpus to ground in.