CtrlK
BlogDocsLog inGet started
Tessl Logo

counterexample-explainer

Explain why counterexamples violate specifications by analyzing formal specifications (temporal logic, invariants, pre/postconditions, code contracts), informal requirements (user stories, acceptance criteria), test specifications (assertions, property-based tests), and providing step-by-step traces showing state changes, comparing expected vs actual behavior, identifying root causes, and assessing violation impact. Use when debugging test failures, understanding model checker output, explaining runtime assertion violations, analyzing static analysis warnings, or teaching specification concepts. Produces structured markdown explanations with traces, comparisons, state diagrams, and cause chains. Triggers when users ask why something failed, explain a violation, understand a counterexample, debug a specification, or analyze why a test fails.

93

1.45x
Quality

92%

Does it follow best practices?

Impact

96%

1.45x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

Evaluation results

94%

29%

Debugging a Workflow Engine State Machine Bug

State machine violation trace and diagram

Criteria
Without context
With context

ASCII state diagram

0%

66%

Step-by-step trace

91%

91%

Status indicators in trace

0%

100%

Violation point identified

90%

100%

Expected vs actual table

90%

90%

Root cause identified

100%

100%

Buggy vs fixed code

40%

100%

Impact severity stated

0%

100%

Downstream effects listed

100%

100%

Specification clearly stated

100%

100%

One-sentence summary

100%

100%

96%

32%

Explaining a Model Checker Counterexample to New Engineers

Temporal logic violation with timeline and plain language

Criteria
Without context
With context

Plain language LTL translation

100%

100%

Operators explained

75%

100%

Timeline diagram present

100%

100%

Status markers in timeline

0%

50%

Violation point in timeline

70%

100%

Cause-effect chain

41%

100%

Root cause identified

100%

100%

Buggy vs fixed code

0%

100%

Impact severity stated

0%

100%

Real-world impact described

100%

100%

Non-technical audience addressed

100%

100%

100%

31%

Understanding a Property-Based Test Failure in a Sorted Collection

Minimal counterexample and assertion chain for property-based test

Criteria
Without context
With context

All postconditions listed

100%

100%

Pass/fail indicators per postcondition

40%

100%

Failing postcondition detail

100%

100%

Minimal counterexample analysis

58%

100%

Bug class generalization

25%

100%

Root cause identified

100%

100%

Specific line referenced

100%

100%

Corrected code shown

100%

100%

Impact severity stated

0%

100%

Real-world consequences described

0%

100%

Actual values used throughout

100%

100%

Repository
ArabelaTso/Skills-4-SE
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

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.