# nishanth456/agentic-resume-tailor architecture

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

- Interactive diagram: https://gitdiagram.com/nishanth456/agentic-resume-tailor
- Repository: https://github.com/nishanth456/agentic-resume-tailor

## Overview

Resume Tailor Agent accepts a resume and job description, extracts and scores ATS keywords, then produces tailored resume guidance using a fallback workflow or Gemini/ADK generation. It exposes both a FastAPI/static-browser path and a Streamlit path; the Streamlit UI directly runs analysis before orchestration. The README also documents resume upload, matched/missing keyword review, and Gemini-generated content. The MCP tools and workflow are represented from their excerpts; the API and browser flow are separate from the Streamlit workflow.

Main entry points: [`main.py`](https://github.com/nishanth456/agentic-resume-tailor/blob/main/main.py) (Analysis API), [`src/agents/adk_resume_workflow.py`](https://github.com/nishanth456/agentic-resume-tailor/blob/main/src/agents/adk_resume_workflow.py) (Workflow orchestrator), [`src/ui/app.py`](https://github.com/nishanth456/agentic-resume-tailor/blob/main/src/ui/app.py) (Streamlit interface), [`src/services/gemini_service.py`](https://github.com/nishanth456/agentic-resume-tailor/blob/main/src/services/gemini_service.py) (Gemini generation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interfaces["User interfaces"]
  node_streamlit_ui["Streamlit interface<br/>[app.py]"]
  node_web_page["Browser page<br/>[index.html]"]
  node_web_script["Browser interaction<br/>[script.js]"]
  node_fastapi["Analysis API<br/>[main.py]"]
end

subgraph group_analysis["Resume analysis"]
  node_resume_input["Resume text extraction<br/>[app.py]"]
  node_ats_analysis["ATS keyword analysis"]
  node_tailoring_prompt["Tailoring prompt builder"]
end

subgraph group_workflow["Tailoring workflow"]
  node_orchestrator["Workflow orchestrator"]
  node_analysis_stage["ADK analysis stage"]
  node_synthesis_stage["ADK synthesis stage"]
end

subgraph group_services["AI and tools"]
  node_mcp_tools["MCP extraction tools<br/>[mcp_server.py]"]
  node_gemini["Gemini generation<br/>[gemini_service.py]"]
  node_google_adk["Google ADK runtime"]
end

node_user(("Resume user"))
node_browser(("Web browser"))
node_google_gemini(("Google Gemini"))

node_user -->|"submits inputs"| node_streamlit_ui
node_streamlit_ui -->|"reads upload"| node_resume_input
node_streamlit_ui -->|"requests analysis"| node_ats_analysis
node_streamlit_ui -->|"runs workflow"| node_orchestrator
node_user -->|"uses app"| node_browser
node_browser -.->|"loads page"| node_web_page
node_web_page -.->|"loads interaction"| node_web_script
node_web_script -->|"posts resume"| node_fastapi
node_fastapi -->|"extracts text"| node_resume_input
node_fastapi -->|"requests analysis"| node_ats_analysis
node_fastapi -->|"builds prompt"| node_tailoring_prompt
node_fastapi -->|"generates content"| node_gemini
node_ats_analysis -->|"extracts keywords"| node_gemini
node_orchestrator -->|"extracts context"| node_mcp_tools
node_orchestrator -->|"configures sequence"| node_analysis_stage
node_orchestrator -->|"configures sequence"| node_synthesis_stage
node_orchestrator -->|"runs agents"| node_google_adk
node_orchestrator -->|"generates fallback"| node_gemini
node_gemini -->|"requests generation"| node_google_gemini
node_fastapi -->|"serves static files"| node_web_page

click node_streamlit_ui "https://github.com/nishanth456/agentic-resume-tailor/blob/main/src/ui/app.py"
click node_web_page "https://github.com/nishanth456/agentic-resume-tailor/blob/main/static/index.html"
click node_web_script "https://github.com/nishanth456/agentic-resume-tailor/blob/main/static/script.js"
click node_fastapi "https://github.com/nishanth456/agentic-resume-tailor/blob/main/main.py"
click node_resume_input "https://github.com/nishanth456/agentic-resume-tailor/blob/main/src/ui/app.py"
click node_ats_analysis "https://github.com/nishanth456/agentic-resume-tailor/blob/main/src/agents/resume_tailor_agent.py"
click node_tailoring_prompt "https://github.com/nishanth456/agentic-resume-tailor/blob/main/src/agents/resume_tailor_agent.py"
click node_orchestrator "https://github.com/nishanth456/agentic-resume-tailor/blob/main/src/agents/adk_resume_workflow.py"
click node_analysis_stage "https://github.com/nishanth456/agentic-resume-tailor/blob/main/src/agents/adk_resume_workflow.py"
click node_synthesis_stage "https://github.com/nishanth456/agentic-resume-tailor/blob/main/src/agents/adk_resume_workflow.py"
click node_mcp_tools "https://github.com/nishanth456/agentic-resume-tailor/blob/main/src/services/mcp_server.py"
click node_gemini "https://github.com/nishanth456/agentic-resume-tailor/blob/main/src/services/gemini_service.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_streamlit_ui,node_web_page,node_web_script,node_fastapi,node_user,node_browser toneBlue
class node_resume_input,node_ats_analysis,node_tailoring_prompt toneAmber
class node_orchestrator,node_analysis_stage,node_synthesis_stage toneMint
class node_mcp_tools,node_gemini,node_google_adk toneRose
class node_google_gemini toneIndigo
```

## Components

### User interfaces

- [Streamlit interface](https://github.com/nishanth456/agentic-resume-tailor/blob/main/src/ui/app.py): `src/ui/app.py`
- [Browser page](https://github.com/nishanth456/agentic-resume-tailor/blob/main/static/index.html): `static/index.html`
- [Browser interaction](https://github.com/nishanth456/agentic-resume-tailor/blob/main/static/script.js): `static/script.js`
- [Analysis API](https://github.com/nishanth456/agentic-resume-tailor/blob/main/main.py): `main.py`

### Resume analysis

- [Resume text extraction](https://github.com/nishanth456/agentic-resume-tailor/blob/main/src/ui/app.py): `src/ui/app.py`
- [ATS keyword analysis](https://github.com/nishanth456/agentic-resume-tailor/blob/main/src/agents/resume_tailor_agent.py): `src/agents/resume_tailor_agent.py`
- [Tailoring prompt builder](https://github.com/nishanth456/agentic-resume-tailor/blob/main/src/agents/resume_tailor_agent.py): `src/agents/resume_tailor_agent.py`

### Tailoring workflow

- [Workflow orchestrator](https://github.com/nishanth456/agentic-resume-tailor/blob/main/src/agents/adk_resume_workflow.py): `src/agents/adk_resume_workflow.py`
- [ADK analysis stage](https://github.com/nishanth456/agentic-resume-tailor/blob/main/src/agents/adk_resume_workflow.py): `src/agents/adk_resume_workflow.py`
- [ADK synthesis stage](https://github.com/nishanth456/agentic-resume-tailor/blob/main/src/agents/adk_resume_workflow.py): `src/agents/adk_resume_workflow.py`

### AI and tools

- [MCP extraction tools](https://github.com/nishanth456/agentic-resume-tailor/blob/main/src/services/mcp_server.py): `src/services/mcp_server.py`
- [Gemini generation](https://github.com/nishanth456/agentic-resume-tailor/blob/main/src/services/gemini_service.py): `src/services/gemini_service.py`
- **Google ADK runtime**

### Other components

- **Resume user**
- **Web browser**
- **Google Gemini**

## Connections

- Resume user → Streamlit interface: submits inputs (evidence: `src/ui/app.py`)
- Streamlit interface → Resume text extraction: reads upload (evidence: `src/ui/app.py`)
- Streamlit interface → ATS keyword analysis: requests analysis (evidence: `src/ui/app.py`)
- Streamlit interface → Workflow orchestrator: runs workflow (evidence: `src/ui/app.py`)
- Resume user → Web browser: uses app
- Web browser → Browser page: loads page
- Browser page → Browser interaction: loads interaction
- Browser interaction → Analysis API: posts resume (evidence: `static/script.js`)
- Analysis API → Resume text extraction: extracts text (evidence: `main.py`)
- Analysis API → ATS keyword analysis: requests analysis (evidence: `main.py`)
- Analysis API → Tailoring prompt builder: builds prompt (evidence: `main.py`)
- Analysis API → Gemini generation: generates content (evidence: `main.py`)
- ATS keyword analysis → Gemini generation: extracts keywords (evidence: `src/agents/resume_tailor_agent.py`)
- Workflow orchestrator → MCP extraction tools: extracts context (evidence: `src/agents/adk_resume_workflow.py`)
- Workflow orchestrator → ADK analysis stage: configures sequence (evidence: `src/agents/adk_resume_workflow.py`)
- Workflow orchestrator → ADK synthesis stage: configures sequence (evidence: `src/agents/adk_resume_workflow.py`)
- Workflow orchestrator → Google ADK runtime: runs agents (evidence: `src/agents/adk_resume_workflow.py`)
- Workflow orchestrator → Gemini generation: generates fallback (evidence: `src/agents/adk_resume_workflow.py`)
- Gemini generation → Google Gemini: requests generation (evidence: `src/services/gemini_service.py`)
- Analysis API → Browser page: serves static files (evidence: `main.py`)
