Entity Extractor

Entity Extractor is a skill for Claude Code, Codex from eddiebelaval/squire. It costs 14 tokens per session (2,427 once invoked), scanned A, original, MIT.

A guide for finding and labeling named items in text, such as people, organizations, places, dates, products, medical terms, or financial instruments.

In plain words
What is it for?
Use it to plan named-entity recognition systems, choose between pattern matching and neural models, define custom entity types, and extract relationships.
Why use it?
It helps convert unstructured writing into organized information while accounting for ambiguous wording and domain-specific terms.

Skill for Claude CodeCodex

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

Good fit Use it to plan named-entity recognition systems, choose between pattern matching and…

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

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 Entity Extractor

README.md
[![agentmods](https://agentmods.dev/badge/skills/eddiebelaval/squire/entity-extractor.svg)](https://agentmods.dev/skills/eddiebelaval/squire/entity-extractor)
Your own site
<a href="https://agentmods.dev/skills/eddiebelaval/squire/entity-extractor"><img src="https://agentmods.dev/badge/skills/eddiebelaval/squire/entity-extractor.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,427 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 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.00014 $0.02427
Opus 5 $0.00007 $0.01213
Sonnet 5 $0.00003 $0.00485
Haiku 4.5 $0.00001 $0.00243

Measured 3d ago against content hash 0584381e63cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

Entity Extractor 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 3d 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/entity-extractor/SKILL.md · 341 lines

How it starts

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

Entity Extractor

The Entity Extractor skill guides you through implementing named entity recognition (NER) systems that identify and classify entities in text. From people and organizations to domain-specific entities like products, medical terms, or financial instruments, this skill covers extraction approaches from simple pattern matching to advanced neural models.

Entity extraction is a foundational NLP task that powers applications from search engines to knowledge graphs. Getting it right requires understanding your domain, choosing appropriate techniques, and handling the inherent ambiguity in natural language.

Whether you need to extract standard entity types, define custom entities for your domain, or build relation extraction on top of entity recognition, this skill ensures your extraction pipeline is accurate and maintainable.

Core Workflows

Workflow 1: Choose Extraction Approach

  1. Define target entities:
    • Standard types: PERSON, ORG, LOCATION, DATE, MONEY
    • Domain-specific: PRODUCT, SYMPTOM, GENE, CONTRACT
    • Relations: connections between entities
  2. Assess available resources:
    • Labeled training data
    • Domain expertise
    • Compute constraints
  3. Select approach:
    Approach Training Data Accuracy Speed Customization
    spaCy (pre-trained) None Good Very fast Limited
    Rule-based None Variable Fast High
    Fine-tuned BERT 100s-1000s Excellent Medium Full
    LLM (zero-shot) None Good Slow Prompt-based
    LLM (few-shot) Few examples Very good Slow Prompt-based
  4. Plan implementation and evaluation

Workflow 2: Implement Entity Extraction Pipeline

  1. Set up extraction:
    import spacy
    
    class EntityExtractor:
        def __init__(self, model="en_core_web_trf"):
            self.nlp = spacy.load(model)
    
        def extract(self, text):
            doc = self.nlp(text)
            entities = []
            for ent in doc.ents:
                entities.append({
                    "text": ent.text,
                    "type": ent.label_,
                    "start": ent.start_char,
                    "end": ent.end_char,
                    "confidence": getattr(ent, "confidence", None)
                })
            return entities
    
        def extract_batch(self, texts):
            docs = list(self.nlp.pipe(texts))
            return [self.extract_from_doc(doc) for doc in docs]
    
  2. Post-process entities:
    • Normalize variations (IBM vs I.B.M.)
    • Resolve abbreviations
    • Link to knowledge base
  3. Validate extraction quality
  4. Handle edge cases

Read the full file on GitHub · 341 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. 3d ago First seen · 341 lines · 14 tokens per session scan A 0584381e63cf

Subscribe to this mod's changes

Entity Extractor is a skill published in the GitHub repository eddiebelaval/squire (21 stars, last pushed 21d ago), licensed MIT. It adds 14 tokens to every session and 2,427 once invoked, about $0.0001 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.