qt-canvas2d — Claude Code skill for QML Canvas2D
This Claude Code skill guides QML work with Qt Canvas2D. It applies when writing, reviewing, fixing or porting 2D drawing code.
no license 203 installs ★ 556 updated 2026-10-20
npx skills add TheQtCompanyRnD/agent-skills --skill qt-canvas2d -a claude-codeWhat qt-canvas2d does
The skill guides QML code that uses Qt Canvas2D, from new drawing code to reviews, fixes and performance tuning. It also covers moving drawing code from Qt Quick Canvas, HTML5 canvas or C++ QCanvasPainter, and comparing Canvas2D with Shape/ShapePath when choosing a GPU drawing approach.
Its material includes an API reference, rules and 19 runnable recipes. The agent consults the API reference before writing code and the porting guide for migrations. Qt Canvas Painter is part of Qt 6.12+, and the application must link Qt6::CanvasPainter and import both QtQuick and QtCanvas2D. Work outside the canvas item itself also calls for the qt-qml skill.
What it helps with
- write QML drawing code for Qt Canvas2D
- review or fix existing Canvas2D code
- port Qt Quick Canvas drawing to Canvas2D
- choose between Canvas2D and Shape/ShapePath
Example prompts for the agent
- Write QML code to draw a chart with Qt Canvas2D.
- Review this Canvas2D code and fix rule violations.
- Port this Qt Quick Canvas drawing code to Canvas2D.
How to install qt-canvas2d
1Skills CLI (Vercel)
npx skills add TheQtCompanyRnD/agent-skills --skill qt-canvas2d -a claude-code2Manually: put the files in place
~/.claude/skills/qt-canvas2d/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/qt-canvas2d/
1Skills CLI (Vercel)
npx skills add TheQtCompanyRnD/agent-skills --skill qt-canvas2d -a codex2Manually: put the files in place
.agents/skills/qt-canvas2d/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add TheQtCompanyRnD/agent-skills --skill qt-canvas2d -a cursor2Manually: put the files in place
.cursor/skills/qt-canvas2d/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install TheQtCompanyRnD/agent-skills skills/qt-canvas2d2Manually: put the files in place
.github/skills/qt-canvas2d/SKILL.md1Skills CLI (Vercel)
npx skills add TheQtCompanyRnD/agent-skills --skill qt-canvas2d -a gemini-cli2Platform CLI
gemini skills install https://github.com/TheQtCompanyRnD/agent-skills --path skills/qt-canvas2dManually: put the files in place
.devin/skills/qt-canvas2d/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add TheQtCompanyRnD/agent-skills --skill qt-canvas2d -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-canvas2d
How do I install qt-canvas2d in Claude Code?
Run npx skills add TheQtCompanyRnD/agent-skills --skill qt-canvas2d -a claude-code. The skill file is available at ~/.claude/skills/qt-canvas2d/SKILL.md.
What does qt-canvas2d do?
It guides QML work with Qt Canvas2D, including writing and reviewing code and porting drawing implementations. It also covers choosing between Canvas2D and Shape/ShapePath.
What does qt-canvas2d require?
The project needs Qt 6.12+ with the Canvas Painter module. The application must link Qt6::CanvasPainter and import QtQuick and QtCanvas2D.