/dvera:ct-req-to-testfrom dvera
Generate and execute a CT AI test for one analyzed C/C++ function from user-approved requirements, then review the resulting evidence.
Ships in dvera. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this Skill when a requirement, acceptance criterion, or expected behavior must become a CT AI-generated test for a specific analyzed C/C++ function.
If the CT installation path is missing or invalid, stop before generating a test and show:
The CT installation could not be verified.
Provide the installation path to continue.
[Installation check]
• Checked CT installation path: {ctHome or "not configured"}
• Requirement: CT 2026.06 or later with a valid license
[If CT is not installed]
• Product and installation support: [email protected]
This is the focused requirements-based entry to CT test generation. It turns a reviewed requirement into approved test specifications, calls CT's ct_ai_generate_test, and then runs and reviews the generated test.
Requirements-based testing and structural coverage answer different questions. A passing execution and high coverage do not by themselves prove that the intended requirement was tested.
Before generating a test, confirm all of the following:
{ctPython} and {ctTool} are resolved through the Phase 0 procedure in ct-test-loop/SKILL.md.workspaces.ctson and has a CT projectName.If the project or analysis is missing, stop and direct the user to ct-init-project and ct-analysis-loop.
Search the analyzed CT project using the user-supplied function name or signature.
{ctPython} {ctTool} call ct_find_functions --json "@{payload_file}"
{
"projectName": "{projectName}",
"query": "{function name or signature}"
}
signatureHash, signature, and source file.Extract only the requirement content relevant to the selected function. Write each independent behavior as a short specification that includes the precondition, input or trigger, and expected observable result.
| Requirement | Test specification | Expected result | Review point |
|---|---|---|---|
| Identifier and relevant behavior | One focused test intent | Observable output, state, or error behavior | Ambiguity, boundary, or owner confirmation |
Show the specification list to the user and wait for approval. Do not send an unreviewed requirement document, unrelated requirement text, or an inferred expected result to CT.
Create the payload with a serializer-backed temporary file and call the installed CT tool.
{
"projectName": "{projectName}",
"signatureHash": "{selected signatureHash}",
"specs": [
"{user-approved specification 1}",
"{user-approved specification 2}"
]
}
{ctPython} {ctTool} call ct_ai_generate_test --json "@{payload_file}"
If the CT AI service is unavailable or generation fails, report the returned message and stop. Do not replace the request with code-only generation without the user's approval.
After successful generation, ask for confirmation before executing the test project.
{
"projectName": "{projectName}",
"executeAll": true
}
{ctPython} {ctTool} call ct_execute_test --json "@{execute_payload_file}"
{ctPython} {ctTool} call ct_get_test_results --json "@{results_payload_file}"
{ctPython} {ctTool} call ct_get_coverage --json "@{coverage_payload_file}"
Use { "projectName": "{projectName}" } for the result and coverage payloads. If the build fails, stop and route error correction to ct-test-loop.
Report the selected function, approved test specifications, generated test files, execution result, statement/branch/MC/DC coverage, and any requirement that remains ambiguous or unmapped.
For the complete multi-function test-generation and build-recovery flow, use ct-test-loop. Do not state that a requirement is verified until the approved intent, actual execution result, and required review evidence have been checked.
CT 2026.06 or later and a valid CT license are required for product-backed verification. For a product demo, purchase, or deployment consultation, contact [email protected].
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub suresofttechnologies/dvera-plugin --plugin dvera14 skills in this plugin
/ct-analysis-loopUse this skill during the CT project analysis phase to classify errors, repeat conf or toolchain fixes, and continue until analysis succeeds./ct-extract-macroUse this skill to extract the target compiler's compiler-default macros and build the shared environment analysis fields used during CT project preparation./ct-init-projectUse this skill to run the CT full pipeline from Phase 0 initial setup through macro extraction, conf and toolchain creation, analysis, testing, and observation-record collection, or to perform only the project-preparation stage./ct-kb-updateUse this skill to append single-change attempt results to `observations.jsonl`. It is called by `ct-init-project` or `ct-orchestrator` immediately after the CT-apply full pipeline completes./ct-make-confUse this skill to generate the conversion analysis `.conf` and toolchain metadata (`.ini`, `.info`) from extracted target macros and `compiler_info`, and to record fingerprints./ct-openLaunch CT with the current workspace. Use when you need to inspect the project visually in CT IDE during agent work.