# rohasnagpal/legal-ai-skills architecture

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

- Interactive diagram: https://gitdiagram.com/rohasnagpal/legal-ai-skills
- Repository: https://github.com/rohasnagpal/legal-ai-skills

## Overview

vCLO is an installable legal-assistant plugin for Codex or Claude. A user brings a legal matter to the virtual Chief Legal Officer, which coordinates specialist lawyers, jurisdiction counsel, focused skills and documented end-to-end workflows; the result may include analysis or drafted legal documents. Separate MCP servers provide official-source research, company-registry lookup and local document production. The README documents optional host-connected services. Workflow and agent details are represented at subsystem level because their individual files were not sampled.

Main entry points: [`plugins/vclo-by-rohas/agents/chief-legal-officer.md`](https://github.com/rohasnagpal/legal-ai-skills/blob/main/plugins/vclo-by-rohas/agents/chief-legal-officer.md) (Chief legal officer), [`plugins/vclo-by-rohas/workflows`](https://github.com/rohasnagpal/legal-ai-skills/tree/main/plugins/vclo-by-rohas/workflows) (Coordinated workflows), [`plugins/vclo-by-rohas/mcp/document-production-server.mjs`](https://github.com/rohasnagpal/legal-ai-skills/blob/main/plugins/vclo-by-rohas/mcp/document-production-server.mjs) (Document production), [`plugins/vclo-by-rohas/mcp/legal-research-server.mjs`](https://github.com/rohasnagpal/legal-ai-skills/blob/main/plugins/vclo-by-rohas/mcp/legal-research-server.mjs) (Legal research server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_coordination["Legal coordination"]
  node_vclo["Chief legal officer"]
end

subgraph group_expertise["Legal expertise"]
  node_specialists["Specialist lawyers"]
  node_counsel["Jurisdiction counsel"]
  node_skills["Legal skills"]
end

subgraph group_matter_work["Matter workflows"]
  node_workflows["Coordinated workflows"]
end

subgraph group_tools["Research and documents"]
  node_research["Legal research server"]
  node_legal_sources["Official legal sources"]
  node_registry["Company registry server"]
  node_registries["Official registries"]
  node_document_tool["Document production"]
  node_templates["Local templates"]
  node_connected_services["Connected services"]
end

node_user(("Legal user"))
node_host(("Codex or Claude"))

node_user -->|"submits matter"| node_vclo
node_vclo -->|"coordinates lawyers"| node_specialists
node_vclo -->|"coordinates counsel"| node_counsel
node_vclo -->|"coordinates skills"| node_skills
node_vclo -->|"coordinates workflows"| node_workflows
node_workflows -->|"combines lawyers"| node_specialists
node_workflows -->|"combines counsel"| node_counsel
node_workflows -->|"combines skills"| node_skills
node_host -.->|"invokes tools"| node_research
node_research -->|"queries sources"| node_legal_sources
node_host -.->|"invokes tools"| node_registry
node_registry -->|"queries registries"| node_registries
node_host -.->|"invokes tools"| node_document_tool
node_document_tool -->|"lists templates"| node_templates
node_document_tool -->|"produces documents"| node_user
node_host -.->|"authorises services"| node_connected_services

click node_vclo "https://github.com/rohasnagpal/legal-ai-skills/blob/main/plugins/vclo-by-rohas/agents/chief-legal-officer.md"
click node_specialists "https://github.com/rohasnagpal/legal-ai-skills/tree/main/plugins/vclo-by-rohas/agents"
click node_counsel "https://github.com/rohasnagpal/legal-ai-skills/tree/main/plugins/vclo-by-rohas/jurisdictions"
click node_skills "https://github.com/rohasnagpal/legal-ai-skills/tree/main/plugins/vclo-by-rohas/skills"
click node_workflows "https://github.com/rohasnagpal/legal-ai-skills/tree/main/plugins/vclo-by-rohas/workflows"
click node_research "https://github.com/rohasnagpal/legal-ai-skills/blob/main/plugins/vclo-by-rohas/mcp/legal-research-server.mjs"
click node_registry "https://github.com/rohasnagpal/legal-ai-skills/blob/main/plugins/vclo-by-rohas/mcp/company-registry-server.mjs"
click node_document_tool "https://github.com/rohasnagpal/legal-ai-skills/blob/main/plugins/vclo-by-rohas/mcp/document-production-server.mjs"
click node_templates "https://github.com/rohasnagpal/legal-ai-skills/tree/main/plugins/vclo-by-rohas/assets/vclo"
click node_connected_services "https://github.com/rohasnagpal/legal-ai-skills/tree/main/plugins/vclo-by-rohas/integrations"

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_vclo,node_user toneBlue
class node_specialists,node_counsel,node_skills toneAmber
class node_workflows toneMint
class node_research,node_legal_sources,node_registry,node_registries,node_document_tool,node_templates,node_connected_services toneRose
class node_host toneIndigo
```

## Components

### Legal coordination

- [Chief legal officer](https://github.com/rohasnagpal/legal-ai-skills/blob/main/plugins/vclo-by-rohas/agents/chief-legal-officer.md): `plugins/vclo-by-rohas/agents/chief-legal-officer.md`

### Legal expertise

- [Specialist lawyers](https://github.com/rohasnagpal/legal-ai-skills/tree/main/plugins/vclo-by-rohas/agents): `plugins/vclo-by-rohas/agents`
- [Jurisdiction counsel](https://github.com/rohasnagpal/legal-ai-skills/tree/main/plugins/vclo-by-rohas/jurisdictions): `plugins/vclo-by-rohas/jurisdictions`
- [Legal skills](https://github.com/rohasnagpal/legal-ai-skills/tree/main/plugins/vclo-by-rohas/skills): `plugins/vclo-by-rohas/skills`

### Matter workflows

- [Coordinated workflows](https://github.com/rohasnagpal/legal-ai-skills/tree/main/plugins/vclo-by-rohas/workflows): `plugins/vclo-by-rohas/workflows`

### Research and documents

- [Legal research server](https://github.com/rohasnagpal/legal-ai-skills/blob/main/plugins/vclo-by-rohas/mcp/legal-research-server.mjs): `plugins/vclo-by-rohas/mcp/legal-research-server.mjs`
- **Official legal sources**
- [Company registry server](https://github.com/rohasnagpal/legal-ai-skills/blob/main/plugins/vclo-by-rohas/mcp/company-registry-server.mjs): `plugins/vclo-by-rohas/mcp/company-registry-server.mjs`
- **Official registries**
- [Document production](https://github.com/rohasnagpal/legal-ai-skills/blob/main/plugins/vclo-by-rohas/mcp/document-production-server.mjs): `plugins/vclo-by-rohas/mcp/document-production-server.mjs`
- [Local templates](https://github.com/rohasnagpal/legal-ai-skills/tree/main/plugins/vclo-by-rohas/assets/vclo): `plugins/vclo-by-rohas/assets/vclo`
- [Connected services](https://github.com/rohasnagpal/legal-ai-skills/tree/main/plugins/vclo-by-rohas/integrations): `plugins/vclo-by-rohas/integrations`

### Other components

- **Legal user**
- **Codex or Claude**

## Connections

- Legal user → Chief legal officer: submits matter (evidence: `README.md`)
- Chief legal officer → Specialist lawyers: coordinates lawyers (evidence: `README.md`)
- Chief legal officer → Jurisdiction counsel: coordinates counsel (evidence: `README.md`)
- Chief legal officer → Legal skills: coordinates skills (evidence: `README.md`)
- Chief legal officer → Coordinated workflows: coordinates workflows (evidence: `README.md`)
- Coordinated workflows → Specialist lawyers: combines lawyers (evidence: `README.md`)
- Coordinated workflows → Jurisdiction counsel: combines counsel (evidence: `README.md`)
- Coordinated workflows → Legal skills: combines skills (evidence: `README.md`)
- Codex or Claude → Legal research server: invokes tools
- Legal research server → Official legal sources: queries sources (evidence: `plugins/vclo-by-rohas/mcp/legal-research-server.mjs`)
- Codex or Claude → Company registry server: invokes tools
- Company registry server → Official registries: queries registries (evidence: `plugins/vclo-by-rohas/mcp/company-registry-server.mjs`)
- Codex or Claude → Document production: invokes tools
- Document production → Local templates: lists templates (evidence: `plugins/vclo-by-rohas/mcp/document-production-server.mjs`)
- Document production → Legal user: produces documents (evidence: `README.md`)
- Codex or Claude → Connected services: authorises services (evidence: `README.md`)
