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 matematicsolutions/awesome-matematic-skills-pl --skill doc-intel-contract-plgit clone --depth 1 https://github.com/matematicsolutions/awesome-matematic-skills-plWrote 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/matematicsolutions/awesome-matematic-skills-pl/doc-intel-contract-pl)<a href="https://agentmods.dev/skills/matematicsolutions/awesome-matematic-skills-pl/doc-intel-contract-pl"><img src="https://agentmods.dev/badge/skills/matematicsolutions/awesome-matematic-skills-pl/doc-intel-contract-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.
<a href="https://agentmods.dev/skills/matematicsolutions/awesome-matematic-skills-pl/doc-intel-contract-pl"><img src="https://agentmods.dev/badge/skills/matematicsolutions/awesome-matematic-skills-pl/doc-intel-contract-pl.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00351 | $0.08040 |
| Opus 5.5 | $0.00140 | $0.03216 |
| Sonnet 5.5 | $0.00070 | $0.01608 |
| Haiku 4.5 | $0.00035 | $0.00804 |
Grade A, and why
doc-intel-contract-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 20d 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 — 428 lines — stays where its author put it; the contents beside it link to each section on GitHub.
doc-intel-contract-pl - kontrakt wyjscia Document Intelligence
Po co
Kazdy szczebel naszej drabinki PDF (pdftotext -> anydoc -> markitdown -> opendataloader -> liteparse -> Chandra -> vision) zwraca wynik w innym formacie. Ten skill sprowadza te formaty do JEDNEGO kontraktu, ktory od razu odpowiada na trzy pytania:
- Ktory fragment ma zobaczyc czlowiek? - confidence-gating (Article III / AI Act art. 14).
- Co zredagowac? - typed blocks + flagi PII (signature/stamp/PESEL/NIP/IBAN).
- Gdzie w dokumencie jest ten cytat? - bbox + block_id -> most do
citation-grounding-pl.
Zamkniety jest MODEL Mistral OCR 4, nie idea. Odtwarzamy kontrakt na wlasnym, lokalnym, RODO-safe stacku - skladamy puzzle, nie wynajdujemy kola.
Kontrakt (v1.2.0)
Wersja zyje w stalej contract.CONTRACT_VERSION; ten naglowek i przyklad ponizej
sa zakotwiczone testem tests/test_dokumentacja_zakotwiczona.py (D1).
{
"doc_id": "<sha256 wejscia>",
"contract_version": "1.2.0",
"source": {"path": "...", "engine": "opendataloader|pdftotext|chandra|gaius|vlm-html|pdf-inspector|liteparse", "engine_variant": "default|google_doc_ai|null", "pages": N},
"blocks": [
{"id": "b0001", "page": 1, "bbox": [x0,y0,x1,y1]|null,
"block_type": "title|paragraph|table|list|equation|signature|stamp|figure|header|footer|unknown",
"text": "...", "confidence": 0.0-1.0|null, "flags": ["partial","pii_suspected","pii:pesel","sensitive_block","signature_suspected",...]}
],
"gating": {
"threshold": 0.85,
"review_required": ["b0003"], "auto_approved": ["b0001"],
"ungroundable": ["b0007"],
"verdict": "ok|degraded|failed",
"note": "...",
"counts": {"total": 11, "review_required": 1, "auto_approved": 10, "ungroundable": 0}
},
"redaction_candidates": ["b0004"],
"meta": {"created_at": "ISO-8601"}
}
bboxznormalizowany 0-1 (przenosny miedzy DPI). Silnik bez bbox ->null+ flagapartial.confidence == null(partial) -> zawsze doreview_required(konserwatywnie; nie wiemy = czlowiek patrzy).
What ships with it
55 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.
- .matematic/konstytucja.md 3.2 KB
- .matematic/spec/001-output-contract-mvp/plan.md 3.4 KB
- .matematic/spec/001-output-contract-mvp/spec.md 3.1 KB
- .matematic/spec/001-output-contract-mvp/tasks.md 3.3 KB
- contract/contract.schema.json 4.2 KB
- contract/kategorie_pism.json 2.4 KB
- contract/normalizacja.cases.json 5.8 KB
- LICENSE 1.8 KB
- README.md 4.1 KB
- references/prompt_vlm_ocr_pl.md 3.3 KB
- references/render_skanu_pl.md 1.6 KB
- scripts/adapters/__init__.py 67 B runs code
- scripts/adapters/chandra.py 5.5 KB runs code
- scripts/adapters/gaius.py 1.9 KB runs code
- scripts/adapters/liteparse.py 8.3 KB runs code
- scripts/adapters/opendataloader.py 2.4 KB runs code
- scripts/adapters/pdf_inspector.py 7.2 KB runs code
- scripts/adapters/pdftotext.py 1.4 KB runs code
- scripts/adapters/vlm_html.py 5.1 KB runs code
- scripts/contract.py 6.2 KB runs code
- scripts/degeneracja.py 1.7 KB runs code
- scripts/evidence.py 12 KB runs code
- scripts/grounding_bridge.py 9.4 KB runs code
- scripts/liteparse_extract.py 7.3 KB runs code
- scripts/mask_for_model.py 5.0 KB runs code
- scripts/normalize.py 7.0 KB runs code
- scripts/pdfi_extract.py 4.8 KB runs code
- scripts/pii_flags.py 3.5 KB runs code
- scripts/routing_gate.py 14 KB runs code
- scripts/signature.py 2.4 KB runs code
- scripts/split_packet.py 20 KB runs code
- tests/fixtures/chandra.sample.json 776 B
- tests/fixtures/chandra2.sample.json 612 B
- tests/fixtures/gaius_pl.sample.json 240 B
- tests/fixtures/gaius.sample.json 208 B
- tests/fixtures/opendataloader.sample.json 799 B
- tests/fixtures/pismo_pl_typografia.sample.json 2.4 KB
- tests/fixtures/plain.sample.txt 188 B
- tests/fixtures/vlm_html.sample.html 913 B
- tests/test_adapter_liteparse.py 4.2 KB runs code
- tests/test_adapter_pdf_inspector.py 5.2 KB runs code
- tests/test_adapters_chandra_gaius.py 5.5 KB runs code
- tests/test_contract.py 4.8 KB runs code
- tests/test_dokumentacja_zakotwiczona.py 9.5 KB runs code
- tests/test_encoding_crlf.py 1.8 KB runs code
- tests/test_evidence.py 23 KB runs code
- tests/test_grounding_bridge.py 3.2 KB runs code
- tests/test_mask_for_model.py 4.1 KB runs code
- tests/test_normalizacja_kontrakt.py 4.6 KB runs code
- tests/test_pii.py 4.2 KB runs code
- tests/test_routing_gate_abuse.py 3.7 KB runs code
- tests/test_routing_gate.py 5.6 KB runs code
- tests/test_signature.py 2.6 KB runs code
- tests/test_split_packet.py 5.5 KB runs code
- tests/test_vlm_html_degeneracja.py 4.1 KB runs code
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.
- 20d ago Changed 16dafb1cd4a4
- 21d ago Changed · +26 lines ae842bd6bb7b
- 1mo ago Changed · +1 lines fabc17412d9c
- 1mo ago Changed · +87 lines · +54 tokens per session c175efc28019
- 1mo ago Changed · +105 lines fe11df5fc938
- 1mo ago First seen · 209 lines · 297 tokens per session scan A dbc4d7191319
doc-intel-contract-pl is a skill published in the GitHub repository matematicsolutions/awesome-matematic-skills-pl (8 stars, last pushed 8d ago), licensed MIT. It adds 351 tokens to every session and 8,040 once invoked, about $0.0014 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-31.
Other skills, from other repositories
pdf-report
Generate a branded PDF report: executive summary, campaign or channel review. "export this as a branded PDF".
docx-to-hlz
A Python converter that turns a Korean patent specification in a Word .docx file into an .hlz file for Korea's patent-office editor. The output is a ZIP containing patent XML and drawing images.
album-report
Turn an album or a selection into a PDF report: metadata per photo, frames per video, and Claude's own description of what is in each one. Use when the user says "PDF of the album", "album report", "export to PDF", "make a document with these photos", "catalog the album", "identify what is in each video and put it in…
dossier-builder
Generate complete buyer research reports and dealer proposals as HTML and PDF. Use for vehicle comparisons, market research, shortlists and default report delivery during a car-buying workflow. Triggers include "build dossier", "generate market research PDF", "dealer dossier", "decision document", "make dossier for…
carfax-pdf-review
A review guide for dealer-provided PDFs, including CARFAX vehicle-history reports, service records, and out-the-door price proposals. It extracts accident information, service gaps, and extra financing or dealership charges.
publish
Build a local HTML preview of an openEHR specification component with the published AAGLOBAL publishing image.