Legal Document Router — Site Navigation
Purpose
Route visitors who are searching for a specific type of legal document — template, sample, or AI-generated draft — to the document library page for that document type, pre-filtered by jurisdiction where determinable. The document library is the platform's self-serve template repository and primary document-discovery surface.
Inputs / signals
| Signal type |
Examples |
Filter applied |
| Document name |
"NDA template", "employment agreement", "shareholders agreement" |
doc_type=[slug] |
| Document + jurisdiction |
"UAE NDA", "KSA employment contract", "Lebanon lease agreement" |
doc_type=[slug]&jurisdiction=[jur] |
| Document + party type |
"freelancer contract", "SaaS agreement", "B2B services contract" |
doc_type=[slug]&context=[context] |
| Broad category |
"contract templates", "corporate documents", "family law forms" |
category=[category] |
Direct /documents navigation |
Landing on /documents |
Show all, default sort (most popular / recently updated) |
Logic
1. Parse: document name keyword + optional jurisdiction keyword.
2. Match document name against document registry (exact or fuzzy):
- NDA, confidentiality agreement → nda
- Employment agreement, employment contract → employment-agreement
- Shareholders agreement, SHA, JV agreement → shareholders-agreement
- Lease, tenancy agreement → lease-agreement
- Service agreement, consultancy agreement → service-agreement
- ... (full registry maintained separately)
3. Match jurisdiction from query (UAE, KSA, LB, DIFC, ADGM, etc.)
4. Route to: /documents?type=[slug]&jurisdiction=[jur]
5. If no document match: route to /documents (unfiltered) with search bar focused.
Document library page requirements
Each filtered document library page shows:
- Document type name + plain-language description.
- Sample document preview (first page / key sections).
- Jurisdiction variants (e.g., UAE onshore version vs DIFC version vs KSA version).
- Last updated date and jurisdiction law status note (law changes — always verify).
- CTA options: "View template", "Draft with AI", "Download PDF sample".
- Lawyer review badge (if the template has been reviewed by a jurisdiction-specialist lawyer).
MENA document library priorities
The following document types are high-priority for MENA coverage and should be surfaced prominently:
- NDA / Confidentiality Agreement: UAE onshore, DIFC, KSA, Lebanon, Egypt variants.
- Employment Agreement: UAE Labour Law (Federal Decree-Law No. 33 of 2021), KSA Labour Law, Lebanese Labour Code.
- Shareholders Agreement / JV Agreement: DIFC, ADGM, UAE onshore, KSA.
- Commercial Lease: UAE (RERA-governed), KSA, Lebanon.
- Service Agreement / Consultancy Agreement: UAE, KSA, DIFC.
- Loan Agreement: UAE, KSA, DIFC, ADGM — noting Islamic finance alternatives.
- Trademark License: UAE, KSA (noting GCC trademark system).
- Power of Attorney: UAE (notarized), KSA (notarized Tawthiq), Lebanon.
Jurisdictional caveat (mandatory on all document pages)
Every document page must include:
This template is for general guidance only. Legal requirements vary by jurisdiction and change over time. Have any document reviewed by a qualified lawyer in the relevant jurisdiction before signing or filing.
Related skills
- [[site-clause-router]] — routing for specific clause queries within documents
- [[site-ai-feature-router]] — routing to AI drafting features
- [[site-feature-router]] — general feature-page routing
- [[site-solutions-router]] — persona-based routing to document types relevant to that persona
1---2name: site-legal-document-router3description: Use when a site visitor searches for or navigates to a legal document type in the document library. Routes requests to the document library page filtered by document type and/or jurisdiction, allowing users to browse templates, view sample documents, and access AI-assisted drafting for a specific document category (NDA, employment agreement, SHA, lease, etc.) across MENA and other covered jurisdictions.4license: MIT5metadata:6 id: site.legal-document-router7 category: site8 jurisdictions: [__multi__]9 priority: P310 intent: [site, routing, document-library, templates, navigation]11 related:12 - site-clause-router13 - site-ai-feature-router14 - site-feature-router15 - site-solutions-router16 source: https://skillmd.com/skills/sboghossian-mini-claude-for-legal/site-legal-document-router17 upstream: Louis — HAQQ Legal AI (github.com/sboghossian/mini-claude-for-legal)18 version: "1.0"19---2021# Legal Document Router — Site Navigation2223## Purpose2425Route visitors who are searching for a specific type of legal document — template, sample, or AI-generated draft — to the document library page for that document type, pre-filtered by jurisdiction where determinable. The document library is the platform's self-serve template repository and primary document-discovery surface.2627## Inputs / signals2829| Signal type | Examples | Filter applied |30|-------------|---------|----------------|31| Document name | "NDA template", "employment agreement", "shareholders agreement" | `doc_type=[slug]` |32| Document + jurisdiction | "UAE NDA", "KSA employment contract", "Lebanon lease agreement" | `doc_type=[slug]&jurisdiction=[jur]` |33| Document + party type | "freelancer contract", "SaaS agreement", "B2B services contract" | `doc_type=[slug]&context=[context]` |34| Broad category | "contract templates", "corporate documents", "family law forms" | `category=[category]` |35| Direct `/documents` navigation | Landing on `/documents` | Show all, default sort (most popular / recently updated) |3637## Logic3839```401. Parse: document name keyword + optional jurisdiction keyword.412. Match document name against document registry (exact or fuzzy):42 - NDA, confidentiality agreement → nda43 - Employment agreement, employment contract → employment-agreement44 - Shareholders agreement, SHA, JV agreement → shareholders-agreement45 - Lease, tenancy agreement → lease-agreement46 - Service agreement, consultancy agreement → service-agreement47 - ... (full registry maintained separately)483. Match jurisdiction from query (UAE, KSA, LB, DIFC, ADGM, etc.)494. Route to: /documents?type=[slug]&jurisdiction=[jur]505. If no document match: route to /documents (unfiltered) with search bar focused.51```5253## Document library page requirements5455Each filtered document library page shows:56- Document type name + plain-language description.57- Sample document preview (first page / key sections).58- Jurisdiction variants (e.g., UAE onshore version vs DIFC version vs KSA version).59- Last updated date and jurisdiction law status note (law changes — always verify).60- CTA options: "View template", "Draft with AI", "Download PDF sample".61- Lawyer review badge (if the template has been reviewed by a jurisdiction-specialist lawyer).6263## MENA document library priorities6465The following document types are high-priority for MENA coverage and should be surfaced prominently:66- **NDA / Confidentiality Agreement**: UAE onshore, DIFC, KSA, Lebanon, Egypt variants.67- **Employment Agreement**: UAE Labour Law (Federal Decree-Law No. 33 of 2021), KSA Labour Law, Lebanese Labour Code.68- **Shareholders Agreement / JV Agreement**: DIFC, ADGM, UAE onshore, KSA.69- **Commercial Lease**: UAE (RERA-governed), KSA, Lebanon.70- **Service Agreement / Consultancy Agreement**: UAE, KSA, DIFC.71- **Loan Agreement**: UAE, KSA, DIFC, ADGM — noting Islamic finance alternatives.72- **Trademark License**: UAE, KSA (noting GCC trademark system).73- **Power of Attorney**: UAE (notarized), KSA (notarized Tawthiq), Lebanon.7475## Jurisdictional caveat (mandatory on all document pages)7677Every document page must include:78> *This template is for general guidance only. Legal requirements vary by jurisdiction and change over time. Have any document reviewed by a qualified lawyer in the relevant jurisdiction before signing or filing.*7980## Related skills8182- [[site-clause-router]] — routing for specific clause queries within documents83- [[site-ai-feature-router]] — routing to AI drafting features84- [[site-feature-router]] — general feature-page routing85- [[site-solutions-router]] — persona-based routing to document types relevant to that persona