extract

extract is a skill for Claude Code from bibinprathap/VeritasGraph. It costs 59 tokens per session (588 once invoked), scanned A, a copy of extract, MIT.

A text-analysis pipeline that finds people, organizations, events, relationships, and other connected facts in a file or selected text. It also checks the extracted results and reports warnings.

In plain words
What is it for?
Use it to extract entities, relationships, events, references between mentions, and fact triplets from documents.
Why use it?
It turns unstructured text into organized results while showing possible extraction problems.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the veritasreason plugin — 17 skills, 3 agents, 2 hooks shipped together

Good fit Use it to extract entities, relationships, events, references between mentions, and fact triplets from documents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bibinprathap/veritasgraph/extract
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 bibinprathap/VeritasGraph --skill extract
Clone the repo
git clone --depth 1 https://github.com/bibinprathap/VeritasGraph

Made for: Claude Code.

Or install veritasreason, the plugin that ships this one along with the rest of its 17 skills, 3 agents, 2 hooks.

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 extract

README.md
[![agentmods](https://agentmods.dev/badge/skills/bibinprathap/veritasgraph/extract/github.svg)](https://agentmods.dev/skills/bibinprathap/veritasgraph/extract)
Your own site
<a href="https://agentmods.dev/skills/bibinprathap/veritasgraph/extract"><img src="https://agentmods.dev/badge/skills/bibinprathap/veritasgraph/extract/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 extract

Your own site · 80×15
<a href="https://agentmods.dev/skills/bibinprathap/veritasgraph/extract"><img src="https://agentmods.dev/badge/skills/bibinprathap/veritasgraph/extract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 588 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.
Origin 86% copy Near-identical to another mod 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.00059 $0.00588
Opus 5.5 $0.00024 $0.00235
Sonnet 5.5 $0.00012 $0.00118
Haiku 4.5 $0.00006 $0.00059

Measured 1mo ago against content hash d3f4bfa14db2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

extract 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 1mo 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.

Origin

This is a copy

86% identical to extract — 12 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

veritas-reason/plugins/skills/extract/SKILL.md · 94 lines

How it starts

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

/veritasreason:extract

Run the full extraction pipeline. Usage: /veritasreason:extract [file_path | "inline text"]

$ARGUMENTS = file path, inline text in quotes, or blank (uses active editor file).


Steps

1. Resolve the source.

  • If $ARGUMENTS is a readable file path → text = open(path).read()
  • If it's quoted inline text → use directly
  • If blank → use the active editor file

2. Clear the result cache to prevent cross-invocation pollution:

from veritasreason.semantic_extract.cache import _result_cache
_result_cache.clear()

3. Run the full pipeline:

from veritasreason.semantic_extract import (
    NamedEntityRecognizer,
    RelationExtractor,
    EventDetector,
    CoreferenceResolver,
    TripletExtractor,
    ExtractionValidator,
)

# Named Entity Recognition
ner = NamedEntityRecognizer()
entities = ner.extract(text)

# Relation Extraction
rel = RelationExtractor()
relations = rel.extract(text)

# Event Detection
evt = EventDetector()
events = evt.extract(text)

# Coreference Resolution — resolve pronouns/aliases before extraction
coref = CoreferenceResolver()
resolved_text = coref.resolve(text)

# Triplet Extraction (subject–predicate–object)
triplet = TripletExtractor()
triplets = triplet.extract(resolved_text)

# Validate quality
validator = ExtractionValidator()
issues = validator.validate(entities, relations)

4. Report validator warnings above results:

⚠ ExtractionValidator: <warning message>

5. Return results as Markdown tables:

Entities (N total)

Label Type Confidence Span

Relations (M total)

Source Relation Type Target Confidence

Events (K total)

Label Type Participants Confidence

Triplets (J total)

Subject Predicate Object Confidence

6. Summary line:

Extracted: N entities, M relations, K events, J triplets — from <source>

Read the full file on GitHub · 94 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. 1mo ago First seen · 94 lines · 59 tokens per session scan A d3f4bfa14db2

Subscribe to this mod's changes

extract is a skill published in the GitHub repository bibinprathap/VeritasGraph (325 stars, last pushed 5d ago), licensed MIT. It adds 59 tokens to every session and 588 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to extract, differing in 12 lines, and is treated as a copy.