prawo — скилл для Claude Code: польские законы
Скилл prawo для Claude Code ищет польские законы через официальный API Сейма. Он находит статьи, статус акта и сведения о поправках.
MIT ★ 60 обновлён 2026-11-15
/plugin marketplace add b44x/ai-polish-skills
/plugin install prawo@polskie-skilleЧто делает prawo
Скилл получает тексты польских законов из официального API Сейма и возвращает результат в JSON. Он ищет акты по названию, проверяет, действует ли закон, находит последнюю консолидированную редакцию и перечисляет поправки с датами вступления в силу, включая будущие.
Для запроса статьи скрипт показывает источник и дату редакции, а также сообщает о более поздних поправках. HTML доступен не для всех документов: если текст есть только в PDF, скрипт не сможет извлечь из него статью. Нужны Python 3.8+ и доступ к сети для обращения к api.sejm.gov.pl; внешние библиотеки не требуются.
Скилл возвращает правовые тексты, а не консультации по конкретному делу. При установке через маркетплейс Claude Code выполните /plugin marketplace add b44x/ai-polish-skills и затем /plugin install prawo@polskie-skille.
Какие задачи решает
- найти текст конкретной статьи польского кодекса
- проверить, действует ли закон
- получить последнюю консолидированную редакцию акта
- узнать даты вступления в силу поправок
- найти закон по словам из его названия
Примеры запросов агенту
- Найди текст статьи 30 Кодекса труда Польши и укажи источник и дату редакции.
- Проверь, действует ли польский закон о НДС, и найди его последнюю консолидированную редакцию.
- Найди поправки к Кодексу труда и даты их вступления в силу.
Как установить prawo
1Через маркетплейс плагинов
/plugin marketplace add b44x/ai-polish-skills/plugin install prawo@polskie-skilleКоманда ставит плагин prawo целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add b44x/ai-polish-skills --skill prawo -a claude-code3Вручную: положить файлы
~/.claude/skills/prawo/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/prawo/
1Через Skills CLI (Vercel)
npx skills add b44x/ai-polish-skills --skill prawo -a codex2Вручную: положить файлы
.agents/skills/prawo/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add b44x/ai-polish-skills --skill prawo -a cursor2Вручную: положить файлы
.cursor/skills/prawo/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install b44x/ai-polish-skills skills/prawo2Вручную: положить файлы
.github/skills/prawo/SKILL.md1Через Skills CLI (Vercel)
npx skills add b44x/ai-polish-skills --skill prawo -a gemini-cli2Командой платформы
gemini skills install https://github.com/b44x/ai-polish-skills --path skills/prawoВручную: положить файлы
.devin/skills/prawo/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о prawo
Как установить prawo в Claude Code?
В Claude Code выполните /plugin marketplace add b44x/ai-polish-skills, затем /plugin install prawo@polskie-skille.
Что делает prawo?
Скилл ищет польские правовые акты, показывает текст статьи и сведения об актуальности редакции, статусе закона и поправках. Источник — официальный API Сейма.
Что нужно для работы prawo?
Нужны Python 3.8+ и сетевой доступ к api.sejm.gov.pl. Скрипт использует стандартную библиотеку Python.
Исходный текст
SKILL.md · MIT
---
name: prawo
display_name: Prawo (ISAP / Dziennik Ustaw)
version: 1.0.0
description: >-
Official Polish legal acts from the Sejm ELI API (ISAP: Dziennik Ustaw, Monitor Polski).
Read the wording of a specific article of a code or statute, together with the source
document and date, and a warning about amendments that entered into force later. Check whether an
act is in force, find its latest consolidated text (tekst jednolity), list amendments with
entry-into-force dates (including upcoming ones), and search acts by title. Shortcuts for the main
codes (kp, kc, kk, kpc, ksh, kpa, vat, pit, cit, op…). Use whenever the user asks about Polish law,
e.g. "co mówi art. 30 Kodeksu pracy", "okres wypowiedzenia umowy o pracę", "czy ta ustawa
obowiązuje", "tekst jednolity ustawy o VAT", "kiedy wchodzą zmiany w Kodeksie pracy",
"Dz.U. 2023 poz. 1465", "przepisy o pracy zdalnej".
category: legal
language: pl
country: PL
license: MIT
author: Michell Hoduń (https://github.com/b44x)
repository: https://github.com/b44x/ai-polish-skills
network: true
authentication: none
source: Kancelaria Sejmu RP (ISAP / ELI)
source_type: official_api
official: true
homepage: https://isap.sejm.gov.pl
documentation: https://api.sejm.gov.pl/eli_pl.html
rate_limit: fair use
last_verified: 2026-09-28
tags:
- prawo
- ustawy
- kodeks
- isap
- dziennik-ustaw
- tekst-jednolity
- przepisy
- eli
compatibility: Python 3.8+ (standard library only); network access to api.sejm.gov.pl.
---
# Prawo (ISAP / Dziennik Ustaw)
Fetches Polish legal acts from the official ELI API of the Chancellery of the Sejm using
`scripts/prawo.py`. Always outputs structured JSON.
## Running the script
Run from this skill's directory (or use relative path from repo root):
| OS | Command |
|---|---|
| Linux / macOS | `python3 scripts/prawo.py <command> …` |
| Windows | `py scripts/prawo.py <command> …` (or `python`) |
Zero external dependencies required (standard library only).
## Critical: how current is the text?
The API publishes HTML only for some documents. The newest consolidated texts (teksty jednolite)
are often **PDF-only**, and the HTML of an amended act is its **original** wording from the day it
was published. `article` therefore:
1. reads the newest consolidated text that has HTML (or the act itself if it was never amended),
2. reports that document in `sourceDocument` (`ref`, `date`, `kind`),
3. lists every amendment that entered into force after that date in `amendmentsAfterSource`,
4. sets `upToDate` and `warning`.
When `upToDate` is `false`, **always** tell the user the date of the wording and that later
amendments exist, and give the PDF link of the newest consolidated text. Never present such text as
the certain current wording. For the Constitution the API has no HTML at all: give the PDF link.
## Workflow
1. **Article wording** ("co mówi art. 30 KP", "okres wypowiedzenia"):
`python3 scripts/prawo.py article kp 30`
- Article numbers: `30`, `22a`, `67^18` (superscript `67¹⁸` also works).
- Quote the text, then state `sourceDocument.displayAddress` and `sourceDocument.date`.
- If `upToDate` is false, add the `warning` in your own words and the newest PDF link.
2. **Is the act in force / latest consolidated text / upcoming changes:**
`python3 scripts/prawo.py act kp`
- `latestConsolidatedText` (with PDF link), `amendmentsAfterLatestConsolidatedText`,
`upcomingAmendments` (entry into force in the future), `status`, `inForce`.
3. **Act by reference:** `act` and `article` accept a shortcut (`kp`, `vat`…), `DU/2023/1465`,
`Dz.U. 2023 poz. 1465`, `Dz.U. 1974 nr 24 poz. 141` or an ISAP address `WDU20230001465`.
List shortcuts with `python3 scripts/prawo.py codes` (works offline).
4. **Search by title** (acts without a shortcut):
`python3 scripts/prawo.py search "o ochronie danych osobowych" --type Ustawa --in-force`
- Results include amending acts ("o zmianie ustawy…"); pick the act the user means, then call `act`.
## Commands
| Command | Description | Returns |
|---|---|---|
| `article <ref> <nr> [--original]` | Wording of one article with its source and freshness | `text`, `sourceDocument`, `upToDate`, `amendmentsAfterSource`, `newerConsolidatedTextsPdfOnly`, `warning` |
| `act <ref> [--limit N]` | Status, consolidated texts, amendments and links | `status`, `inForce`, `latestConsolidatedText`, `amendmentsAfterLatestConsolidatedText`, `upcomingAmendments`, `links` |
| `search <query> [--in-force] [--type T] [--year Y] [--publisher DU\|MP] [--limit N]` | Search acts by words in the title | `results[]` with `ref`, `displayAddress`, `title`, `status` |
| `codes` | Offline list of shortcuts for the main codes and statutes | `codes[]` with `code`, `ref`, `name` |
Field reference: [references/output.md](references/output.md).
## Exit codes
JSON goes to stdout; errors go to stderr as `{"error": "...", "type": "..."}`.
| Code | Meaning | What to do |
|---|---|---|
| `0` | Success | Use the JSON output |
| `2` | Not found / not available | Act or article does not exist, or no HTML text exists (error names the PDF link) |
| `64` | Bad usage / validation | Unrecognised act reference or article number |
| `69` | Network / API error | Retry once; check internet connection |
## Rules
- This skill returns legal text, not legal advice. Do not interpret provisions as advice for the
user's specific case; suggest a lawyer (adwokat, radca prawny) for that.
- Always cite the act and the source document, e.g. "art. 36 § 1 Kodeksu pracy (tekst jednolity
Dz.U. 2023 poz. 1465)".
- `--original` returns the historical wording of an amended act. Use it only when the user asks
about the original or historical text, and say so.
© Michell Hoduń (https://github.com/b44x) · MIT · b44x/ai-polish-skills