add-view
Skill0 starsChanged 20 days agoMITView on GitHub
Adds a Widgets view to an <app> slice: a QObject view model with the standard status set, an item model, the window that renders them, and the offscreen test that proves the states.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- cameronsjo/agentic-harnessestheir own version, first seen May 31, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- cameronsjo/agentic-harnesses★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository24 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- add-linux-packagingSkill
- add-sliceSkill
- 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
- qt-reviewSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Do NOT activate this skill when:
- Very specific: line 34
Reuse the ui-kit: Check src/ui-kit/ before writing a widget.
- Distinctive: line 36
Widgets, CPU rendering: No Qt Quick, no shader effects, no assumption that a GPU exists.
- Very specific: line 43
No GUI type reaches the domain or the application layer: the view model may use QObject and Q_PROPERTY, and nothing below presentation/ may.
- Very specific: line 47
No blocking call on the GUI thread: no QFuture::result(), no waitForReadyRead(), no QThread::sleep.
- Very specific: line 49
Every screen implements the empty state, the error state and the loading state — a screen that only renders Ready is incomplete.
≈ “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
<app> add-view skill
Reusable workflow for adding a screen to an existing
<app>slice. An agent invokes this skill; the requester supplies the screen, the skill supplies the MVVM wiring, the Widgets discipline and the test.
When to Activate
Activate this skill when the request is a new screen or a new widget in an existing slice: a detail panel, a list with an empty state, a settings form, a filter bar.
Do NOT activate this skill when:
- The screen needs a new domain rule or a new use case — add the slice first
(
add-slice) or the use case first. - The request is a pure visual tweak of an existing screen.
- The request introduces a Qt Quick surface: it needs an ADR before this skill runs.
Core Principles
- The view renders state; it does not compute it. A widget reads the view model and sends intents back. No business rule lives in a slot handler.
- One status set. The view model exposes the standard statuses —
Loading,Ready,Empty,Forbidden,NotFound,Offline,Error,PolicyBlocked— and the view has one rendering per status. - Reuse the ui-kit. Check
src/ui-kit/before writing a widget; a duplicated control is a finding. - Widgets, CPU rendering. No Qt Quick, no shader effects, no assumption that a GPU exists; the layout must survive Compatibility Mode.
- Async by default. The view model asks a use case and receives a
QFuture<Result<T>>; it never blocks.
Rules
- No GUI type reaches the domain or the application layer: the view model may
use
QObjectandQ_PROPERTY, and nothing belowpresentation/may. - The view model is
QObjectwithQ_PROPERTYand emits a signal on every status change; the view never polls. - No blocking call on the GUI thread: no
QFuture::result(), nowaitForReadyRead(), noQThread::sleep. - Every screen implements the empty state, the error state and the loading
state — a screen that only renders
Readyis incomplete. - Accessibility basics are mandatory: accessible name on every interactive widget, keyboard reachability for every action, visible focus.
- The test runs headless with
QT_QPA_PLATFORM=offscreenand asserts on the view model state and on the item model, not on pixels. - Report the real output of the build and the test run.
Research References
| Claim | Source | Year | Link |
| The view model exposes observable properties and the view reacts to signals | Qt documentation | 2025 | https://doc.qt.io/qt-6/qobject.html |
| Item models should update with precise range signals instead of resetting | Qt documentation | 2025 | https://doc.qt.io/qt-6/qabstractitemmodel.html |
| Widgets rasterize on the CPU, which is why the template is widgets-first | PLAYBOOK_DESKTOP_QT.md §2.3 | - | PLAYBOOK_DESKTOP_QT.md |
| Headless GUI tests use the offscreen platform plugin | cmake/qt.cmake (desktop_add_test()) | - | cmake/qt.cmake |
| The shared widgets and theme to reuse | src/ui-kit/ | - | src/ui-kit/CMakeLists.txt |
Output Format
View: <name> — slice: <slice>
Files:
presentation/ <view model, item model>
<ui files> <window and widgets>
States implemented: Loading · Ready · Empty · Forbidden · NotFound · Offline · Error · PolicyBlocked
Reused from ui-kit: <widgets> — or: none needed
Accessibility: <accessible names, focus order>
Gates:
cmake --build build → <result>
QT_QPA_PLATFORM=offscreen ctest --test-dir build -R <suite> → <result>
Open: <what the next screen would need>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.

