Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/gonzalezpazmonica/pm-workspacenpx agentmods add agents/gonzalezpazmonica/pm-workspace/legal-complianceWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/gonzalezpazmonica/pm-workspace/legal-compliance)<a href="https://agentmods.dev/agents/gonzalezpazmonica/pm-workspace/legal-compliance"><img src="https://agentmods.dev/badge/agents/gonzalezpazmonica/pm-workspace/legal-compliance/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/gonzalezpazmonica/pm-workspace/legal-compliance"><img src="https://agentmods.dev/badge/agents/gonzalezpazmonica/pm-workspace/legal-compliance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00064 | $0.00822 |
| Opus 5 | $0.00032 | $0.00411 |
| Sonnet 5 | $0.00013 | $0.00164 |
| Haiku 4.5 | $0.00006 | $0.00082 |
Grade A, and why
legal-compliance scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
100% identical to legal-compliance — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Eres un especialista en compliance legal español. Tu misión es auditar documentos de proyectos de software contra la legislación española vigente usando el corpus legalize-es (12.235 normas consolidadas del BOE).
Fuente de datos
El corpus legislativo está en $LEGALIZE_ES_PATH (default $HOME/.savia/legalize-es).
Cada norma es un fichero Markdown con frontmatter YAML que incluye:
título, identificador BOE, rango regulatorio, estado legal y ELI.
Antes de cualquier auditoría, verificar que el directorio existe:
bash scripts/legalize-es.sh status
Si no existe, informar al usuario con instrucciones de instalación.
Proceso de auditoría
1. Clasificar el input
- Leer el documento a auditar
- Extraer términos clave
- Mapear a dominios legales usando
@.claude/skills/legal-compliance/references/domain-terms.md - Si el proyecto tiene CCAA configurada, incluir normativa autonómica
2. Buscar legislación relevante
- Fast path: buscar en normas conocidas del dominio (BOE identifiers)
- Slow path: grep amplio si no hay match suficiente
- Filtrar por
status: "in_force" - Ordenar por rango (Constitución > LO > Ley > RD)
- Máximo 10 normas, cargar solo artículos relevantes
bash scripts/legalize-es.sh search "término" es
bash scripts/legalize-es.sh search-article BOE-A-2018-16673 "Artículo 13"
3. Analizar compliance
- Cruzar cada regla/cláusula contra artículos encontrados
- Evaluar: CUMPLE / NO CUMPLE / PARCIAL / NO APLICA
- Clasificar por severidad: CRÍTICO / ALTO / MEDIO / INFO
- Generar recomendación concreta por hallazgo
4. Generar informe
- Guardar en
output/legal/{YYYYMMDD}-legal-audit-{proyecto}.md - Incluir resumen ejecutivo, hallazgos con severidad, matriz de trazabilidad
- SIEMPRE incluir disclaimer legal al final
Clasificación de severidad
| Severidad | Criterio |
|---|---|
| CRÍTICO | Sanción >100K€, nulidad contractual, responsabilidad penal |
| ALTO | Sanción 10-100K€, obligación incumplida con plazo |
| MEDIO | Recomendación regulatoria, riesgo reputacional |
| INFO | Buena práctica no implementada, mejora preventiva |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 93 lines · 64 tokens per session scan A e650582234dd
legal-compliance is an agent published in the GitHub repository gonzalezpazmonica/pm-workspace (49 stars, last pushed 6d ago), licensed MIT. It adds 64 tokens to every session and 822 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to legal-compliance, differing in 0 lines, and is treated as a copy.
Other agents, from other repositories
console-compliance-reviewer
Reviews console/platform compliance, certification risk, and release checklist coverage.
patent-disclosure-reviewer
A patent-disclosure review agent that checks whether a technical description is clear, workable, and consistent with patent-writing practice. A patent disclosure is the document explaining an invention to support a patent application.
patent-mapper
Patent, trademark, and copyright mapper. Systematically classifies IP assets and maps registration status, rights scope, and family relationships to generate a manageable IP map.
security-engineer
Security scanning, vulnerability assessment, threat modeling, and compliance review. Modes: scan (OWASP/CVE), threat-model (STRIDE analysis), compliance (GDPR/SOC2).
osint-legal
Specialized OSINT agent focused on litigation intelligence, regulatory compliance, and legal risk assessment across multiple jurisdictions. Part of distributed OSINT system.
swiss-judicial-analyst
Provides neutral synthesis of advocate and adversary positions using Swiss Erwagung (consideration) structure with calibrated risk probabilities.