Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Conflict Detector?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/jiamingshi-jsphys-conflict-detector)
---
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.