qr-code-generator

qr-code-generator is a skill for Claude Code, Codex from nicepkg/ai-workflow. It costs 37 tokens per session (488 once invoked), scanned A, original, MIT.

A tool for turning a web address into a QR code, a square pattern that a phone camera can scan to open the address. It can add labels, tracking parameters, and PNG or SVG exports.

In plain words
What is it for?
Use it to make single or batch QR codes from URLs, add campaign tracking, create labeled codes, and export versions for screens, print, or stickers.
Why use it?
It removes the need to create QR graphics manually and lets printed or offline materials carry trackable links. It also checks links for basic safety concerns before generating them.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/nicepkg/ai-workflow/qr-code-generator
Any agent
npx skills add nicepkg/ai-workflow --skill qr-code-generator
Clone the repo
git clone --depth 1 https://github.com/nicepkg/ai-workflow

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for qr-code-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/nicepkg/ai-workflow/qr-code-generator.svg)](https://agentmods.dev/skills/nicepkg/ai-workflow/qr-code-generator)
Your own site
<a href="https://agentmods.dev/skills/nicepkg/ai-workflow/qr-code-generator"><img src="https://agentmods.dev/badge/skills/nicepkg/ai-workflow/qr-code-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 488 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00037 $0.00488
Opus 5 $0.00018 $0.00244
Sonnet 5 $0.00007 $0.00098
Haiku 4.5 $0.00004 $0.00049

Measured yesterday against content hash 91ff78345b74, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

qr-code-generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/batch_generate.py, scripts/generate_qr.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

workflows/marketing-pro-workflow/.claude/skills/qr-code-generator/SKILL.md · 58 lines

What it actually says

QR Code Generator

What this skill does

Given a URL, this skill generates:

  • a QR code that encodes the URL
  • optional captions (human-readable URL or short label)
  • exports in PNG and/or SVG
  • optional batch runs from a CSV

Guardrails

  • Don’t generate QR codes for suspicious links (phishing, credential prompts, malware). If unsure, ask for confirmation or suggest a safer destination page.
  • Prefer HTTPS URLs.
  • If the QR is for print, prefer SVG (scales cleanly) and high error correction.

Inputs

Required:

  • URL

Optional:

  • label/caption text (e.g., “Scan to book a call”)
  • whether to show the URL under the QR (yes/no)
  • output formats: PNG, SVG
  • UTM params (source, medium, campaign, content, term)
  • size intent: screen / print / sticker

Workflow

  1. Validate the URL (scheme + domain).
  2. Optionally append UTM parameters (using assets/templates/utm_template.json).
  3. Generate QR:
    • Error correction: M (default), H for print/complex usage
    • Border: 4 (default)
  4. Export:
    • PNG (good for web)
    • SVG (best for print)
  5. If caption enabled:
    • PNG: add label and/or URL under the QR
    • SVG: add a text element under the QR
  6. Return links + a quick “usage notes” block (recommended minimum size, print tips).

Output format (required)

  • Encoded URL (final URL after UTM, if used)
  • Files generated (with links)
  • Recommendations (error correction, min size, when to use SVG vs PNG)

Scripts in this pack

  • scripts/generate_qr.py — single QR (PNG/SVG, optional caption)
  • scripts/batch_generate.py — batch from CSV (id,url,label)

Templates

  • assets/templates/utm_template.json
  • assets/templates/print_notes.md
  • assets/templates/prompt_snippets.md
Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 58 lines · 37 tokens per session scan A 91ff78345b74

Subscribe to this mod's changes

qr-code-generator is a skill published in the GitHub repository nicepkg/ai-workflow (283 stars, last pushed 7mo ago), licensed MIT. It adds 37 tokens to every session and 488 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.