sejm — скилл для Claude Code: данные Сейма Польши
Скилл sejm для Claude Code обращается к официальному API польского Сейма. Агент подключает его для поиска депутатов, голосований, законопроектов и депутатских запросов.
MIT ★ 60 обновлён 2026-11-15
/plugin marketplace add b44x/ai-polish-skills
/plugin install sejm@polskie-skilleЧто делает sejm
Скилл запускает scripts/sejm.py и получает данные из открытого API Сейма Польши в формате JSON. Он ищет депутатов по фамилии, округу или клубу, показывает их комитеты и контакты, результаты голосований и голос конкретного депутата. Также доступны документы Сейма, этапы работы над законопроектами, депутатские запросы и ответы министерств.
Для работы нужны Python 3.8 или новее и доступ к сети для обращения к api.sejm.gov.pl; внешние библиотеки и ключ API не требуются. Скрипт запускается из каталога скилла или корня репозитория командами python3 scripts/sejm.py <command> на Linux и macOS либо py scripts/sejm.py <command> в Windows. Агент должен передавать источник данных, номер каденции и сведения о конкретном голосовании или документе.
Какие задачи решает
- найти депутата по фамилии, округу или клубу
- проверить, как депутат голосовал по конкретному вопросу
- посмотреть этапы работы над законопроектом
- найти документ Сейма или депутатский запрос
Примеры запросов агенту
- Найди депутата Ковальского и покажи, в каких комитетах он состоит.
- Проверь результаты голосования 1 2 и как в нём голосовал Холовня.
- Найди документы Сейма по теме podatku и покажи этапы работы над проектом 1.
Как установить sejm
1Через маркетплейс плагинов
/plugin marketplace add b44x/ai-polish-skills/plugin install sejm@polskie-skilleКоманда ставит плагин sejm целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add b44x/ai-polish-skills --skill sejm -a claude-code3Вручную: положить файлы
~/.claude/skills/sejm/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/sejm/
1Через Skills CLI (Vercel)
npx skills add b44x/ai-polish-skills --skill sejm -a codex2Вручную: положить файлы
.agents/skills/sejm/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add b44x/ai-polish-skills --skill sejm -a cursor2Вручную: положить файлы
.cursor/skills/sejm/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install b44x/ai-polish-skills skills/sejm2Вручную: положить файлы
.github/skills/sejm/SKILL.md1Через Skills CLI (Vercel)
npx skills add b44x/ai-polish-skills --skill sejm -a gemini-cli2Командой платформы
gemini skills install https://github.com/b44x/ai-polish-skills --path skills/sejmВручную: положить файлы
.devin/skills/sejm/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о sejm
Как установить sejm в Claude Code?
Добавь маркетплейс командой /plugin marketplace add b44x/ai-polish-skills, затем установи скилл: /plugin install sejm@polskie-skille.
Что делает sejm?
Скилл получает официальные данные Сейма Польши: сведения о депутатах, комитетах, голосованиях, документах, ходе рассмотрения законопроектов и депутатских запросах.
Что нужно для работы sejm?
Нужны Python 3.8 или новее и сетевой доступ к api.sejm.gov.pl. Ключ API и внешние библиотеки не нужны.
Исходный текст
SKILL.md · MIT
---
name: sejm
display_name: Sejm Rzeczypospolitej Polskiej
version: 1.0.0
description: >-
Official parliamentary data of the Sejm RP (Polish lower house) from the open API
(api.sejm.gov.pl). Database of MPs of the 10th term (X kadencja) (electoral districts,
parliamentary clubs, Sejm committees, contact details), detailed voting results (roll-call
votes, breakdown of votes by club: for/against/abstained/absent, checking how a given MP
voted), the database of druki sejmowe (Sejm prints) and the course of the legislative process
(stages of work on bills and resolutions), as well as interpelacje poselskie (MPs'
interpellations) and ministries' replies. No API keys, 100% official public data. Use
whenever the user asks about: "posłowie na Sejm", "kto jest posłem z okręgu X", "jak
głosowano w Sejmie nad ustawą Y", "jak głosował poseł Kowalski", "na jakim etapie jest
projekt ustawy", "druki sejmowe", "interpelacje poselskie".
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 Rzeczypospolitej Polskiej
source_type: official_api
official: true
homepage: https://sejm.gov.pl
documentation: https://api.sejm.gov.pl/
rate_limit: fair use
last_verified: 2026-09-28
tags:
- sejm
- poslowie
- glosowania
- druki
- proces-legislacyjny
- ustawy
- interpelacje
- prawo
- parlament
compatibility: Python 3.8+ (standard library only); network access to api.sejm.gov.pl.
---
# Sejm Rzeczypospolitej Polskiej
Official skill integrating the open Sejm RP API via `scripts/sejm.py`.
Gives AI agents neutral access to official data on MPs, votings,
druki sejmowe (Sejm prints), the legislative process and interpelacje (interpellations). Returns clean JSON on `stdout`.
## Running the script
Run from the skill directory (or from the repository root path):
| Operating system | Command |
|---|---|
| Linux / macOS | `python3 scripts/sejm.py <command> …` |
| Windows | `py scripts/sejm.py <command> …` (or `python`) |
Zero external libraries (Python 3.8+ standard library).
## Workflow
1. **MPs and committees database:**
- Searching for MPs from a given electoral district or by surname:
`python3 scripts/sejm.py mps --district "Gdańsk"`
`python3 scripts/sejm.py mps --search "Kowalski"`
`python3 scripts/sejm.py mps --club "PiS"`
- Checking an MP's details and the committees they sit on:
`python3 scripts/sejm.py mps --id 133`
2. **Votings and checking a specific MP's vote:**
- Checking voting results and the breakdown of votes by club (for, against, abstained):
`python3 scripts/sejm.py voting 1 2`
- Checking how a specific MP voted in a given voting:
`python3 scripts/sejm.py voting 1 2 --mp "Hołownia"`
- Overview of voting topics at the latest posiedzenie (sitting):
`python3 scripts/sejm.py votings`
`python3 scripts/sejm.py votings --sitting 1 --search "Wicemarszałków"`
3. **Druki sejmowe and the legislative process:**
- Looking up a druk sejmowy (Sejm print) by number:
`python3 scripts/sejm.py prints --number 1`
- Searching prints by topic:
`python3 scripts/sejm.py prints --search "podatku"`
- Checking the stages of work on a bill (whether it was submitted, 1st/2nd/3rd reading, whether it was passed):
`python3 scripts/sejm.py process 1`
4. **Interpelacje poselskie (MPs' interpellations):**
- Searching interpellations by topic or by number:
`python3 scripts/sejm.py interpellations --search "CPK"`
`python3 scripts/sejm.py interpellations --number 1`
## Commands
| Command | Description | Returned data |
|---|---|---|
| `mps [--search S] [--club C] [--district D]` | List and search MPs | `id`, `firstLastName`, `club`, `districtName`, `email`, `profession` |
| `mps --id <id>` | Full MP details and Sejm committees | `birthDate`, `profession`, `committees` (with the role held) |
| `voting <sitting> <number> [--mp MP]` | Voting details and an MP's vote | `results`, `clubSummary` (votes by club), `mpVote` |
| `votings [--sitting S] [--search Q]` | List of votings at a sitting | `votingNumber`, `date`, `title`, `topic`, `yes`, `no`, `abstain` |
| `prints [--number N] [--search Q]` | Search druki sejmowe | `number`, `title`, `documentDate`, `attachments` |
| `process <print_number>` | Stages of a bill's legislative process | `documentType`, `passed`, `closureDate`, chronological `stages` |
| `interpellations [--number N] [--search Q]` | Interpellations and replies | `number`, `title`, `sentDate`, `fromMpIds`, `replies` |
| `terms` | List of Sejm terms (kadencje I–X) | `terms` (dates, number, `current` flag) |
Detailed description of JSON schemas: [references/output.md](references/output.md).
## Neutrality rules
- This tool provides objective parliamentary data, not political opinions.
- Do not make evaluations, moral rankings or political interpretations of MPs' behavior.
- Every response should clearly state:
* Source: **Sejm Rzeczypospolitej Polskiej** (`api.sejm.gov.pl`),
* Term number (kadencja; default **X kadencja**),
* Sitting (posiedzenie) number and voting or print number,
* Date of the event.
## Exit codes
Clean JSON goes to `stdout`; errors go to `stderr` as `{"error": "...", "type": "..."}`.
| Code | Meaning | Action |
|---|---|---|
| `0` | Success | Process the JSON data |
| `2` | Not found | MP, voting, print or process does not exist |
| `64` | Invalid invocation / validation | Check the command parameters |
| `69` | Sejm RP server / network error | Temporary API problem; try again |
© Michell Hoduń (https://github.com/b44x) · MIT · b44x/ai-polish-skills