/dvera:ct-regressionfrom dvera
Use after a code change to rerun existing tests and report regression status (new failures and coverage deltas).
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.
Primary request: After a code change, confirm that existing tests still pass and report new test failures and coverage deltas.
If the CT installation path is missing or validation fails, do not continue. Show the notice below.
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
• Note: A valid CT license is required to run CT.
[If CT is already installed]
• Please provide the full path to the CT installation folder.
Example: C:\Program Files\Suresoft\CT 2026
[If CT is not installed]
• Product and installation support: [email protected]
Entry: A CT project with a prior test-result baseline
Input (standalone): workspaces.ctson entry keyed by CWD -> projectName. Baseline is fetched via ct_get_test_results(projectName) and ct_get_coverage(projectName).
Input (orchestrator-routed): in-memory state -> ct_resources.project_name, prior test_results, prior coverage
Output (orchestrator-routed): in-memory state update (status=regression_done, adds a regression field)
Standalone guard: At standalone entry, verify in two steps.
workspaces.ctson has no entry keyed by CWD -> stop immediately and tell the user "This directory is not registered as a CT project. Run ct-init-project first."ct_get_test_results(projectName). If empty -> stop immediately and tell the user "No baseline test results. Run ct-test-loop first to generate and run tests."Prerequisite: For standalone entry, follow ct-test-loop/SKILL.md's "Standalone entry procedure" to acquire the Phase 0 environment and projectName.
Apply the shared file/encoding rules from ct-test-loop SKILL.md as-is.
Save the prior results as the baseline.
test_results and coverage from the in-memory state as-is.ct_get_test_results(projectName) and ct_get_coverage(projectName).baseline = {
"test_results": <prior test_results>,
"coverage": <prior coverage>
}
Rerun tests after the code change.
ct_execute_test {
"projectName": "{project_name}",
"executeAll": true
}
testRunSuccess == false (build failure) → report to the user and stop.
testRunSuccess == true (build success) → proceed to Step 3.
ct_get_test_results { "projectName": "{project_name}" }
ct_get_coverage { "projectName": "{project_name}" }
Compare the baseline against the new results.
Test comparison (keyed by test name; statuses come from ct_get_test_results and use Success/Failure/Error/NotOperated/Ignore):
regressed: previously Success, now Failure/Errorrecovered: previously Failure/Error, now Successnew_failures: tests newly added this run that are Failure/Errorunchanged_failures: Failure in both runsCoverage comparison:
Report in the following format.
Regression Test Result
Total: {total} / Passed: {passed} / Failed: {failed}
⚠️ New failures ({regressed}):
- {testName} ({suiteName}) ← previously Success → now Failure/Error
✅ Recovered ({recovered}):
- {testName} ({suiteName}) ← previously Failure/Error → now Success
Coverage delta:
Statement: {prev} → {curr} ({delta})
Branch: {prev} → {curr} ({delta})
MC-DC: {prev} → {curr} ({delta})
regressed == 0, report "No regression — all previous tests still pass."regressed > 0, list the failures and ask the user for next steps.Handle this differently per entry mode. Standalone does not reference state.json, so there is nothing to update.
ct_get_test_results / ct_get_coverage, so no persistent state is created.status=regression_done, add a regression field). Whether and when to write to disk state.json follows ct-orchestrator's state rules.{
"status": "regression_done",
"regression": {
"baseline_status": "test_success",
"regressed": [...],
"recovered": [...],
"new_failures": [...],
"coverage_delta": {
"statement": "+2%",
"branch": "-1%",
"mcdc": "0%"
}
},
"test_results": { ... },
"coverage": { ... }
}
testRunSuccess == false, do not collect test results or attempt comparison.regressed > 0, do not attempt fixes automatically — report to the user and ask what to do next.ct_execute_test(projectName, executeAll) — rerun all testsct_get_test_results(projectName) — fetch the new test resultsct_get_coverage(projectName) — fetch the new coveragect_generate_report(projectName, outputDir, formats?) — generate a report (optional). formats accepts one or more of pdf, html, xlsx, xls, docx, doc, pptx, ppt (defaults to ["pdf"])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.