QmlPreviewer

QmlPreviewer is a skill for Claude Code, Codex from mengps/HuskarUI. It costs 50 tokens per session (1,090 once invoked), scanned A, original, MIT.

A QML preview tool that runs the active QML file and captures the rendered interface as an image.

In plain words
What is it for?
Previewing QML files, checking UI changes, inspecting layout and clipping, and confirming that a QML page loads.
Why use it?
It provides visual evidence of how a Qt Quick interface loads and appears, including obvious layout or rendering problems.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/mengps/huskarui/qmlpreviewer
Any agent
npx skills add mengps/HuskarUI --skill qmlpreviewer
Clone the repo
git clone --depth 1 https://github.com/mengps/HuskarUI

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for QmlPreviewer

README.md
[![agentmods](https://agentmods.dev/badge/skills/mengps/huskarui/qmlpreviewer.svg)](https://agentmods.dev/skills/mengps/huskarui/qmlpreviewer)
Your own site
<a href="https://agentmods.dev/skills/mengps/huskarui/qmlpreviewer"><img src="https://agentmods.dev/badge/skills/mengps/huskarui/qmlpreviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,090 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00050 $0.01090
Opus 5 $0.00025 $0.00545
Sonnet 5 $0.00010 $0.00218
Haiku 4.5 $0.00005 $0.00109

Measured 5d ago against content hash e3ee15ff0022, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

QmlPreviewer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (capture_qmlscene_to_clipboard.ps1), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

agent/skills/qmlpreviewer/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

QML Previewer

Use this skill whenever the agent needs to preview or visually verify a QML UI. Prefer the clipboard capture flow by default, and fall back to launching qmlscene directly when capture is unavailable or unsuitable.

When To Use

Invoke this skill proactively when any of the following is true:

  1. The agent needs to preview the active QML file to understand the visual result.
  2. The agent needs to visually verify QML changes it just made or reviewed.
  3. The agent needs screenshot-based evidence to inspect layout, rendering, clipping, or missing assets.
  4. The agent needs to confirm whether a QML page loads successfully.
  5. Visual verification is needed even if the user did not explicitly ask for a preview.

Capabilities

  1. Auto Detection: Resolve the active QML file from editor context.
  2. Clipboard Preview: Run the capture script and copy the rendered result to the clipboard.
  3. Direct Launch: Fall back to qmlscene when clipboard capture is unavailable or unsuitable.
  4. Visual Verification: Report whether the page loads and whether obvious visual problems are present.
  5. Failure Reporting: Surface path issues, launch failures, and runtime errors.

Critical Rules

These rules are always enforced. Follow them in this order.

File Resolution

  • Prefer the active editor file when it is a .qml file.
  • If multiple files are open, use the focused editor tab.
  • If editor context is missing, search for the most relevant recently edited .qml file.
  • If auto-detection still fails, ask the user once for the QML file path.

Preview Execution

  • Use the clipboard capture flow by default.
  • Pass absolute paths only for both qmlscene.exe and the QML file.
  • Use the direct qmlscene launch only as a fallback when capture is unavailable or unsuitable.
  • Do not silently skip preview. If preview cannot run, explain why.

Reporting

  • Report whether the QML page loads successfully.
  • Report obvious layout or rendering issues such as clipping, blank content, missing assets, or unexpected sizing.
  • Include runtime or terminal errors when QML fails to launch.
  • Be explicit about which flow was used: clipboard capture or direct launch.

Read the full file on GitHub · 125 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 125 lines · 50 tokens per session scan A e3ee15ff0022

Subscribe to this mod's changes

QmlPreviewer is a skill published in the GitHub repository mengps/HuskarUI (587 stars, last pushed 11d ago), licensed MIT. It adds 50 tokens to every session and 1,090 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

HuskarUI

Queries HuskarUI metadata with Python and guides HuskarUI-first QML/C++ code. Invoke when choosing components, checking examples, or generating HuskarUI UI.

mengps/PyHuskarUI · 39 tokens

QmlPreviewer

Auto-detects the active QML file from editor context, runs qmlscene, and copies the rendered image to the clipboard by default. Invoke proactively when the agent needs to preview or visually verify a QML UI.

mengps/PyHuskarUI · 50 tokens

shadcn-vue

Manages shadcn-vue components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn-vue, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for…

unovue/shadcn-vue · 97 tokens

antd

Use when the user's task involves Ant Design (antd) — writing antd components, debugging antd issues, querying antd APIs/props/tokens/demos, migrating between antd versions, or analyzing antd usage in a project. Triggers on antd-related code, imports from 'antd', or explicit antd questions.

ant-design/ant-design-cli · 69 tokens

compliance

Use when scoping which regulatory frameworks bind a business — SOC 2, ISO 27001, HIPAA, PCI DSS, EU AI Act, DORA, NIS2 — building a control register with owners and evidence, or standing up the cadence that keeps it audit-ready. NOT drafting privacy-policy/ROPA/DPA or ToS text (that is gdpr-privacy, terms-conditions)…

ericrisco/rsc-harness · 96 tokens

electrik-slate

Build Laravel Blade UI with Electrik Slate 3.x and optional slate-blocks. Use when writing x-slate or x-slate-block components, Livewire forms, tokens, toasts, blocks, or when the user mentions Slate, electrik/slate, electrik/slate-blocks, or slate.electrik.dev.

electrikhq/slate · 72 tokens