Skip to content
Skillpedia
Analysis & spreadsheets14k · #11149

extract

What it does

This skill runs a full extraction pipeline on a file or a piece of text, finding named entities, relations, events and simple subject-predicate-object facts. It is for people who want structured facts from written material.

When to use it

  • ✓When you have a document and want its names, relations and events listed in a table.
  • ✓When you want pronouns and aliases resolved before facts are pulled out.
  • ✓When you want the extracted results checked for quality warnings.

Skill link

https://github.com/semantica-agi/semantica/blob/main/plugins/skills/extract/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/semantica-agi/semantica/blob/main/plugins/skills/extract/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Can you extract the people, companies and key events from this contract file and list any quality warnings?”

5 new skills a week. 1 minute to read.

How it works

The agent reads the text, finds entities and relations, works out which names pronouns refer to, builds subject-predicate-object facts and runs a validation check. It returns the results as tables with any warnings shown alongside.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

/semantica:extract

Run the full extraction pipeline. Usage: /semantica: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 semantica.semantic_extract.cache import extraction_cache
extraction_cache.clear()

3. Run the full pipeline:

from semantica.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>

For large files (>50KB), process in chunks and show a progress indicator. Highlight any entities appearing in the context graph already (ContextGraph.has_node(label)) with [in graph] tag.

FAQ

What is coreference resolution?

It means working out which name a word like 'she' or 'the company' refers to, so facts are linked to the right thing.

What kinds of results come back?

Tables of entities, relations, events and triplets, plus any validator warnings.

Can it run on the file I am editing?

Yes. If no file is named, it can use the file open in your editor.

Details

Original description by the author

Run the full Semantica semantic extraction pipeline on a file or selected text — NER, relations, events, coreference resolution, triplets, and validation. Clears result cache before each run. Returns Markdown tables with entity/relation/event/triplet results and inline validator warnings.

repo: semantica-agi/semantica

Popularity

GitHub stars
14k
Ranking position
#11149
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills