# sudharsan-ak/resume-tailoring-workflow architecture

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

- Interactive diagram: https://gitdiagram.com/sudharsan-ak/resume-tailoring-workflow
- Repository: https://github.com/sudharsan-ak/resume-tailoring-workflow

## Overview

This repository is a privacy-first, AI-guided resume-tailoring workflow: a user supplies a resume and job description, the assistant evaluates fit, grounds tailoring in local evidence, builds a role-specific LaTeX PDF, and can support job search and outreach. The playbook and local files define the main workflow; the optional MCP server exposes selected operations as tools. The graph includes documented stages whose implementation was not sampled; edges are limited to README statements and visible tool registrations/calls, so unsampled workflow transitions are not asserted.

Main entry points: [`mcp-server/src/tools/public/resumeBuilder.ts`](https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/mcp-server/src/tools/public/resumeBuilder.ts) (Resume PDF builder), [`mcp-server/src/index.ts`](https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/mcp-server/src/index.ts) (MCP tool server), [`mcp-server/src/tools/public/rebuildIndex.ts`](https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/mcp-server/src/tools/public/rebuildIndex.ts) (Evidence index), [`mcp-server/src/tools/public/processJd.ts`](https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/mcp-server/src/tools/public/processJd.ts) (JD fetch and snapshot)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Guided workflow"]
  node_bootstrap["Workflow routing<br/>[CHAT_BOOTSTRAP.md]"]
  node_playbooks["Stage playbooks"]
  node_job_input["Job description"]
  node_fit["Fit check<br/>[01_FIT_CHECK.md]"]
  node_suggest["Suggested changes"]
  node_autopilot["Autopilot flow<br/>[08_AUTOPILOT.md]"]
  node_job_search["Fresh job search<br/>[06_JOB_SEARCH.md]"]
  node_outreach["Recruiter outreach"]
  node_local_state[("Workflow state")]
end

subgraph group_evidence["Evidence and search"]
  node_evidence_bank["Work and project evidence"]
  node_evidence_index[("Evidence index<br/>[rebuildIndex.ts]")]
  node_evidence_query["Evidence search<br/>[queryEvidence.ts]"]
end

subgraph group_outputs["Tailoring outputs"]
  node_tailor["Resume tailoring<br/>[03_TAILOR_BUILD.md]"]
  node_eval["Build evaluation<br/>[07_EVAL.md]"]
  node_latex["LaTeX compiler"]
  node_resume_pdf["Tailored PDF and TEX"]
end

subgraph group_mcp["Optional MCP tools"]
  node_jd_processing["JD fetch and snapshot<br/>[processJd.ts]"]
  node_fit_rows["Fit row writer<br/>[fitCheckWriter.ts]"]
  node_resume_builder["Resume PDF builder<br/>[resumeBuilder.ts]"]
  node_cleanup["Pending change cleanup"]
  node_config["Workflow configuration<br/>[config.ts]"]
  node_mcp_server["MCP tool server<br/>[index.ts]"]
end

node_user(("Job seeker"))
node_assistant(("AI assistant"))

node_user -->|"requests workflow"| node_assistant
node_assistant -->|"reads routing"| node_bootstrap
node_bootstrap -->|"routes stages"| node_playbooks
node_user -->|"provides role"| node_job_input
node_assistant -->|"runs evaluation"| node_fit
node_assistant -->|"requests directives"| node_suggest
node_assistant -->|"requests tailoring"| node_tailor
node_tailor -->|"triggers after build"| node_eval
node_assistant -->|"requests roles"| node_job_search
node_assistant -->|"requests draft"| node_outreach
node_assistant -->|"requests end-to-end"| node_autopilot
node_assistant -->|"grounds claims"| node_evidence_bank
node_evidence_bank -->|"embeds files"| node_evidence_index
node_evidence_query -->|"reads vectors"| node_evidence_index
node_mcp_server -->|"dispatches JD tools"| node_jd_processing
node_mcp_server -->|"dispatches search"| node_evidence_query
node_mcp_server -->|"dispatches rebuild"| node_evidence_index
node_mcp_server -->|"dispatches row writes"| node_fit_rows
node_mcp_server -->|"dispatches builds"| node_resume_builder
node_jd_processing -->|"saves snapshots"| node_local_state
node_fit_rows -->|"updates pending rows"| node_local_state
node_resume_builder -->|"compiles document"| node_latex
node_resume_builder -->|"removes directives"| node_cleanup
node_resume_builder -->|"removes fit row"| node_fit_rows
node_resume_builder -->|"writes evaluation"| node_local_state
node_resume_builder -->|"publishes outputs"| node_resume_pdf
node_jd_processing -->|"uses workflow paths"| node_config
node_evidence_index -->|"loads evidence path"| node_config

click node_bootstrap "https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/CHAT_BOOTSTRAP.md"
click node_playbooks "https://github.com/sudharsan-ak/resume-tailoring-workflow/tree/main/playbook"
click node_job_input "https://github.com/sudharsan-ak/resume-tailoring-workflow/tree/main/input"
click node_fit "https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/playbook/01_FIT_CHECK.md"
click node_suggest "https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/playbook/02_SUGGEST_CHANGES.md"
click node_tailor "https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/playbook/03_TAILOR_BUILD.md"
click node_eval "https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/playbook/07_EVAL.md"
click node_autopilot "https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/playbook/08_AUTOPILOT.md"
click node_job_search "https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/playbook/06_JOB_SEARCH.md"
click node_outreach "https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/playbook/04_GMAIL_OUTREACH.md"
click node_evidence_bank "https://github.com/sudharsan-ak/resume-tailoring-workflow/tree/main/evidence"
click node_evidence_index "https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/mcp-server/src/tools/public/rebuildIndex.ts"
click node_evidence_query "https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/mcp-server/src/tools/public/queryEvidence.ts"
click node_jd_processing "https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/mcp-server/src/tools/public/processJd.ts"
click node_fit_rows "https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/mcp-server/src/tools/public/fitCheckWriter.ts"
click node_resume_builder "https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/mcp-server/src/tools/public/resumeBuilder.ts"
click node_cleanup "https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/mcp-server/src/tools/public/suggestChangesCleanup.ts"
click node_config "https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/mcp-server/src/config.ts"
click node_mcp_server "https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/mcp-server/src/index.ts"
click node_resume_pdf "https://github.com/sudharsan-ak/resume-tailoring-workflow/tree/main/output"
click node_local_state "https://github.com/sudharsan-ak/resume-tailoring-workflow/tree/main/workflow_state"

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_bootstrap,node_playbooks,node_job_input,node_fit,node_suggest,node_autopilot,node_job_search,node_outreach,node_local_state toneBlue
class node_evidence_bank,node_evidence_index,node_evidence_query toneAmber
class node_tailor,node_eval,node_latex,node_resume_pdf toneMint
class node_jd_processing,node_fit_rows,node_resume_builder,node_cleanup,node_config,node_mcp_server toneRose
class node_user,node_assistant toneIndigo
```

## Components

### Guided workflow

- [Workflow routing](https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/CHAT_BOOTSTRAP.md): `CHAT_BOOTSTRAP.md`
- [Stage playbooks](https://github.com/sudharsan-ak/resume-tailoring-workflow/tree/main/playbook): `playbook`
- [Job description](https://github.com/sudharsan-ak/resume-tailoring-workflow/tree/main/input): `input`
- [Fit check](https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/playbook/01_FIT_CHECK.md): `playbook/01_FIT_CHECK.md`
- [Suggested changes](https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/playbook/02_SUGGEST_CHANGES.md): `playbook/02_SUGGEST_CHANGES.md`
- [Autopilot flow](https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/playbook/08_AUTOPILOT.md): `playbook/08_AUTOPILOT.md`
- [Fresh job search](https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/playbook/06_JOB_SEARCH.md): `playbook/06_JOB_SEARCH.md`
- [Recruiter outreach](https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/playbook/04_GMAIL_OUTREACH.md): `playbook/04_GMAIL_OUTREACH.md`
- [Workflow state](https://github.com/sudharsan-ak/resume-tailoring-workflow/tree/main/workflow_state): `workflow_state`

### Evidence and search

- [Work and project evidence](https://github.com/sudharsan-ak/resume-tailoring-workflow/tree/main/evidence): `evidence`
- [Evidence index](https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/mcp-server/src/tools/public/rebuildIndex.ts): `mcp-server/src/tools/public/rebuildIndex.ts`
- [Evidence search](https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/mcp-server/src/tools/public/queryEvidence.ts): `mcp-server/src/tools/public/queryEvidence.ts`

### Tailoring outputs

- [Resume tailoring](https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/playbook/03_TAILOR_BUILD.md): `playbook/03_TAILOR_BUILD.md`
- [Build evaluation](https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/playbook/07_EVAL.md): `playbook/07_EVAL.md`
- **LaTeX compiler**
- [Tailored PDF and TEX](https://github.com/sudharsan-ak/resume-tailoring-workflow/tree/main/output): `output`

### Optional MCP tools

- [JD fetch and snapshot](https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/mcp-server/src/tools/public/processJd.ts): `mcp-server/src/tools/public/processJd.ts`
- [Fit row writer](https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/mcp-server/src/tools/public/fitCheckWriter.ts): `mcp-server/src/tools/public/fitCheckWriter.ts`
- [Resume PDF builder](https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/mcp-server/src/tools/public/resumeBuilder.ts): `mcp-server/src/tools/public/resumeBuilder.ts`
- [Pending change cleanup](https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/mcp-server/src/tools/public/suggestChangesCleanup.ts): `mcp-server/src/tools/public/suggestChangesCleanup.ts`
- [Workflow configuration](https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/mcp-server/src/config.ts): `mcp-server/src/config.ts`
- [MCP tool server](https://github.com/sudharsan-ak/resume-tailoring-workflow/blob/main/mcp-server/src/index.ts): `mcp-server/src/index.ts`

### Other components

- **Job seeker**
- **AI assistant**

## Connections

- Job seeker → AI assistant: requests workflow (evidence: `README.md`)
- AI assistant → Workflow routing: reads routing (evidence: `README.md`)
- Workflow routing → Stage playbooks: routes stages (evidence: `README.md`)
- Job seeker → Job description: provides role (evidence: `README.md`)
- AI assistant → Fit check: runs evaluation (evidence: `README.md`)
- AI assistant → Suggested changes: requests directives (evidence: `README.md`)
- AI assistant → Resume tailoring: requests tailoring (evidence: `README.md`)
- Resume tailoring → Build evaluation: triggers after build (evidence: `README.md`)
- AI assistant → Fresh job search: requests roles (evidence: `README.md`)
- AI assistant → Recruiter outreach: requests draft (evidence: `README.md`)
- AI assistant → Autopilot flow: requests end-to-end (evidence: `README.md`)
- AI assistant → Work and project evidence: grounds claims (evidence: `README.md`)
- Work and project evidence → Evidence index: embeds files (evidence: `mcp-server/src/tools/public/rebuildIndex.ts`)
- Evidence search → Evidence index: reads vectors (evidence: `mcp-server/src/tools/public/queryEvidence.ts`)
- MCP tool server → JD fetch and snapshot: dispatches JD tools (evidence: `mcp-server/src/index.ts`)
- MCP tool server → Evidence search: dispatches search (evidence: `mcp-server/src/index.ts`)
- MCP tool server → Evidence index: dispatches rebuild (evidence: `mcp-server/src/index.ts`)
- MCP tool server → Fit row writer: dispatches row writes (evidence: `mcp-server/src/index.ts`)
- MCP tool server → Resume PDF builder: dispatches builds (evidence: `mcp-server/src/index.ts`)
- JD fetch and snapshot → Workflow state: saves snapshots (evidence: `mcp-server/src/tools/public/processJd.ts`)
- Fit row writer → Workflow state: updates pending rows
- Resume PDF builder → LaTeX compiler: compiles document (evidence: `mcp-server/src/tools/public/resumeBuilder.ts`)
- Resume PDF builder → Pending change cleanup: removes directives (evidence: `mcp-server/src/tools/public/resumeBuilder.ts`)
- Resume PDF builder → Fit row writer: removes fit row (evidence: `mcp-server/src/tools/public/resumeBuilder.ts`)
- Resume PDF builder → Workflow state: writes evaluation (evidence: `mcp-server/src/tools/public/resumeBuilder.ts`)
- Resume PDF builder → Tailored PDF and TEX: publishes outputs (evidence: `mcp-server/src/tools/public/resumeBuilder.ts`)
- JD fetch and snapshot → Workflow configuration: uses workflow paths (evidence: `mcp-server/src/tools/public/processJd.ts`)
- Evidence index → Workflow configuration: loads evidence path (evidence: `mcp-server/src/tools/public/rebuildIndex.ts`)
