Automatically repair code violations of temporal properties using model-checking counterexamples as guidance. Use when working with formal verification results, temporal logic property violations (LTL, CTL), model checking counterexamples, or when asked to repair property violations, fix counterexamples, repair temporal properties, fix model checking violations, or repair code based on counterexamples. Applicable to concurrent systems, state machines, synchronization issues, safety/liveness properties, and resource management violations.
87
81%
Does it follow best practices?
Impact
96%
1.26xAverage score across 3 eval scenarios
Passed
No known issues
Structured repair output format
Property formalization
30%
100%
Counterexample trace narrative
60%
70%
Root Cause Analysis section
100%
100%
Repair Strategy section
62%
100%
Minimality justification
20%
100%
Behavior Preservation section
75%
100%
Changes Made with line numbers
0%
60%
Validation Results section
75%
100%
Changes marked in code
90%
100%
Correct fix applied
100%
100%
No unrelated changes
33%
83%
Minimal synchronization repair
Single change location
100%
100%
No new functions
100%
100%
Narrowest scope fix
100%
100%
Unrelated code untouched
100%
100%
Original variable names preserved
100%
100%
Correct synchronization applied
100%
100%
Control flow preserved
100%
100%
Changes annotated
0%
100%
Minimality stated in report
100%
100%
Validation confirms fix
80%
100%
Counterexample-guided test generation
Counterexample translated
70%
100%
States mapped to code locations
60%
100%
Precise root cause
100%
100%
Counterexample path test
100%
100%
Edge case test
100%
100%
Regression tests for happy paths
100%
100%
Correct fix in repaired.py
100%
100%
Repair minimality justified
100%
100%
Changes Made with line numbers
50%
60%
Validation Results references tests
30%
100%
0f00a4f
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.