一键导入
source-command-design-qt-quick-ui
Design and implement a Qt Quick interface with a deliberate visual system and a clean C++ module boundary.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Design and implement a Qt Quick interface with a deliberate visual system and a clean C++ module boundary.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Implement a requested change using the repository's modern C++ agent loop.
Prepare a release using a strict verification-first workflow.
Build and test the repository without making unnecessary code changes.
Enforce the human-approved project-name gate before creating a new product, application, service, library, tool, repository, or implementing an idea. Use when starting new project work or when another workflow is about to generate a project.
Add a modern C++ module with a documented boundary, CMake registration, and tests.
Convert repeated human corrections into durable repository agent rules.
| name | source-command-design-qt-quick-ui |
| description | Design and implement a Qt Quick interface with a deliberate visual system and a clean C++ module boundary. |
Use this skill for new Qt interfaces, QML screens, visual redesigns, Qt UI
architecture changes, and unspecified user-facing interactive applications
whose primary surface is selected by GUI-015.
Read completely before editing:
AGENTS.mddocs/agent/START_PROJECT.md when creating a new product or projectdocs/agent/QT_QUICK_UI.mddocs/agent/PROJECT_CMAKE_BASELINE.mddocs/agent/ARCHITECTURE.mddocs/agent/NAMING.mddocs/agent/SYNTAX_AND_STYLE.mddocs/agent/API_DESIGN.mddocs/agent/ERRORS_AND_RESOURCES.mddocs/agent/TESTING_AND_VERIFICATION.mdINI-001 through INI-004. If the project name
is missing, ask for it and stop before writing code or choosing identifiers.GUI-015 to an
unspecified user-facing interactive application.ui/
boundary, using responsibility-based subdirectories only when needed.PROJECT_CMAKE_BASELINE.md; do not
reconstruct module and Qt integration from partial snippets.qt_add_qml_module.NEW behind
QT_KNOWN_POLICY_QTP0004 before qt_add_qml_module. Treat missing generated
.qmltypes after a failed CMake Generate step as a cascading symptom.
Keep QML paths source-relative, assign deterministic QT_RESOURCE_ALIAS
values that remove only the architectural ui/ prefix, and preserve
module-root Main plus logical subdirectories. Separate the project-wide
QT_QML_OUTPUT_DIRECTORY from each target-local
RUNTIME_OUTPUT_DIRECTORY so identical target and URI names remain valid.QML_ELEMENT adapter header as a
target-local private include directory. Never patch generated
*_qmltyperegistrations.cpp files.cmake/AimcppProjectChecks.cmake into generated projects
and run aimcpp_reject_final_qml_creatable_types on every project-owned QML
registration header.QML_ELEMENT QObject must not be final; Qt's generated
registration wrapper derives from it.background, contentItem, indicator, delegates, or popups are
replaced, select a customizable style before loading QML and keep it
identical in application runs, lint, tests, screenshots, and packaging.qmllint with zero project warnings; do not infer a
property from a similar type.NOT VERIFIED.
Record the linked runtime target, generated qmldir, and .qmltypes paths.Before implementation, state:
After implementation, also report the minimum Qt version, effective Controls style, strict lint warning count, runtime warning count, and the lazy UI components instantiated by the smoke/interaction flow.
After implementation, report the standard REP-* evidence plus any UI states
or platforms that were not visually or interactively verified, and include the
viewport/appearance/content-state visual acceptance matrix.