No slash command · from anglesite
Generates branded QR codes for print materials with UTM-tracked shortlinks and campaign-tagged URLs. Enforces UTM best practices automatically.
Ships in anglesite. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generate branded QR codes for print materials and set up UTM-tracked shortlinks. Also generates campaign-tagged URLs for ad agencies or social media. Called when the owner asks about QR codes, print materials, or marketing links — not invoked directly.
qrcode npm package, no external APIsAll UTM values are automatically sanitized:
| Parameter | What it is | What it is NOT | Examples |
|---|---|---|---|
utm_source | The platform or origin | Not the channel type | facebook, newsletter, qr, partner-site |
utm_medium | The channel type | Not the platform name | print, email, paid-social, cpc, referral |
utm_campaign | The specific campaign | Not generic | spring-flyer-2026, march-promo, table-tent |
utm_content | A/B test variant (optional) | headline-a, sidebar-ad, header-cta | |
utm_term | Keyword or copy variant (optional) | pizza-near-me, free-trial |
Valid medium values: print, email, paid-social, organic-social, cpc, display, referral, affiliate, video, audio, sms, push, qr
Common mistakes the system prevents:
When the owner asks for a QR code, determine what they need:
For each QR code, ask for a label (e.g., "table-tent", "business-card", "spring-flyer"). This becomes the utm_campaign value for tracking.
Generate one code per command. --label becomes both the utm_campaign value and the file name; --path is the page the code opens (omit it for the homepage):
npm run ai-qr -- --label business-card
npm run ai-qr -- --path /menu --label table-tent
With no arguments it writes homepage.svg for the homepage. The script reads SITE_DOMAIN from .site-config (it stops with a message if the site has no domain yet), cleans the label (lowercase, dashes), and prints the file name and the full tracked URL — read both back from its output rather than guessing them. For a sheet of several codes, run it once per code.
QR codes are saved as SVGs to public/images/qr/, branded with the site's primary color.
Tell the owner: "Your QR code is saved at public/images/qr/[label].svg. It's an SVG so it prints perfectly at any size — business card to poster."
For podcast-style URLs ("visit example.com/podcast" or "go to example.com/menu"):
/podcast, /menu, /deal)_redirects line with UTM tracking baked inAppend to public/_redirects:
/podcast /?utm_source=podcast&utm_medium=audio&utm_campaign=episode-42 301
/menu /services?utm_source=qr&utm_medium=print&utm_campaign=menu-card 301
Tell the owner: "Anyone who visits example.com/podcast will be redirected to your homepage, and you'll see them in your analytics as 'podcast' traffic."
When the owner (or their agency) needs UTM-tagged URLs for ads or social campaigns:
Example interaction:
https://example.com?utm_source=facebook&utm_medium=paid-social&utm_campaign=march-promoIf the values have issues (e.g., medium="facebook"), explain: "I adjusted 'facebook' to the source and set medium to 'paid-social' — this follows best practices so your analytics data stays clean."
Tell the owner: "You can see how each QR code, shortlink, and ad campaign is performing by running /anglesite:stats. It shows a breakdown of visits from each campaign."
The stats skill reads the campaign breakdown from Cloudflare Analytics.
After generating QR codes or shortlinks, update:
docs/architecture.md — note the QR codes in public/images/qr/public/_redirects — any new shortlink entriesWhat SKILL.md sets; muted values are Claude Code's defaults
Use when the owner needs a QR code for print, signage, packaging, or an event, especially one that tracks where scans come from.
Three short reads, in order
npx claudepluginhub anglesite/anglesite-skills --plugin anglesite56 skills in this plugin
/bookingEmbed appointment scheduling (Cal.com or Calendly) into the siteOther plugins' skills for the same job