# hailoc12/ai_native_company architecture

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

- Interactive diagram: https://gitdiagram.com/hailoc12/ai_native_company
- Repository: https://github.com/hailoc12/ai_native_company

## Overview

AI Native Company is a documentation-and-skills product for designing and operating AI-assisted small businesses. Its main workflow is to generate a company structure, build department-specific AI workers, then run SOPs through human-supervised input, processing, output, and archive stages. The skills package also supplies privacy and prompt-injection screening, artifact validation, execution logging, and review queues. The graph follows README-documented capabilities and the sampled scripts; links between skill stages are shown only where documented.

Main entry points: [`skills/vibe-aiworkforce`](https://github.com/hailoc12/ai_native_company/tree/main/skills/vibe-aiworkforce) (AI workforce builder), [`skills/vibe-company-orchestrator`](https://github.com/hailoc12/ai_native_company/tree/main/skills/vibe-company-orchestrator) (Company orchestrator), [`examples/sample-company/opc-ains`](https://github.com/hailoc12/ai_native_company/tree/main/examples/sample-company/opc-ains) (SOP state machine), [`skills/vibe-company-orchestrator/script/validator.py`](https://github.com/hailoc12/ai_native_company/blob/main/skills/vibe-company-orchestrator/script/validator.py) (Company validation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_design["Company design"]
  node_company_skill["Company orchestrator"]
  node_company_artifacts["Company structure"]
end

subgraph group_workforce["AI workforce"]
  node_workforce_skill["AI workforce builder"]
  node_worker_design["Worker design"]
end

subgraph group_operations["Operations and governance"]
  node_company_anonymizer["Intake screening<br/>[anonymizer.py]"]
  node_worker_anonymizer["Task screening<br/>[anonymizer.py]"]
  node_company_validator["Company validation<br/>[validator.py]"]
  node_worker_validator["Worker validation<br/>[validator.py]"]
  node_company_review["Company review queue<br/>[review_queue.py]"]
  node_worker_review["Workforce review queue<br/>[review_queue.py]"]
  node_company_log["Company execution log<br/>[log_helper.py]"]
  node_worker_log["Workforce execution log<br/>[log_helper.py]"]
  node_sop_flow["SOP state machine"]
  node_work_output["Department outputs"]
end

subgraph group_guides["Examples and method"]
  node_ebook["Operating method"]
  node_sample_company["AINS company example"]
end

node_founder(("Founder / operator"))

node_founder -->|"describes company"| node_company_skill
node_company_skill -->|"generates structure"| node_company_artifacts
node_company_artifacts -->|"provides company root"| node_workforce_skill
node_founder -->|"assigns task"| node_workforce_skill
node_workforce_skill -->|"designs worker"| node_worker_design
node_company_skill -.->|"screens intake"| node_company_anonymizer
node_workforce_skill -.->|"screens input"| node_worker_anonymizer
node_company_validator -->|"flags for review"| node_company_review
node_worker_validator -->|"flags for review"| node_worker_review
node_company_validator -->|"writes execution log"| node_company_log
node_worker_validator -->|"writes execution log"| node_worker_log
node_founder -->|"submits work"| node_sop_flow
node_sop_flow -->|"produces results"| node_work_output
node_founder -->|"consults method"| node_ebook
node_sample_company -.->|"illustrates operations"| node_sop_flow

click node_company_skill "https://github.com/hailoc12/ai_native_company/tree/main/skills/vibe-company-orchestrator"
click node_company_artifacts "https://github.com/hailoc12/ai_native_company/tree/main/skills/vibe-company-orchestrator"
click node_workforce_skill "https://github.com/hailoc12/ai_native_company/tree/main/skills/vibe-aiworkforce"
click node_worker_design "https://github.com/hailoc12/ai_native_company/tree/main/skills/vibe-aiworkforce"
click node_company_anonymizer "https://github.com/hailoc12/ai_native_company/blob/main/skills/vibe-company-orchestrator/script/anonymizer.py"
click node_worker_anonymizer "https://github.com/hailoc12/ai_native_company/blob/main/skills/vibe-aiworkforce/script/anonymizer.py"
click node_company_validator "https://github.com/hailoc12/ai_native_company/blob/main/skills/vibe-company-orchestrator/script/validator.py"
click node_worker_validator "https://github.com/hailoc12/ai_native_company/blob/main/skills/vibe-aiworkforce/script/validator.py"
click node_company_review "https://github.com/hailoc12/ai_native_company/blob/main/skills/vibe-company-orchestrator/script/review_queue.py"
click node_worker_review "https://github.com/hailoc12/ai_native_company/blob/main/skills/vibe-aiworkforce/script/review_queue.py"
click node_company_log "https://github.com/hailoc12/ai_native_company/blob/main/skills/vibe-company-orchestrator/script/log_helper.py"
click node_worker_log "https://github.com/hailoc12/ai_native_company/blob/main/skills/vibe-aiworkforce/script/log_helper.py"
click node_sop_flow "https://github.com/hailoc12/ai_native_company/tree/main/examples/sample-company/opc-ains"
click node_work_output "https://github.com/hailoc12/ai_native_company/tree/main/examples/sample-company/opc-ains"
click node_ebook "https://github.com/hailoc12/ai_native_company/tree/main/docs/ebook"
click node_sample_company "https://github.com/hailoc12/ai_native_company/tree/main/examples/sample-company/opc-ains"

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_company_skill,node_company_artifacts toneBlue
class node_workforce_skill,node_worker_design toneAmber
class node_company_anonymizer,node_worker_anonymizer,node_company_validator,node_worker_validator,node_company_review,node_worker_review,node_company_log,node_worker_log,node_sop_flow,node_work_output toneMint
class node_ebook,node_sample_company toneRose
class node_founder toneIndigo
```

## Components

### Company design

- [Company orchestrator](https://github.com/hailoc12/ai_native_company/tree/main/skills/vibe-company-orchestrator): `skills/vibe-company-orchestrator`
- [Company structure](https://github.com/hailoc12/ai_native_company/tree/main/skills/vibe-company-orchestrator): `skills/vibe-company-orchestrator`

### AI workforce

- [AI workforce builder](https://github.com/hailoc12/ai_native_company/tree/main/skills/vibe-aiworkforce): `skills/vibe-aiworkforce`
- [Worker design](https://github.com/hailoc12/ai_native_company/tree/main/skills/vibe-aiworkforce): `skills/vibe-aiworkforce`

### Operations and governance

- [Intake screening](https://github.com/hailoc12/ai_native_company/blob/main/skills/vibe-company-orchestrator/script/anonymizer.py): `skills/vibe-company-orchestrator/script/anonymizer.py`
- [Task screening](https://github.com/hailoc12/ai_native_company/blob/main/skills/vibe-aiworkforce/script/anonymizer.py): `skills/vibe-aiworkforce/script/anonymizer.py`
- [Company validation](https://github.com/hailoc12/ai_native_company/blob/main/skills/vibe-company-orchestrator/script/validator.py): `skills/vibe-company-orchestrator/script/validator.py`
- [Worker validation](https://github.com/hailoc12/ai_native_company/blob/main/skills/vibe-aiworkforce/script/validator.py): `skills/vibe-aiworkforce/script/validator.py`
- [Company review queue](https://github.com/hailoc12/ai_native_company/blob/main/skills/vibe-company-orchestrator/script/review_queue.py): `skills/vibe-company-orchestrator/script/review_queue.py`
- [Workforce review queue](https://github.com/hailoc12/ai_native_company/blob/main/skills/vibe-aiworkforce/script/review_queue.py): `skills/vibe-aiworkforce/script/review_queue.py`
- [Company execution log](https://github.com/hailoc12/ai_native_company/blob/main/skills/vibe-company-orchestrator/script/log_helper.py): `skills/vibe-company-orchestrator/script/log_helper.py`
- [Workforce execution log](https://github.com/hailoc12/ai_native_company/blob/main/skills/vibe-aiworkforce/script/log_helper.py): `skills/vibe-aiworkforce/script/log_helper.py`
- [SOP state machine](https://github.com/hailoc12/ai_native_company/tree/main/examples/sample-company/opc-ains): `examples/sample-company/opc-ains`
- [Department outputs](https://github.com/hailoc12/ai_native_company/tree/main/examples/sample-company/opc-ains): `examples/sample-company/opc-ains`

### Examples and method

- [Operating method](https://github.com/hailoc12/ai_native_company/tree/main/docs/ebook): `docs/ebook`
- [AINS company example](https://github.com/hailoc12/ai_native_company/tree/main/examples/sample-company/opc-ains): `examples/sample-company/opc-ains`

### Other components

- **Founder / operator**

## Connections

- Founder / operator → Company orchestrator: describes company (evidence: `README.md`)
- Company orchestrator → Company structure: generates structure (evidence: `README.md`)
- Company structure → AI workforce builder: provides company root (evidence: `README.md`)
- Founder / operator → AI workforce builder: assigns task (evidence: `README.md`)
- AI workforce builder → Worker design: designs worker (evidence: `README.md`)
- Company orchestrator → Intake screening: screens intake
- AI workforce builder → Task screening: screens input
- Company validation → Company review queue: flags for review (evidence: `skills/vibe-company-orchestrator/script/validator.py`)
- Worker validation → Workforce review queue: flags for review (evidence: `skills/vibe-aiworkforce/script/validator.py`)
- Company validation → Company execution log: writes execution log (evidence: `skills/vibe-company-orchestrator/script/validator.py`)
- Worker validation → Workforce execution log: writes execution log (evidence: `skills/vibe-aiworkforce/script/validator.py`)
- Founder / operator → SOP state machine: submits work (evidence: `README.md`)
- SOP state machine → Department outputs: produces results (evidence: `README.md`)
- Founder / operator → Operating method: consults method (evidence: `README.md`)
- AINS company example → SOP state machine: illustrates operations
