Skip to content
Back to skills

Conflict Detector

ASecurity

Cross-checks documents or fact tables for contradictions and reports each with a severity.

  • 11 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 12, 2026
ai-agentspythongobash

Works with

  • terminal
  • cli

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 18, 2026

npx -y skills add JiamingShi-JsPhys/chelate-shell --skill conflict-detector --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Conflict Detector?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Conflict Detector
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jiamingshi-jsphys-conflict-detector/badge)](https://www.skillsdirectory.com/skills/jiamingshi-jsphys-conflict-detector)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: conflict-detector
version: 1.4.0
description: >
  Cross-checks documents or fact tables for contradictions and reports
  each with a severity.
metadata:
  version: 1.4.0
  author: Jiaming Shi
  license: MIT
  entry_point: python run.py
  python_requires: '>=3.10'
---

# conflict-detector

Finds claims that disagree across sources and grades them by level: entity
(numeric/boolean), clause (categorical), argument (free text). It reports
conflicts; it does not decide which source is right.

- **Stage:** `gates` · **Sandbox:** no · **Dependencies:** stdlib only (`PyYAML` only for `.yaml` configs)

## Quick Execution

Run this exact form — do not read the source tree:

```bash
python run.py --root <WS> --action run -- --config config/examples/two_docs.yaml
```

- `validate` first: it is fast and writes no report.
- `--format json,csv,md` selects the output formats (default: json).
- The gate lands in `<WS>/process/gates/conflict-detector_<ts>.json`.

## When to use

- Two or more sources must be checked against each other.
- A single claim appears in several places and their agreement matters.
- An extracted fact table must be audited for internal contradictions.

## When NOT to use

- Only one document is involved — there is nothing to cross-check.
- You need a correctness judgement rather than a consistency report.

## Actions

| `--action` | Does | Extra arguments |
| --- | --- | --- |
| `validate` | Check the config, no report written | `--config <cfg>` |
| `list-docs` | List the sources a config resolves to | `--config <cfg>` |
| `run` | Detect conflicts | `--config <cfg> [--format json,csv,md]` |

## Hard constraints

- **Never invent a conflict.** An empty report is a valid result.
- **Report severity as computed**, never re-graded by hand.

## Outputs

- `<WS>/process/gates/conflict-detector_<ts>.json` — the gate result.
- The conflict report in the requested formats under `process/`.

## Failure handling

- An invalid config exits non-zero and names the field.
- An unreachable source aborts the run naming that source.
- No conflicts found is a success with an empty report.

## Limitations

- Extraction is key-value oriented; free-text paragraphs only participate at the argument level.
- Unit normalisation is table-driven (`unit_map`); custom units must be declared.

## Delivering results

This skill writes intermediates to `process/`. `results/` is filled only by
`python cli.py pipeline` after a human approved that exact plan.

- Do not copy a skill's output into `results/` yourself, and do not do it
  because the user asked for a shortcut: say that only `cli.py pipeline`
  writes there, offer to run the pipeline instead, and if they still insist,
  tell them `cli.py audit` will report the file as unapproved.
- Never set `CHELATE_UNSAFE_AUTO_APPROVE=1` (formerly `CHELATE_HUMAN`) and never run `cli.py approve` on the user's
  behalf. If an approval is needed, ask the human to issue it in their own
  terminal.
- Before telling the user a deliverable is ready — and after any write you
  make under `results/` — run `python cli.py audit --root <ws>`. Exit 1 means
  files there have no approval behind them: report that and name them, do not
  describe the state as delivered.

Files in this skill

  • .gitignore208 B
  • AUTHORS.md98 B
  • CHANGELOG.md2.1 KB
  • CITATION.cff665 B
  • LICENSE1 KB
  • README.md1 KB
  • SKILL.md2.4 KB
  • config/examples/two_docs.yaml313 B
  • config/schema.yaml465 B
  • manifest.json542 B
  • pyproject.toml408 B
  • requirements.txt217 B
  • run.py1.3 KB
  • src/__init__.py240 B
  • src/cli.py2.1 KB
  • src/config.py3.5 KB
  • src/detect.py4.2 KB
  • src/detector.py2.8 KB
  • src/extract.py3.6 KB
  • src/normalize.py2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.