← Back to Skills Marketplace
jdchi

Cli Qr Refiner

by JDChi · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ✓ Security Clean
185
Downloads
0
Stars
0
Active Installs
4
Versions
Install in OpenClaw
/install cli-qr-refiner
Description
Professional utility to refine terminal-based ASCII QR code blocks (█, ▀, ▄) into high-definition PNG images.
README (SKILL.md)

CLI-QR-Refiner

A specialized tool for OpenClaw agents to capture and refine rough ASCII/Unicode QR code blocks from CLI terminal outputs into crystal-clear, scannable PNG images.

Features

  • Block Recognition: Automatically interprets (full), (upper), and (lower) block characters.
  • Pixel-Perfect Scaling: Renders vector-like precision to ensure zero scanning failures.
  • Zero Dependencies: Built on Python 3 + PIL (pre-installed on most systems).
  • Headless Optimized: Designed specifically for server-side environments where terminal displays are unreliable.

Dependencies

  • Runtime: Python 3 (no external packages required — uses built-in PIL/Pillow)

Tools & Commands

The refinement logic resides in {baseDir}/scripts/cli_qr_refiner.py.

Refinement Command

python3 {baseDir}/scripts/cli_qr_refiner.py \x3Cinput_txt_path> \x3Coutput_png_path> [scale]
  • input_txt_path: Path to text file containing ASCII QR code
  • output_png_path: Path for output PNG image
  • scale (optional): Pixel size per character cell, default 10

Prompting / Behavior

When to use

Trigger this skill when:

  1. A CLI tool (e.g., WeChat, Aliyun, NPM) outputs a block-character matrix intended for scanning.
  2. The user reports scanning failures due to terminal alignment, line-height, or font issues.

How to use

  1. Capture: Extract the raw character block from the terminal output.
  2. Save: Write the captured block to a temporary file (e.g., /tmp/qr_source.txt).
  3. Refine: Run the Python script to generate the high-def image.
  4. Deliver: Send the refined PNG to the user.

Examples

Input (ASCII/Unicode)

██████████████  ██  ██████████████
██          ██  ██  ██          ██
██  ██████  ██      ██  ██████  ██

Output

A professional, high-definition PNG file, ready for any scanning app.

How it works

Each character in the ASCII QR maps to a cell:

  • → full black cell
  • → upper-half black cell
  • → lower-half black cell
  • (space) → white cell

The script scales each cell to scale × scale*2 pixels for crisp rendering.

Usage Guidance
This skill appears to do what it claims: convert ASCII/Unicode block QR output into PNG images. Before installing or running it, verify you have python3 and Pillow (pip install pillow) available—SKILL.md incorrectly implies Pillow is built-in. The script reads the input path you provide and writes the output PNG, so only give it files you trust and ensure you have permission to write the output location. If you need automated installs, consider adding an explicit install step to ensure Pillow is present; otherwise the script will error but not behave maliciously.
Capability Analysis
Type: OpenClaw Skill Name: cli-qr-refiner Version: 2.0.0 The skill is a utility designed to convert ASCII/Unicode QR code blocks into PNG images. The Python script (scripts/cli_qr_refiner.py) uses the PIL library to render characters like █, ▀, and ▄ into a pixel-perfect image, and the SKILL.md provides clear, non-malicious instructions for the agent to facilitate this process.
Capability Assessment
Purpose & Capability
Name, description, SKILL.md, and the included Python script all align: the utility reads an ASCII/Unicode block matrix and renders it to a PNG. Required binary is only python3 which is appropriate for a Python script.
Instruction Scope
Runtime instructions are narrow and consistent: capture terminal block, save to a text file, run the script, and deliver the PNG. The script only opens the specified input file, processes characters (█ ▀ ▄ and space), and writes the output PNG; it does not access other files, environment variables, or network endpoints.
Install Mechanism
There is no install spec (instruction-only), which is low risk. However SKILL.md claims "Zero Dependencies" and that PIL/Pillow is "built-in/ pre-installed"—Pillow is not part of the Python standard library. The script imports PIL (Pillow) but the skill provides no install instruction or fallback if Pillow is missing; user environments without Pillow will fail.
Credentials
The skill requests no environment variables, credentials, or config paths. The minimal file I/O (reading a user-supplied text file, writing an output PNG) is proportionate to the task.
Persistence & Privilege
always is false, the skill is user-invocable and can be autonomously invoked by the agent (platform default). It does not request persistent presence or modify other skills or system-wide settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install cli-qr-refiner
  3. After installation, invoke the skill by name or use /cli-qr-refiner
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v2.0.0
Version 2.0.0 — Major update: Migration from Node.js/JavaScript to Python for improved simplicity and compatibility. - Switched implementation from JavaScript (Node.js) to Python 3, removing external dependencies. - New script: `cli_qr_refiner.py` replaces the old `.js` version. - Now uses the Pillow (PIL) library—commonly pre-installed with Python—for image generation. - Updated documentation and usage instructions for the new Python-based workflow. - Node.js and npm dependencies are no longer required.
v1.0.3
- Updated version number in SKILL.md to 1.0.3. - No changes to functionality, usage, or dependencies. - Documentation and content remain unchanged except for the version bump.
v1.0.2
Remove node_modules
v1.0.1
Initial release: refine ASCII QR blocks to HD PNG
Metadata
Slug cli-qr-refiner
Version 2.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 4
Frequently Asked Questions

What is Cli Qr Refiner?

Professional utility to refine terminal-based ASCII QR code blocks (█, ▀, ▄) into high-definition PNG images. It is an AI Agent Skill for Claude Code / OpenClaw, with 185 downloads so far.

How do I install Cli Qr Refiner?

Run "/install cli-qr-refiner" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Cli Qr Refiner free?

Yes, Cli Qr Refiner is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Cli Qr Refiner support?

Cli Qr Refiner is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Cli Qr Refiner?

It is built and maintained by JDChi (@jdchi); the current version is v2.0.0.

💬 Comments