# lawvable/awesome-legal-skills architecture

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

- Interactive diagram: https://gitdiagram.com/lawvable/awesome-legal-skills
- Repository: https://github.com/lawvable/awesome-legal-skills

## Overview

This repository is a curated catalog of “Agent Skills” rather than a single executable application. The core unit is a skill folder under `skills/`, each of which packages instructions, references, and sometimes scripts/assets for a specific legal or document-processing workflow.

1. **Top-level purpose**
   - The repo publishes reusable AI-agent workflows for legal professionals.
   - It is organized as a browseable marketplace of skills, with the README acting as the primary index and product surface.

2. **Primary content boundary: `skills/`**
   - Each subdirectory in `skills/` is an independently distributable skill.
   - Most skills are documentation-only: a `SKILL.md` plus optional `references/` and `assets/`.
   - Skills are grouped by domain: commercial law, privacy law, compliance, employment law, corporate law, legal methodology, office tooling, and skill authoring.

3. **Skill package structure**
   - `SKILL.md` is the entrypoint for an agent: it defines the workflow, scope, and usage guidance.
   - `references/` holds supporting legal material, templates, checklists, and jurisdiction-specific guidance.
   - `assets/` contains example templates, PDFs, DOCX files, or other source material needed by that skill.
   - Some skills also include `scripts/`, which provide machine-executable document manipulation or validation.

4. **Content flow from knowledge to output**
   - Most skills follow the same flow: user intent → `SKILL.md` workflow → reference documents/templates → generated legal output or review checklist.
   - The repository itself does not store user data or runtime state; it distributes knowledge artifacts and tool logic that an external AI agent consumes at execution time.

5. **Document-processing subsystem**
   - Several skills are backed by Python utilities for Office/PDF handling.
   - `docx-processing-anthropic`, `pptx-processing-anthropic`, `xlsx-processing-anthropic`, and `pdf-processing-anthropic` contain scripts for unpacking, editing, validating, rendering, and recombining Office/PDF files.
   - These scripts are the main “execution layer” in the repo, supporting tasks like tracked changes, redlining, form filling, sheet recalculation, and PDF form extraction.

6. **Shared Office-format tooling**
   - The Office-oriented skills reuse a common internal toolchain: `scripts/office/*` for packing/unpacking OOXML packages, schema validation, and redline simplification.
   - Large schema directories under `scripts/office/schemas/` indicate the repo validates against Office Open XML standards rather than treating documents as opaque blobs.
   - This is a clear architectural boundary: legal-content skills are mostly declarative, while Office-processing skills are structured transformation pipelines.

7. **Platform-specific skill families**
   - Some skills are vendor-specific or platform-specific: `*-anthropic`, `*-openai`, `*-lawvable`, `*-manus`, `*-patrick-munro`, etc.
   - The platform suffix is part of the distribution boundary, not just naming: it indicates which AI ecosystem or authoring standard the skill was built for.
   - The repo therefore acts as a multi-target packaging hub for similar legal capabilities across different agent runtimes.

8. **Tooling and extension subsystem**
   - `vscode-extension-builder-lawvable` is a distinct tooling family for building VS Code extensions, with example assets for commands, tree views, custom editors, and webviews.
   - `outlook-emails-lawvable` includes OAuth-based scripts for Microsoft Outlook email access.
   - These are not legal workflows themselves; they are adjacent productivity/tooling layers that enable legal work inside desktop and enterprise environments.

9. **Marketplace and distribution layer**
   - `.claude-plugin/marketplace.json` suggests the repo is also published as a plugin/marketplace catalog for Claude-compatible tooling.
   - The README serves as the public index, while the marketplace file likely supports machine-readable discovery of available skills.
   - This creates a two-level distribution model: human browsing via README and automated ingestion via plugin metadata.

10. **Reference and legal-source hierarchy**
   - Many skills bundle jurisdictional references, statutory extracts, CNIL/EDPB guidance, templates, and checklists.
   - This repository emphasizes provenance: legal content is separated from generated outputs, and supporting authority is stored alongside the skill.
   - That separation is important for architecture because the “knowledge layer” is explicit and auditable.

11. **Contribution and governance flow**
   - `CONTRIBUTING.md` and the GitHub issue template define the submission pipeline for new skills.
   - The README states that submissions are manually reviewed, with an explicit security and usefulness check before publication.
   - So the repo’s governance boundary is as important as its content boundary: curated inclusion is part of the architecture.

12. **Licensing and ownership boundary**
   - The repo is licensed as a curated list under CC BY-NC-ND 4.0, but each skill has its own license file.
   - That means the repository aggregates independently licensed artifacts rather than flattening ownership into one codebase.
   - For an architecture diagram, this is a useful external boundary: the repo is a hub that links to many self-contained skill packages, not a monolithic application.

Overall, the architecture is a content-and-tool distribution system: a central catalog (`README.md` + marketplace metadata) points to many independently packaged skills, each combining instructions, references, and sometimes executable helpers for document or office workflows.

Main entry points: [`skills`](https://github.com/lawvable/awesome-legal-skills/tree/main/skills) (skills/), [`skills/docx-processing-anthropic/scripts/office`](https://github.com/lawvable/awesome-legal-skills/tree/main/skills/docx-processing-anthropic/scripts/office) (DOCX core), [`skills/pdf-processing-anthropic/scripts`](https://github.com/lawvable/awesome-legal-skills/tree/main/skills/pdf-processing-anthropic/scripts) (PDF tools), [`README.md`](https://github.com/lawvable/awesome-legal-skills/blob/main/README.md) (README)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Catalog & Distribution"]
  node_repo(("Repo<br/>catalog hub"))
  node_readme["README<br/>index<br/>[README.md]"]
  node_marketplace["Marketplace<br/>metadata<br/>[marketplace.json]"]
end

subgraph group_governance["Governance"]
  node_contributing["Contrib guide<br/>governance<br/>[CONTRIBUTING.md]"]
  node_issue_template["Submit skill<br/>review form<br/>[submit-skill.yml]"]
  node_license_root["Root license"]
end

subgraph group_skills["Skill Packages"]
  node_skills_root[("skills/<br/>skill catalog")]
  node_legal_workflows["Legal workflows<br/>skill family"]
  node_privacy_workflows["Privacy skills<br/>skill family"]
  node_office_processing["Office processing<br/>skill family"]
  node_tooling_skills["Tooling skills<br/>skill family"]
  node_authoring_skills["Skill authoring<br/>skill family"]
  node_skill_md["SKILL.md<br/>skill entrypoint"]
  node_references["References<br/>knowledge pack"]
  node_assets["Assets<br/>source bundle"]
end

subgraph group_tooling["Execution Tooling"]
  node_docx_core["DOCX core<br/>office pipeline"]
  node_pptx_core["PPTX core<br/>office pipeline"]
  node_xlsx_core["XLSX core<br/>office pipeline"]
  node_pdf_tools["PDF tools<br/>pdf pipeline"]
  node_extension_builder["VS Code builder<br/>extension toolkit"]
  node_outlook_tooling["Outlook access<br/>enterprise tooling"]
  node_skill_creator["Skill creator<br/>packaging tool"]
end

node_repo -->|"indexed by"| node_readme
node_repo -->|"published as"| node_marketplace
node_repo -->|"contains"| node_skills_root
node_repo -->|"governed by"| node_contributing
node_repo -->|"submitted via"| node_issue_template
node_repo -->|"licensed by"| node_license_root
node_skills_root -->|"includes"| node_legal_workflows
node_skills_root -->|"includes"| node_privacy_workflows
node_skills_root -->|"includes"| node_office_processing
node_skills_root -->|"includes"| node_tooling_skills
node_skills_root -->|"includes"| node_authoring_skills
node_legal_workflows -->|"entrypoint"| node_skill_md
node_privacy_workflows -->|"backed by"| node_references
node_privacy_workflows -->|"uses"| node_assets
node_office_processing -->|"uses"| node_docx_core
node_office_processing -->|"uses"| node_pptx_core
node_office_processing -->|"uses"| node_xlsx_core
node_office_processing -->|"uses"| node_pdf_tools
node_tooling_skills -->|"contains"| node_extension_builder
node_tooling_skills -->|"contains"| node_outlook_tooling
node_authoring_skills -->|"contains"| node_skill_creator
node_docx_core -.->|"supports"| node_skill_md
node_pdf_tools -.->|"supports"| node_references

click node_readme "https://github.com/lawvable/awesome-legal-skills/blob/main/README.md"
click node_marketplace "https://github.com/lawvable/awesome-legal-skills/blob/main/.claude-plugin/marketplace.json"
click node_contributing "https://github.com/lawvable/awesome-legal-skills/blob/main/CONTRIBUTING.md"
click node_issue_template "https://github.com/lawvable/awesome-legal-skills/blob/main/.github/ISSUE_TEMPLATE/submit-skill.yml"
click node_license_root "https://github.com/lawvable/awesome-legal-skills/tree/main/LICENSE"
click node_skills_root "https://github.com/lawvable/awesome-legal-skills/tree/main/skills"
click node_legal_workflows "https://github.com/lawvable/awesome-legal-skills/tree/main/skills"
click node_privacy_workflows "https://github.com/lawvable/awesome-legal-skills/tree/main/skills"
click node_office_processing "https://github.com/lawvable/awesome-legal-skills/tree/main/skills"
click node_tooling_skills "https://github.com/lawvable/awesome-legal-skills/tree/main/skills"
click node_authoring_skills "https://github.com/lawvable/awesome-legal-skills/tree/main/skills"
click node_assets "https://github.com/lawvable/awesome-legal-skills/tree/main/assets"
click node_docx_core "https://github.com/lawvable/awesome-legal-skills/tree/main/skills/docx-processing-anthropic/scripts/office"
click node_pptx_core "https://github.com/lawvable/awesome-legal-skills/tree/main/skills/pptx-processing-anthropic/scripts/office"
click node_xlsx_core "https://github.com/lawvable/awesome-legal-skills/tree/main/skills/xlsx-processing-anthropic/scripts/office"
click node_pdf_tools "https://github.com/lawvable/awesome-legal-skills/tree/main/skills/pdf-processing-anthropic/scripts"
click node_extension_builder "https://github.com/lawvable/awesome-legal-skills/tree/main/skills/vscode-extension-builder-lawvable"
click node_outlook_tooling "https://github.com/lawvable/awesome-legal-skills/tree/main/skills/outlook-emails-lawvable"
click node_skill_creator "https://github.com/lawvable/awesome-legal-skills/tree/main/skills/skill-creator-anthropic"

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_repo,node_readme,node_marketplace toneBlue
class node_contributing,node_issue_template,node_license_root toneAmber
class node_skills_root,node_legal_workflows,node_privacy_workflows,node_office_processing,node_tooling_skills,node_authoring_skills,node_skill_md,node_references,node_assets toneMint
class node_docx_core,node_pptx_core,node_xlsx_core,node_pdf_tools,node_extension_builder,node_outlook_tooling,node_skill_creator toneRose
```

## Components

### Catalog & Distribution

Top-level index and machine-readable marketplace metadata for browsing and discovery.

- **Repo**: catalog hub · Curated marketplace of reusable legal AI-agent skills.
- [README](https://github.com/lawvable/awesome-legal-skills/blob/main/README.md): index · Primary human-facing catalog and discovery surface. · `README.md`
- [Marketplace](https://github.com/lawvable/awesome-legal-skills/blob/main/.claude-plugin/marketplace.json): metadata · Machine-readable plugin catalog for skill discovery. · `.claude-plugin/marketplace.json`

### Governance

Contribution, review, licensing, and publication controls.

- [Contrib guide](https://github.com/lawvable/awesome-legal-skills/blob/main/CONTRIBUTING.md): governance · Submission workflow and review expectations for new skills. · `CONTRIBUTING.md`
- [Submit skill](https://github.com/lawvable/awesome-legal-skills/blob/main/.github/ISSUE_TEMPLATE/submit-skill.yml): review form · Structured issue template for proposing new skills. · `.github/ISSUE_TEMPLATE/submit-skill.yml`
- [Root license](https://github.com/lawvable/awesome-legal-skills/tree/main/LICENSE): license · Repository-level licensing boundary for the catalog as a whole. · `LICENSE`

### Skill Packages

Independently distributable skill folders grouped by workflow domain and runtime target.

- [skills/](https://github.com/lawvable/awesome-legal-skills/tree/main/skills): skill catalog · Top-level boundary containing independently packaged skills. · `skills`
- [Legal workflows](https://github.com/lawvable/awesome-legal-skills/tree/main/skills): skill family · Commercial, contract, litigation, and legal-method skills. · `skills`
- [Privacy skills](https://github.com/lawvable/awesome-legal-skills/tree/main/skills): skill family · GDPR, cookies, DPIA, breach, and whistleblowing workflows. · `skills`
- [Office processing](https://github.com/lawvable/awesome-legal-skills/tree/main/skills): skill family · Document transformation skills for Word, PowerPoint, Excel, and PDF. · `skills`
- [Tooling skills](https://github.com/lawvable/awesome-legal-skills/tree/main/skills): skill family · Adjacent developer/productivity skill packages and builders. · `skills`
- [Skill authoring](https://github.com/lawvable/awesome-legal-skills/tree/main/skills): skill family · Skills and helpers for creating, packaging, and optimizing other skills. · `skills`
- **SKILL.md**: skill entrypoint · Agent-facing workflow definition, scope, and usage instructions.
- **References**: knowledge pack · Legal sources, templates, checklists, and jurisdiction-specific guidance.
- [Assets](https://github.com/lawvable/awesome-legal-skills/tree/main/assets): source bundle · Templates, PDFs, DOCX samples, and other packaged source material. · `assets`

### Execution Tooling

Shared document-processing and adjacent productivity tooling.

- [DOCX core](https://github.com/lawvable/awesome-legal-skills/tree/main/skills/docx-processing-anthropic/scripts/office): office pipeline · Shared OOXML packing, unpacking, validation, and redline helpers. · `skills/docx-processing-anthropic/scripts/office`
- [PPTX core](https://github.com/lawvable/awesome-legal-skills/tree/main/skills/pptx-processing-anthropic/scripts/office): office pipeline · Shared PowerPoint transformation and validation pipeline. · `skills/pptx-processing-anthropic/scripts/office`
- [XLSX core](https://github.com/lawvable/awesome-legal-skills/tree/main/skills/xlsx-processing-anthropic/scripts/office): office pipeline · Shared spreadsheet transformation and recalculation pipeline. · `skills/xlsx-processing-anthropic/scripts/office`
- [PDF tools](https://github.com/lawvable/awesome-legal-skills/tree/main/skills/pdf-processing-anthropic/scripts): pdf pipeline · Form inspection, filling, rendering, and validation utilities. · `skills/pdf-processing-anthropic/scripts`
- [VS Code builder](https://github.com/lawvable/awesome-legal-skills/tree/main/skills/vscode-extension-builder-lawvable): extension toolkit · Assets and references for building VS Code extensions. · `skills/vscode-extension-builder-lawvable`
- [Outlook access](https://github.com/lawvable/awesome-legal-skills/tree/main/skills/outlook-emails-lawvable): enterprise tooling · OAuth-based Outlook email access helper for workplace workflows. · `skills/outlook-emails-lawvable`
- [Skill creator](https://github.com/lawvable/awesome-legal-skills/tree/main/skills/skill-creator-anthropic): packaging tool · Scripts for initializing, validating, and packaging skills. · `skills/skill-creator-anthropic`

## Connections

- Repo → README: indexed by · The README is the main human browse surface.
- Repo → Marketplace: published as · Marketplace metadata supports automated discovery.
- Repo → skills/: contains · All distributable skill packages live under skills/.
- Repo → Contrib guide: governed by · Contribution rules control how new skills are accepted.
- Repo → Submit skill: submitted via · Proposals are routed through a structured issue form.
- Repo → Root license: licensed by · Repository-level license frames the catalog aggregation.
- skills/ → Legal workflows: includes · Commercial, contract, litigation, and method skills.
- skills/ → Privacy skills: includes · Privacy and GDPR-oriented workflows.
- skills/ → Office processing: includes · Office and document-processing skills.
- skills/ → Tooling skills: includes · Adjacent enterprise and developer tooling skills.
- skills/ → Skill authoring: includes · Skills for creating or improving skills.
- Legal workflows → SKILL.md: entrypoint · Each skill package starts from SKILL.md.
- Privacy skills → References: backed by · Skills bundle legal sources and guidance alongside instructions.
- Privacy skills → Assets: uses · Some skills package templates and source documents.
- Office processing → DOCX core: uses · DOCX workflows rely on shared OOXML tooling.
- Office processing → PPTX core: uses · PPTX workflows rely on shared OOXML tooling.
- Office processing → XLSX core: uses · XLSX workflows rely on shared OOXML tooling and recalculation.
- Office processing → PDF tools: uses · PDF workflows rely on form and rendering utilities.
- Tooling skills → VS Code builder: contains · VS Code extension building is a distinct tooling family.
- Tooling skills → Outlook access: contains · Outlook access is an enterprise productivity capability.
- Skill authoring → Skill creator: contains · Skill packaging and validation helpers support repo extension.
- DOCX core → SKILL.md: supports · Document workflows pair instructions with executable helpers.
- PDF tools → References: supports · PDF operations are guided by reference docs and forms notes.
