spacy

spacy is a skill for Claude Code, Codex from G1Joshi/Agent-Skills. It costs 37 tokens per session (1,283 once invoked), scanned A, original, MIT.

A Python library for understanding and extracting structure from text. It can split text into words, identify names and dates, label word types, and analyze sentence structure.

In plain words
What is it for?
Use it to find people, organizations, and dates; examine how sentences are built; and process large amounts of text in batches.
Why use it?
It helps turn unstructured writing into data that a program can use. It is designed for fast processing and structured analysis rather than generating new text.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to find people, organizations, and dates; examine how sentences are built; and process large amounts of text in batches.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/g1joshi/agent-skills/spacy
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 G1Joshi/Agent-Skills --skill spacy
Clone the repo
git clone --depth 1 https://github.com/G1Joshi/Agent-Skills

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 spacy

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/g1joshi/agent-skills/spacy"><img src="https://agentmods.dev/badge/skills/g1joshi/agent-skills/spacy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,283 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.00037 $0.01283
Opus 5.5 $0.00015 $0.00513
Sonnet 5.5 $0.00007 $0.00257
Haiku 4.5 $0.00004 $0.00128

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

Security

Grade A, and why

spacy 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 2mo 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/ai-ml/spacy/SKILL.md · 142 lines

How it starts

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

spaCy

spaCy is "Industrial Strength" NLP. Unlike NLTK (academic), spaCy focuses on providing the best single algorithm for a task. v3.8 supports Python 3.13.

When to Use

  • Production-Ready Natural Language Processing: Fast, industrial-grade tokenization, lemmatization, and dependency parsing.
  • Named Entity Recognition (NER): Extracting organizations, people, locations, dates, and domain-specific entities.
  • Rule-Based Matching & Pattern Extraction: Combining linguistic rules with regex and token attributes using Matcher and EntityRuler.
  • Large-Scale Text Processing Pipelines: Batch processing millions of documents with nlp.pipe() and GPU acceleration.

Quick Start

import spacy

# Load transformer or core English pipeline
nlp = spacy.load("en_core_web_sm")
doc = nlp("Apple is acquiring a London startup for $1 billion.")

# Extract named entities
for ent in doc.ents:
    print(f"{ent.text:<15} {ent.label_:<10}")
# Output:
# Apple           ORG
# London          GPE
# $1 billion      MONEY

Core Concepts

High-Throughput Batch Processing with nlp.pipe

Processing document streams efficiently using multiprocessing and batching:

import spacy

# Load transformer or optimized small model
nlp = spacy.load("en_core_web_sm")

documents = [
    "Apple Inc. acquired a machine learning startup based in Zurich for $200 million.",
    "Dr. Maria Santos published research on genomic sequencing at Oxford University.",
    "Amazon Web Services launched new European cloud regions in Frankfurt."
]

# Process documents in batches, disabling unused pipeline stages
for doc in nlp.pipe(documents, batch_size=64, disable=["parser"]):
    print(f"--- Document ({len(doc)} tokens) ---")
    for ent in doc.ents:
        print(f"Entity: {ent.text:25s} Label: {ent.label_}")

Rule-Based EntityRuler & Pattern Matching

Combining custom dictionary rules with statistical NER:

nlp = spacy.load("en_core_web_sm")

# Add EntityRuler before the statistical ner component
ruler = nlp.add_pipe("entity_ruler", before="ner")
patterns = [
    {"label": "PRODUCT_SKU", "pattern": [{"TEXT": {"REGEX": r"^SKU-\d{4}-[A-Z]{2}$"}}]},
    {"label": "SECURITY_FLAG", "pattern": [{"LOWER": "unauthorized"}, {"LOWER": "access"}]}
]
ruler.add_patterns(patterns)

doc = nlp("Alert: unauthorized access detected for asset SKU-8492-EU on production server.")
for ent in doc.ents:
    print(f"Match: {ent.text} -> {ent.label_}")

Read the full file on GitHub · 142 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. 2mo ago Changed · +5 lines a8caaa5927d3
  2. 2mo ago Changed · +93 lines · +22 tokens per session e02fa149ab6e
  3. 3mo ago First seen · 44 lines · 15 tokens per session scan A 02bf3013fde1

Subscribe to this mod's changes

spacy is a skill published in the GitHub repository G1Joshi/Agent-Skills (16 stars, last pushed 2mo ago), licensed MIT. It adds 37 tokens to every session and 1,283 once invoked, about $0.0001 per session on Opus 5.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-08-30.

Related

spacy compared with skills from other repositories

spacy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spacyG1Joshi/Agent-SkillsSkill162mo agoMITA37Claude Code, Codex
hallucination-preventionDevelopersGlobal/ai-agent-skillsSkill2218d agoMITA38Claude Code, Codex
rag-and-memoryDevelopersGlobal/ai-agent-skillsSkill2218d agoMITA36Claude Code, Codex
ai-opsborhen68/SkillEngineSkill175mo agoMITA50Claude Code
data-engineeringborhen68/SkillEngineSkill175mo agoMITA59Claude Code
using-agent-skillsaddyosmani/agent-skillsSkill122k9d agoMITA54Claude Code
context-engineeringaddyosmani/agent-skillsSkill122k9d agoMITA43Claude Code