qt-review
Skill0 starsChanged 19 days agoMITView on GitHub
Review a Qt 6 / C++ desktop change — a Widgets or QML screen, a ViewModel, a QAbstractItemModel, a worker/thread boundary, the SDK or SQLite adapter, the CMake target graph, a diff — and produce a prioritized report where every finding cites the file and line, the rule it breaks, and the smallest fix. Use this skill whenever the user asks to review, audit, critique, or "find problems in" a Qt app, a window, a model, or a threading change. Trigger on review, audit, code review, PR review, "what is wrong with this window", "check this worker", "review this model", or a pasted .cpp/.h/QML file. Architecture and GUI-thread contracts always rank first.
In this repository24 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- add-linux-packagingSkill
- add-sliceSkill
- add-viewSkill
- claim-checkSkill
- clean-room-rebuildSkill
- corpus-retrievalSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- graphifySkill
- grillingSkill
- learnSkill
- planSkill
- platform-portSkill
- researchSkill
- reviewSkill
- shipSkill
- specSkill
- tddSkill
- verified-statusSkill
- visual-reviewSkill
- qt-best-practicesSkill
- qt-portSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 116
No measurement on the reference floor.
- Very specific: line 128
No ViewModel test with QSignalSpy.
- Distinctive: line 129
No migration fixtures; no SQLite/WAL integration test.
- Distinctive: line 130
No GUI test for the critical interaction.
- Distinctive: line 136
If the diff deletes or weakens a lint, a test, a type, an accessibility check or a budget, flag the deletion itself, loudly — even when the …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Qt review
A review is a prioritized list of findings, not a rewrite. Read the whole change first. Every finding has four parts: location (file and line), severity, the rule it breaks (named or quoted), and the smallest fix. If you cannot cite a rule or a user-visible consequence, it is not a finding; it is a preference for the Notes section, if anywhere.
1. Report shape
## Verdict
<one paragraph: what this change does, whether it is safe to ship, and the
single most important thing to fix>
## Must fix
1. <file>:<line> — <finding>. Rule: <rule or contract>. Fix: <smallest fix>.
## Should fix
...
## Notes
...
## Waived gates
...- Must fix blocks merge or release: a blocking GUI-thread call, a broken layer, a dangling pointer/lifetime bug, a token outside the keystore, a blocking network call, a model updated from the wrong thread.
- Should fix is worth doing in this change or the next: a per-paint allocation, a missing accessibility name, a slow startup path.
- Notes is optional. Do not pad the report to look thorough.
2. Categories, in ranking order
Architecture contracts (always Must fix, ranked first)
A broken architecture contract (ranked above everything) is a Must fix even when the app works. Check:
domain/applicationimports QtGui/Widgets/Quick/Network/Sql, a widget, a window, or a platform API. They talk through ports.- A View (Widgets/QML) imports the SDK, storage or network, or contains a business condition beyond "show this status".
- A ViewModel imports a widget/window or navigates by pointer instead of a
Navigatorroute. #ifdef Q_OS_*outsideplatform/.- A CMake target links a layer it is not allowed to link.
- A permission decision made client-side as a security control.
Name the violated rule and quote it; the fix is to move the logic to the layer that owns it.
GUI thread and threading
- A blocking call on the GUI thread: synchronous network, large file read,
QProcess::waitForFinished,QThread::sleep, heavy parse/crypto. - A widget/model/QObject touched from a non-owner thread; a direct connection where a queued one is required.
- A
QFuture/worker result applied without cancellation or superseding; a stale result overwriting a newer state. - A
QTimerdoing polling/retry work that belongs in the application layer. - An exception crossing a slot boundary.
Memory and lifetimes
- A raw pointer to a deleted
QObject; a lambda capturingthiswithout the context-object overload. - A child with a parent deleted manually; a parent-child cycle hidden behind smart pointers.
- A
QModelIndexpersisted across a reset; a danglingQStringRef/view. - A missed
deleteLateron a QObject created per event. - Copy-on-write detach in a hot loop.
MVVM and models
- A list copied into a widget instead of a
QAbstractItemModel. - A status modeled as independent booleans instead of the one closed enum.
- A model that emits
dataChangedfor a structural change, orbeginResetModelfor a single row. - A ViewModel with a widget/window pointer; a global mutable singleton.
- A view with business logic instead of a status switch.
Security
- A token/password in SQLite, config, logs, a crash dump or the binary; the keystore is the only secret store.
- A remote script/content evaluated or a plugin/DLL loaded from an untrusted path.
- TLS disabled, a custom CA with no validation, or an
--insecuredefault. - An update without signature verification; a policy kill switch ignored.
- A client-side permission check presented as access control.
Performance
- A blocking startup path; heavy work before the first window.
- A widget per row; a model without virtualization.
- A per-paint allocation, a deep layout, or a scaled giant pixmap.
- Qt WebEngine in the main app; a GPU-only path with no software fallback.
- No measurement on the reference floor; a budget raised without evidence.
Accessibility and i18n
- An action reachable only by mouse; no accessible name/role; focus lost.
- Hard-coded strings instead of
tr(); concatenated sentences; RTL/long translations untested. - Color-only meaning; a focus ring removed with no replacement.
- Hard-coded pixel sizes around text that break with scaling.
Tests
- No ViewModel test with
QSignalSpy; no model row/insert/reset test. - No migration fixtures; no SQLite/WAL integration test.
- No GUI test for the critical interaction; no performance budget on the floor; no platform adapter test.
- A test that asserts implementation instead of behavior.
3. Waived gates
If the diff deletes or weakens a lint, a test, a type, an accessibility check or a budget, flag the deletion itself, loudly — even when the new code looks fine. Look for:
- A new
// NOLINTwithout a reason; a blanket// NOLINTNEXTLINE; a check disabled in.clang-tidyor a warning removed from the CMake flags. - A CMake target linked around a layer rule; a
friendor#define private publicused to bypass a boundary. - A skipped test without an owner and expiry; a migration fixture deleted; a performance budget raised without a device-lab run.
- A
constremoved, ownership made manual, or an exception introduced across a slot to make a path compile.
State the deletion, the reason it claims, and what it would take to keep the gate. "Temporarily" is not a reason; an expiring waiver with an owner is.
4. How to review
- Read the change twice. First for intent, then for the diff.
- Run the gates if you can: CMake build,
ctest,clang-format --dry-run --Werror,clang-tidy -p build, a release run on the floor. - Check the GUI thread and the architecture first. They are the expensive findings; style is cheap.
- Cite evidence. File and line for every Must fix; a rule name or a quoted contract for every finding.
- Propose the smallest fix. "Rewrite the window" is not a fix; "move the
parse to
QtConcurrent::runand apply the result in a queued slot" is. - Stop when the change is safe. An empty Should-fix section is a valid review.
5. Worked example
examples/review-inventory.md is a full review of a small inventory window:
the blocking loader, the model and the ViewModel, the findings in ranking
order, and the fixed module. It shows the GUI-thread violation first, then the
lifetime bug, then the model update, then the startup budget.
6. Cross-skill contract
qt-best-practicesdefines the rules this review cites. When a finding and the skill disagree, the skill is the source.qt-portproduces the change; this review checks it before release.- The
lints/config is the machine-checkable subset. A finding the config can catch should become a rule, not a repeated comment.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

