AGENT SKILL

qr-code-pro

Generate and customize QR codes with error correction, styling, and scan-reliability best practices.

License 许可
MIT
所属仓库
TanNhatCMS/jarvis
最近更新
2026-11-07
Stars
★ 0
Forks
1

01 前言 Front Matter

name
qr-code-pro
category
utilities
description
Generate and customize QR codes with error correction, styling, and scan-reliability best practices.

03 SKILL.md 正文

Overview

QR codes bridge physical and digital — menus, payments, WiFi sharing, event check-ins. But a QR code that doesn't scan is worse than none. Professional QR work means choosing the right error correction, keeping data short (shorter = denser = easier to scan), styling without breaking scannability, and testing on real devices before printing thousands.

When to use

  • Generating QR codes for URLs, WiFi, vCards, or payments

  • Styling QR codes with brand colors and logos

  • Choosing error correction levels for print contexts

  • Troubleshooting QR codes that won't scan

  • Planning QR placement on packaging, signage, or print

Core concepts

    • Error correction levels. L (7%), M (15%), Q (25%), H (30%) — how much damage the code survives. Use H when adding a logo overlay or printing where wear is expected; M is fine for clean digital display. Higher correction = denser code = needs larger print size.
    • Data density vs scannability. Shorter payloads make simpler, more reliable codes. A 200-character URL creates a dense code that struggles at small sizes — shorten URLs first, then encode.
    • Quiet zone. The blank margin around the code (4 modules minimum) is part of the code. Designs that crowd text or graphics against the code break scanning — protect the quiet zone ruthlessly.
    • Contrast is critical. Dark modules on light background. Inverted (light on dark) often fails; low-contrast brand colors fail. Test styled codes — beauty that doesn't scan is decoration.
    • Logo overlays. Center logos work only with high error correction (H) and small logo size (≤20% of code area). The logo covers data modules; error correction reconstructs them — up to its limit.
    • Dynamic vs static. Static codes embed the destination permanently. Dynamic codes point to a redirect service (changeable destination, scan analytics) — useful for print runs where URLs may change, but they depend on the service staying alive.

Practical workflow

    1. Define the payload. URL (shortened), WiFi credentials (WIFI:T:WPA;S:network;P:password;;), vCard contact, plain text, or payment string. Keep it as short as possible.
    1. Choose error correction. H for print with logos or harsh environments; M/Q for general use; L only for clean digital display of short payloads.
    1. Generate at high resolution. Vector (SVG/EPS) for print — infinitely scalable. Minimum print size: ~2×2 cm for short URLs; larger for dense codes or long scan distances (billboards need huge codes — calculate by distance).
    1. Style carefully. Brand colors only if contrast stays high (test!), rounded modules are fine, logo overlay small and centered. Never distort the three finder patterns (the big squares) — scanners need them intact.
    1. Test on real devices. iOS camera, Android camera, 2-3 scanner apps, at the actual print size and expected lighting/distance. Test a physical proof before the full print run.
    1. Add a fallback. Print the short URL or instructions beneath the code ("Scan or visit example.com/menu"). Codes fail (dead phones, no signal) — always provide the alternative path.

Quick generation (Python, requires qrcode and Pillow):

import qrcode
qr = qrcode.QRCode(error_correction=qrcode.constants.ERROR_CORRECT_H,
                   box_size=10, border=4)
qr.add_data("https://example.com/menu")
qr.make(fit=True)
qr.make_image(fill_color="black", back_color="white").save("qr.png")

Common pitfalls

    • Too small to scan. A dense code printed at 1cm is unscannable. Size scales with data density and scan distance — when in doubt, go bigger.
    • Low-contrast styling. Brand-colored codes (light blue on white) that look great and scan never. Contrast first, branding second.
    • No quiet zone. Design elements crowding the code edges. The quiet zone isn't optional whitespace — it's functional.
    • Huge logo overlays. A logo covering 40% of the code exceeds error correction. Keep logos small or lose the code.
    • Encoding long URLs directly. Dense, fragile codes. Shorten first — every character removed improves reliability.
    • No testing. Assuming it scans because it generated. Print proofs, test multiple devices, test in situ (lighting, angles, distances) before committing.

04 同仓库更多 Skills

TanNhatCMS
TanNhatCMS/jarvis

web-scrape

Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open/fetch fails on JS-heavy pages, or when you need clean markdown/structured extraction from a site. Requires FIRECRAWL_API_KEY.

★ 0
TanNhatCMS
TanNhatCMS/jarvis

design-taste-frontend

tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML/CSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, "AI-made", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.

★ 0
TanNhatCMS
TanNhatCMS/jarvis

test-driven-development

Use when implementing any feature or bugfix, before writing implementation code

★ 0
TanNhatCMS
TanNhatCMS/jarvis

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes

★ 0
TanNhatCMS
TanNhatCMS/jarvis

requesting-code-review

Use when completing tasks, implementing major features, or before merging to verify work meets requirements

★ 0
TanNhatCMS
TanNhatCMS/jarvis

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).

★ 0