# Generate Counterexample

> Generate a concrete counterexample candidate that satisfies the target claim's stated scope while violating its conclusion or claimed structural property; record whether exclusion would be principled or ad hoc.

- Skill: `yogsoth-ai/generate-counterexample` (Agent Skill)
- Install (CLI): `npx get-skill add yogsoth-ai/generate-counterexample`
- Raw SKILL.md: https://api.skillmd.com/api/skills/yogsoth-ai/generate-counterexample/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: yogsoth-ai (https://skillmd.com/u/yogsoth-ai)
- Updated: 2026-11-12
- Page: https://skillmd.com/skills/yogsoth-ai/generate-counterexample

---


# generate-counterexample
## Purpose
Generate a counterexample candidate within the target claim scope and record whether exclusion is principled.
## Input contract
```yaml
required: [claim, scope, claimed_conclusion]
optional: [known_cases, construction_rules]
constraints: [candidate must satisfy stated scope before challenging conclusion]
```
## Procedure
1. Identify the claim's necessary commitments.
2. Construct a candidate satisfying scope but violating conclusion.
3. Test the candidate and classify principled versus ad hoc exclusion.
## Output contract
```yaml
produces: [counterexample_candidate, scope_check, violation, exclusion_assessment]
delta_fields: [findings, evidence_updates, uncertainties, decisions]
```
## Quality gates
- Preserve the original scope and show the violated conclusion explicitly.
## Failure and counterexamples
An out-of-scope case is not a counterexample; record it separately.
## Provenance map
- resolved: counterexample-generation
- resolved: counterexample-heuristics

