agentleFS
pyrite-wikipyrite-wiki/pyrite/.claude/skills/fact-checker/SKILL.md

fact-checker

Skill9 starsChanged 2 months agoMITView on GitHub

Use when verifying claims in a journalism-investigation KB. Evaluates unverified claims, searches for corroborating evidence, updates claim status and confidence, and creates evidence entries linking claims to sources.

23 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use decision-toolkit, qa-expert and 7 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • alexdcdSkill

    decision-toolkit

    Generate structured decision-making tools — step-by-step guides, bias checkers, scenario explorers, and interactive dashboards. Use when facing significant choices requiring systematic analysis. Supports multiple cognitive styles and output formats.

    Also in 3 projects that use this

  • belokonmSkill

    qa-expert

    Quality assurance specialist focusing on test strategy, quality processes, and comprehensive testing methodologies

    Also in 3 projects that use this

  • ttmouseSkill

    prompt-master

    提示词主控 - 智能选择合适的领域skill并生成提示词,支持自动领域分类和调度

    Also in 3 projects that use this

  • NVIDIASkill

    deep-research

    Queue deep, multi-step research and analysis tasks to the DeepAgents worker. Supports execution depth presets, request-specific rubrics, SubAgent delegation, and RubricMiddleware cross-validation.

    Also in 5 projects that use this

  • Microsoft AzureSkill

    humanizer

    Tone enforcement patterns for external-facing community responses

    Also in 3 projects that use this

  • VercelSkill

    find-skills

    Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 0 are common, 11 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 21 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    The non-negotiable rule: Never change a claim's status without creating at least one evidence entry first.

    line 14
  2. Very specific:

    Use the investigation_claims MCP tool to list claims filtered by status.

    line 24
  3. Distinctive:

    If the user does not specify, begin with the highest-priority claim.

    line 55
  4. Very specific:

    Use the investigation_evidence_chain MCP tool to see what evidence already exists for this claim.

    line 77
  5. Distinctive:

    If evidence entries already exist, read each one.

    line 83
  6. Distinctive:

    Search broadly, then narrow.

    line 87
  7. Very specific:

    Read the full entry: pyrite get <entry-id> -k <kb>

    line 127
  8. Very specific:

    Check what source document backs it: follow source_document refs

    line 128
  9. Distinctive:

    Check if the source is independent (not derived from the same origin as another source)

    line 138
  10. Very specific:

    After creating evidence entries, link them to the claim by updating the claim's evidence_refs:

    line 186
  11. Distinctive:

    Add a verification note to the claim body explaining why this status was assigned.

    line 222
  12. Distinctive:

    After verifying a claim, check whether it contradicts other claims in the KB.

    line 232
  13. Distinctive:

    Read both claims fully

    line 245
  14. Distinctive:

    If contradicted, update both claims:

    line 247
  15. Distinctive:

    Consider whether the contradiction changes either claim's status

    line 255
  16. Distinctive:

    After completing all phases, produce a verification report.

    line 261

“Common” is measured: kept by at least 6 in 10 of the 21 edited versions of this file we could read. “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

Fact-Checker Skill

Claim verification methodology for journalism-investigation Pyrite knowledge bases. Produces a verification report with traceable evidence chains and confidence assessments.

Announce at start: "I'm using the fact-checker skill."

Methodology: Identify → Gather → Document → Evaluate → Cross-Check

The non-negotiable rule: Never change a claim's status without creating at least one evidence entry first. The evidence chain must be traceable: claim → evidence → source. No shortcuts.


Phase 1: Identify Claims to Verify

Find unverified claims and select which to process.

Using MCP tools (preferred when available):

Use the investigation_claims MCP tool to list claims filtered by status.

Using CLI:

# List all unverified claims
pyrite investigation claims --status unverified -k <kb>

# See all claims to understand the landscape
pyrite investigation claims -k <kb>

Prioritization rules:

  1. High-importance claims first (claims tagged priority:high or linked to active investigation threads)
  2. Among equal importance, oldest unverified claims first
  3. Claims with partial evidence already collected come before cold claims

Present to user:

UNVERIFIED CLAIMS FOUND: <count>

Recommended next:
1. [[claim-id-1]] — "<assertion>" (importance: high, age: 14 days)
2. [[claim-id-2]] — "<assertion>" (importance: medium, age: 30 days)
3. [[claim-id-3]] — "<assertion>" (importance: medium, age: 7 days)

Select a claim to verify, or I'll start with #1.

If the user does not specify, begin with the highest-priority claim.


Phase 2: Gather Evidence

Collect everything relevant to the claim under review.

2a: Read the claim

pyrite get <claim-id> -k <kb>

Extract from the claim entry:

  • The assertion text (the specific factual statement)
  • Named entities (people, organizations, places, dates)
  • Any existing evidence_refs already linked
  • The source that originated this claim

2b: Check existing evidence chain

Use the investigation_evidence_chain MCP tool to see what evidence already exists for this claim.

pyrite investigation evidence-chain <claim-id> -k <kb>

If evidence entries already exist, read each one. Do not duplicate work.

2c: Search for corroborating evidence

Search broadly, then narrow. Use multiple strategies:

# Search the assertion text directly
pyrite search "<claim assertion>" -k <kb>

# Search for key entities mentioned in the claim
pyrite search "<person name>" -k <kb>
pyrite search "<organization>" -k <kb>

# Semantic search for conceptually related content
pyrite search "<claim assertion>" -k <kb> --mode semantic

# Cross-KB correlation search
pyrite investigation search --correlate -k <kb>

# Find source documents that might corroborate
pyrite investigation sources -k <kb>

# Look up entities mentioned in the claim
pyrite investigation entities -k <kb>

# Search across all investigation KBs
pyrite investigation search-all "<key phrase>"

2d: Search for contradicting evidence

This is equally important. Actively look for information that challenges the claim:

# Search for the opposite or alternative
pyrite search "<negation or alternative>" -k <kb>
pyrite search "<entity> NOT <claimed relationship>" -k <kb> --mode semantic

2e: Follow the source chain

For each piece of evidence found:

  1. Read the full entry: pyrite get <entry-id> -k <kb>
  2. Check what source document backs it: follow source_document refs
  3. Assess the source tier:
TierTypeExamples
1Primary / direct evidenceCourt filings, official records, corporate filings, government documents
2Established reportingBylined investigative journalism, government reports, academic papers
3Secondary analysisThink tank reports, expert commentary, analytical blog posts
4UnverifiedAnonymous tips, social media posts, unattributed claims
  1. Check if the source is independent (not derived from the same origin as another source)

Gather completeness check:

- [ ] Read the claim entry fully
- [ ] Checked existing evidence chain
- [ ] Searched claim assertion text (keyword + semantic)
- [ ] Searched each named entity in the claim
- [ ] Used cross-KB correlation search
- [ ] Looked for contradicting evidence
- [ ] Assessed source tier for each piece of evidence
- [ ] Verified source independence (no circular sourcing)

Phase 3: Create Evidence Entries

For every piece of evidence found -- corroborating or contradicting -- create an evidence entry. This is mandatory. The evidence chain must be documented before any status change.

pyrite create -k <kb> -t evidence --title "<concise description of what this evidence shows>" \
  -b "<detailed description of the evidence, what it says, where it comes from>" \
  -f evidence_type=document \
  -f source_document="[[source-id]]" \
  -f reliability=<high|medium|low> \
  --tags "evidence,<claim-topic>"

Evidence types:

evidence_typeWhen to use
documentEvidence from a specific document or record
testimonyStatements from identified individuals
dataStatistical data, financial records, datasets
mediaPhotographs, video, audio recordings
circumstantialIndirect evidence that supports inference

Reliability assessment:

LevelCriteria
highTier 1-2 source, verifiable, no known issues with provenance
mediumTier 2-3 source, or Tier 1 source with minor provenance questions
lowTier 3-4 source, unverifiable, or source with known reliability issues

After creating evidence entries, link them to the claim by updating the claim's evidence_refs:

pyrite update <claim-id> -k <kb> -f evidence_refs="[[evidence-id-1]],[[evidence-id-2]]"

Phase 4: Evaluate and Update Claim

Apply verification rules based on the evidence collected. These rules are not suggestions -- follow them consistently.

Verification decision matrix

ConditionNew StatusConfidence
2+ independent sources from different tiers, no contradictionscorroboratedhigh
2+ independent sources from the same tier (Tier 1 or 2)corroboratedhigh
2+ independent sources spanning Tier 1 and Tier 2corroboratedhigh
2+ independent sources from Tier 2-3, no contradictionspartially_verifiedmedium
1 source from Tier 1-2, no contradictionspartially_verifiedmedium
1 source from Tier 3 onlypartially_verifiedlow
Contradicting evidence found from credible sourcesdisputedlow
Only Tier 4 sources, no corroborationremains unverifiedlow
Evidence actively disproves the claimrefutedhigh

Update the claim

pyrite update <claim-id> -k <kb> \
  -f claim_status=<new-status> \
  -f confidence=<high|medium|low>

Record the reasoning

Add a verification note to the claim body explaining why this status was assigned. Include:

  • How many independent sources were found
  • What tiers those sources represent
  • Whether any contradictions exist
  • What gaps remain

Phase 5: Cross-Claim Contradiction Detection

After verifying a claim, check whether it contradicts other claims in the KB. This step catches inconsistencies that single-claim verification misses.

# Search for other claims about the same entities
pyrite investigation claims -k <kb>
pyrite search "<entity from verified claim>" -k <kb> --mode semantic

# Check for claims about the same event or relationship
pyrite search "<event or relationship>" -k <kb>

For each potential contradiction found:

  1. Read both claims fully
  2. Determine if they genuinely contradict (not just different aspects of the same truth)
  3. If contradicted, update both claims:
# Add disputed_by reference to each claim
pyrite update <claim-id-1> -k <kb> -f disputed_by="[[claim-id-2]]"
pyrite update <claim-id-2> -k <kb> -f disputed_by="[[claim-id-1]]"
  1. Consider whether the contradiction changes either claim's status

Verification Report

After completing all phases, produce a verification report. This is the primary output.

## Claim: <title>
ID: [[claim-id]]
Assertion: <assertion text>
Previous status: <old-status> → New status: <new-status>

### Evidence found:
1. [[evidence-id-1]] — <description> (source: [[source-id]], tier: 1, reliability: high)
2. [[evidence-id-2]] — <description> (source: [[source-id]], tier: 2, reliability: medium)

### Confidence: <high|medium|low>
Reason: <why this confidence level — cite number of sources, tiers, independence>

### Contradictions: <none found | list of contradicting claims>

### Gaps:
- <what evidence would strengthen or weaken this claim>
- <what sources were searched but yielded nothing>

Key MCP Tools Reference

These are the JI plugin MCP tools available for claim verification:

ToolPurposePhase
investigation_claimsList and filter claims by status, KBPhase 1
investigation_evidence_chainTrace claim → evidence → source linksPhase 2
investigation_sourcesFind source documents in the KBPhase 2
investigation_entitiesLook up entities mentioned in claimsPhase 2
investigation_search_allCross-KB search for corroborationPhase 2
investigation_create_claimCreate new claims discovered during verificationAs needed
investigation_log_sourceLog new source documents foundPhase 3

Anti-Patterns

TrapFix
Changing claim status without evidence entriesAlways create evidence entries first. The chain must be: claim → evidence → source.
Auto-verifying because "it sounds right"Apply the decision matrix. No evidence, no status change.
Ignoring contradicting evidenceContradictions are findings. Document them. Update both claims.
Treating quantity of Tier 4 sources as qualityFive anonymous social media posts do not equal one court filing. Apply the tier system.
Verifying claims about yourself or your own analysisCircular verification. Only external sources count. Your analysis is not evidence.
Skipping the evidence entry creationEvery piece of evidence gets an entry. This is what makes the chain auditable.
Counting derived sources as independentIf Source B cites Source A, you have one source, not two. Trace origins.
Upgrading confidence without new evidenceConfidence reflects evidence quality, not your feeling. New status requires new evidence.
Silently dropping claims you cannot verify"Remains unverified" is a valid and important finding. Report it.

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.