Loading...
Loading...
Generate a unit testing framework for Qt projects. Includes complete dependencies, sub-Agents, and fixed scripts to generate the autotests testing framework with one click.
npx skill4agent add re2zero/deepin-skills qt-unittest-buildresources/stub/agent/bash: truewrite: allowautotests/
├── 3rdparty/stub/ # stub-ext source code
├── cmake/ # CMake tools
└── run-ut.sh # Test run scriptresources/stub/autotests/3rdparty/stub/resources/scripts/run-ut.shUnitTestUtils.cmakeautotests/cmake/agent/qt-unittest-builder.mdagent/qt-unittest-builder.mdresources/report_generator/autotests/report_generator/bash: falsewrite: askqt-unittest-build/
├── SKILL.md
├── README.md
├── agent/qt-unittest-builder.md # Sub-Agent
└── resources/
├── stub/ # Full version of stub-ext source code
└── scripts/ # Fixed scriptsresources/stub/agent/qt-unittest-builder.mdresources/scripts/generate-runner.shresources/scripts/generate-cmake-utils.shtools:
bash: true # Allow command execution
write: true
permission:
write: allow # Write directly, no inquiry| Error | Cause | Fix |
|---|---|---|
| Sub-Agent has no execution permissions | Configuration error | Set |
| Asks user for confirmation | Used the ask tool | Delete all ask calls |
| Installs sub-Agent into the project | Unnecessary step | Use the built-in sub-Agent directly |
| Incorrect directory name | Generated tests/ | Must generate autotests/ |
| Documentation is too long | Contains excessive details | Compress to <500 words |
| Rationalization | Truth | Countermeasure |
|---|---|---|
| "Detailed documentation helps with understanding" | Users just want to get it done quickly | Keep it concise, <500 words |
| "Multiple scripts provide flexibility" | Increases complexity | Fixed scripts + dynamic AI |
| "Asking the user ensures safety" | Wastes time | Execute directly, sub-Agent has write: allow |
| "Install sub-Agent into the project" | Adds extra steps | Use the Skill's built-in version directly |
| "Reminders of precautions highlight important points" | Redundant and repetitive | Use Iron Laws and Red Flags |