# sangrokjung/nlm-research architecture

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

- Interactive diagram: https://gitdiagram.com/sangrokjung/nlm-research
- Repository: https://github.com/sangrokjung/nlm-research

## Overview

NLM Research is a Claude Code research workflow: a user starts a run, the workflow searches YouTube, collects selected videos in NotebookLM, analyzes the sources, and exports results. The README also documents web research and several output formats. No source excerpts were provided, so relationships below rely on README statements; command paths identify the documented workflow stages, not inspected implementations.

Main entry points: [`.claude/commands/research/analyze.md`](https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/analyze.md) (Analyze sources), [`.claude/commands/research/run.md`](https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/run.md) (Run workflow), [`.claude/commands/research/search.md`](https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/search.md) (Search videos), [`.claude/commands/research/collect.md`](https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/collect.md) (Collect sources)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Research workflow"]
  node_run["Run workflow<br/>[run.md]"]
  node_search["Search videos<br/>[search.md]"]
  node_collect["Collect sources<br/>[collect.md]"]
  node_analyze["Analyze sources<br/>[analyze.md]"]
  node_export["Export results<br/>[export.md]"]
end

subgraph group_capabilities["Research capabilities"]
  node_webresearch["Web research<br/>[analyze.md]"]
  node_qa["AI Q&amp;A<br/>[analyze.md]"]
end

subgraph group_outputs["Generated outputs"]
  node_podcast["AI podcast<br/>[analyze.md]"]
  node_report["Briefing report<br/>[analyze.md]"]
  node_slides["Presentation slides<br/>[analyze.md]"]
  node_mindmap["Mind map<br/>[analyze.md]"]
  node_quiz["Learning quiz<br/>[analyze.md]"]
end

node_user(("Researcher"))
node_youtube(("YouTube"))
node_notebooklm(("NotebookLM"))
node_filesystem[("Local files")]

node_user -->|"starts"| node_run
node_run -->|"runs workflow"| node_search
node_run -->|"runs workflow"| node_collect
node_run -->|"runs workflow"| node_analyze
node_run -->|"runs workflow"| node_export
node_search -->|"finds videos"| node_youtube
node_collect -->|"adds videos"| node_notebooklm
node_analyze -->|"analyzes sources"| node_notebooklm
node_analyze -->|"finds sources"| node_webresearch
node_analyze -->|"answers questions"| node_qa
node_analyze -->|"creates podcast"| node_podcast
node_analyze -->|"creates report"| node_report
node_analyze -->|"creates slides"| node_slides
node_analyze -->|"creates mind map"| node_mindmap
node_analyze -->|"creates quiz"| node_quiz
node_export -->|"saves files"| node_filesystem

click node_run "https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/run.md"
click node_search "https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/search.md"
click node_collect "https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/collect.md"
click node_analyze "https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/analyze.md"
click node_export "https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/export.md"
click node_webresearch "https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/analyze.md"
click node_qa "https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/analyze.md"
click node_podcast "https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/analyze.md"
click node_report "https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/analyze.md"
click node_slides "https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/analyze.md"
click node_mindmap "https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/analyze.md"
click node_quiz "https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/analyze.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_run,node_search,node_collect,node_analyze,node_export toneBlue
class node_webresearch,node_qa,node_filesystem toneAmber
class node_podcast,node_report,node_slides,node_mindmap,node_quiz toneMint
class node_user,node_youtube,node_notebooklm toneIndigo
```

## Components

### Research workflow

- [Run workflow](https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/run.md): `.claude/commands/research/run.md`
- [Search videos](https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/search.md): `.claude/commands/research/search.md`
- [Collect sources](https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/collect.md): `.claude/commands/research/collect.md`
- [Analyze sources](https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/analyze.md): `.claude/commands/research/analyze.md`
- [Export results](https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/export.md): `.claude/commands/research/export.md`

### Research capabilities

- [Web research](https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/analyze.md): `.claude/commands/research/analyze.md`
- [AI Q&A](https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/analyze.md): `.claude/commands/research/analyze.md`

### Generated outputs

- [AI podcast](https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/analyze.md): `.claude/commands/research/analyze.md`
- [Briefing report](https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/analyze.md): `.claude/commands/research/analyze.md`
- [Presentation slides](https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/analyze.md): `.claude/commands/research/analyze.md`
- [Mind map](https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/analyze.md): `.claude/commands/research/analyze.md`
- [Learning quiz](https://github.com/sangrokjung/nlm-research/blob/main/.claude/commands/research/analyze.md): `.claude/commands/research/analyze.md`

### Other components

- **Researcher**
- **YouTube**
- **NotebookLM**
- **Local files**

## Connections

- Researcher → Run workflow: starts (evidence: `README.md`)
- Run workflow → Search videos: runs workflow (evidence: `README.md`)
- Run workflow → Collect sources: runs workflow (evidence: `README.md`)
- Run workflow → Analyze sources: runs workflow (evidence: `README.md`)
- Run workflow → Export results: runs workflow (evidence: `README.md`)
- Search videos → YouTube: finds videos (evidence: `README.md`)
- Collect sources → NotebookLM: adds videos (evidence: `README.md`)
- Analyze sources → NotebookLM: analyzes sources (evidence: `README.md`)
- Analyze sources → Web research: finds sources (evidence: `README.md`)
- Analyze sources → AI Q&A: answers questions (evidence: `README.md`)
- Analyze sources → AI podcast: creates podcast (evidence: `README.md`)
- Analyze sources → Briefing report: creates report (evidence: `README.md`)
- Analyze sources → Presentation slides: creates slides (evidence: `README.md`)
- Analyze sources → Mind map: creates mind map (evidence: `README.md`)
- Analyze sources → Learning quiz: creates quiz (evidence: `README.md`)
- Export results → Local files: saves files (evidence: `README.md`)
