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.

majiayu000 0efd7dd 2 files · 15.2 KB Updated 567 repo stars

File contents

majiayu000/claude-skill-registry-data/tree/main/analysis/counterexample-explainer commit 0efd7ddd6f

Frequently asked questions

npx skillmds add majiayu000/counterexample-explainer