coherence-diagnosis

coherence-diagnosis is a skill for Claude Code, Codex from yogsoth-ai/de-anthropocentric-research-engine. It costs 32 tokens per session (756 once invoked), scanned A, original, Apache-2.0.

A consistency check for comparison judgments. It finds logical loops—such as preferring A over B, B over C, but C over A—and identifies the judgments causing them.

In plain words
What is it for?
Use it to audit preference matrices, measure consistency, locate problematic comparisons, and suggest corrections.
Why use it?
It helps explain surprising rankings and catches unreliable comparison data before a decision is finalized.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to audit preference matrices, measure consistency, locate problematic comparisons, and suggest corrections.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yogsoth-ai/de-anthropocentric-research-engine/coherence-diagnosis
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yogsoth-ai/de-anthropocentric-research-engine --skill coherence-diagnosis
Clone the repo
git clone --depth 1 https://github.com/yogsoth-ai/de-anthropocentric-research-engine

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for coherence-diagnosis

README.md
[![agentmods](https://agentmods.dev/badge/skills/yogsoth-ai/de-anthropocentric-research-engine/coherence-diagnosis/github.svg)](https://agentmods.dev/skills/yogsoth-ai/de-anthropocentric-research-engine/coherence-diagnosis)
Your own site
<a href="https://agentmods.dev/skills/yogsoth-ai/de-anthropocentric-research-engine/coherence-diagnosis"><img src="https://agentmods.dev/badge/skills/yogsoth-ai/de-anthropocentric-research-engine/coherence-diagnosis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for coherence-diagnosis

Your own site · 80×15
<a href="https://agentmods.dev/skills/yogsoth-ai/de-anthropocentric-research-engine/coherence-diagnosis"><img src="https://agentmods.dev/badge/skills/yogsoth-ai/de-anthropocentric-research-engine/coherence-diagnosis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 756 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.00756
Opus 5 $0.00016 $0.00378
Sonnet 5 $0.00006 $0.00151
Haiku 4.5 $0.00003 $0.00076

Measured 9d ago against content hash 053c87b3ab37, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

coherence-diagnosis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/coherence-diagnosis/SKILL.md · 109 lines

How it starts

The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Coherence Diagnosis

Purpose

Audit an existing comparison matrix for logical consistency. Detect cycles, quantify transitivity violations, localize problematic judgments, and recommend corrections. Essential as a quality gate before finalizing any ranking.

When to use

  • Existing comparison data needs validation
  • Suspicion of inconsistent judgments
  • Pre-finalization quality gate
  • AHP consistency ratio check required
  • Debugging unexpected ranking results

Budget

Resource Allocation
Cycle detection Full matrix scan
Consistency metric CR < 0.1 (AHP) or transitivity > 90%
Repair comparisons ≤ 20% of original comparisons
Iterations 1-3 audit-repair cycles

State Ledger

comparison_matrix: {}   # pair → winner
candidates: []
consistency_metrics: {cr: null, transitivity: null, cycles_count: 0}
cycles: []              # [[a>b, b>c, c>a], ...]
problematic_pairs: []   # pairs involved in most cycles
repair_log: []          # [{pair, old_judgment, new_judgment, reason}]
iteration: 0

Available Tactics

  • consistency-audit-loop — detect, localize, repair, recompute

Available SOPs

  • cycle-detection
  • inconsistency-localization
  • comparison-executor (for re-comparison)
  • rating-update (for recomputation)
  • convergence-check
  • ranking-synthesis

Execution Guidance

  1. Run cycle-detection on full comparison matrix
  2. Compute consistency metrics (CR, transitivity score)
  3. If consistent (CR < 0.1): proceed to ranking-synthesis
  4. If inconsistent: run inconsistency-localization
  5. Re-compare problematic pairs via comparison-executor
  6. Recompute ratings and re-check consistency
  7. Repeat until consistent or repair budget exhausted
  8. Document all repairs in audit trail

Output Format

diagnosis:
  consistency_ratio: 0.04
  transitivity_score: 0.97
  cycles_found: 1
  cycles_resolved: 1
  repairs_made: 2
audit_trail:
  - {pair: ["b", "d"], original: "b", revised: "d", reason: "..."}
final_ranking_valid: true
method: consistency-ratio

Read the full file on GitHub · 109 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 109 lines · 32 tokens per session scan A 053c87b3ab37

Subscribe to this mod's changes

coherence-diagnosis is a skill published in the GitHub repository yogsoth-ai/de-anthropocentric-research-engine (464 stars, last pushed today), licensed Apache-2.0. It adds 32 tokens to every session and 756 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.