Fetches official Polish legal acts from the Sejm ELI API (ISAP). Reads specific articles of codes/statutes, checks if acts are in force, finds consolidated texts, lists amendments with dates, and searches by title. Use for Polish law queries like 'co mowi art. 30 Kodeksu pracy' or 'tekst jednolity ustawy o VAT'.
Ships in Prawo (ISAP / Dziennik Ustaw). Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Fetches Polish legal acts from the official ELI API of the Chancellery of the Sejm using
scripts/prawo.py. Always outputs structured JSON.
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).
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:
sourceDocument (ref, date, kind),amendmentsAfterSource,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.
Article wording ("co mówi art. 30 KP", "okres wypowiedzenia"):
python3 scripts/prawo.py article kp 30
30, 22a, 67^18 (superscript 67¹⁸ also works).sourceDocument.displayAddress and sourceDocument.date.upToDate is false, add the warning in your own words and the newest PDF link.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.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).
Search by title (acts without a shortcut):
python3 scripts/prawo.py search "o ochronie danych osobowych" --type Ustawa --in-force
act.| 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.
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 |
--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.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/prawo:prawofrom Prawo (ISAP / Dziennik Ustaw)
npx claudepluginhub b44x/ai-polish-skills --plugin prawo2 plugins in one repository ship this exact skill · first indexed Sep 29, 2026
Other plugins' skills for the same job