Skip to content
Skills Library
Law & compliance · Research

prawo

/prawo

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",

Author
b44x ↗
Licence
MIT
Last repository change
08.11.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
1
HTML comments
0
URLs in SKILL.md
4
Deprecation

No signals detected. Repository changed on 08.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/prawo.py

What it does and when to use it

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",

Triggers from the description

co mówi art. 30 Kodeksu pracy
Original author 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",

How it works

  1. Running the script
  2. Critical: how current is the text?
  3. Workflow
  4. Commands
  5. Exit codes
  6. Rules
Original SKILL.md headings · 84 lines, 644 words
SKILL.md preview
---
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.
Files in this package (3)
  • SKILL.md 6 KB
  • references/output.md 4 KB
  • scripts/prawo.py 20 KB

Versions

RepositoryScoreLicence
This page · b44x/ai-polish-skills90MIT
intentic/intentic100MIT

Database snapshot: 13.11.2026 · package version fc5ddb355981 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 3 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100law-pl-fetching-isap-sejm
    Use when retrieving Polish legislation text from the official portal isap.sejm.gov.pl (Internetowy System Aktów Prawnych) — fetching specific historical redactions by date, verifying current validity of a norm, tracking amendments, working with consolidated texts (tekst…
  • 100prawo-pl-eli
    Odpytuje OFICJALNE API ELI Sejmu (api.sejm.gov.pl/eli) — źródło pierwotne prawa polskiego (Dziennik Ustaw, Monitor Polski): wyszukiwanie aktów, TEKST JEDNOLITY, pojedyncze artykuły, metadane, nowelizacje, podstawa prawna, sygnatury Dz.U./M.P. Używaj przy KAŻDYM pytaniu z prawa…
  • 90statute-amendments-trace
    Trace the current state of a UK Act including in-force amendments AND any pending bills that would amend it. Use whenever the user asks "is <Act> current", "what's the latest version of <Act>", "have any bills amended this", "what's pending for <Act>", or "what changes are…
  • 100research-statute-lookup
    Use when a user needs the current text of a specific statute, article, or regulation — not a summary or paraphrase, but the actual verbatim text with citation, effective date, and authoritative source link. MENA-primary: covers Lebanon (Official Gazette), KSA (Bureau of…
  • 100law-pl-citing-polish-law
    Use when formatting citations to Polish legislation, court rulings, Constitutional Tribunal decisions, EU law, or international human rights judgments in legal memos, briefs, or analytical notes — requiring consistent format with article/paragraph/point, act name, redaction date, and source URL
  • 90public-tool-statute-explainer-public
    Use when a user provides a statute or regulation reference (e.g., "UAE FDL 33/2021 Article 42") and needs the verbatim text, a plain-English explanation, typical fact patterns where the article applies, recent amendments or interpretations, and cross-references to related…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.