qt-qml-test — Claude Code skill: what it does, how to install
Generates Qt Quick Test suites for QML components. Saves ready test files to verify component properties and signal emissions in Qt 6.
npx skills add TheQtCompanyRnD/agent-skills --skill qt-qml-test -a claude-codeWhat qt-qml-test does
The skill inspects QML files and writes tst_*.qml test suites directly to the tests/ directory. It avoids dumping raw test code into the chat conversation. Generated tests rely on TestCase, SignalSpy, and tryCompare helpers to verify controls such as Button and Slider.
During generation, it checks the root component type. Singleton objects and ApplicationWindow structures receive specialized test templates. The skill skips Qt Quick 3D spatial nodes like Model or Skybox. If child elements lack objectName identifiers, it flags them so you can expose them for testing.
Setting up CMake runners or CTest integration remains outside this skill. You get test files, but execution requires separate build configuration.
What it helps with
- create
TestCasefiles for standalone QML components - verify signal emissions with
SignalSpy - batch-generate unit tests across multiple QML files
- validate states and animations of Qt Quick Controls
Example prompts for the agent
- Generate tests for MyButton.qml
- Create Qt Quick test cases for all components in controls/
- Write tests verifying signal emission in Dial.qml
How to install qt-qml-test
1Skills CLI (Vercel)
npx skills add TheQtCompanyRnD/agent-skills --skill qt-qml-test -a claude-code2Manually: put the files in place
~/.claude/skills/qt-qml-test/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/qt-qml-test/
1Skills CLI (Vercel)
npx skills add TheQtCompanyRnD/agent-skills --skill qt-qml-test -a codex2Manually: put the files in place
.agents/skills/qt-qml-test/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add TheQtCompanyRnD/agent-skills --skill qt-qml-test -a cursor2Manually: put the files in place
.cursor/skills/qt-qml-test/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install TheQtCompanyRnD/agent-skills qt-qml-test2Manually: put the files in place
.github/skills/qt-qml-test/SKILL.md1Skills CLI (Vercel)
npx skills add TheQtCompanyRnD/agent-skills --skill qt-qml-test -a gemini-cli2Platform CLI
gemini skills install https://github.com/TheQtCompanyRnD/agent-skills --path skills/qt-qml-testManually: put the files in place
.devin/skills/qt-qml-test/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add TheQtCompanyRnD/agent-skills --skill qt-qml-test -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about qt-qml-test
How do I install qt-qml-test in Claude Code?
Run npx skills add TheQtCompanyRnD/agent-skills --skill qt-qml-test -a claude-code. This installs the file into ~/.claude/skills/qt-qml-test/SKILL.md.
What does qt-qml-test do?
It generates unit test files for QML components using Qt Quick Test primitives and saves them directly to your filesystem.
Does qt-qml-test configure CMake or run CTest?
No, build system setup and running tests are not handled by this skill. It strictly authors test files on disk.