一键导入
source-command-test
Build and test the repository without making unnecessary code changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Build and test the repository without making unnecessary code changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Design and implement a Qt Quick interface with a deliberate visual system and a clean C++ module boundary.
Implement a requested change using the repository's modern C++ agent loop.
Prepare a release using a strict verification-first workflow.
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-test |
| description | Build and test the repository without making unnecessary code changes. |
Use this skill when the user asks to run the migrated source command test.
Run the repository verification loop.
Preferred commands:
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug
cmake --build build --parallel
ctest --test-dir build --output-on-failure --no-tests=error
If presets exist, prefer the repository presets.
Use a clean final-verification directory, keep every requested default feature
enabled, and build the full default all target. For a Qt product, confirm the
graphical executable links after generated MOC, QML type-registration,
resource, and QML cache sources compile. Then run QML creation/interaction or a
deterministic GUI startup smoke check. A GUI-disabled core build is partial
evidence, not product verification.
For a graphical product, capture and inspect the required minimum, standard, and wide screenshot matrix across relevant appearance and content states. Check containment, overlap, clipping, shared edges, baselines, repeated metrics, spacing rhythm, optical centering, contrast, safe insets, and accidental dead space. Run deterministic QML geometry assertions where practical.
Run the strict QML lint target with zero project warnings. Run the GUI/QML interaction smoke under the same explicit Controls style as the application, with project-owned Qt/QML warnings treated as failures. The flow must reach an explicit ready state and instantiate primary-path lazy popups, dialogs, delegates, editors, and responsive branches; a timer-only launch is not product verification. Reject invalid properties, unsupported style customization, binding loops, missing-font substitution, clipped popup rows, and truncated primary actions.
For a generated Qt baseline, verify that source-relative QML files have aliases
that remove only ui/, that module-root Main loads, and that a same-name
target/URI fully links with QML artifacts under qml/ and runtime output under
bin/. Record the actual executable, qmldir, and .qmltypes paths.
When CMake, modules, standard-library integration, or toolchain policy changes, use a fresh build directory and verify the single supported path: project-owned modules plus standard headers in global module fragments.
Report:
knowledge_contract test passed.PASS, FAIL, or NOT VERIFIED.If a required SDK is unavailable, report the affected primary surface as
NOT VERIFIED; do not describe the project or archive as ready or final.