# sagarmarthandan/llm-cv architecture

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

- Interactive diagram: https://gitdiagram.com/sagarmarthandan/llm-cv
- Repository: https://github.com/sagarmarthandan/llm-cv

## Overview

LLM-CV turns a job description into a tailored application package through a two-stage workflow: first it archives the JD, scores ATS fit, and ranks projects; then it generates a resume and cover letter, renders PDFs, audits them, and records/syncs the application. The map also preserves the documented URL-fetch, duplicate-check, application-tracking, and Obsidian capabilities. Some links reflect README-level orchestration rather than inspected call sites; those use the README as evidence.

Main entry points: [`run_pipeline.sh`](https://github.com/sagarmarthandan/llm-cv/blob/main/run_pipeline.sh) (Pipeline coordinator), [`renderers/resume.py`](https://github.com/sagarmarthandan/llm-cv/blob/main/renderers/resume.py) (Resume rendering), [`renderers/resume_common.py`](https://github.com/sagarmarthandan/llm-cv/blob/main/renderers/resume_common.py) (Resume layout helpers), [`renderers/cover_letter.py`](https://github.com/sagarmarthandan/llm-cv/blob/main/renderers/cover_letter.py) (Cover letter rendering)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_intake["Intake and scoring"]
  node_launcher["Pipeline coordinator<br/>[run_pipeline.sh]"]
  node_jd_fetch["JD fetching<br/>[api_pipeline.py]"]
  node_step1["ATS and JD analysis"]
  node_project_select["Project selection"]
end

subgraph group_generation["Application generation"]
  node_resume_writer["Resume tailoring"]
  node_letter_writer["Cover letter writing<br/>[03_cover_letter.md]"]
  node_resume_render["Resume rendering<br/>[resume.py]"]
  node_resume_common["Resume layout helpers<br/>[resume_common.py]"]
  node_resume_latex["LaTeX resume styles<br/>[resume_latex_us.py]"]
  node_resume_german["German resume style"]
  node_resume_fallback["ReportLab resume styles"]
  node_resume_fallback_de["German ReportLab style"]
  node_cover_render["Cover letter rendering<br/>[cover_letter.py]"]
  node_cover_latex["LaTeX cover letter"]
  node_cover_fallback["ReportLab cover letter"]
end

subgraph group_quality["PDF quality"]
  node_pdf_audit["Parseability audit"]
  node_parse_report["Parseability report"]
  node_watermark["Watermark check"]
end

subgraph group_records["Application records"]
  node_duplicate["Duplicate check"]
  node_tracker[("Application tracking")]
  node_outcomes[("Outcome tracking<br/>[track_outcomes.py]")]
  node_obsidian_sync["Obsidian sync"]
  node_folder_sort["Application folder sorting"]
  node_config["Shared configuration<br/>[config.py]"]
end

node_applicant(("Applicant"))
node_tinyfish["TinyFish"]
node_omp["OMP harness"]

node_applicant -->|"provides job"| node_launcher
node_launcher -->|"fetches URL"| node_jd_fetch
node_jd_fetch -->|"requests JD"| node_tinyfish
node_launcher -->|"launches calls"| node_omp
node_omp -->|"runs analysis"| node_step1
node_step1 -->|"ranks projects"| node_project_select
node_omp -->|"runs step two"| node_resume_writer
node_omp -->|"runs step three"| node_letter_writer
node_launcher -->|"compiles resume"| node_resume_render
node_launcher -->|"compiles letter"| node_cover_render
node_resume_render -->|"dispatches style"| node_resume_latex
node_resume_render -->|"dispatches style"| node_resume_german
node_resume_render -->|"dispatches style"| node_resume_fallback
node_resume_render -->|"dispatches style"| node_resume_fallback_de
node_resume_latex -->|"uses helpers"| node_resume_common
node_resume_german -->|"uses helpers"| node_resume_common
node_resume_fallback -->|"uses helpers"| node_resume_common
node_resume_fallback_de -->|"uses helpers"| node_resume_common
node_cover_render -->|"selects renderer"| node_cover_latex
node_cover_render -->|"selects renderer"| node_cover_fallback
node_launcher -->|"audits resume"| node_pdf_audit
node_pdf_audit -->|"renders report"| node_parse_report
node_launcher -->|"checks output"| node_watermark
node_launcher -.->|"checks duplicates"| node_duplicate
node_launcher -->|"records application"| node_tracker
node_tracker -.->|"tracks outcomes"| node_outcomes
node_launcher -->|"syncs application"| node_obsidian_sync
node_obsidian_sync -->|"sorts folders"| node_folder_sort
node_duplicate -->|"reads settings"| node_config
node_obsidian_sync -->|"reads settings"| node_config

click node_launcher "https://github.com/sagarmarthandan/llm-cv/blob/main/run_pipeline.sh"
click node_jd_fetch "https://github.com/sagarmarthandan/llm-cv/blob/main/api_pipeline.py"
click node_step1 "https://github.com/sagarmarthandan/llm-cv/blob/main/01_ats_and_jd_archival.md"
click node_project_select "https://github.com/sagarmarthandan/llm-cv/blob/main/extract_projects.py"
click node_resume_writer "https://github.com/sagarmarthandan/llm-cv/blob/main/02_resume_and_visual_audit.md"
click node_letter_writer "https://github.com/sagarmarthandan/llm-cv/blob/main/03_cover_letter.md"
click node_resume_render "https://github.com/sagarmarthandan/llm-cv/blob/main/renderers/resume.py"
click node_resume_common "https://github.com/sagarmarthandan/llm-cv/blob/main/renderers/resume_common.py"
click node_resume_latex "https://github.com/sagarmarthandan/llm-cv/blob/main/renderers/resume_latex_us.py"
click node_resume_german "https://github.com/sagarmarthandan/llm-cv/blob/main/renderers/resume_latex_german.py"
click node_resume_fallback "https://github.com/sagarmarthandan/llm-cv/blob/main/renderers/resume_reportfallback_us.py"
click node_resume_fallback_de "https://github.com/sagarmarthandan/llm-cv/blob/main/renderers/resume_reportfallback_german.py"
click node_cover_render "https://github.com/sagarmarthandan/llm-cv/blob/main/renderers/cover_letter.py"
click node_cover_latex "https://github.com/sagarmarthandan/llm-cv/blob/main/renderers/cover_letter_latex.py"
click node_cover_fallback "https://github.com/sagarmarthandan/llm-cv/blob/main/renderers/cover_letter_reportfallback.py"
click node_pdf_audit "https://github.com/sagarmarthandan/llm-cv/blob/main/resume_parseability.py"
click node_parse_report "https://github.com/sagarmarthandan/llm-cv/blob/main/renderers/parseability_report.py"
click node_watermark "https://github.com/sagarmarthandan/llm-cv/blob/main/check_watermarks.py"
click node_duplicate "https://github.com/sagarmarthandan/llm-cv/blob/main/check_duplicate_application.py"
click node_tracker "https://github.com/sagarmarthandan/llm-cv/blob/main/track_applications.py"
click node_outcomes "https://github.com/sagarmarthandan/llm-cv/blob/main/track_outcomes.py"
click node_obsidian_sync "https://github.com/sagarmarthandan/llm-cv/blob/main/obsidian_sync_core.py"
click node_folder_sort "https://github.com/sagarmarthandan/llm-cv/blob/main/obsidian_folder_sort.py"
click node_config "https://github.com/sagarmarthandan/llm-cv/blob/main/config.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_launcher,node_jd_fetch,node_step1,node_project_select toneBlue
class node_resume_writer,node_letter_writer,node_resume_render,node_resume_common,node_resume_latex,node_resume_german,node_resume_fallback,node_resume_fallback_de,node_cover_render,node_cover_latex,node_cover_fallback toneAmber
class node_pdf_audit,node_parse_report,node_watermark toneMint
class node_duplicate,node_tracker,node_outcomes,node_obsidian_sync,node_folder_sort,node_config toneRose
class node_applicant,node_tinyfish,node_omp toneIndigo
```

## Components

### Intake and scoring

- [Pipeline coordinator](https://github.com/sagarmarthandan/llm-cv/blob/main/run_pipeline.sh): `run_pipeline.sh`
- [JD fetching](https://github.com/sagarmarthandan/llm-cv/blob/main/api_pipeline.py): `api_pipeline.py`
- [ATS and JD analysis](https://github.com/sagarmarthandan/llm-cv/blob/main/01_ats_and_jd_archival.md): `01_ats_and_jd_archival.md`
- [Project selection](https://github.com/sagarmarthandan/llm-cv/blob/main/extract_projects.py): `extract_projects.py`

### Application generation

- [Resume tailoring](https://github.com/sagarmarthandan/llm-cv/blob/main/02_resume_and_visual_audit.md): `02_resume_and_visual_audit.md`
- [Cover letter writing](https://github.com/sagarmarthandan/llm-cv/blob/main/03_cover_letter.md): `03_cover_letter.md`
- [Resume rendering](https://github.com/sagarmarthandan/llm-cv/blob/main/renderers/resume.py): `renderers/resume.py`
- [Resume layout helpers](https://github.com/sagarmarthandan/llm-cv/blob/main/renderers/resume_common.py): `renderers/resume_common.py`
- [LaTeX resume styles](https://github.com/sagarmarthandan/llm-cv/blob/main/renderers/resume_latex_us.py): `renderers/resume_latex_us.py`
- [German resume style](https://github.com/sagarmarthandan/llm-cv/blob/main/renderers/resume_latex_german.py): `renderers/resume_latex_german.py`
- [ReportLab resume styles](https://github.com/sagarmarthandan/llm-cv/blob/main/renderers/resume_reportfallback_us.py): `renderers/resume_reportfallback_us.py`
- [German ReportLab style](https://github.com/sagarmarthandan/llm-cv/blob/main/renderers/resume_reportfallback_german.py): `renderers/resume_reportfallback_german.py`
- [Cover letter rendering](https://github.com/sagarmarthandan/llm-cv/blob/main/renderers/cover_letter.py): `renderers/cover_letter.py`
- [LaTeX cover letter](https://github.com/sagarmarthandan/llm-cv/blob/main/renderers/cover_letter_latex.py): `renderers/cover_letter_latex.py`
- [ReportLab cover letter](https://github.com/sagarmarthandan/llm-cv/blob/main/renderers/cover_letter_reportfallback.py): `renderers/cover_letter_reportfallback.py`

### PDF quality

- [Parseability audit](https://github.com/sagarmarthandan/llm-cv/blob/main/resume_parseability.py): `resume_parseability.py`
- [Parseability report](https://github.com/sagarmarthandan/llm-cv/blob/main/renderers/parseability_report.py): `renderers/parseability_report.py`
- [Watermark check](https://github.com/sagarmarthandan/llm-cv/blob/main/check_watermarks.py): `check_watermarks.py`

### Application records

- [Duplicate check](https://github.com/sagarmarthandan/llm-cv/blob/main/check_duplicate_application.py): `check_duplicate_application.py`
- [Application tracking](https://github.com/sagarmarthandan/llm-cv/blob/main/track_applications.py): `track_applications.py`
- [Outcome tracking](https://github.com/sagarmarthandan/llm-cv/blob/main/track_outcomes.py): `track_outcomes.py`
- [Obsidian sync](https://github.com/sagarmarthandan/llm-cv/blob/main/obsidian_sync_core.py): `obsidian_sync_core.py`
- [Application folder sorting](https://github.com/sagarmarthandan/llm-cv/blob/main/obsidian_folder_sort.py): `obsidian_folder_sort.py`
- [Shared configuration](https://github.com/sagarmarthandan/llm-cv/blob/main/config.py): `config.py`

### Other components

- **Applicant**
- **TinyFish**
- **OMP harness**

## Connections

- Applicant → Pipeline coordinator: provides job (evidence: `README.md`)
- Pipeline coordinator → JD fetching: fetches URL (evidence: `README.md`)
- JD fetching → TinyFish: requests JD (evidence: `README.md`)
- Pipeline coordinator → OMP harness: launches calls (evidence: `README.md`)
- OMP harness → ATS and JD analysis: runs analysis (evidence: `README.md`)
- ATS and JD analysis → Project selection: ranks projects (evidence: `README.md`)
- OMP harness → Resume tailoring: runs step two (evidence: `README.md`)
- OMP harness → Cover letter writing: runs step three (evidence: `README.md`)
- Pipeline coordinator → Resume rendering: compiles resume (evidence: `README.md`)
- Pipeline coordinator → Cover letter rendering: compiles letter (evidence: `README.md`)
- Resume rendering → LaTeX resume styles: dispatches style (evidence: `renderers/resume.py`)
- Resume rendering → German resume style: dispatches style (evidence: `renderers/resume.py`)
- Resume rendering → ReportLab resume styles: dispatches style (evidence: `renderers/resume.py`)
- Resume rendering → German ReportLab style: dispatches style (evidence: `renderers/resume.py`)
- LaTeX resume styles → Resume layout helpers: uses helpers (evidence: `renderers/resume_latex_us.py`)
- German resume style → Resume layout helpers: uses helpers (evidence: `renderers/resume_latex_german.py`)
- ReportLab resume styles → Resume layout helpers: uses helpers (evidence: `renderers/resume_reportfallback_us.py`)
- German ReportLab style → Resume layout helpers: uses helpers (evidence: `renderers/resume_reportfallback_german.py`)
- Cover letter rendering → LaTeX cover letter: selects renderer (evidence: `renderers/cover_letter.py`)
- Cover letter rendering → ReportLab cover letter: selects renderer (evidence: `renderers/cover_letter.py`)
- Pipeline coordinator → Parseability audit: audits resume (evidence: `README.md`)
- Parseability audit → Parseability report: renders report (evidence: `README.md`)
- Pipeline coordinator → Watermark check: checks output (evidence: `README.md`)
- Pipeline coordinator → Duplicate check: checks duplicates
- Pipeline coordinator → Application tracking: records application (evidence: `README.md`)
- Application tracking → Outcome tracking: tracks outcomes
- Pipeline coordinator → Obsidian sync: syncs application (evidence: `README.md`)
- Obsidian sync → Application folder sorting: sorts folders (evidence: `obsidian_sync_core.py`)
- Duplicate check → Shared configuration: reads settings (evidence: `check_duplicate_application.py`)
- Obsidian sync → Shared configuration: reads settings (evidence: `obsidian_sync_core.py`)
