소스 정보
- 저장소
- ThomasMoreAI/legal-skills-open
- 최근 소스 활동
- 2026년 6월 1일 17:27
- 감지된 SKILL.md 언어
- 영어
- 스타
- 40
- 포크
- 4
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/ThomasMoreAI/legal-skills-open --skill uk-legislation-api명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Use when retrieving arbitration institutional rules (ICC, LCIA, SCC, SIAC, HKIAC, VIAC, МКАС/МАК при ТПП України, UNCITRAL) — fetching current version, verifying redaction applicable to the date of arbitration agreement, constructing URLs for official rule texts
Use when choosing the Polish legal regime for letters, requests, applications, complaints, petitions, public-information requests, KPA filings, PPSA complaints, RODO access requests, registry extracts, court-file access, tax/ZUS/cudzoziemcy/USC procedures, or professional lawyer letters. Prevents mixing UDIP, KPA, PPSA, RODO, registry, special-procedure, and advocate/radca letter regimes.
Use when preparing applications for recognition and enforcement of foreign arbitral awards in Poland, applications for setting aside arbitral awards under KPC art. 1205–1211, or opposing such applications — mapping Article V of the 1958 New York Convention to art. 1214–1215 of the Polish KPC, identifying grounds for refusal, structuring public policy arguments
SKILL.md 표시 중
SOC 직업 분류 기준
| name | uk-legislation-api |
| title | UK Legislation API (legislation.gov.uk) |
| description | Access UK laws and statutory instruments via the Legislation.gov.uk API |
| author | wentorai |
| author_url | https://github.com/wentorai/research-plugins/tree/main/skills/domains/law/uk-legislation-api |
| license | MIT |
| version | 0.1.0 |
| execution_mode | open |
| jurisdiction | gb |
| practice | general |
| language | en |
The Legislation.gov.uk API, maintained by The National Archives, provides open access to the full text of UK legislation from 1267 to the present day. The database covers over 100,000 items including Acts of Parliament, Statutory Instruments, Scottish and Welsh legislation, and Northern Ireland statutes. All data is available as structured XML with Dublin Core metadata, Atom feeds, and HTML. The API supports point-in-time versions showing how legislation read at any given date, plus amendment tracking.
No authentication or API key is required. The API is fully open. Respect rate limits by adding reasonable delays between bulk requests.
All legislation follows the pattern:
https://www.legislation.gov.uk/{type}/{year}/{number}
| Type Code | Description | Example |
|---|---|---|
ukpga | UK Public General Act | /ukpga/2010/15 (Equality Act 2010) |
uksi | UK Statutory Instrument | /uksi/2020/1374 |
asp | Act of Scottish Parliament | /asp/2020/13 |
asc | Act of Senedd Cymru (Wales) | /asc/2021/4 |
nia | Northern Ireland Act | /nia/2022/2 |
ukla | UK Local Act | /ukla/2008/1 |
ukdsi | UK Draft Statutory Instrument | /ukdsi/2023/123 |
eur | Retained EU Legislation | /eur/2016/679 (GDPR) |
# Fetch the Equality Act 2010 — returns structured XML with Dublin Core metadata
curl "https://www.legislation.gov.uk/ukpga/2010/15/data.xml"
# Response: <Legislation DocumentURI="http://www.legislation.gov.uk/ukpga/2010/15"
curl
curl
# Fetch a single section
curl "https://www.legislation.gov.uk/ukpga/2010/15/section/1/data.xml"
# Fetch table of contents
curl "https://www.legislation.gov.uk/ukpga/2010/15/contents/data.xml"
# Fetch a specific Part
curl "https://www.legislation.gov.uk/ukpga/2010/15/part/1/data.xml"
# Fetch a Schedule
curl "https://www.legislation.gov.uk/ukpga/2010/15/schedule/1/data.xml"
# Search by title — returns HTTP 300 with multiple matches
curl "https://www.legislation.gov.uk/id?title=equality+act"
# Browse by type, title keyword, and year
curl "https://www.legislation.gov.uk/ukpga?title=data+protection&year=2018"
# List recent Acts via Atom feed
curl "https://www.legislation.gov.uk/new/ukpga/data.feed"
# Response: <openSearch:totalResults> with <entry> elements per Act
# Changes affecting a specific Act (Atom feed, paginated)
curl "https://www.legislation.gov.uk/changes/affected/ukpga/2010/15/data.feed"
# Response: <title>Changes to Legislation</title>
# <leg:totalPages>25</leg:totalPages>
# Each <entry> describes one amendment with source and target provisions
# Changes made BY a specific Act
curl "https://www.legislation.gov.uk/changes/affecting/ukpga/2010/15/data.feed"
# Legislation as it stood on a specific date
curl "https://www.legislation.gov.uk/ukpga/2010/15/2015-01-01/data.xml"
# Enacted (original) version
curl "https://www.legislation.gov.uk/ukpga/2010/15/enacted/data.xml"
| Suffix | Format | Content-Type |
|---|---|---|
/data.xml | Legislation XML (CLML) | application/xml |
/data.feed | Atom feed | application/atom+xml |
/data.csv | CSV export | text/csv |
| (none) | HTML rendering | text/html |
The primary XML format uses the Crown Legislation Markup Language (CLML) schema with namespaces for legislation, ukm:Metadata, and Dublin Core (dc:, dct:) elements. Each document includes NumberOfProvisions, RestrictExtent (geographic applicability like E+W+S+N.I.), and RestrictStartDate.
eur) and its UK modificationsimport requests
from xml.etree import ElementTree as ET
BASE = "https://www.legislation.gov.uk"
NS = {"leg": "http://www.legislation.gov.uk/namespaces/legislation",
"ukm": "http://www.legislation.gov.uk/namespaces/metadata",
"dc": "http://purl.org/dc/elements/1.1/",
"atom": "http://www.w3.org/2005/Atom"}
def get_legislation(leg_type: str, year: int, number: int) -> dict:
"""Fetch UK legislation metadata and full XML."""
url = f"{BASE}/{leg_type}/{year}/{number}/data.xml"
resp = requests.get(url)
resp.raise_for_status()
root = ET.fromstring(resp.content)
meta = root.find(".//ukm:Metadata", NS)
return {
"title": meta.findtext("dc:title", namespaces=NS),
"description": meta.findtext("dc:description", namespaces=NS),
"provisions": root.attrib.get("NumberOfProvisions"),
"extent": root.attrib.get("RestrictExtent"),
"uri": root.attrib.get("DocumentURI"),
"xml": resp.content
}
# Example: fetch the Equality Act 2010
act = get_legislation("ukpga", 2010, 15)
print(f"{act['title']} — {act['provisions']} provisions, extent: {act['extent']}")
# Output: Equality Act 2010 — 564 provisions, extent: E+W+S+N.I.