# lmj18321318527-crypto/research-orchestrator architecture

> Architecture diagram of the GitHub repository lmj18321318527-crypto/research-orchestrator, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lmj18321318527-crypto/research-orchestrator
- Repository: https://github.com/lmj18321318527-crypto/research-orchestrator

## Overview

#### Purpose and Deployment

Research Orchestrator is a drop-in Claude Code configuration for autonomous, chemistry/materials-oriented academic-paper production. It is not a conventional application: users install its `.claude` assets into `~/.claude`, then invoke natural-language skills in Claude Code. Installation and configuration entry points are `install.sh`, `settings.json.template`, and `MCP-CONFIG.md`.

#### Orchestration Layer

The end-to-end pipeline is driven by the auto-research workflow and agent instructions. It routes a topic through scout, literature, figures, drafting, citation audit, polish, editorial review, and export; phase-specific requests can bypass prior stages. Core paths: `.claude/workflows/auto-research.workflow.js`, `.claude/skills/auto-research/SKILL.md`, `.claude/agents/auto-research.md`.

#### Research Discovery and Literature Boundary

The literature subsystem combines Claude skill guidance with a Python MCP server that queries source adapters and returns normalized scholarly results. This isolates external API/search-provider behavior from authoring workflows. Key paths: `.claude/skills/nature-academic-search/mcp-server/academic_search_server.py`, `.claude/skills/nature-academic-search/mcp-server/sources/arxiv.py`, `.claude/skills/nature-academic-search/mcp-server/sources/crossref.py`.

External services include arXiv, Crossref, and PubMed adapters present in-repo; broader MCP configuration is documented in `MCP-CONFIG.md`. Citation-oriented workflows consume this evidence boundary rather than relying solely on generated claims.

#### Manuscript Generation and Style Control

Writing is decomposed into journal-style drafting, polishing, citation handling, data statements, reading, and reviewer-response skills. Style calibration is a separate quantitative subsystem: it distills corpus-level author patterns and supports shared MOC generation/configuration. Paths: `.claude/skills/nature-writing/SKILL.md`, `.claude/skills/nature-polishing/SKILL.md`, `style_distiller.py`.

#### Figure Production Pipeline

Figures have two distinct paths: reproducible publication charts and iterative visual-style transfer. Nature Figure provides chart contracts, backend guidance, and example plotting assets; FigMirror runs specialized preprocess/illustrate/critic agents and has a Python scorer for 3D candidates. Paths: `.claude/skills/nature-figure/SKILL.md`, `.claude/skills/figmirror/SKILL.md`, `.claude/skills/figmirror/scripts/score_3d_candidates.py`.

#### Quality Gates and Human-Readable Outputs

Quality assurance occurs after drafting through citation auditing, prose polishing, and a six-role editorial board covering domain, structure, language, data, format, and expression. These agents are control gates that feed corrections back into manuscript artifacts. Paths: `.claude/skills/nature-citation/SKILL.md`, `.claude/agents/reviewer-domain.md`, `.claude/agents/reviewer-data.md`.

The intended final boundary is submission-ready Word/PDF/LaTeX/Markdown plus data-provenance material; formatting/export behavior is orchestrated through skill instructions rather than a standalone service.

#### Runtime and Integration Model

Primary runtime is Claude Code plus Python 3.10+. Python supports installation, style distillation, MOC utilities, academic-search MCP serving, converters, and figure scripts. Model/API integrations are configured through generated Claude settings, with DeepSeek or Anthropic required by installation guidance. Optional external tooling includes Zotero, Obsidian, and Blender. Core dependency surfaces: `requirements.txt`, `.claude/skills/nature-academic-search/mcp-server/requirements.txt`, `.claude/skills/_shared/user_config.py`.

Main entry points: [`.claude/workflows/auto-research.workflow.js`](https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/workflows/auto-research.workflow.js) (Auto-Research Workflow), [`.claude/skills/nature-academic-search/mcp-server/academic_search_server.py`](https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/skills/nature-academic-search/mcp-server/academic_search_server.py) (Academic Search MCP), [`.claude/skills/figmirror/SKILL.md`](https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/skills/figmirror/SKILL.md) (FigMirror), [`.claude/agents/reviewer-domain.md`](https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/agents/reviewer-domain.md) (Editorial Review Board)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Installation &amp; Runtime"]
  node_install["Installer<br/>shell setup<br/>[install.sh]"]
  node_claude_settings["Claude Settings<br/>configuration template"]
  node_mcp_config["MCP Integration Guide<br/>integration documentation<br/>[MCP-CONFIG.md]"]
end

subgraph group_orchestration["Claude Orchestration"]
  node_claude_code{{"Claude Code<br/>primary runtime"}}
  node_auto_workflow["Auto-Research Workflow<br/>workflow router"]
  node_auto_skill["Auto-Research Skill<br/>skill instructions<br/>[SKILL.md]"]
  node_auto_agent["Auto-Research Agent<br/>agent instructions<br/>[auto-research.md]"]
end

subgraph group_research["Evidence Discovery"]
  node_academic_mcp{{"Academic Search MCP<br/>Python MCP server"}}
  node_source_adapters["Scholarly Source Adapters<br/>provider adapters<br/>[arxiv.py]"]
  node_scholarly_services(("arXiv / Crossref / PubMed<br/>external scholarly APIs"))
end

subgraph group_production["Manuscript &amp; Figures"]
  node_style_distiller["Style Distiller<br/>Python style analysis<br/>[style_distiller.py]"]
  node_writing["Writing &amp; Polishing Skills<br/>manuscript instructions<br/>[SKILL.md]"]
  node_figure_charts["Nature Figure<br/>chart-production skill<br/>[SKILL.md]"]
  node_figmirror["FigMirror<br/>visual-transfer pipeline<br/>[SKILL.md]"]
  node_figmirror_scorer["3D Candidate Scorer<br/>Python figure scorer"]
end

subgraph group_quality["Quality &amp; Delivery"]
  node_citation_audit["Citation Audit<br/>quality-gate skill<br/>[SKILL.md]"]
  node_editorial_board["Editorial Review Board<br/>multi-role review agents<br/>[reviewer-domain.md]"]
  node_submission_outputs["Submission Package<br/>final artifacts"]
end

node_install -->|"generates"| node_claude_settings
node_install -->|"installs assets for"| node_claude_code
node_mcp_config -.->|"configures integrations"| node_claude_code
node_claude_settings -->|"configures"| node_claude_code
node_claude_code -->|"invokes"| node_auto_workflow
node_auto_skill -->|"guides"| node_auto_workflow
node_auto_agent -->|"executes phases"| node_auto_workflow
node_auto_workflow -->|"discovers literature"| node_academic_mcp
node_academic_mcp -->|"queries through"| node_source_adapters
node_source_adapters -->|"calls"| node_scholarly_services
node_auto_workflow -->|"calibrates style"| node_style_distiller
node_auto_workflow -->|"drafts and polishes"| node_writing
node_auto_workflow -->|"produces charts"| node_figure_charts
node_auto_workflow -->|"produces visual figures"| node_figmirror
node_figmirror -->|"scores 3D candidates"| node_figmirror_scorer
node_academic_mcp -->|"supplies evidence"| node_citation_audit
node_writing -->|"submits manuscript"| node_citation_audit
node_citation_audit -->|"passes audited draft"| node_editorial_board
node_editorial_board -.->|"feeds corrections back"| node_writing
node_editorial_board -->|"approves export"| node_submission_outputs
node_figure_charts -->|"contributes figures"| node_submission_outputs
node_figmirror -->|"contributes figures"| node_submission_outputs

click node_install "https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/install.sh"
click node_claude_settings "https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/settings.json.template"
click node_mcp_config "https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/MCP-CONFIG.md"
click node_auto_workflow "https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/workflows/auto-research.workflow.js"
click node_auto_skill "https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/skills/auto-research/SKILL.md"
click node_auto_agent "https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/agents/auto-research.md"
click node_academic_mcp "https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/skills/nature-academic-search/mcp-server/academic_search_server.py"
click node_source_adapters "https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/skills/nature-academic-search/mcp-server/sources/arxiv.py"
click node_style_distiller "https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/style_distiller.py"
click node_writing "https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/skills/nature-writing/SKILL.md"
click node_figure_charts "https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/skills/nature-figure/SKILL.md"
click node_figmirror "https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/skills/figmirror/SKILL.md"
click node_figmirror_scorer "https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/skills/figmirror/scripts/score_3d_candidates.py"
click node_citation_audit "https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/skills/nature-citation/SKILL.md"
click node_editorial_board "https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/agents/reviewer-domain.md"

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_install,node_claude_settings,node_mcp_config toneBlue
class node_claude_code,node_auto_workflow,node_auto_skill,node_auto_agent toneAmber
class node_academic_mcp,node_source_adapters,node_scholarly_services toneMint
class node_style_distiller,node_writing,node_figure_charts,node_figmirror,node_figmirror_scorer toneRose
class node_citation_audit,node_editorial_board,node_submission_outputs toneIndigo
```

## Components

### Installation & Runtime

- [Installer](https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/install.sh): shell setup · Installs the Claude assets into the user configuration directory. · `install.sh`
- [Claude Settings](https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/settings.json.template): configuration template · Generated settings configure model and API integrations. · `settings.json.template`
- [MCP Integration Guide](https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/MCP-CONFIG.md): integration documentation · Documents broader MCP and optional-tool setup. · `MCP-CONFIG.md`

### Claude Orchestration

- **Claude Code**: primary runtime · Runs installed skills, agents, and workflows.
- [Auto-Research Workflow](https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/workflows/auto-research.workflow.js): workflow router · Routes full-pipeline and phase-specific research requests. · `.claude/workflows/auto-research.workflow.js`
- [Auto-Research Skill](https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/skills/auto-research/SKILL.md): skill instructions · `.claude/skills/auto-research/SKILL.md`
- [Auto-Research Agent](https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/agents/auto-research.md): agent instructions · `.claude/agents/auto-research.md`

### Evidence Discovery

- [Academic Search MCP](https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/skills/nature-academic-search/mcp-server/academic_search_server.py): Python MCP server · Normalizes scholarly results behind a source-adapter boundary. · `.claude/skills/nature-academic-search/mcp-server/academic_search_server.py`
- [Scholarly Source Adapters](https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/skills/nature-academic-search/mcp-server/sources/arxiv.py): provider adapters · Queries arXiv, Crossref, and PubMed. · `.claude/skills/nature-academic-search/mcp-server/sources/arxiv.py`
- **arXiv / Crossref / PubMed**: external scholarly APIs

### Manuscript & Figures

- [Style Distiller](https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/style_distiller.py): Python style analysis · Derives corpus-level author patterns and shared MOC configuration. · `style_distiller.py`
- [Writing & Polishing Skills](https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/skills/nature-writing/SKILL.md): manuscript instructions · Provides journal-style drafting and prose refinement. · `.claude/skills/nature-writing/SKILL.md`
- [Nature Figure](https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/skills/nature-figure/SKILL.md): chart-production skill · Defines reproducible publication-chart contracts and backend guidance. · `.claude/skills/nature-figure/SKILL.md`
- [FigMirror](https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/skills/figmirror/SKILL.md): visual-transfer pipeline · Coordinates preprocess, illustration, critic, and 3D scoring work. · `.claude/skills/figmirror/SKILL.md`
- [3D Candidate Scorer](https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/skills/figmirror/scripts/score_3d_candidates.py): Python figure scorer · `.claude/skills/figmirror/scripts/score_3d_candidates.py`

### Quality & Delivery

- [Citation Audit](https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/skills/nature-citation/SKILL.md): quality-gate skill · Checks manuscript claims against the evidence boundary. · `.claude/skills/nature-citation/SKILL.md`
- [Editorial Review Board](https://github.com/lmj18321318527-crypto/research-orchestrator/blob/main/.claude/agents/reviewer-domain.md): multi-role review agents · Applies domain, structure, language, data, format, and expression gates. · `.claude/agents/reviewer-domain.md`
- **Submission Package**: final artifacts · Word, PDF, LaTeX, Markdown, and data-provenance material.

## Connections

- Installer → Claude Settings: generates
- Installer → Claude Code: installs assets for
- MCP Integration Guide → Claude Code: configures integrations
- Claude Settings → Claude Code: configures
- Claude Code → Auto-Research Workflow: invokes
- Auto-Research Skill → Auto-Research Workflow: guides
- Auto-Research Agent → Auto-Research Workflow: executes phases
- Auto-Research Workflow → Academic Search MCP: discovers literature
- Academic Search MCP → Scholarly Source Adapters: queries through
- Scholarly Source Adapters → arXiv / Crossref / PubMed: calls
- Auto-Research Workflow → Style Distiller: calibrates style
- Auto-Research Workflow → Writing & Polishing Skills: drafts and polishes
- Auto-Research Workflow → Nature Figure: produces charts
- Auto-Research Workflow → FigMirror: produces visual figures
- FigMirror → 3D Candidate Scorer: scores 3D candidates
- Academic Search MCP → Citation Audit: supplies evidence
- Writing & Polishing Skills → Citation Audit: submits manuscript
- Citation Audit → Editorial Review Board: passes audited draft
- Editorial Review Board → Writing & Polishing Skills: feeds corrections back
- Editorial Review Board → Submission Package: approves export
- Nature Figure → Submission Package: contributes figures
- FigMirror → Submission Package: contributes figures
