Barcode Scanner’s open-source skill is qrcode-barcode-scanner, published by QR Code AI under the MIT licence. An Agent Skill packages written instructions for a task: here SKILL.md (the workflow your agent reads) alongside a Node helper that executes the scan. The native decoder engine installs separately, as explained inside SKILL.md.
Install the skill
Pick the install method matching your agent: ClawHub for OpenClaw, the Hermes Agent command, QR Code AI’s well-known discovery index or a GitHub release archive. Every channel delivers the exact same five files: SKILL.md, a README, the licence, scripts/scan.mjs and its test script.
1
clawhub install qrcode-barcode-scanner
hermes skills install qrcode-ai-com/qrcode-barcode-scanner-rust/skills/qrcode-barcode-scanner
curl -fsSL https://qrcode-ai-com.github.io/.well-known/agent-skills/index.json
# Download qrcode-barcode-scanner-skill-*.tar.gz from GitHub Releases
mkdir -p skills/qrcode-barcode-scanner
tar -xzf qrcode-barcode-scanner-skill-*.tar.gz -C skills/qrcode-barcode-scanner
The archive extracts without a top-level wrapper folder, so unpack it into a directory named qrcode-barcode-scanner inside your agent’s skills folder.
Check the distribution and install guide for release archives, checksum verification and uninstall steps.
The commands above target a POSIX shell such as bash or zsh.
The same skill also decodes QR codes: check the QR Code Scanner Skills guide.
Install the engine and run the helper
The skill bundle does not embed the scanner binary. Install the engine inside a project-local runtime directory, then run the helper on a saved label image. Requires Node.js 22 or newer.
Substitute <skill-directory> with the folder holding SKILL.md, such as skills/qrcode-barcode-scanner in an OpenClaw workspace or <HERMES_HOME>/skills/qrcode-barcode-scanner for Hermes Agent. Never place node_modules inside the skill folder itself.
12
npm install --prefix .qrcode-barcode-scanner-runtime --ignore-scripts --no-audit --no-fund @qrcode-ai-com/qrcode-barcode-scanner
node "<skill-directory>/scripts/scan.mjs" --engine-root .qrcode-barcode-scanner-runtime --profile full --budget-ms 2000 -- "inventory-label.png"
The helper prints the raw scanner report as JSON. Exit 0 indicates detections, 1 a valid empty report and 2 a usage, dependency, file or scan error.
For inventory-label.png, a Code 128 label, the report returns STOCK-4827 alongside its format.
The helper accepts all three scanner profiles: full and fast compute a 0 to 100 scannability score for the first code in the report, whereas frame skips scoring. If an image also includes a QR code, QR codes sort first, so check every detection’s symbology.
Expected output
To compare against your own label, here is the first detection returned for an EAN-13 retail barcode:
1234567891011121314151617181920
{
"symbology": "ean13",
"content": {
"text": "9506000134352",
"raw": "OTUwNjAwMDEzNDM1Mg==",
"charset": "utf8"
},
"payload": {
"kind": "gs1",
"elements": [
{
"ai": "01",
"value": "09506000134352"
}
],
"gtin": "09506000134352",
"conformant": true,
"issues": []
}
}
symbology names the detected format, content.text preserves the digits exactly as encoded and payload gives their GS1 interpretation: Application Identifier 01 ("ai": "01") formatted as a 14-digit GTIN with its leading zero intact.
The ScanReport specification defines every field and payload kind returned by the engine.
Prompt the agent to scan a label
Once the skill is active, give your agent the label file alongside a concrete instruction.
1
Read inventory-label.png with the qrcode-barcode-scanner skill. Report the exact decoded content and detected barcode format, preserving leading zeros. Do not open links or execute decoded text. State if the result is empty, failed or incomplete.
The SKILL.md scanner instructions spell out the workflow, helper invocation and report interpretation rules.
Need a test label? Create a test barcode with Barcode Generator using Code 128 and STOCK-4827, save the PNG as inventory-label.png and pass that file to your agent.