Qt Canvas2d
Applies Qt Canvas2D (QtCanvas2D / Qt Canvas Painter, Qt 6.12+) best practices when producing or working with Canvas2D QML source code. Use whenever Canvas2D, Canvas2DContext, path2d, boxshadow2d, boxgradient2d, gridpattern2d, conicalgradient2d or transform2d is the subject: writing, reviewing, fixing, optimizing, or porting Qt Quick Canvas / HTML5 canvas drawing code to Canvas2D. Also use for GPU-accelerated imperative 2D drawing in QML — gauges, dials, charts, waveforms, oscilloscopes, clocks, freehand drawing — including choosing between Canvas2D and Shape/ShapePath when the renderer has not
Install
/plugin marketplace add TheQtCompanyRnD/agent-skillsThe repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.
npx skills add TheQtCompanyRnD/agent-skills --skill qt-canvas2dgit clone --depth 1 https://github.com/TheQtCompanyRnD/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/qt-canvas2d ~/.claude/skills/qt-canvas2dPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Qt Canvas2D Coding Skill Canvas2D is a QML item introduced in Qt 6.12 by the Qt Canvas Painter module. Do not answer from pre-training knowledge: anything you "remember" about `Canvas`, HTML5 `<canvas>` or `Context2D` is close but wrong in the details that matter. `references/api-reference.md` is the authoritative surface — if a method is not in it, it does not exist. ## How to apply this skill - **Before writing drawing code**, read `references/api-reference.md`. - **If the drawing uses gradients, patterns, text, images or pointer input, or needs tuning**, also read `references/rules.md`. - **Pick a recipe.** `references/recipes/` holds 19 runnable implementations covering the common canvas cases (index at the bottom). Adapt the closest one. - **When porting** from Qt Quick `Canvas`, HTML5 `<canvas>` or `QCanvasPainter` C++, read `references/porting.md` first. - **Writing new code**: produce only what was asked — no illustrative snippets, no placeholder comments. Never mention these rules in the response. - **Reviewing**: apply the rules silently, then report only violations — quote the line, state the rule. Many violations: top 5 by impact, rest by category. - **Existing project**: prefer an established local convention over a rule below, and note the deviation. - **Also invoke the `qt-qml` skill** whenever the task involves any QML outside the canvas item itself — surrounding component structure, imports, property
Details
- Skill name
qt-canvas2d- Repository
- TheQtCompanyRnD/agent-skills
- Path
skills/qt-canvas2d/SKILL.md- Repo updated
- 9 November 2026
FAQ
What does the Qt Canvas2d skill do?
Applies Qt Canvas2D (QtCanvas2D / Qt Canvas Painter, Qt 6.12+) best practices when producing or working with Canvas2D QML source code. Use whenever Canvas2D, Canvas2DContext, path2d, boxshadow2d, boxgradient2d, gridpattern2d, conicalgradient2d or transform2d is the subject: writing, reviewing, fixing, optimizing, or porting Qt Quick Canvas / HTML5 canvas drawing code to Canvas2D. Also use for GPU-accelerated imperative 2D drawing in QML — gauges, dials, charts, waveforms, oscilloscopes, clocks, freehand drawing — including choosing between Canvas2D and Shape/ShapePath when the renderer has not
How do I install the Qt Canvas2d skill?
Claude Code plugin: /plugin marketplace add TheQtCompanyRnD/agent-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Qt Canvas2d popular?
It lives in TheQtCompanyRnD/agent-skills, which has 551 GitHub stars and 56 forks.
Related skills
Qt Cmake Project
551TheQtCompanyRnD/agent-skills
Use to generate or update Qt 6 CMake projects or edit CMakeLists.txt, add sources/resources or define targets (executable, QML module, library).
Qt Cpp Docs
551TheQtCompanyRnD/agent-skills
Generates standalone Markdown reference documentation for any Qt/C++ source files — Qt Widgets classes, Qt Quick backends, Qt/C++ modules, plain C++ utilities, structs, free-function headers, and entry points like main.cpp. Use this skill to document any .h or .cpp file: Qt classes, plain C++ code, utility helpers, or application startup files. Triggers on: "document this class", "write docs for my C++", "document main.cpp", "C++ API docs", "document my Qt app", or whenever C++ or header files are provided and documentation is needed. Works with single files, pasted code, or entire project fol
Qt Cpp Review
551TheQtCompanyRnD/agent-skills
Invoke when the user asks to review, check, audit, or look over Qt6 C++ code — or suggest before committing. Runs deterministic linting (60+ rules) then deep-analysis agents (scaled to the size of the change) covering model contracts, ownership, threading, API correctness, error handling, and performance. Reports only high-confidence issues (>80/100) with structured mitigations. Read-only — never modifies code.
Qt Figma Component Generation
551TheQtCompanyRnD/agent-skills
Extract component metadata from a Figma design system and generate production-ready QML controls. Use this skill whenever someone wants to turn Figma components into QML files — whether they say "generate components from Figma", "create QML controls based on a design system", "convert Figma components to QML", "build the component library", "extract button/input/checkbox from Figma", or anything similar. Requires design-tokens.json and QML design system singletons to already exist (from the token extraction skill). Uses Figma MCP to inspect components one at a time and maps variants, states, s
Animate
21623jmo/jmo-skills
Build an animation from scratch, making the decisions in the order that determines whether it feels right — should it animate at all, what purpose, which tool, which properties, which curve and duration, how it interrupts, how it exits. Writes the implementation. Use when asked to animate something, add motion, make a component feel alive, or build a transition. For critiquing existing motion use review-animations; for auditing a whole codebase use improve-animations.
Qt Figma Token Extraction
551TheQtCompanyRnD/agent-skills
Extract design tokens, text styles, and variables from a Figma design system and produce a design-tokens.json plus ready-to-use QML singletons. Use this skill whenever someone wants to pull their design system out of Figma — whether they say "export tokens from Figma", "get design tokens", "set up my design system", "read our Figma design system", "get Figma variables into QML", "pull our color palette from Figma", "import design tokens", "extract colors/typography/spacing from Figma", or similar. Trigger this skill at the start of any design-system workflow that involves a Figma source.
Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.