detect-contradiction
Skill3 starsChanged 6 months agoMITView on GitHub
In this repository18 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- assumption-checkSkill
- cache-hintSkill
- caveman-summarySkill
- clarify-intentSkill
- code-mapSkill
- compress-contextSkill
- error-to-actionSkill
- explain-depthSkill
- format-responseSkill
- humanize-outputSkill
- prevent-redundancySkill
- route-or-answerSkill
- setupSkill
- simplify-scopeSkill
- tone-matchSkill
- tool-call-guardSkill
- validate-outputSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Before returning any response that makes factual claims about user data
- Distinctive: line 62
Only flag genuine conflicts — not missing information
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
skill: detect-contradiction
purpose
Compare a response draft against source data or prior established facts. Catches factual conflicts before they reach the user. The most common form of agent unreliability is saying something in turn 8 that conflicts with what was confirmed in turn 3.
when_to_use
- Before returning any response that makes factual claims about user data
- Source data was provided (API response, document, database record) and agent will reference it
- Multi-turn conversation where facts have accumulated
when_not_to_use
- First turn with no prior context
- Creative or subjective tasks — no ground truth to contradict
- Generating hypotheticals — internal consistency matters more than factual accuracy
input
response_draft: string # What the agent is about to say
established_facts: string # Confirmed facts from context, source docs, or earlier turnsoutput
{
"contradictions": [
{
"claim": "string",
"conflicts_with": "string",
"severity": "blocks|flags"
}
],
"clean": true | false,
"corrected_draft": "string | null"
}instructions
Compare the draft against established facts.
A contradiction is when the draft states or implies something that conflicts with a confirmed fact.
NOT a contradiction:
- Elaborating on a fact with more detail
- Phrasing the same fact differently
- Not mentioning a fact (omission is not contradiction)
Severity:
- blocks: changes the correctness of the response (wrong number, wrong name, wrong status)
- flags: ambiguous phrasing, missing qualifier — response might still be usable
If contradictions exist: rewrite only the conflicting parts.
Do not rewrite the entire draft. Do not add new information.
corrected_draft is null if clean is true.
Return JSON only.constraints
- Max output tokens: 400
- Only flag genuine conflicts — not missing information
- corrected_draft: fix only what's wrong, nothing else
example
Input:
response_draft: "Your Pro subscription renews on March 20th for $79/month."
established_facts: "billing_api: { plan: 'Pro', price: 49, renewal_date: '2025-03-15' }"Output:
{
"contradictions": [
{
"claim": "renews on March 20th",
"conflicts_with": "renewal_date is 2025-03-15",
"severity": "blocks"
},
{
"claim": "$79/month",
"conflicts_with": "price is $49",
"severity": "blocks"
}
],
"clean": false,
"corrected_draft": "Your Pro subscription renews on March 15th for $49/month."
}feedback_log
<!-- date | situation | what went wrong | better behavior -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

