parliament-scrape SKILL.md skillA

parliament-scrape from atanasster/electionsbg is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add atanasster/electionsbg/parliament-scrape@git:20260812.23c1bf1

Pins git:20260812.23c1bf1 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
atanasster/electionsbg
Path
.claude/skills/parliament-scrape/SKILL.md
Versions recorded
5
Latest version
git:20260812.23c1bf1, committed Aug 12, 2026
First version recorded
Jun 22, 2026
Size
17,357 bytes
Repository stars
15
License
a license file GitHub does not identify

Scrape MP photos, biographies, and seat data from parliament.bg. Use when the user asks to update parliament data, refresh MP profiles, add a newly seated parliament (e.g. 52nd NS after the April 2026 election), regenerate seat allocations, or fix missing photos/bios on candidate pages. Also use to re-run the scraper after a fresh git clone if `public/parliament/index.json` is missing.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Parliament.bg scraper skill

Pulls MP data (photos, bios, region, party, term history) from `parliament.bg`'s public `/api/v1` endpoints and stores it under `public/parliament/`. The frontend integrates this with the existing CIK candidate data via case-insensitive name matching.

## When to use which command

The scraper at `scripts/parliament/scrape_mps.ts` has four operational modes. Pick based on intent:

| Intent | Command | Time | Network calls |
|---|---|---|---|
| **First-time scrape** (e.g. after fresh clone, no `index.json`) | `npx tsx scripts/parliament/scrape_mps.ts --all` | ~10 min | ~5200 |
| **New parliament was seated** (e.g. 52nd NS sworn in after April 2026 election) | `npx tsx scripts/parliament/scrape_mps.ts --all --refresh-current` | ~2 min | ~240 + new IDs |
| **Just want current 240 MPs as a per-election bundle** | `npx tsx scripts/parliament/scrape_mps.ts --profiles --photos` | ~3 min | ~240 + 240 photos |
| **Re-emit `index.json` after adding an emitted FIELD** (no new data — the profiles are already on disk) | `npx tsx scripts/parliament/scrape_mps.ts --reindex` | ~2 s | **none** |
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add atanasster/electionsbg/parliament-scrape@sha256:f316b0f452920295

The line at the top of this page pins the label git:20260812.23c1bf1, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_aggug5bf6b2x3c6r.svg)](https://markdownregistry.com/a/art_aggug5bf6b2x3c6r)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 5 versions of this file, between Jun 22, 2026 and Aug 12, 2026, about one every 13 days.

versioncommittedcommitsizeaudit
git:20260812.23c1bf1 latest2026-08-12 23c1bf1 17,357 BA view · diff
git:20260728.4d2f8db2026-07-28 4d2f8db 15,217 BA view · diff
git:20260727.3336fc72026-07-27 3336fc7 14,700 BA view · diff
git:20260622.37492462026-06-22 3749246 13,508 BA view · diff
git:20260622.7e77d592026-06-22 7e77d59 12,541 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (17357 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

atanasster/electionsbg · 15 stars · license a license file GitHub does not identify · pushed 2026-10-17 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_aggug5bf6b2x3c6r
GET https://markdownregistry.com/api/v1/resolve?ref=atanasster/electionsbg/parliament-scrape
GET https://markdownregistry.com/api/v1/blob/f316b0f452920295ae91ad9986e83945c6688c56f064ebedb603f282fb9295a1

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from atanasster/electionsbg

analyze-news-article SKILL.md skill
atanasster/electionsbg · .claude/skills/analyze-news-article/SKILL.md · Analyze one, several, or a queued batch of saved news articles — political leaning, stance toward Russia, AI-generation…
git:20260921.2be66bf · audit A · 15 stars
audit-dossier SKILL.md skill
atanasster/electionsbg · .claude/skills/audit-dossier/SKILL.md · Audit a curated procurement project dossier (/procurement/project/:slug) against the raw contracts/tenders corpus…
git:20260722.d323df2 · audit A · 15 stars
audit-sectors SKILL.md skill
atanasster/electionsbg · .claude/skills/audit-sectors/SKILL.md · Audit a government-sector dashboard (the /governance/sectors hub tile + its /sector/:id or bespoke screen) against the…
git:20260814.2fe0e97 · audit A · 15 stars
dashboard-hub SKILL.md skill
atanasster/electionsbg · .claude/skills/dashboard-hub/SKILL.md · Build or rework a module front page (a "hub") — the tile-grid landing that fronts a topic's sub-pages, like…
git:20261017.cf6ec25 · audit A · 15 stars
enrich-open-calls SKILL.md skill
atanasster/electionsbg · .claude/skills/enrich-open-calls/SKILL.md · Read an ИСУН procedure's own document and extract its budget, aid rate, grant range and eligibility into open_calls —…
git:20260809.78e0090 · audit A · 15 stars
fetch-news-articles-all SKILL.md skill
atanasster/electionsbg · .claude/skills/fetch-news-articles-all/SKILL.md · Fetch the latest N articles (default 5) from EVERY site in news/data/bg_news_sites.csv — a full-registry sweep, not one…
git:20260826.9e5fb27 · audit A · 15 stars
fetch-news-articles SKILL.md skill
atanasster/electionsbg · .claude/skills/fetch-news-articles/SKILL.md · Fetch the latest N articles (default 5) from ONE named news website — title, URL, and publish date where available…
git:20260826.9e5fb27 · audit A · 15 stars
naiasno-post SKILL.md skill
atanasster/electionsbg · .claude/skills/naiasno-post/SKILL.md · Draft a Наясно social post — Facebook, LinkedIn and X copy from one grounded finding — and save a reviewable draft…
git:20260927.0c0eb73 · audit A · 15 stars
naiasno-video SKILL.md skill
atanasster/electionsbg · .claude/skills/naiasno-video/SKILL.md · Draft a Наясно explainer video and save a reviewable draft (never auto-publishes). Two formats — EXPLAINER (the…
git:20261017.cf6ec25 · audit A · 15 stars
party-retrospect SKILL.md skill
atanasster/electionsbg · .claude/skills/party-retrospect/SKILL.md · Generate the AI campaign retrospect for one or more parties in one election. Bundles the party's voting, regional…
git:20260505.35af782 · audit A · 15 stars
person-compare-post SKILL.md skill
atanasster/electionsbg · .claude/skills/person-compare-post/SKILL.md · Draft a Наясно social post comparing TWO people's declared assets side by side — a versus card listing bank accounts…
git:20261017.cf6ec25 · audit A · 15 stars
process-watch-report SKILL.md skill
atanasster/electionsbg · .claude/skills/process-watch-report/SKILL.md · Compare state/watch/* (what the daily watcher discovered) against state/ingest/* (what each downstream skill last…
git:20261017.cf6ec25 · audit C · 15 stars

Every file in atanasster/electionsbg

Browse by kind, by grade A, or by owner.