eurlex

eurlex is a command for Claude Code from matematicsolutions/awesome-matematic-skills-pl. It costs 31 tokens per session (535 once invoked), scanned A, original, MIT.

Skrypt do pobierania unijnych aktów prawnych z EUR-Lex, oficjalnej bazy prawa Unii Europejskiej, w języku polskim. Na podstawie numeru CELEX zapisuje treść aktu w Markdownie i podstawowe dane w JSON-ie.

In plain words
What is it for?
Służy do pobierania rozporządzeń i dyrektyw, takich jak AI Act, RODO, DSA, DMA i NIS2, do uporządkowanego katalogu plików.
Why use it?
Usuwa potrzebę ręcznego wyszukiwania aktu, kopiowania jego treści i porządkowania informacji o źródle, tytule czy dacie wejścia w życie.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the orzecznictwo-zrodla plugin — 8 skills, 3 commands shipped together

Good fit Służy do pobierania rozporządzeń i dyrektyw, takich jak AI Act, RODO, DSA, DMA i NIS2, do uporządkowanego katalogu plików.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/matematicsolutions/awesome-matematic-skills-pl/eurlex
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.

Clone the repo
git clone --depth 1 https://github.com/matematicsolutions/awesome-matematic-skills-pl

Made for: Claude Code.

Or install orzecznictwo-zrodla, the plugin that ships this one along with the rest of its 8 skills, 3 commands.

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 eurlex

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/matematicsolutions/awesome-matematic-skills-pl/eurlex"><img src="https://agentmods.dev/badge/commands/matematicsolutions/awesome-matematic-skills-pl/eurlex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 535 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.00031 $0.00535
Opus 5 $0.00015 $0.00267
Sonnet 5 $0.00006 $0.00107
Haiku 4.5 $0.00003 $0.00053

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

Security

Grade A, and why

eurlex 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 11d 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.

orzecznictwo-zrodla/skills/webwright-legal-pl/commands/eurlex.md · 48 lines

What it actually says

You are the Webwright agent in CLI tool mode. Your task: produce a parameterized Python script fetch_eurlex.py that fetches a EU legal act from EUR-Lex in Polish and saves it as Markdown + JSON.

Task arguments: $ARGUMENTS

Read ../SKILL.md for the full output contract and RODO notes before starting.

CELEX format reminder

Akt CELEX
AI Act (2024/1689) 32024R1689
RODO (2016/679) 32016R0679
DSA (2022/2065) 32022R2065
DMA (2022/1925) 32022R1925
NIS2 (2022/2555) 32022L2555

Script contract

python fetch_eurlex.py \
  --celex "32024R1689" \
  --jezyk "PL" \
  --output-dir outputs/eurlex/

Writes outputs/eurlex/<celex>/:

  • akt.md - pełna treść rozporządzenia/dyrektywy w języku PL
  • meta.json - {celex, tytul, jezyk, data_wejscia, url, pobrano_at, zrodlo}
  • screenshot_wynik.png

Log kończy się FINAL_RESPONSE: <url>.

Playwright notes

  • Firefox, headless, viewport 1280×1800
  • URL bezpośredni: https://eur-lex.europa.eu/legal-content/PL/TXT/?uri=CELEX:<celex>
  • Alternatywnie: strona główna EUR-Lex → wyszukiwarka → wpisz CELEX → wybierz PL
  • Treść: div#document1, div.eli-main-title + div.consLegBody lub główny <article>
  • Sprawdź ARIA snapshot przed wyodrębnianiem treści
  • Retry 3s jeśli 503 lub przekierowanie na stronę CAPTCHA
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. 11d ago First seen · 48 lines · 31 tokens per session scan A 712f9f2493d2

Subscribe to this mod's changes

eurlex is a command published in the GitHub repository matematicsolutions/awesome-matematic-skills-pl (6 stars, last pushed 17d ago), licensed MIT. It adds 31 tokens to every session and 535 once invoked, about $0.0002 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.