Decode barcode labels in Hermes
Extract Code 128, EAN-13, UPC-A and 2D identifiers locally through scripts/scan.mjs with leading zeros preserved.
Barcode Scanner returns exact identifiers and symbologies so Hermes can verify labels without guessing digits.
Extract Code 128, EAN-13, UPC-A and 2D identifiers locally through scripts/scan.mjs with leading zeros preserved.
scripts/scan.mjs exits 0 on detection, 1 for a valid empty report and 2 on error, without calling product APIs.
Hermes uses the portable skill route; for MCP-native assistants, review the shared stdio MCP server guide.
Prepare the test image, copy the prompt and compare the returned output.
Generate a Code 128 barcode encoding STOCK-4827 and save it as barcode-reference.png.
Read barcode-reference.png with Barcode Scanner.
Return the complete identifier as text and its format.
Preserve leading zeros. Do not run external lookups.
If the tool is unavailable or detects nothing, report that
instead of guessing.With the scanner active, Hermes returns the exact identifier and its format instead of guessing.
Sample output for barcode-reference.png.
Setup options, barcode formats, leading zeros, local privacy and MIT licence.
Run hermes skills install qrcode-ai-com/qrcode-barcode-scanner-rust/skills/qrcode-barcode-scanner with no account needed. Hermes installs all five skill files into <HERMES_HOME>/skills/qrcode-barcode-scanner.
The skill bundles SKILL.md and scripts/scan.mjs without native binaries. Install @qrcode-ai-com/qrcode-barcode-scanner into a project-local .qrcode-barcode-scanner-runtime directory (never inside the skill directory) as outlined in SKILL.md.
It decodes 16 barcode symbologies: Code 128, Code 39, Code 93, EAN-13 (including book ISBNs), EAN-8, UPC-A, UPC-E, ITF, Codabar, Telepen, GS1 DataBar, GS1 DataBar Expanded, Data Matrix, PDF417, Aztec and MaxiCode, alongside QR codes.
Yes. content.text is always returned as a verbatim string so leading zeros stay intact, and EAN-13 reports also parse the 14-digit GS1 GTIN. The helper makes zero network calls during decoding and never queries product or ISBN catalogues.
A direct Markdown URL install downloads only SKILL.md and omits scripts/scan.mjs. Use hermes skills install with the GitHub directory path so all five files arrive together and clear Hermes’ security audit without --force.
scripts/scan.mjs exits 0 when barcodes are detected, 1 for a valid empty JSON report and 2 for a usage, file or scan failure. Re-scan with --budget-ms 0 if trace.budget_exhausted is true.
Run hermes skills uninstall qrcode-barcode-scanner. Decoding executes locally on Node.js 22+ (Hermes sends chat context to your configured LLM). Current skill and engine releases are free and MIT-licensed, separate from QR Code AI paid plans.
Review the official Hermes setup documentation and the MIT scanner adapter contract.