generate-qr-code-natively
Generate QR codes locally without external APIs using native CLI and runtime libraries in Bash and Node.js.
Best use case
generate-qr-code-natively is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Generate QR codes locally without external APIs using native CLI and runtime libraries in Bash and Node.js.
Teams using generate-qr-code-natively 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/generate-qr-code-natively/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How generate-qr-code-natively Compares
| Feature / Agent | generate-qr-code-natively | 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 locally without external APIs using native CLI and runtime libraries in Bash and Node.js.
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.
SKILL.md Source
# Generate QR Code Natively
Create QR codes fully offline on the local machine (no third-party QR API calls).
## When to use
- User asks to generate a QR code from text, URL, wallet address, or payload
- Privacy-sensitive workflows where data should stay local
- Fast automation pipelines that should not depend on external services
## Required tools / APIs
- No external API required
- Bash CLI option: `qrencode`
- Node.js option: `qrcode` package
Install options:
```bash
# Ubuntu/Debian
sudo apt-get update && sudo apt-get install -y qrencode
# Node.js
npm install qrcode
```
## Skills
### generate_qr_with_bash
Generate PNG and terminal QR directly from shell.
```bash
# Encode text into PNG
DATA="https://example.com/report?id=123"
qrencode -o qrcode.png -s 8 -m 2 "$DATA"
# Print QR in terminal (UTF-8 block mode)
qrencode -t UTF8 "$DATA"
# SVG output
qrencode -t SVG -o qrcode.svg "$DATA"
```
### generate_qr_with_nodejs
```javascript
import QRCode from 'qrcode';
const data = process.argv[2] || 'https://example.com';
async function main() {
await QRCode.toFile('qrcode.png', data, {
errorCorrectionLevel: 'M',
margin: 2,
width: 512
});
const svg = await QRCode.toString(data, { type: 'svg', margin: 2 });
await import('node:fs/promises').then(fs => fs.writeFile('qrcode.svg', svg));
const terminal = await QRCode.toString(data, { type: 'terminal' });
console.log(terminal);
console.log('Saved: qrcode.png, qrcode.svg');
}
main().catch(err => {
console.error('QR generation failed:', err.message);
process.exit(1);
});
```
Run:
```bash
node generate-qr.js "https://example.com/invoice/abc"
```
## Agent prompt
```text
You are generating QR codes locally without calling external QR APIs.
Use Bash (qrencode) for quick CLI generation or Node.js (qrcode package) for programmatic control.
Return:
1) command/code used,
2) output filenames (png/svg),
3) brief validation note (e.g., "scan test recommended").
If dependency is missing, provide the install command and retry.
```
## Best practices
- Keep payload concise for better scan reliability
- Use at least error correction level `M` for general use
- Export PNG for compatibility and SVG for scalable print/web usage
- Validate with a scanner after generation
## Troubleshooting
- `qrencode: command not found` → install `qrencode` via package manager
- Node import error → ensure `npm install qrcode` completed
- Dense/unclear QR image → increase image size/box size and reduce payload length
## See also
- [pdf-manipulation.md](pdf-manipulation.md) — combine generated QR images into documentsRelated Skills
generate-status-report
Comprehensive system status report with services, infrastructure, performance metrics, and recommendations
generate-knowledge-base
Generate a product knowledge base from a codebase. Analyzes source code to create an Obsidian vault with architecture docs, API references, domain logic, data models, and infrastructure documentation. Use when the user asks to document a codebase, create a knowledge base, or generate product docs.
generate-instructions
Analyze a directory and generate consolidated Cursor rules.
e2e-generate
Generate end-to-end tests with Playwright browser automation
config-generate
Generate configuration files for development tools
api-test-generate
Auto-generate comprehensive API tests for REST and GraphQL endpoints with request/response validation
generate_quiz_batch
Generates batches of high quality quizzes in JSON format for the BlindsidedGames pool, categorised and rated by difficulty.
generate-llms
Generate llms.txt and llms-full.txt files for AI agent consumption following the llmstxt.org standard. Use when updating site content that should be reflected in the llms files, or when building/deploying the site.
nano-image-generate
Generate images using Nano Banana (Flash) or Nano Banana Pro. Use 'flash' for speed/efficiency and 'pro' for high quality, text rendering, and complex prompt adherence. Triggers include 'generate image', 'create logo', 'fast image', 'high quality image'.
Generate educational content with fixed sections
Generate educational content about any topic following a user-specified structure: include a set number of learning tips/tricks or activities, fun facts, Q&A pairs, jokes, and optionally extend with additional lines. Always list supplies for activities when requested.
fal-generate
Generate images and videos using fal.ai AI models
generate-component-story
Create story examples for components. Use when writing stories, creating examples, or demonstrating component usage.