来源信息
- 仓库
- brycewang-stanford/Auto-Empirical-Research-Skills
- 最近来源活动
- 2026年4月3日 02:07
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 3,291
- 分支
- 432
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
菜单
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills --skill uk-legislation-api命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Route empirical-research requests through the Auto-Empirical Research Skills catalog when this whole repository is installed as one skill in Codex, CodeBuddy, Claude Code, or another IDE. Use to choose and load the right vendored AERS skill for causal inference, econometrics, replication, data acquisition, manuscript writing, peer review and referee responses, citation checking, de-AIGC editing, or full empirical-paper workflows without reading the entire repository at once.
中英双语学术降 AIGC / bilingual academic de-AIGC skill. Removes AI-generated writing signatures from empirical papers in economics, management, and the social sciences — in both English and Chinese. Covers Turnitin AI, GPTZero, Originality.ai on the English side and 知网 AMLC, 万方, 维普 on the Chinese side. Uses a six-step loop (intake → audit → claim-evidence check → differentiated rewrite → five-dimension self-score → cold-reader recheck) with two pattern libraries (22 English + 17 Chinese patterns), section-by-section strategies for empirical papers, and hard protections that keep every number, coefficient, and citation intact.
Use when a research task needs reproducible Kaggle discovery, metadata inspection, bounded public-data downloads, competition or kernel discovery, model discovery, or an explicitly approved Kaggle write/delete operation through the official CLI.
基于 SOC 职业分类
正在显示 SKILL.md
| name | uk-legislation-api |
| description | Access UK laws and statutory instruments via the Legislation.gov.uk API |
| metadata | {"openclaw":{"emoji":"⚖️","category":"domains","subcategory":"law","keywords":["UK law","legislation","statutory instruments","legal research","Parliament","regulatory analysis"],"source":"https://www.legislation.gov.uk"}} |
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"
# NumberOfProvisions="564">
# <dc:title>Equality Act 2010</dc:title>
# <dc:description>An Act to make provision to require Ministers...</dc:description>
# Fetch Data Protection Act 2018
curl "https://www.legislation.gov.uk/ukpga/2018/12/data.xml"
# Response: <dc:title>Data Protection Act 2018</dc:title>
# NumberOfProvisions="1181"
# Fetch a Statutory Instrument
curl "https://www.legislation.gov.uk/uksi/2020/1374/data.xml"
# Response: <dc:title>The Health Protection (Coronavirus, Restric...</dc:title>
# 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" — provisions, extent: ")