
Legalize Es Spanish Legislation
Clone and search the legalize-es Git corpus so your agent can quote Spanish BOE law, diff reforms, and inspect historical versions without a separate legal database subscription.
Overview
Legalize ES Spanish legislation is an agent skill most often used in Idea research (also Validate scope and Operate compliance checks) that queries and diffs Spanish BOE law from the legalize-es Git Markdown corpus.
Install
npx skills add https://github.com/aradotso/trending-skills --skill legalize-es-spanish-legislationWhat is this skill?
- 8,600+ Spanish laws as BOE-named Markdown files under spain/ with Git commit history per reform (back to 1960)
- Full-text search with grep across the entire corpus
- git diff between any two versions of a single law file
- git log timeline of reforms and git show/checkout for law text at a historical point in time
- Shallow clone (--depth 1) option when you only need current consolidated text
- 8,600+ Spanish laws as Markdown files
- Reform history in Git back to 1960
- Files named by BOE identifier (e.g. BOE-A-1978-31229.md)
Adoption & trust: 734 installs on skills.sh; 31 GitHub stars; 3/3 security scanners passed (skills.sh audits).
What problem does it solve?
You need the exact wording of Spanish statutes and how they changed over time, but BOE browsing and PDFs do not fit an agent workflow or reproducible diffs.
Who is it for?
Indie builders and agents doing Spain-market research, compliance copy checks, or feature scoping that must reference real BOE text with traceable change history.
Skip if: Teams that need certified legal opinions, non-Spanish jurisdictions, or a hosted API instead of cloning and maintaining a Git working tree.
When should I use this skill?
search Spanish law, find Spanish legislation, query BOE law, look up Spanish legal code, check Spanish regulation, find article in Spanish law, compare versions of Spanish law, or track changes to Spanish legislation
What do I get? / Deliverables
You get searchable local law files with Git-backed version history so the agent can cite articles, compare reforms, and reconstruct text at a past commit.
- Cited excerpts from BOE-named Markdown law files
- Git diffs and reform timelines for a specified statute
Recommended Skills
Journey fit
Spans multiple journey phases - primary shelf plus alternate fits below.
Canonical shelf is Idea → research because builders and operators reach for statute text while scoping markets, compliance, and product copy—not only after launch. Research fits full-text grep across 8,600+ Markdown statutes, article lookup, and comparing legislative versions before you commit to positioning or features.
Where it fits
Grep the corpus for sector keywords before choosing a Spain-first niche.
Pull the current Markdown for a BOE code to see which articles constrain your MVP.
git diff a law file after a reform commit to update in-app legal disclaimers.
How it compares
A Git-native statute corpus you grep and diff locally—not a commercial legal research SaaS or a one-off web scrape.
Common Questions / FAQ
Who is legalize-es-spanish-legislation for?
Solo builders and coding agents who ship or operate in Spain and want BOE law as Markdown plus Git history for search, citation, and version comparison.
When should I use legalize-es-spanish-legislation?
During Idea research when mapping regulations for a market, during Validate when scoping compliance for an MVP, and during Operate when checking whether copy or features still match current consolidated law—whenever triggers mention Spanish legislation, BOE articles, or reform di
Is legalize-es-spanish-legislation safe to install?
It instructs cloning a public GitHub repo and running local git/grep commands; review the Security Audits panel on this Prism page before cloning into sensitive environments.
SKILL.md
READMESKILL.md - Legalize Es Spanish Legislation
# Legalize ES — Spanish Legislation Git Repository > Skill by [ara.so](https://ara.so) — Daily 2026 Skills collection. ## What It Is `legalize-es` is a Git repository containing 8,600+ Spanish laws as Markdown files, with every legislative reform recorded as a Git commit. Each law is a single `.md` file named by its BOE identifier (e.g. `BOE-A-1978-31229.md` for the Spanish Constitution). Reform history goes back to 1960. **Key capabilities:** - Full text search across all laws with `grep` - Exact diff between any two versions of a law using `git diff` - Timeline of all reforms to a specific law using `git log` - Historical state of any law at any point in time using `git show`/`git checkout` --- ## Setup ```bash # Clone the full repo (includes all history) git clone https://github.com/legalize-dev/legalize-es.git cd legalize-es # Shallow clone if you only need current state (much faster) git clone --depth 1 https://github.com/legalize-dev/legalize-es.git cd legalize-es ``` All law files live in the `spain/` directory. --- ## File Structure ``` spain/ ├── BOE-A-1978-31229.md # Constitución Española ├── BOE-A-1995-25444.md # Código Penal ├── BOE-A-2015-11430.md # Estatuto de los Trabajadores ├── BOE-A-2000-323.md # Ley de Enjuiciamiento Civil └── ... (8,600+ laws) ``` ### YAML Frontmatter Every file starts with structured metadata: ```yaml --- titulo: "Constitución Española" identificador: "BOE-A-1978-31229" pais: "es" rango: "constitucion" fecha_publicacion: "1978-12-29" ultima_actualizacion: "2024-02-17" estado: "vigente" fuente: "https://www.boe.es/eli/es/c/1978/12/27/(1)" --- ``` **`rango` values:** - `constitucion` - `ley-organica` - `ley` - `real-decreto-ley` - `real-decreto-legislativo` **`estado` values:** - `vigente` — currently in force - `derogado` — repealed --- ## Key Commands ### Find a Law by Topic ```bash # Search law titles in frontmatter grep -rl "trabajo" spain/ | head -20 # Search for a keyword across all law bodies grep -rl "huelga" spain/ # Case-insensitive search for a concept grep -rli "protección de datos" spain/ ``` ### Read a Specific Article ```bash # Find Article 18 of the Constitution grep -A 20 "Artículo 18" spain/BOE-A-1978-31229.md # Find an article with context (10 lines before, 30 after) grep -B 10 -A 30 "Artículo 135" spain/BOE-A-1978-31229.md ``` ### Find a Law by Its BOE Identifier ```bash # If you know the BOE ID cat spain/BOE-A-1995-25444.md # Search by partial identifier ls spain/ | grep "BOE-A-1995" ``` ### Filter by Law Type ```bash # List all Organic Laws grep -rl 'rango: "ley-organica"' spain/ # List all currently active laws grep -rl 'estado: "vigente"' spain/ # List all repealed laws grep -rl 'estado: "derogado"' spain/ ``` --- ## Git History Commands ### See All Reforms to a Law ```bash # Full reform history of the Spanish Constitution git log --oneline -- spain/BOE-A-1978-31229.md # With dates git log --format="%h %ad %s" --date=short -- spain/BOE-A-1978-31229.md # With full commit messages (includes reform source URL) git log -- spain/BOE-A-1978-31229.md ``` ### Diff Between Two Versions ```bash # Diff of a specific reform commit git show 6660bcf -- spain/BOE-A-1978-31229.md # Diff between two commits git diff 6660bcf^..6660bcf -- spain/BOE-A-1978-31229.md # Diff between two dates git diff $(git rev-list -1 --before="2011-01-01" HEAD) \ $(git rev-list -1 --before="2012-01-01" HEAD) \ -- spain/BOE-A-1978-31229.md ``` ### Read Historical Version of a Law ```bash #