Skip to main content
skill CX Codex

qt-qml — Claude Code skill: what it does, how to install

Enforces QML coding standards during component authoring, refactoring, and code review. Designed for developers building Qt 6 user interfaces.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add TheQtCompanyRnD/agent-skills --skill qt-qml -a claude-code
Open on GitHub

What qt-qml does

The skill instructs the agent to write compact QML without boilerplate comments or unnecessary nesting. During code reviews, the model evaluates files silently against the checklist and reports only broken rules alongside the relevant line numbers. When issues accumulate, it highlights the five most impactful violations.

Project structure rules keep main.qml strictly as an entry bootstrap file. Separate files are required once a component exceeds three nesting levels or roughly 150–200 lines. For Qt 6, the skill removes version numbers from import statements and omits redundant QtQuick.Window imports. Controls rely on dedicated style imports such as QtQuick.Controls.Basic instead of generic imports when styling properties change.

The skill also checks for the run_qmlPreview MCP tool to enable live reloading. Live preview requires Qt 6.12 or newer. On older versions, preview sessions fail silently. You need to verify PACKAGE_VERSION in CMakeCache.txt before relying on it.

What it helps with

  • Audit legacy QML files against modern Qt 6 practices
  • Extract nested UI elements from main.qml into separate components
  • Configure asynchronous loading for heavy dialogs using Loader
  • Strip redundant import version numbers across a Qt 6 project

Example prompts for the agent

  • Review this QML file and report any style violations with line numbers
  • Extract the navigation drawer from main.qml into a dedicated component
  • Refactor this dialog to load asynchronously with Loader

How to install qt-qml

1Skills CLI (Vercel)

npx skills add TheQtCompanyRnD/agent-skills --skill qt-qml -a claude-code

2Manually: put the files in place

~/.claude/skills/qt-qml/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/qt-qml/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about qt-qml

How do I install qt-qml in Claude Code?

Run npx skills add TheQtCompanyRnD/agent-skills --skill qt-qml -a claude-code in your terminal.

What does the qt-qml skill do?

It guides the coding assistant to follow Qt 6 QML conventions for project structure, clean imports, and component lifecycle. The model outputs concise code without placeholder comments and flags architectural mistakes during reviews.

What Qt version is required for live preview?

Live preview via the run_qmlPreview MCP tool requires Qt 6.12 or newer. On older releases, the tool fails silently, so check your PACKAGE_VERSION in CMakeCache.txt beforehand.

Similar skills

Everything for Frontend and UI →

From the same set12

qt-ui-design A skill that walks an AI agent through designing or auditing interfaces for Qt/QML apps, the web and embedded panels: layout, navigation, contrast, hit targets. CX Codex +1 1,100installs qt-cpp-review Reviews Qt6 C++ diffs or codebases before commits. Combines a 60-rule deterministic linter with deep agent analysis for threading, model contracts, and ownership. CX Codex +1 1,000installs qt-qml-review Reviews Qt6 QML in two passes: a deterministic linter, then agents over seven rule domains. One report, only high-confidence findings. CX Codex +1 888installs qt-cpp-docs This skill reads your C++ headers and sources in a Qt project and writes standalone Markdown reference pages from them. Handy when an API needs documenting instead of hand-written notes. CX Codex +1 782installs qt-qml-docs Reads .qml sources and related project files, then writes a Markdown reference per component: properties, signals, methods, dependencies. CX Codex +1 717installs qt-qml-profiler This skill profiles 2D QML apps and inspects .qtd traces to locate performance bottlenecks. Use it when a Qt Quick interface stutters or you need to investigate rendering, bindings, or signals. CX Codex +1 691installs qt-qml-test Generates Qt Quick Test suites for QML components. Saves ready test files to verify component properties and signal emissions in Qt 6. CX Codex +1 587installs qt-qml-test-run Builds a Qt 6 CMake project, executes Qt Quick Test via qmltestrunner or CTest, and generates a Markdown report. Useful for verifying QML interfaces in terminal-enabled workflows. CX Codex +1 569installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor