# ameng2001/astra-studio-plugins architecture

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

- Interactive diagram: https://gitdiagram.com/ameng2001/astra-studio-plugins
- Repository: https://github.com/ameng2001/astra-studio-plugins

## Overview

Astra Studio is a Claude Code plugin marketplace for the outer loop of plugin development: business analysis, domain and skill planning, validation, and promotion. Its README also documents standalone insight tools, platform-document generation, design-to-code, and an ontology compiler; these are retained as product branches, though their implementation paths are absent from the supplied tree. The tree mainly exposes the fund-review costing workflow and a few quality/document scripts. Edges for that workflow are limited to relationships shown in sampled source or the README; unsampled plugin internals are not inferred.

Main entry points: [`fund-review/scripts/costing_engine.py`](https://github.com/ameng2001/astra-studio-plugins/blob/main/fund-review/scripts/costing_engine.py) (Quote calculation), [`fund-review/scripts/run_review.py`](https://github.com/ameng2001/astra-studio-plugins/blob/main/fund-review/scripts/run_review.py) (Quote review), [`fund-review/scripts/standard_pack.py`](https://github.com/ameng2001/astra-studio-plugins/blob/main/fund-review/scripts/standard_pack.py) (Regional standards), [`fund-review/scripts/quote_selfreview.py`](https://github.com/ameng2001/astra-studio-plugins/blob/main/fund-review/scripts/quote_selfreview.py) (Self-review)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_studio["Studio workflows"]
  node_core["Workspace and promotion"]
  node_insight["Business insights"]
  node_planner["Plugin planning"]
  node_platform["Platform documentation"]
  node_design["Design to code"]
  node_ontology["Ontology compiler"]
end

subgraph group_quality["Quality and delivery"]
  node_validate["Plugin validation<br/>[validate_plugin.py]"]
  node_qualityscripts["MCP and skill checks<br/>[validate_skills.py]"]
  node_docformat["Document formatting<br/>[format_docx.py]"]
end

subgraph group_fund["Fund review"]
  node_quote["Quote calculation<br/>[costing_engine.py]"]
  node_bom["Costing BOM<br/>[bom_schema.py]"]
  node_standards["Regional standards<br/>[standard_pack.py]"]
  node_delivery["Delivery plan<br/>[delivery_matrix.py]"]
  node_fpformula["Cost formulas<br/>[formula_engine.py]"]
  node_review["Quote review<br/>[run_review.py]"]
  node_selfreview["Self-review"]
  node_evidence["Standard evidence checks<br/>[standard_ingest.py]"]
  node_weight["NESMA weights<br/>[nesma_weights.py]"]
  node_expert["Expert review<br/>[expert_reviewer.py]"]
end

node_user(("Studio user"))
node_claude["Claude Code"]
node_engine["Ontology runtime"]
node_skillcreator["skill-creator"]

node_user -->|"invokes plugins"| node_claude
node_claude -->|"runs commands"| node_core
node_claude -->|"runs skills"| node_insight
node_claude -->|"runs planning"| node_planner
node_planner -->|"invokes analysis"| node_insight
node_planner -->|"drafts skills"| node_skillcreator
node_claude -->|"validates plugin"| node_validate
node_claude -->|"generates docs"| node_platform
node_claude -->|"runs design flow"| node_design
node_claude -->|"compiles analysis"| node_ontology
node_ontology -->|"produces runtime plugin"| node_engine
node_quote -->|"reads BOM"| node_bom
node_quote -->|"reads pack"| node_standards
node_quote -->|"uses delivery context"| node_delivery
node_standards -->|"imports weights"| node_weight
node_quote -.->|"selects formula profile"| node_fpformula
node_review -->|"uses formulas"| node_fpformula
node_review -->|"runs expert review"| node_expert
node_review -->|"shapes quote input"| node_quote
node_selfreview -->|"checks BOM status"| node_bom
node_selfreview -->|"checks calculation result"| node_quote
node_evidence -->|"validates citations"| node_standards
node_qualityscripts -.->|"checks skills"| node_validate

click node_validate "https://github.com/ameng2001/astra-studio-plugins/blob/main/studio-quality/scripts/validate_plugin.py"
click node_qualityscripts "https://github.com/ameng2001/astra-studio-plugins/blob/main/studio-quality/scripts/validate_skills.py"
click node_docformat "https://github.com/ameng2001/astra-studio-plugins/blob/main/studio-docs/scripts/format_docx.py"
click node_quote "https://github.com/ameng2001/astra-studio-plugins/blob/main/fund-review/scripts/costing_engine.py"
click node_bom "https://github.com/ameng2001/astra-studio-plugins/blob/main/fund-review/scripts/bom_schema.py"
click node_standards "https://github.com/ameng2001/astra-studio-plugins/blob/main/fund-review/scripts/standard_pack.py"
click node_delivery "https://github.com/ameng2001/astra-studio-plugins/blob/main/fund-review/scripts/delivery_matrix.py"
click node_fpformula "https://github.com/ameng2001/astra-studio-plugins/blob/main/fund-review/scripts/formula_engine.py"
click node_review "https://github.com/ameng2001/astra-studio-plugins/blob/main/fund-review/scripts/run_review.py"
click node_selfreview "https://github.com/ameng2001/astra-studio-plugins/blob/main/fund-review/scripts/quote_selfreview.py"
click node_evidence "https://github.com/ameng2001/astra-studio-plugins/blob/main/fund-review/scripts/standard_ingest.py"
click node_weight "https://github.com/ameng2001/astra-studio-plugins/blob/main/fund-review/scripts/nesma_weights.py"
click node_expert "https://github.com/ameng2001/astra-studio-plugins/blob/main/fund-review/scripts/expert_reviewer.py"

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_core,node_insight,node_planner,node_platform,node_design,node_ontology,node_user toneBlue
class node_validate,node_qualityscripts,node_docformat toneAmber
class node_quote,node_bom,node_standards,node_delivery,node_fpformula,node_review,node_selfreview,node_evidence,node_weight,node_expert toneMint
class node_claude,node_engine,node_skillcreator toneIndigo
```

## Components

### Studio workflows

- **Workspace and promotion**
- **Business insights**
- **Plugin planning**
- **Platform documentation**
- **Design to code**
- **Ontology compiler**

### Quality and delivery

- [Plugin validation](https://github.com/ameng2001/astra-studio-plugins/blob/main/studio-quality/scripts/validate_plugin.py): `studio-quality/scripts/validate_plugin.py`
- [MCP and skill checks](https://github.com/ameng2001/astra-studio-plugins/blob/main/studio-quality/scripts/validate_skills.py): `studio-quality/scripts/validate_skills.py`
- [Document formatting](https://github.com/ameng2001/astra-studio-plugins/blob/main/studio-docs/scripts/format_docx.py): `studio-docs/scripts/format_docx.py`

### Fund review

- [Quote calculation](https://github.com/ameng2001/astra-studio-plugins/blob/main/fund-review/scripts/costing_engine.py): `fund-review/scripts/costing_engine.py`
- [Costing BOM](https://github.com/ameng2001/astra-studio-plugins/blob/main/fund-review/scripts/bom_schema.py): `fund-review/scripts/bom_schema.py`
- [Regional standards](https://github.com/ameng2001/astra-studio-plugins/blob/main/fund-review/scripts/standard_pack.py): `fund-review/scripts/standard_pack.py`
- [Delivery plan](https://github.com/ameng2001/astra-studio-plugins/blob/main/fund-review/scripts/delivery_matrix.py): `fund-review/scripts/delivery_matrix.py`
- [Cost formulas](https://github.com/ameng2001/astra-studio-plugins/blob/main/fund-review/scripts/formula_engine.py): `fund-review/scripts/formula_engine.py`
- [Quote review](https://github.com/ameng2001/astra-studio-plugins/blob/main/fund-review/scripts/run_review.py): `fund-review/scripts/run_review.py`
- [Self-review](https://github.com/ameng2001/astra-studio-plugins/blob/main/fund-review/scripts/quote_selfreview.py): `fund-review/scripts/quote_selfreview.py`
- [Standard evidence checks](https://github.com/ameng2001/astra-studio-plugins/blob/main/fund-review/scripts/standard_ingest.py): `fund-review/scripts/standard_ingest.py`
- [NESMA weights](https://github.com/ameng2001/astra-studio-plugins/blob/main/fund-review/scripts/nesma_weights.py): `fund-review/scripts/nesma_weights.py`
- [Expert review](https://github.com/ameng2001/astra-studio-plugins/blob/main/fund-review/scripts/expert_reviewer.py): `fund-review/scripts/expert_reviewer.py`

### Other components

- **Studio user**
- **Claude Code**
- **Ontology runtime**
- **skill-creator**

## Connections

- Studio user → Claude Code: invokes plugins
- Claude Code → Workspace and promotion: runs commands
- Claude Code → Business insights: runs skills
- Claude Code → Plugin planning: runs planning
- Plugin planning → Business insights: invokes analysis
- Plugin planning → skill-creator: drafts skills
- Claude Code → Plugin validation: validates plugin
- Claude Code → Platform documentation: generates docs
- Claude Code → Design to code: runs design flow
- Claude Code → Ontology compiler: compiles analysis
- Ontology compiler → Ontology runtime: produces runtime plugin
- Quote calculation → Costing BOM: reads BOM (evidence: `fund-review/scripts/costing_engine.py`)
- Quote calculation → Regional standards: reads pack (evidence: `fund-review/scripts/costing_engine.py`)
- Quote calculation → Delivery plan: uses delivery context (evidence: `fund-review/scripts/costing_engine.py`)
- Regional standards → NESMA weights: imports weights (evidence: `fund-review/scripts/standard_pack.py`)
- Quote calculation → Cost formulas: selects formula profile
- Quote review → Cost formulas: uses formulas (evidence: `fund-review/scripts/run_review.py`)
- Quote review → Expert review: runs expert review (evidence: `fund-review/scripts/run_review.py`)
- Quote review → Quote calculation: shapes quote input (evidence: `fund-review/scripts/run_review.py`)
- Self-review → Costing BOM: checks BOM status (evidence: `fund-review/scripts/quote_selfreview.py`)
- Self-review → Quote calculation: checks calculation result (evidence: `fund-review/scripts/quote_selfreview.py`)
- Standard evidence checks → Regional standards: validates citations (evidence: `fund-review/scripts/standard_ingest.py`)
- MCP and skill checks → Plugin validation: checks skills
