contradiction-detector

Detects and eliminates contradictions between agent instruction files that cause hallucinations and silent misbehavior. Use when: (1) any agent behaves inconsistently despite correct-looking instructions, (2) a sub-agent format/behavior was fixed in one file but the behavior didn't change, (3) a new agent, cron job, or instruction file was added, (4) running a periodic consistency sweep. Scans AGENTS.md, SOUL.md, HEARTBEAT.md, MEMORY.md, cron job payloads, and skill files for any agent — then cross-references them for contradictions.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "contradiction-detector" with this command: npx skills add korengast/contradiction-detector

Contradiction Detector

Contradictions between agent instruction files are the #1 cause of silent misbehavior in multi-agent OpenClaw setups. Files are loaded non-deterministically across sessions — the only fix is making all files agree.

Prerequisites

  • openclaw CLI — listing agents and cron jobs
  • python3 — parsing JSON config
  • find, cat — standard POSIX utilities
  • Filesystem access to the OpenClaw workspace directory

Audit Procedure

Step 1 — Discovery

Enumerate every instruction source: all agents, their workspace files (AGENTS.md, SOUL.md, HEARTBEAT.md, MEMORY.md, IDENTITY.md, USER.md), all cron jobs with inline prompts, all installed skills, and any hook scripts.

→ Detailed procedure: references/discovery.md

Build a complete inventory per agent before proceeding. Missing even one source means contradictions slip through.

Step 2 — Cross-reference for contradictions

Systematically check every pair of instruction sources per agent against 12 known contradiction patterns:

#PatternRiskMost common trigger
1Format duplicationHIGHSame output format defined in 2+ files independently
2Cron prompt overrideHIGHCron contains stale instructions; HEARTBEAT.md fix is invisible
3Routing mismatchHIGHDifferent session/channel targets for same output
4Persona/tone conflictMEDSOUL.md vs AGENTS.md communication style
5Trigger/schedule mismatchMEDCron frequency vs HEARTBEAT.md timing
6Memory routing conflictMEDSame data type sent to different memory locations
7Dead/orphaned rulesMEDOld rule not removed after newer rule added elsewhere
8Cross-agent assumption mismatchMEDSender expects X, receiver does Y
9Implicit vs explicit behaviorLOW-MEDGap filled differently by different files
10Skill-agent conflictLOW-MEDSkill instructions override agent rules when triggered
11Stale MEMORY.md directivesLOW"From now on" in MEMORY.md contradicts current AGENTS.md
12Environment/config driftLOWHardcoded paths, model names, or URLs that changed

→ Full detection procedures and examples: references/contradiction-patterns.md

Step 3 — Report and fix

Produce a structured finding for each contradiction (agent, severity, pattern, evidence with exact quotes, impact, proposed fix). Present all fixes as diffs and wait for user confirmation before applying.

→ Report format, severity guidelines, and fix protocol: references/reporting-and-fixes.md

Post-fix verification

After every fix: re-read both files, verify agreement, and confirm no new contradictions were introduced.

Scheduling (optional)

This skill works as a manual on-demand invocation. Optionally add to HEARTBEAT.md or a cron job for periodic runs.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Canonry Setup

Agent-first AEO operating platform.

Registry SourceRecently Updated
4151arberx
Automation

Pilot Service Agents Entertainment

Games, manga/anime, trivia, and fandom APIs — PokeAPI, Jikan, CheapShark, misc. Use this skill when: 1. Pokémon / PokeAPI lookups 2. Anime or manga metadata...

Registry SourceRecently Updated
Automation

Pilot Service Agents Economics

Macroeconomic indicators — IMF DataMapper, World Bank, Eurostat SDMX, Coinbase reference prices. Use this skill when: 1. Country-level GDP, inflation, or une...

Registry SourceRecently Updated
Automation

Pilot Service Agents Flights

Aircraft tracking and aviation weather — ADS-B feeds (ICAO + bbox), airport directory, METAR/TAF/SIGMET. Use this skill when: 1. Live aircraft positions by I...

Registry SourceRecently Updated