# devarasasank31/kasparro-assessment architecture

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

- Interactive diagram: https://gitdiagram.com/devarasasank31/kasparro-assessment
- Repository: https://github.com/devarasasank31/kasparro-assessment

## Overview

This is a CLI resume-screening and ranking application. A user supplies a resume directory; the CLI runs an isolated batch pipeline that parses and extracts candidate data, applies deterministic Python-plus-AI eligibility, optionally enriches eligible candidates with an LLM and GitHub data, scores and ranks them, then writes explainable results and can print a report. The README establishes the domain-stage order; sampled pipeline excerpts and the SOURCE INDEX support its orchestration links. Some implementation details were not sampled, so those links are limited to documented stages and indexed references.

Main entry points: [`src/resume_screening/pipeline.py`](https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/pipeline.py) (Batch orchestrator), [`src/resume_screening/cli.py`](https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/cli.py) (CLI commands), [`src/resume_screening/parser.py`](https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/parser.py) (Resume ingestion), [`src/resume_screening/eligibility.py`](https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/eligibility.py) (Hard eligibility)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["CLI entry"]
  node_main["Application entry<br/>[main.py]"]
  node_cli["CLI commands<br/>[cli.py]"]
end

subgraph group_processing["Resume processing"]
  node_pipeline["Batch orchestrator<br/>[pipeline.py]"]
  node_parser["Resume ingestion<br/>[parser.py]"]
  node_extractor["Candidate extraction<br/>[extractor.py]"]
  node_eligibility["Hard eligibility<br/>[eligibility.py]"]
end

subgraph group_enrichment["Optional enrichment"]
  node_llm["LLM analysis<br/>[llm.py]"]
  node_github["GitHub enrichment<br/>[github.py]"]
end

subgraph group_results["Scoring and results"]
  node_scoring["Explainable scoring<br/>[scoring.py]"]
  node_ranking["Ranking and statistics<br/>[ranking.py]"]
  node_output["Result assembly<br/>[output.py]"]
  node_results_file["Results JSON<br/>[results.json]"]
  node_report["Terminal report<br/>[report.py]"]
end

subgraph group_shared["Shared services"]
  node_models["Candidate models<br/>[models.py]"]
  node_cache[("Run cache<br/>[cache.py]")]
  node_config["Runtime settings<br/>[config.py]"]
  node_skills["Skill vocabulary<br/>[skills.py]"]
  node_utils["Text and logging<br/>[utils.py]"]
end

node_reviewer(("Reviewer"))
node_llm_service(("LLM provider"))
node_github_service(("GitHub REST API"))

node_reviewer -->|"runs"| node_cli
node_main -->|"starts"| node_cli
node_cli -->|"runs batch"| node_pipeline
node_cli -->|"loads settings"| node_config
node_cli -->|"prints report"| node_report
node_pipeline -->|"ingests resumes"| node_parser
node_pipeline -->|"extracts candidates"| node_extractor
node_pipeline -->|"filters candidates"| node_eligibility
node_pipeline -->|"requests analysis"| node_llm
node_llm -->|"sends prompts"| node_llm_service
node_pipeline -->|"enriches candidates"| node_github
node_github -->|"requests profile data"| node_github_service
node_pipeline -->|"scores candidates"| node_scoring
node_pipeline -->|"ranks candidates"| node_ranking
node_pipeline -->|"assembles results"| node_output
node_output -->|"writes JSON"| node_results_file
node_pipeline -->|"uses cache"| node_cache
node_pipeline -->|"uses settings"| node_config
node_eligibility -->|"matches skills"| node_skills
node_pipeline -->|"validates analysis"| node_models
node_parser -->|"normalizes text"| node_utils

click node_main "https://github.com/devarasasank31/kasparro-assessment/blob/main/main.py"
click node_cli "https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/cli.py"
click node_pipeline "https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/pipeline.py"
click node_parser "https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/parser.py"
click node_extractor "https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/extractor.py"
click node_eligibility "https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/eligibility.py"
click node_models "https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/models.py"
click node_llm "https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/llm.py"
click node_github "https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/github.py"
click node_scoring "https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/scoring.py"
click node_ranking "https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/ranking.py"
click node_output "https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/output.py"
click node_results_file "https://github.com/devarasasank31/kasparro-assessment/blob/main/output/results.json"
click node_report "https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/report.py"
click node_cache "https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/cache.py"
click node_config "https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/config.py"
click node_skills "https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/skills.py"
click node_utils "https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/utils.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_main,node_cli,node_reviewer toneBlue
class node_pipeline,node_parser,node_extractor,node_eligibility toneAmber
class node_llm,node_github,node_github_service toneMint
class node_scoring,node_ranking,node_output,node_results_file,node_report toneRose
class node_models,node_cache,node_config,node_skills,node_utils,node_llm_service toneIndigo
```

## Components

### CLI entry

- [Application entry](https://github.com/devarasasank31/kasparro-assessment/blob/main/main.py): `main.py`
- [CLI commands](https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/cli.py): `src/resume_screening/cli.py`

### Resume processing

- [Batch orchestrator](https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/pipeline.py): `src/resume_screening/pipeline.py`
- [Resume ingestion](https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/parser.py): `src/resume_screening/parser.py`
- [Candidate extraction](https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/extractor.py): `src/resume_screening/extractor.py`
- [Hard eligibility](https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/eligibility.py): `src/resume_screening/eligibility.py`

### Optional enrichment

- [LLM analysis](https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/llm.py): `src/resume_screening/llm.py`
- [GitHub enrichment](https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/github.py): `src/resume_screening/github.py`

### Scoring and results

- [Explainable scoring](https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/scoring.py): `src/resume_screening/scoring.py`
- [Ranking and statistics](https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/ranking.py): `src/resume_screening/ranking.py`
- [Result assembly](https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/output.py): `src/resume_screening/output.py`
- [Results JSON](https://github.com/devarasasank31/kasparro-assessment/blob/main/output/results.json): `output/results.json`
- [Terminal report](https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/report.py): `src/resume_screening/report.py`

### Shared services

- [Candidate models](https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/models.py): `src/resume_screening/models.py`
- [Run cache](https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/cache.py): `src/resume_screening/cache.py`
- [Runtime settings](https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/config.py): `src/resume_screening/config.py`
- [Skill vocabulary](https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/skills.py): `src/resume_screening/skills.py`
- [Text and logging](https://github.com/devarasasank31/kasparro-assessment/blob/main/src/resume_screening/utils.py): `src/resume_screening/utils.py`

### Other components

- **Reviewer**
- **LLM provider**
- **GitHub REST API**

## Connections

- Reviewer → CLI commands: runs (evidence: `README.md`)
- Application entry → CLI commands: starts (evidence: `main.py`)
- CLI commands → Batch orchestrator: runs batch (evidence: `src/resume_screening/cli.py`)
- CLI commands → Runtime settings: loads settings (evidence: `src/resume_screening/cli.py`)
- CLI commands → Terminal report: prints report (evidence: `src/resume_screening/cli.py`)
- Batch orchestrator → Resume ingestion: ingests resumes (evidence: `README.md`)
- Batch orchestrator → Candidate extraction: extracts candidates (evidence: `README.md`)
- Batch orchestrator → Hard eligibility: filters candidates (evidence: `README.md`)
- Batch orchestrator → LLM analysis: requests analysis (evidence: `src/resume_screening/pipeline.py`)
- LLM analysis → LLM provider: sends prompts (evidence: `src/resume_screening/llm.py`)
- Batch orchestrator → GitHub enrichment: enriches candidates (evidence: `README.md`)
- GitHub enrichment → GitHub REST API: requests profile data (evidence: `README.md`)
- Batch orchestrator → Explainable scoring: scores candidates (evidence: `src/resume_screening/pipeline.py`)
- Batch orchestrator → Ranking and statistics: ranks candidates (evidence: `README.md`)
- Batch orchestrator → Result assembly: assembles results (evidence: `src/resume_screening/pipeline.py`)
- Result assembly → Results JSON: writes JSON (evidence: `README.md`)
- Batch orchestrator → Run cache: uses cache (evidence: `src/resume_screening/pipeline.py`)
- Batch orchestrator → Runtime settings: uses settings (evidence: `src/resume_screening/pipeline.py`)
- Hard eligibility → Skill vocabulary: matches skills (evidence: `src/resume_screening/eligibility.py`)
- Batch orchestrator → Candidate models: validates analysis (evidence: `src/resume_screening/pipeline.py`)
- Resume ingestion → Text and logging: normalizes text (evidence: `src/resume_screening/parser.py`)
