# kalarislabs/research-agent-skills architecture

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

- Interactive diagram: https://gitdiagram.com/kalarislabs/research-agent-skills
- Repository: https://github.com/kalarislabs/research-agent-skills

## Overview

Research Agent Skills is a library of scientific agent workflows plus tools for discovering and installing those skills into agent harnesses. The primary user path is to choose research skills, install them for an agent, then use them across research question formation, literature search, study design, analysis, writing, and verification. The graph preserves these documented domains and the sampled CLI source/catalog layers. Some skill implementations and web-catalog wiring are not shown in the excerpts, so those relationships are not inferred.

Main entry points: [`cli/src/cli.ts`](https://github.com/kalarislabs/research-agent-skills/blob/main/cli/src/cli.ts) (Node CLI), [`cli/src/mcp.ts`](https://github.com/kalarislabs/research-agent-skills/blob/main/cli/src/mcp.ts) (MCP interface), [`src/research_agent_skills/cli.py`](https://github.com/kalarislabs/research-agent-skills/blob/main/src/research_agent_skills/cli.py) (Python CLI), [`cli/src/harness.ts`](https://github.com/kalarislabs/research-agent-skills/blob/main/cli/src/harness.ts) (Harness detection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_distribution["Skill distribution"]
  node_python_cli["Python CLI<br/>[cli.py]"]
  node_ts_cli["Node CLI<br/>[cli.ts]"]
  node_catalog[("Skill catalog<br/>[catalog.py]")]
  node_harness["Harness detection<br/>[harness.ts]"]
  node_source["Source resolver<br/>[source.ts]"]
  node_installer["Skill installer<br/>[install.ts]"]
  node_mcp["MCP interface<br/>[mcp.ts]"]
  node_web_catalog["Interactive catalog<br/>[app.js]"]
end

subgraph group_research["Research workflows"]
  node_hypothesis["Question formation"]
  node_literature["Literature search"]
  node_lookup["Research lookup"]
  node_design["Study design"]
end

subgraph group_science["Scientific analysis"]
  node_analysis["Data analysis"]
  node_bioinformatics["Bioinformatics tools"]
  node_molecular["Molecular analysis"]
  node_clinical["Clinical methods"]
end

subgraph group_communication["Research communication"]
  node_writing["Scientific writing"]
  node_visualization["Scientific visualization"]
  node_citations["Citation verification"]
  node_peer_review["Peer review"]
end

node_researcher(("Researcher"))

node_researcher -->|"installs skills"| node_python_cli
node_researcher -->|"installs skills"| node_ts_cli
node_python_cli -->|"loads catalog"| node_catalog
node_python_cli -.->|"resolves harness"| node_harness
node_ts_cli -->|"resolves harness"| node_harness
node_ts_cli -->|"resolves skills"| node_source
node_ts_cli -->|"installs skills"| node_installer
node_mcp -->|"resolves skills"| node_source
node_mcp -->|"resolves harness"| node_harness
node_mcp -->|"installs skills"| node_installer
node_researcher -->|"browses skills"| node_web_catalog
node_researcher -->|"forms questions"| node_hypothesis
node_researcher -->|"searches literature"| node_literature
node_researcher -->|"finds research"| node_lookup
node_researcher -->|"plans studies"| node_design
node_researcher -->|"analyzes data"| node_analysis
node_researcher -->|"analyzes data"| node_bioinformatics
node_researcher -->|"analyzes data"| node_molecular
node_researcher -->|"analyzes evidence"| node_clinical
node_researcher -->|"writes research"| node_writing
node_researcher -->|"visualizes results"| node_visualization
node_researcher -->|"checks citations"| node_citations
node_researcher -->|"reviews work"| node_peer_review

click node_python_cli "https://github.com/kalarislabs/research-agent-skills/blob/main/src/research_agent_skills/cli.py"
click node_ts_cli "https://github.com/kalarislabs/research-agent-skills/blob/main/cli/src/cli.ts"
click node_catalog "https://github.com/kalarislabs/research-agent-skills/blob/main/src/research_agent_skills/catalog.py"
click node_harness "https://github.com/kalarislabs/research-agent-skills/blob/main/cli/src/harness.ts"
click node_source "https://github.com/kalarislabs/research-agent-skills/blob/main/cli/src/source.ts"
click node_installer "https://github.com/kalarislabs/research-agent-skills/blob/main/cli/src/install.ts"
click node_mcp "https://github.com/kalarislabs/research-agent-skills/blob/main/cli/src/mcp.ts"
click node_web_catalog "https://github.com/kalarislabs/research-agent-skills/blob/main/web/app.js"
click node_hypothesis "https://github.com/kalarislabs/research-agent-skills/tree/main/skills/hypothesis-generation/scripts"
click node_literature "https://github.com/kalarislabs/research-agent-skills/tree/main/skills/literature-review/scripts"
click node_lookup "https://github.com/kalarislabs/research-agent-skills/tree/main/skills/research-lookup/scripts"
click node_design "https://github.com/kalarislabs/research-agent-skills/tree/main/skills/experimental-design/scripts"
click node_analysis "https://github.com/kalarislabs/research-agent-skills/tree/main/skills/scanpy/scripts"
click node_bioinformatics "https://github.com/kalarislabs/research-agent-skills/tree/main/skills/gget/scripts"
click node_molecular "https://github.com/kalarislabs/research-agent-skills/tree/main/skills/rdkit/scripts"
click node_clinical "https://github.com/kalarislabs/research-agent-skills/tree/main/skills/clinical-decision-support/scripts"
click node_writing "https://github.com/kalarislabs/research-agent-skills/tree/main/skills/scientific-writing/scripts"
click node_visualization "https://github.com/kalarislabs/research-agent-skills/tree/main/skills/scientific-visualization/scripts"
click node_citations "https://github.com/kalarislabs/research-agent-skills/tree/main/skills/citation-verification/scripts"
click node_peer_review "https://github.com/kalarislabs/research-agent-skills/tree/main/skills/peer-review/scripts"

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_python_cli,node_ts_cli,node_catalog,node_harness,node_source,node_installer,node_mcp,node_web_catalog toneBlue
class node_hypothesis,node_literature,node_lookup,node_design toneAmber
class node_analysis,node_bioinformatics,node_molecular,node_clinical toneMint
class node_writing,node_visualization,node_citations,node_peer_review toneRose
class node_researcher toneIndigo
```

## Components

### Skill distribution

- [Python CLI](https://github.com/kalarislabs/research-agent-skills/blob/main/src/research_agent_skills/cli.py): `src/research_agent_skills/cli.py`
- [Node CLI](https://github.com/kalarislabs/research-agent-skills/blob/main/cli/src/cli.ts): `cli/src/cli.ts`
- [Skill catalog](https://github.com/kalarislabs/research-agent-skills/blob/main/src/research_agent_skills/catalog.py): `src/research_agent_skills/catalog.py`
- [Harness detection](https://github.com/kalarislabs/research-agent-skills/blob/main/cli/src/harness.ts): `cli/src/harness.ts`
- [Source resolver](https://github.com/kalarislabs/research-agent-skills/blob/main/cli/src/source.ts): `cli/src/source.ts`
- [Skill installer](https://github.com/kalarislabs/research-agent-skills/blob/main/cli/src/install.ts): `cli/src/install.ts`
- [MCP interface](https://github.com/kalarislabs/research-agent-skills/blob/main/cli/src/mcp.ts): `cli/src/mcp.ts`
- [Interactive catalog](https://github.com/kalarislabs/research-agent-skills/blob/main/web/app.js): `web/app.js`

### Research workflows

- [Question formation](https://github.com/kalarislabs/research-agent-skills/tree/main/skills/hypothesis-generation/scripts): `skills/hypothesis-generation/scripts`
- [Literature search](https://github.com/kalarislabs/research-agent-skills/tree/main/skills/literature-review/scripts): `skills/literature-review/scripts`
- [Research lookup](https://github.com/kalarislabs/research-agent-skills/tree/main/skills/research-lookup/scripts): `skills/research-lookup/scripts`
- [Study design](https://github.com/kalarislabs/research-agent-skills/tree/main/skills/experimental-design/scripts): `skills/experimental-design/scripts`

### Scientific analysis

- [Data analysis](https://github.com/kalarislabs/research-agent-skills/tree/main/skills/scanpy/scripts): `skills/scanpy/scripts`
- [Bioinformatics tools](https://github.com/kalarislabs/research-agent-skills/tree/main/skills/gget/scripts): `skills/gget/scripts`
- [Molecular analysis](https://github.com/kalarislabs/research-agent-skills/tree/main/skills/rdkit/scripts): `skills/rdkit/scripts`
- [Clinical methods](https://github.com/kalarislabs/research-agent-skills/tree/main/skills/clinical-decision-support/scripts): `skills/clinical-decision-support/scripts`

### Research communication

- [Scientific writing](https://github.com/kalarislabs/research-agent-skills/tree/main/skills/scientific-writing/scripts): `skills/scientific-writing/scripts`
- [Scientific visualization](https://github.com/kalarislabs/research-agent-skills/tree/main/skills/scientific-visualization/scripts): `skills/scientific-visualization/scripts`
- [Citation verification](https://github.com/kalarislabs/research-agent-skills/tree/main/skills/citation-verification/scripts): `skills/citation-verification/scripts`
- [Peer review](https://github.com/kalarislabs/research-agent-skills/tree/main/skills/peer-review/scripts): `skills/peer-review/scripts`

### Other components

- **Researcher**

## Connections

- Researcher → Python CLI: installs skills (evidence: `README.md`)
- Researcher → Node CLI: installs skills (evidence: `README.md`)
- Python CLI → Skill catalog: loads catalog (evidence: `src/research_agent_skills/cli.py`)
- Python CLI → Harness detection: resolves harness
- Node CLI → Harness detection: resolves harness (evidence: `cli/src/cli.ts`)
- Node CLI → Source resolver: resolves skills (evidence: `cli/src/cli.ts`)
- Node CLI → Skill installer: installs skills (evidence: `cli/src/cli.ts`)
- MCP interface → Source resolver: resolves skills (evidence: `cli/src/mcp.ts`)
- MCP interface → Harness detection: resolves harness (evidence: `cli/src/mcp.ts`)
- MCP interface → Skill installer: installs skills (evidence: `cli/src/mcp.ts`)
- Researcher → Interactive catalog: browses skills (evidence: `README.md`)
- Researcher → Question formation: forms questions (evidence: `README.md`)
- Researcher → Literature search: searches literature (evidence: `README.md`)
- Researcher → Research lookup: finds research (evidence: `README.md`)
- Researcher → Study design: plans studies (evidence: `README.md`)
- Researcher → Data analysis: analyzes data (evidence: `README.md`)
- Researcher → Bioinformatics tools: analyzes data (evidence: `README.md`)
- Researcher → Molecular analysis: analyzes data (evidence: `README.md`)
- Researcher → Clinical methods: analyzes evidence (evidence: `README.md`)
- Researcher → Scientific writing: writes research (evidence: `README.md`)
- Researcher → Scientific visualization: visualizes results (evidence: `README.md`)
- Researcher → Citation verification: checks citations (evidence: `README.md`)
- Researcher → Peer review: reviews work (evidence: `README.md`)
