본문으로 건너뛰기
cccskills
무료GitHub에 공개

qr-code-generator

Generate QR code images from text, URLs, or contact information using Python's qrcode library. Supports customization (size, margin, color, error correction) and batch generation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(5)

  • SKILL.md4.0 KB
  • references/qr-code-parameters.md5.3 KB
  • scripts/generate_qr.py12.8 KB
  • scripts/tests/conftest.py1.6 KB
  • scripts/tests/test_generate_qr.py9.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

QR Code Generator

Overview

Generate QR code images from arbitrary strings (URLs, text, contact information, etc.) using Python's qrcode library. Supports customization of size, margin (quiet zone), foreground/background colors, and error correction levels. Batch generation mode allows creating multiple QR codes from a CSV or JSON input file.

When to Use

  • User wants to generate a QR code from a URL, text, or data
  • User needs to create multiple QR codes in batch from a file
  • User requests a QR code with specific customization (size, colors, error correction)
  • User asks to encode contact information (vCard) as a QR code
  • User wants to preview a generated QR code image

Prerequisites

  • Python 3.9+
  • No API keys required
  • Required packages: qrcode[pil] (includes Pillow for PNG output)

Install dependencies:

pip install "qrcode[pil]"

Workflow

Step 1: Determine QR Code Parameters

Gather the following information from the user:

  • Data: The string to encode (URL, text, vCard, etc.)
  • Output path: Where to save the PNG image (default: ./qr_output.png)
  • Box size: Pixels per QR code module (default: 10)
  • Border: Quiet zone width in modules (default: 4, minimum 4 per spec)
  • Fill color: Foreground color (default: black)
  • Back color: Background color (default: white)
  • Error correction: L (7%), M (15%), Q (25%), H (30%) (default: M)

Step 2: Generate Single QR Code

For a single QR code, run the generation script:

python3 scripts/generate_qr.py \
  --data "https://example.com" \
  --output "./qr_example.png" \
  --box-size 10 \
  --border 4 \
  --fill-color black \
  --back-color white \
  --error-correction M

Step 3: Generate Batch QR Codes (Optional)

For multiple QR codes, prepare a CSV or JSON file with entries:

CSV format (batch_input.csv):

data,filename,box_size,error_correction
https://example1.com,qr1.png,10,M
https://example2.com,qr2.png,12,H

JSON format (batch_input.json):

[
  {"data": "https://example1.com", "filename": "qr1.png"},
  {"data": "https://example2.com", "filename": "qr2.png", "box_size": 12}
]

Run batch generation:

python3 scripts/generate_qr.py \
  --batch "./batch_input.csv" \
  --output-dir "./qr_batch_output/"

Step 4: Preview Generated QR Code

After generation, use the Read tool to display the generated PNG image for user verification.

Step 5: Generate vCard QR Code (Optional)

For contact information, use the vCard format:

python3 scripts/generate_qr.py \
  --vcard \
  --name "John Doe" \
  --phone "+1-555-123-4567" \
  --email "john@example.com" \
  --output "./contact_qr.png"

Output Format

Single Generation

  • PNG image file at specified output path
  • Console output confirming generation with file path and QR code metadata

Batch Generation

  • Multiple PNG files in the output directory
  • Summary JSON report (batch_summary.json):
{
  "generated_at": "2026-03-17T08:00:00Z",
  "total_count": 10,
  "success_count": 10,
  "failed_count": 0,
  "files": [
    {"data": "https://example1.com", "path": "qr1.png", "status": "success"},
    {"data": "https://example2.com", "path": "qr2.png", "status": "success"}
  ]
}

Resources

  • scripts/generate_qr.py -- Main QR code generation script with CLI interface
  • references/qr-code-parameters.md -- Detailed guide on QR code parameters and best practices

Key Principles

  1. Default to readable QR codes: Use sufficient box size (10+) and proper quiet zone (4+ modules)
  2. Validate data length: QR codes have capacity limits based on error correction level
  3. Maintain contrast: Ensure sufficient contrast between fill and background colors
  4. Preview before delivery: Always show the generated QR code to the user for verification

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Track and update action item status from natural language updates like 'Seanのメールには返信しておいた' or 'Lu対応予定'. Integrates with daily-comms-ops workflow. Use when managing action items across communication channels.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

takusaotome/claude-skills-library102026년 10월 5일 업데이트

AI活用提案の専門コンサルタントスキル。LLM・AIエージェントの活用事例知識を基に、業界別、部門別、シーン別に最適なAI導入提案を行います。システム化、業務改善、効率化を得意とし、具体的な活用事例、期待効果、導入ステップを含む実践的な提案を提供します。Use when proposing AI/LLM adoption strategies for specific industries, departments, or business scenarios.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

takusaotome/claude-skills-library102026년 10월 5일 업데이트

Generate AI-powered BPO service proposals for Japanese companies in the US market. Use when creating outsourcing proposals with AI service menus, ROI estimation, implementation roadmaps, and bilingual (JA/EN) proposal documents for 在米日系企業向けAI実装.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

takusaotome/claude-skills-library102026년 10월 5일 업데이트

AI(LLM)が生成した日本語テキストの「AI臭」を検出・診断し、人間らしい文章にリライトするスキル。 Use when: 「AIっぽい文章を直して」「人間らしくリライトして」「AI臭を消して」「この文章をもっと自然にして」 「テキストのAI感を減らして」「機械っぽさを取りたい」 "make this sound more human", "remove AI tone", "humanize this text", "detect if this is AI-generated". 6つのAI特有パターン(視覚的マーカー、単調なリズム、マニュアル的構成、非コミット姿勢、抽象語の濫用、 定型メタファー)を正規表現ベースで検出し、0-100のAI臭スコアを算出。3つの人間化技法 (バランスを崩す・客観を崩す・論理を崩す)でリライトを実行する。 Note: 検出スクリプトは日本語テキスト専用。英語テキストの場合はClaude自身がreferences/を参照して分析・リライトする。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

takusaotome/claude-skills-library102026년 10월 5일 업데이트

Generate audit-ready internal control design documents from As-Is business process inventories. Produces control IDs, assertion mappings, procedures, SoD analysis, KPIs, materiality thresholds, and implementation roadmaps. Use when building internal controls for new audit engagements, SOX/J-SOX compliance, or process improvement initiatives.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

takusaotome/claude-skills-library102026년 10월 5일 업데이트

Review audit-related documents (control design documents, bottleneck analyses, requirements definitions, etc.) for quality, scoring them 0-100 with a severity-rated findings list. Use when reviewing audit documents, checking control design quality, or verifying cross-document consistency. Supports documents governed by US GAAP, IFRS, or J-GAAP.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

takusaotome/claude-skills-library102026년 10월 5일 업데이트

takusaotome의 스킬 모두 보기

이 스킬의 문제 신고