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.
npx skills add wentorai/research-plugins --skill legal-nlp-guidegit clone --depth 1 https://github.com/wentorai/research-pluginsWrote 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.
[](https://agentmods.dev/skills/wentorai/research-plugins/legal-nlp-guide)<a href="https://agentmods.dev/skills/wentorai/research-plugins/legal-nlp-guide"><img src="https://agentmods.dev/badge/skills/wentorai/research-plugins/legal-nlp-guide/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.
<a href="https://agentmods.dev/skills/wentorai/research-plugins/legal-nlp-guide"><img src="https://agentmods.dev/badge/skills/wentorai/research-plugins/legal-nlp-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00019 | $0.02035 |
| Opus 5 | $0.00010 | $0.01018 |
| Sonnet 5 | $0.00004 | $0.00407 |
| Haiku 4.5 | $0.00002 | $0.00203 |
Grade A, and why
legal-nlp-guide 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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 237 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Legal NLP Guide
A skill for applying natural language processing techniques to legal texts. Covers legal document classification, named entity recognition for legal entities, contract clause extraction, case law similarity search, and court opinion summarization using modern NLP tools.
Legal Text Characteristics
Legal language presents unique NLP challenges:
- Long documents: Court opinions average 5,000-20,000 tokens; contracts can exceed 50,000
- Domain-specific vocabulary: Terms of art with precise legal meanings (e.g., "consideration", "estoppel")
- Complex syntax: Multi-clause sentences with nested qualifications and cross-references
- Citation networks: Dense cross-referencing between cases, statutes, and regulations
- Temporal reasoning: Effective dates, amendments, and retroactivity
Legal Text Classification
Document Type Classification
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
# Legal-BERT: domain-adapted BERT for legal text
model_name = "nlpaueb/legal-bert-base-uncased"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(
model_name, num_labels=5
)
# Legal document categories
labels = ["contract", "court_opinion", "statute", "regulation", "brief"]
def classify_legal_document(text: str, max_length: int = 512) -> dict:
"""
Classify a legal document into predefined categories.
For long documents, use the first 512 tokens (typically the
preamble/introduction which contains strong classification signals).
"""
inputs = tokenizer(
text, return_tensors="pt",
max_length=max_length, truncation=True, padding=True
)
with torch.no_grad():
logits = model(**inputs).logits
probs = torch.softmax(logits, dim=-1).squeeze()
predicted = labels[probs.argmax().item()]
return {
"predicted_class": predicted,
"confidence": probs.max().item(),
"all_scores": {l: p.item() for l, p in zip(labels, probs)},
}
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.
- 7d ago First seen · 237 lines · 19 tokens per session scan A db636c81c6a7
legal-nlp-guide is a skill published in the GitHub repository wentorai/research-plugins (291 stars, last pushed 2mo ago), licensed MIT. It adds 19 tokens to every session and 2,035 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.
Other skills, from other repositories
prowler-compliance
Creates, syncs, audits and manages Prowler compliance frameworks end-to-end. Covers the two supported JSON schemas (universal multi-provider and legacy per-provider), the SDK model tree (legacy attribute classes, universal ComplianceFramework, ConfigRequirements guardrails), output formatters (legacy per-framework +…
policy
Define and enforce policies, access controls, and compliance rules over Semantica knowledge graphs.
813-regulations-iso-42001
Use when reviewing, designing, or modifying Java enterprise systems that use GenAI, LLMs, AI-assisted coding, RAG, AI agents, generated code, generated dependencies, prompt workflows, external model providers, or AI-enabled business logic and need ISO/IEC 42001 AI management system-aware engineering guidance. Part of…
801-regulations-eu-ai-act
Use when reviewing, designing, or modifying Java enterprise systems that use AI, LLMs, AI agents, RAG, tool calling, workflow automation, or model-based decision support and need EU AI Act regulatory awareness. This should trigger for requests such as Review a Java AI system for EU AI Act controls; Design governance…
open-weights
Use when choosing an open-weight LLM and clearing it for use — which family and size fit the task, the hardware and the budget, and above all whether the license permits shipping. Owns the license-class map (OSI-open versus custom-community versus non-commercial), the always-verify-the-model-card rule, size-to-VRAM…
ai-policy-generator
AI governance policy creation for nonprofits and enterprises with frameworks, risk assessment, ethical guidelines, and compliance templates. Use when drafting AI usage policies, responsible AI frameworks, or organizational AI governance documents.