agentleFS
phant0umphant0um/claude-skills/skills/contradiction-sweep/SKILL.md

contradiction-sweep

Skill0 starsChanged 22 days agoMITView on GitHub

Use when: scan do vault por claims contraditórias entre sources/conceitos — reconciliar ou flagar para decisão humana. Diferente de [connection-finder](../connection-finder/SKILL.md) (que produz as conexões e já sinaliza contradições no scan dos últimos 7 dias); contradiction-sweep consome `06-GENERATED/reports/connections/` e reconcilia ou flaga o conflito para decisão humana.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 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.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If pending_human > 0, append to 04-SYSTEM/system/state/context/hot.md:

    line 132
  2. Distinctive:

    Never auto-resolve methodological contradictions

    line 143
  3. Distinctive:

    Never delete source content — only add markers/notes

    line 144
  4. Very specific:

    If >20 contradictions found: likely a systemic issue (e.g., outdated domain).

    line 145

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Contradiction Sweep

Scan vault for contradictory claims across sources and concepts. Reconcile or flag for human decision.


Quando NÃO usar

  • Corpus pequeno e estável — sem fontes novas, sweep não encontra contradição nova.
  • Semana sem ingest — rodar sweep sem material novo é custo sem retorno.
  • Conflito de opinião entre humanos — sweep é para claims contraditórios; desacordo de preferência não é contradição.

Disambiguation: contradiction-sweep procura claims contraditórios; connection-finder procura convergências; drift-review audita docs vs código — sweep é semântico no vault.

Trigger

  • Scheduled: bi-weekly Saturday 8 AM
  • Manual: @contradiction-sweep or "sweep contradictions"
  • Post-connection-finder: when connection report has >2 contradictions

Execution

  1. Coletar pares candidatos: relatórios de conexão com seção de contradição e fontes com tags sobrepostas.
  2. Classificar o tipo: factual, metodológica, temporal, perspectiva ou superseded.
  3. Auto-resolver só factual ou temporal com confiança de pelo menos 80%.
  4. Gerar 06-GENERATED/reports/contradiction-sweep-YYYY-MM-DD.md; metodológicas e perspectiva vão para decisão humana.
  5. Atualizar o hot cache só se houver pendentes.

1. Collect candidate pairs

Sources of contradictions:

cd $VAULT_DIR
# Recent connection reports with contradiction sections
grep -l "## Contradi" 06-GENERATED/reports/connections/*.md | tail -5
# Sources with overlapping tags but different conclusions
# (cross-reference via frontmatter tags)

Also scan:

  • Concepts with >3 sources linked — higher chance of conflicting claims
  • Sources from same domain published >30 days apart (knowledge evolves)

2. Detect contradiction types

TypeDescriptionResolution
FactualDifferent numbers for same metricFind primary source, update stale one
MethodologicalSame goal, opposite approach recommendedDocument both with context where each applies
TemporalClaim was true, no longer isAdd temporal marker, update concept
PerspectiveValid from different viewpointsCreate synthesis noting both perspectives
SupersededNewer evidence invalidates olderMark older as superseded, link to newer

3. Auto-resolve (high confidence only)

Automatically fix:

  • Temporal: source from 2024 says X, source from 2026 says NOT X with evidence -> mark 2024 claim as [superseded YYYY-MM-DD]
  • Factual with primary source: official docs > blog post > social media

Do NOT auto-resolve:

  • Methodological (both can be valid)
  • Perspective (requires judgment)
  • Any contradiction where confidence < 80%

4. Generate report

Output: 06-GENERATED/reports/contradiction-sweep-YYYY-MM-DD.md


# Contradiction Sweep

## Auto-Resolved
### [Type] Short description
- **Source A**: path — claim
- **Source B**: path — counter-claim
- **Resolution**: what was done and why
- **Confidence**: HIGH

## Pending Human Decision
### [Type] Short description
- **Source A**: path — claim
- **Source B**: path — counter-claim
- **Options**:
  A) Adopt Source A because [reason]
  B) Adopt Source B because [reason]
  C) Keep both with context note
- **Recommendation**: [A/B/C]

5. Update hot cache (only if pending items)

If pending_human > 0, append to 04-SYSTEM/system/state/context/hot.md:

## Contradictions YYYY-MM-DD | N pending human decision
-> `contradiction-sweep-YYYY-MM-DD`

Constraints

  • Max 20 contradiction pairs per sweep (focus on highest impact)
  • Never auto-resolve methodological contradictions
  • Never delete source content — only add markers/notes
  • If >20 contradictions found: likely a systemic issue (e.g., outdated domain). Flag for review agent
  • Primary source hierarchy: academic paper > official docs > expert blog > social media

Critério de sucesso: contradições com claim, fontes e tipo; só factual ou temporal auto-resolvidas com evidência, sem source sobrescrito.

Completion

  • Contradições identificadas com: claim, source A, source B, tipo (factual/temporal/metodológica)
  • Contradições factual/temporal auto-resolvidas com evidência citada
  • Contradições metodológicas flagadas para decisão humana
  • Source content não deletado nem sobrescrito (append-only)
  • Wikilinks no report resolvem
  • Primary source hierarchy respeitada (academic > official docs > expert blog > social)

Failure modes

  • Auto-resolve metodológica: resolver automaticamente contradição metodológica → requer decisão humana
  • Content deletion: sobrescrever source ao reconciliar → append-only, nunca destruir informação
  • Vague pending: deixar contradição pendente sem opções concretas → sempre ter A/B/C

Quality Gate

  • Every wikilink in report resolves
  • Auto-resolved items cite evidence for resolution
  • Pending items have concrete options (not vague)
  • No source content was deleted or overwritten

Changelog

  • v1.0 (2026-05-25): Created. Inspired by Ghelbur's /obsidian-reconcile + connection-finder contradiction detection.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.