# general-legal/legal-templates architecture

> Architecture diagram of the GitHub repository general-legal/legal-templates, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/general-legal/legal-templates
- Repository: https://github.com/general-legal/legal-templates

## Overview

This repository is a library of attorney-drafted legal templates, not an application with a runtime workflow. The user-facing workflow is to choose a template, customize its marked fields, and use or adapt it; templates are provided as Markdown and original DOCX files. The README documents the template subjects and customization convention. The graph groups the Markdown templates by legal use; individual DOCX-to-Markdown mappings are not inferred.

Main entry points: [`templates/master-services-agreement/template.md`](https://github.com/general-legal/legal-templates/blob/main/templates/master-services-agreement/template.md) (Master services agreement), [`templates/mutual-nda/template.md`](https://github.com/general-legal/legal-templates/blob/main/templates/mutual-nda/template.md) (Mutual NDA), [`templates/one-way-nda/template.md`](https://github.com/general-legal/legal-templates/blob/main/templates/one-way-nda/template.md) (One-way NDA), [`templates/business-associate-agreement/template.md`](https://github.com/general-legal/legal-templates/blob/main/templates/business-associate-agreement/template.md) (Business associate agreement)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_commercial["Commercial agreements"]
  node_msa["Master services agreement<br/>[template.md]"]
  node_mutualnda["Mutual NDA<br/>[template.md]"]
  node_onenda["One-way NDA<br/>[template.md]"]
end

subgraph group_privacy["Privacy documents"]
  node_baa["Business associate agreement<br/>[template.md]"]
  node_dpaus["U.S. data addendum<br/>[template.md]"]
  node_dpaglobal["Global data addendum<br/>[template.md]"]
  node_privgdpr["GDPR privacy policy<br/>[template.md]"]
  node_privus["U.S. privacy policy<br/>[template.md]"]
end

subgraph group_people["People agreements"]
  node_advisor["Advisor agreement<br/>[template.md]"]
  node_offer["Employee offer letter<br/>[template.md]"]
end

subgraph group_web["Website terms"]
  node_cookie["Cookie notice<br/>[template.md]"]
  node_terms["Terms of use<br/>[template.md]"]
end

node_user(("Template user"))
node_docx["Original DOCX collection"]

node_user -->|"chooses or customizes"| node_advisor
node_user -->|"chooses or customizes"| node_baa
node_user -->|"chooses or customizes"| node_cookie
node_user -->|"chooses or customizes"| node_dpaus
node_user -->|"chooses or customizes"| node_dpaglobal
node_user -->|"chooses or customizes"| node_offer
node_user -->|"chooses or customizes"| node_msa
node_user -->|"chooses or customizes"| node_mutualnda
node_user -->|"chooses or customizes"| node_onenda
node_user -->|"chooses or customizes"| node_privgdpr
node_user -->|"chooses or customizes"| node_privus
node_user -->|"chooses or customizes"| node_terms
node_user -->|"uses original format"| node_docx

click node_advisor "https://github.com/general-legal/legal-templates/blob/main/templates/advisor-agreement/template.md"
click node_baa "https://github.com/general-legal/legal-templates/blob/main/templates/business-associate-agreement/template.md"
click node_cookie "https://github.com/general-legal/legal-templates/blob/main/templates/cookie-notice/template.md"
click node_dpaus "https://github.com/general-legal/legal-templates/blob/main/templates/dpa-us/template.md"
click node_dpaglobal "https://github.com/general-legal/legal-templates/blob/main/templates/dpa-global/template.md"
click node_offer "https://github.com/general-legal/legal-templates/blob/main/templates/employee-offer-letter/template.md"
click node_msa "https://github.com/general-legal/legal-templates/blob/main/templates/master-services-agreement/template.md"
click node_mutualnda "https://github.com/general-legal/legal-templates/blob/main/templates/mutual-nda/template.md"
click node_onenda "https://github.com/general-legal/legal-templates/blob/main/templates/one-way-nda/template.md"
click node_privgdpr "https://github.com/general-legal/legal-templates/blob/main/templates/privacy-policy-gdpr/template.md"
click node_privus "https://github.com/general-legal/legal-templates/blob/main/templates/privacy-policy-us/template.md"
click node_terms "https://github.com/general-legal/legal-templates/blob/main/templates/terms-of-use/template.md"
click node_docx "https://github.com/general-legal/legal-templates/tree/main/docx-originals"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_msa,node_mutualnda,node_onenda,node_user toneBlue
class node_baa,node_dpaus,node_dpaglobal,node_privgdpr,node_privus toneAmber
class node_advisor,node_offer toneMint
class node_cookie,node_terms toneRose
class node_docx toneTeal
```

## Components

### Commercial agreements

- [Master services agreement](https://github.com/general-legal/legal-templates/blob/main/templates/master-services-agreement/template.md): `templates/master-services-agreement/template.md`
- [Mutual NDA](https://github.com/general-legal/legal-templates/blob/main/templates/mutual-nda/template.md): `templates/mutual-nda/template.md`
- [One-way NDA](https://github.com/general-legal/legal-templates/blob/main/templates/one-way-nda/template.md): `templates/one-way-nda/template.md`

### Privacy documents

- [Business associate agreement](https://github.com/general-legal/legal-templates/blob/main/templates/business-associate-agreement/template.md): `templates/business-associate-agreement/template.md`
- [U.S. data addendum](https://github.com/general-legal/legal-templates/blob/main/templates/dpa-us/template.md): `templates/dpa-us/template.md`
- [Global data addendum](https://github.com/general-legal/legal-templates/blob/main/templates/dpa-global/template.md): `templates/dpa-global/template.md`
- [GDPR privacy policy](https://github.com/general-legal/legal-templates/blob/main/templates/privacy-policy-gdpr/template.md): `templates/privacy-policy-gdpr/template.md`
- [U.S. privacy policy](https://github.com/general-legal/legal-templates/blob/main/templates/privacy-policy-us/template.md): `templates/privacy-policy-us/template.md`

### People agreements

- [Advisor agreement](https://github.com/general-legal/legal-templates/blob/main/templates/advisor-agreement/template.md): `templates/advisor-agreement/template.md`
- [Employee offer letter](https://github.com/general-legal/legal-templates/blob/main/templates/employee-offer-letter/template.md): `templates/employee-offer-letter/template.md`

### Website terms

- [Cookie notice](https://github.com/general-legal/legal-templates/blob/main/templates/cookie-notice/template.md): `templates/cookie-notice/template.md`
- [Terms of use](https://github.com/general-legal/legal-templates/blob/main/templates/terms-of-use/template.md): `templates/terms-of-use/template.md`

### Other components

- **Template user**
- [Original DOCX collection](https://github.com/general-legal/legal-templates/tree/main/docx-originals): `docx-originals`

## Connections

- Template user → Advisor agreement: chooses or customizes (evidence: `README.md`)
- Template user → Business associate agreement: chooses or customizes (evidence: `README.md`)
- Template user → Cookie notice: chooses or customizes (evidence: `README.md`)
- Template user → U.S. data addendum: chooses or customizes (evidence: `README.md`)
- Template user → Global data addendum: chooses or customizes (evidence: `README.md`)
- Template user → Employee offer letter: chooses or customizes (evidence: `README.md`)
- Template user → Master services agreement: chooses or customizes (evidence: `README.md`)
- Template user → Mutual NDA: chooses or customizes (evidence: `README.md`)
- Template user → One-way NDA: chooses or customizes (evidence: `README.md`)
- Template user → GDPR privacy policy: chooses or customizes (evidence: `README.md`)
- Template user → U.S. privacy policy: chooses or customizes (evidence: `README.md`)
- Template user → Terms of use: chooses or customizes (evidence: `README.md`)
- Template user → Original DOCX collection: uses original format (evidence: `README.md`)
