Contradiction Detector

v1.0.1

Detects and eliminates contradictions between agent instruction files that cause hallucinations and silent misbehavior. Use when: (1) any agent behaves incon...

2· 159·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for korengast/contradiction-detector.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Contradiction Detector" (korengast/contradiction-detector) from ClawHub.
Skill page: https://clawhub.ai/korengast/contradiction-detector
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Required binaries: openclaw, python3, find, cat
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install contradiction-detector

ClawHub CLI

Package manager switcher

npx clawhub@latest install contradiction-detector
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description (detect contradictions across AGENTS.md, SOUL.md, HEARTBEAT.md, MEMORY.md, cron payloads, skills, hooks) aligns with required binaries (openclaw, python3, find, cat) and declared workspace/openclaw.json read access. The requested capabilities are expected and proportional. Note: the SKILL.md assumes a specific filesystem layout (examples use /opt/ocana/openclaw/workspace and /opt/ocana/openclaw/openclaw.json); confirm these paths match your installation.
Instruction Scope
SKILL.md explicitly describes discovery, cross-referencing, reporting, and requiring user confirmation before applying fixes. It instructs the agent to read many internal instruction sources (files, cron prompts, hook scripts, skills). This broad read-only scope is necessary for the stated audit purpose, but it will access potentially sensitive internal files and inline cron prompts.
Install Mechanism
Instruction-only skill with no install spec or downloaded code — lowest-risk install model. No archives, third-party package installs, or external download URLs are present.
Credentials
No environment variables or credentials requested. Declared configPaths/readAccess (openclaw.json, workspace, workspace/skills, workspace/hooks) are appropriate for the audit task. No unrelated secrets or external API keys are required.
Persistence & Privilege
always:false (no forced inclusion). disable-model-invocation:false is normal (skill can be invoked autonomously), but SKILL.md explicitly requires user confirmation before applying fixes and forbids autonomous destructive changes (removing files, altering cron schedules, changing ownership). The skill does not request system-wide config writes in its instructions.
Assessment
This skill appears coherent and performs a local read-only audit of agent instruction sources. Before installing, consider: (1) It needs the openclaw CLI and filesystem access to your workspace/openclaw.json — confirm those paths match your environment. (2) It will read many internal files (AGENTS.md, HEARTBEAT.md, MEMORY.md, cron inline prompts, hook scripts, skills); those files can contain sensitive data — ensure you are comfortable granting the skill read access. (3) The skill states it will present fixes as diffs and will not apply them without explicit confirmation; nevertheless, always back up files before accepting automated edits. (4) If you rely on a non-standard layout or different openclaw.json location, expect the discovery commands to require adaptation. If any of the above is unacceptable, do not enable the skill or run it in a controlled/read-only environment first.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

🔍 Clawdis
Binsopenclaw, python3, find, cat
latestvk979zsr25cgbkjvwz2dymxampx84gm52
159downloads
2stars
2versions
Updated 2w ago
v1.0.1
MIT-0

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.

Comments

Loading comments...