Legal Encyclopedia (multi-jurisdiction)
Comprehensive multi-jurisdiction legal advisor. Routes any legal question to the right jurisdiction + branch + free source, with Kuwait-first priority, then GCC → Arab → USA/EU/Turkey. Bilingual (Arabic + English). Not binding legal advice.
Jurisdictions
kuwait · gcc · arab · usa · eu · turkey · intl (FIDIC/UNCITRAL)Branches
engineering(FIDIC) · commercial · investment · real-estate · labor · personal-status(family) · criminal · civil · ip · tax · generalFree sources (all verified reachable 2026-06-05)
- Kuwait: moj.gov.kw · lawskw.com · kna.kw (مجلس الأمة) · الجريدة الرسمية → web_fetch/firecrawl + legal-rag
- EU / Turkey-EU: EUR-Lex via
eurlex.py(CELEX, free, no key) ✅ GDPR fetch verified - USA:
courtlistener-researchskill (free case law) ✅ - Turkey national: mevzuat.gov.tr (firecrawl — 403 on plain curl)
- GCC/Arab: national gazettes + portals → web_fetch + legal-rag
- Intl: FIDIC suite + UNCITRAL + ICC arbitration
Usage
bash
. /data/.openclaw/secrets/env.sh
route a question (jurisdiction + branch + sources)
python3 skills/legal-encyclopedia/legal_router.py route "سؤال قانوني"
build grounded prompt (paste into Opus 4.8 for deepest answer)
python3 skills/legal-encyclopedia/legal_router.py prompt "..."
grounded answer now (Gemini 3.1 Pro, strong on LegalBench)
python3 skills/legal-encyclopedia/legal_router.py run "..."EU law direct fetch (CELEX)
python3 skills/legal-encyclopedia/eurlex.py fetch 32016R0679 # GDPR
python3 skills/legal-encyclopedia/eurlex.py url 32014L0024 # build URL
Verified (2026-06-05)
- route: Turkey/real-estate, Kuwait/engineering, Kuwait/personal-status ✅
- run: Kuwait inheritance answer citing قانون الأحوال الشخصية 51/1984 م.293 (فروض/تعصيب) ✅
- eurlex fetch GDPR (CELEX 32016R0679) live ✅
Model routing
- Deepest:
prompt→ Claude Opus 4.8 (golden chain). - Quick grounded:
run(Gemini 3.1 Pro). - Sits on top of: legal-rag · courtlistener-research · contract-review · legal-drafting · claims-engineering.
Hard rules
- Never fabricate article numbers — if unsure, state the principle + advise checking the official gazette.
- Kuwait-first ordering. Not binding legal advice; final call to a licensed lawyer in the relevant jurisdiction.
التحديث 2026-10-04 — Opus 5.5 + liberation unrestricted
run-opus "<سؤال>"→ توليد Opus 5.5 (أقوى للقانوني المعقّد، إصلاح M-118 text block، never-stop→Gemini).run-liberation "<سؤال>" [--tab X]→ القضايا الحسّاسة/الدفاعية unrestricted (Venice/uncensored عبر liberation_router، never-stop→Opus→Gemini). قدرة لا يملكها أي SaaS قانوني مقيّد.- تصنيف gcc محسّن (سعودي/إماراتي/قطري/بحريني/عماني + مشتقاتها الصرفية).
- الأوامر: route · prompt · run (Gemini) · run-opus · run-liberation.
🆕 GLM second-opinion (2026-10-20، نشرة GLM Legal)
run-glm <q> = رأي قانوني ثانٍ عبر GLM-5.3 (z-ai، OpenRouter) يُثري البحث العربي/الدولي · second-opinion <q> = opus-5.5 (أساس) + GLM-5.3 (إثراء) معاً. never-stop→run_opus. GLM Legal (Harvey) = تخصيص مغلق بلا API → نستخدم GLM-5.3 العام. ❌ لا يحلّ محل opus-5.5 الأساس.