doc-intel-llm-tier-pl

doc-intel-llm-tier-pl is a skill for Claude Code from matematicsolutions/awesome-matematic-skills-pl. It costs 291 tokens per session (2,108 once invoked), scanned A, original, MIT.

An optional AI layer for extracting legal concepts from Polish contracts, letters, and court decisions. It finds ideas such as penalties, deadlines, courts, parties, and risks, then links each result to supporting source text.

In plain words
What is it for?
Use it to extract structured legal findings, attach explanations and source references, map them into a document format, and pass citations to a separate verification step.
Why use it?
It handles concepts that simple pattern matching cannot reliably find. Grounding each result in the original sentence makes the extraction easier to check, while a local model is the default for client data.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dokumenty plugin — 10 skills shipped together

Good fit Use it to extract structured legal findings, attach explanations and source references, map them into a document format, and pass citations to a separate verification step.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/matematicsolutions/awesome-matematic-skills-pl/doc-intel-llm-tier-pl
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 matematicsolutions/awesome-matematic-skills-pl --skill doc-intel-llm-tier-pl
Clone the repo
git clone --depth 1 https://github.com/matematicsolutions/awesome-matematic-skills-pl

Made for: Claude Code.

Or install dokumenty, the plugin that ships this one along with the rest of its 10 skills.

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 doc-intel-llm-tier-pl

README.md
[![agentmods](https://agentmods.dev/badge/skills/matematicsolutions/awesome-matematic-skills-pl/doc-intel-llm-tier-pl/github.svg)](https://agentmods.dev/skills/matematicsolutions/awesome-matematic-skills-pl/doc-intel-llm-tier-pl)
Your own site
<a href="https://agentmods.dev/skills/matematicsolutions/awesome-matematic-skills-pl/doc-intel-llm-tier-pl"><img src="https://agentmods.dev/badge/skills/matematicsolutions/awesome-matematic-skills-pl/doc-intel-llm-tier-pl/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 doc-intel-llm-tier-pl

Your own site · 80×15
<a href="https://agentmods.dev/skills/matematicsolutions/awesome-matematic-skills-pl/doc-intel-llm-tier-pl"><img src="https://agentmods.dev/badge/skills/matematicsolutions/awesome-matematic-skills-pl/doc-intel-llm-tier-pl.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 291 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,108 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.00291 $0.02108
Opus 5 $0.00146 $0.01054
Sonnet 5 $0.00058 $0.00422
Haiku 4.5 $0.00029 $0.00211

Measured 12d ago against content hash 0c3037597fc0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

doc-intel-llm-tier-pl 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 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/ekstrakcja_llm.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

dokumenty/skills/doc-intel-llm-tier-pl/SKILL.md · 139 lines

How it starts

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

doc-intel-llm-tier-pl - grounded extraction (warstwa LLM)

WRAP MateMatic na contextgem. Wyciaga z polskiego dokumentu prawnego inferowane koncepty zakotwiczone do zrodla + uzasadnienie, i mapuje na nasz kontrakt dokumentowy.

Miejsce w ukladance (nie duplikuj)

Warstwa Skill Technika Co robi
Struktura + PII doc-intel-contract-pl stdlib, zero-LLM block_type, bbox, confidence, redaction_candidates
Koncepty prawne ten skill LLM + grounding inferowane pola (kara, termin, ryzyko) + refs zdaniowe + justification
Weryfikacja cytatu citation-grounding-pl string-match czy cytat/ref istnieje w zrodle (anti-halucynacja)

Przeplyw: stdlib doc-intel (struktura/PII) -> ten skill (koncepty + grounding) -> citation-grounding (weryfikacja refs). Nie ruszamy czystosci stdlib core - to osobna, opcjonalna warstwa.

Granica governance (WBUDOWANA W TOOL)

  • Domyslny backend = LOKALNY (Ollama). Dla danych KLIENTA (tajemnica adwokacka + RODO) - TYLKO taki.
  • Model chmurowy (OpenRouter/OpenAI/DeepSeek...) wymaga jawnej flagi --allow-cloud; tool odmawia (exit 2) bez niej i ostrzega, ze cloud = wylacznie dane SYNTETYCZNE / nie-klienckie (transfer poza EOG). To nie dokumentacja - to zachowanie kodu.
  • Tool przygotowuje ekstrakcje; decyzja co z nia (pismo, redakcja) zostaje u czlowieka.

Zaleznosc (swiadomy wyjatek od stdlib)

pip install contextgem>=0.25.1

Grounded-extraction LLM nie da sie zrobic w samym stdlib - dlatego ten skill (w odroznieniu od wiekszosci skilli MateMatic) ma jedna zaleznosc. Rdzen deterministyczny zostaje w stdlib doc-intel.

Quick start

# LOKALNIE (RODO-safe, domyslnie) - wymaga dzialajacego Ollama z modelem 7-14B:
python scripts/ekstrakcja_llm.py --text umowa.txt --concepts koncepty.json \
    --model ollama_chat/llama3.1:8b --api-base http://localhost:11434

# z .docx (przez DocxConverter contextgem):
python scripts/ekstrakcja_llm.py --docx pismo.docx --concepts koncepty.json --output text

# CHMURA - TYLKO dane syntetyczne / nie-klienckie (transfer poza EOG):
python scripts/ekstrakcja_llm.py --sample --model openrouter/deepseek/deepseek-chat --allow-cloud

Read the full file on GitHub · 139 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 139 lines · 291 tokens per session scan A 0c3037597fc0

Subscribe to this mod's changes

doc-intel-llm-tier-pl is a skill published in the GitHub repository matematicsolutions/awesome-matematic-skills-pl (6 stars, last pushed 19d ago), licensed MIT. It adds 291 tokens to every session and 2,108 once invoked, about $0.0015 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-08-31.

Related

Other skills, from other repositories

e-signature

Use when wiring an e-signature flow with DocuSign or Dropbox Sign — picking the SES/AES/QES legal tier, sending a PDF or template for signature, embedded signing, verifying signing webhooks, retrieving the signed PDF plus audit trail. NOT drafting contract text (that is contracts), NOT extracting fields from PDFs…

ericrisco/rsc-harness · 77 tokens

runtime-admissibility-review

Determines whether a specific AI-agent action, output, recommendation, or proposed commitment remains admissible for execution or institutional reliance under current authority, delegated scope, evidence, facts, policy, risk, escalation, and revocation conditions. Use this Skill before an enterprise or regulated AI…

lawve-ai/awesome-legal-skills · 90 tokens

agent-authority-charter-builder-arkadiy-miteiko

Creates an Agent Authority Charter for enterprise or regulated AI agents before deployment. Use this Skill when a user needs to define what an AI agent is allowed to do, who delegated authority to it, what actions are permitted or prohibited, when human approval is required, what evidence must be preserved, and how…

lawve-ai/awesome-legal-skills · 85 tokens

metago-compliance

A pre-task checklist for checking legal, ethical, and security concerns before acting. It covers privacy, copyright, permissions, sensitive data, system safety, and regional compliance requirements.

metago-ai/metagolifeform · 62 tokens

metago-thought-19-negentropy-engine

A framework for assessing whether a system has a positive or negative effect on social order, information clarity, trust, fairness, and innovation. It uses changes in these areas to discuss social responsibility and ethical risk.

metago-ai/metagolifeform · 58 tokens

metago-security-engineer

Security Engineer - specializes in security audit, penetration testing, vulnerability management, compliance checking, security design review, supply chain security, and incident response.

metago-ai/metagolifeform · 34 tokens