# isarojpandit/ai-job-search architecture

> Architecture diagram of the GitHub repository isarojpandit/ai-job-search, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/isarojpandit/ai-job-search
- Repository: https://github.com/isarojpandit/ai-job-search

## Overview

AI Job Search is a local Claude Code job-application framework: the user builds a profile, discovers postings, evaluates fit, prepares tailored application materials, and tracks results. Its main workflow is represented by the README’s six-command sequence. The repository also documents optional portal search, salary benchmarking, and reporting/sync capabilities. Tool relationships below are limited to those shown in the sampled source index or excerpts; command internals and several optional integrations were not sampled, so their wiring is not inferred.

Main entry points: [`.claude/commands/apply.md`](https://github.com/isarojpandit/ai-job-search/blob/master/.claude/commands/apply.md) (Application drafting), [`.claude/skills/job-scraper/SKILL.md`](https://github.com/isarojpandit/ai-job-search/blob/master/.claude/skills/job-scraper/SKILL.md) (Posting search), [`.claude/commands/rank.md`](https://github.com/isarojpandit/ai-job-search/blob/master/.claude/commands/rank.md) (Fit ranking), [`tools/scrape_state.py`](https://github.com/isarojpandit/ai-job-search/blob/master/tools/scrape_state.py) (Scrape state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Job-search workflow"]
  node_setup["Profile setup<br/>[setup.md]"]
  node_scrape["Posting search<br/>[SKILL.md]"]
  node_rank["Fit ranking<br/>[rank.md]"]
  node_apply["Application drafting<br/>[apply.md]"]
  node_interview["Interview prep<br/>[interview.md]"]
  node_outcome["Outcome tracking<br/>[outcome.md]"]
end

subgraph group_guidance["Profiles and guidance"]
  node_profile["Candidate profile"]
  node_evaluation["Evaluation guidance"]
  node_writing["Writing guidance"]
  node_cv_templates["CV templates<br/>[05-cv-templates.md]"]
  node_letter_templates["Letter templates"]
  node_interview_guidance["Interview guidance"]
end

subgraph group_tools["Workflow tools"]
  node_scrape_state["Scrape state<br/>[scrape_state.py]"]
  node_job_key["Posting identity<br/>[job_key.py]"]
  node_rank_state["Ranking state<br/>[rank_state.py]"]
  node_posting_guard["Posting integrity gate<br/>[posting_guard.py]"]
  node_fetch_page["Page fetcher<br/>[fetch_page.py]"]
  node_robots["Robots policy check<br/>[robots_check.py]"]
  node_page_decode["Page decoding<br/>[page_decode.py]"]
  node_report_data["Report data<br/>[report_data.py]"]
  node_html_report["Offline dashboard<br/>[html_report.py]"]
  node_salary["Salary lookup<br/>[salary_lookup.py]"]
end

subgraph group_records["Workspace records"]
  node_posting_records[("Posting records")]
  node_application_docs[("Application documents")]
  node_cv_docs[("CV documents")]
  node_letters["Cover letters"]
end

subgraph group_integrations["Optional integrations"]
  node_external_portals{{"Job portals"}}
  node_gmail_sync["Gmail sync<br/>[gmail-sync.md]"]
  node_notion_sync["Notion sync<br/>[notion-sync.md]"]
  node_report_command["Report command<br/>[html-report.md]"]
end

node_user(("Job seeker"))
node_claude{{"Claude Code"}}

node_user -->|"uses"| node_claude
node_claude -->|"runs"| node_setup
node_setup -->|"builds"| node_profile
node_claude -->|"runs"| node_scrape
node_scrape -.->|"searches"| node_external_portals
node_scrape -.->|"records candidates"| node_scrape_state
node_scrape_state -->|"keys postings"| node_job_key
node_scrape_state -->|"stores history"| node_posting_records
node_claude -->|"runs"| node_rank
node_rank -.->|"evaluates with"| node_evaluation
node_rank -.->|"records scores"| node_rank_state
node_claude -->|"runs"| node_apply
node_apply -.->|"drafts with"| node_writing
node_apply -.->|"uses"| node_cv_templates
node_apply -.->|"uses"| node_letter_templates
node_apply -.->|"produces"| node_cv_docs
node_apply -.->|"produces"| node_letters
node_claude -->|"runs"| node_interview
node_interview -.->|"prepares with"| node_interview_guidance
node_claude -->|"runs"| node_outcome
node_outcome -.->|"tracks results"| node_application_docs
node_fetch_page -->|"checks policy"| node_robots
node_fetch_page -->|"decodes content"| node_page_decode
node_posting_guard -->|"decodes posting"| node_page_decode
node_html_report -->|"loads figures"| node_report_data
node_report_command -.->|"renders"| node_html_report
node_salary -.->|"benchmarks against"| node_external_portals
node_gmail_sync -.->|"syncs"| node_application_docs
node_notion_sync -.->|"syncs"| node_application_docs

click node_setup "https://github.com/isarojpandit/ai-job-search/blob/master/.claude/commands/setup.md"
click node_scrape "https://github.com/isarojpandit/ai-job-search/blob/master/.claude/skills/job-scraper/SKILL.md"
click node_rank "https://github.com/isarojpandit/ai-job-search/blob/master/.claude/commands/rank.md"
click node_apply "https://github.com/isarojpandit/ai-job-search/blob/master/.claude/commands/apply.md"
click node_interview "https://github.com/isarojpandit/ai-job-search/blob/master/.claude/commands/interview.md"
click node_outcome "https://github.com/isarojpandit/ai-job-search/blob/master/.claude/commands/outcome.md"
click node_profile "https://github.com/isarojpandit/ai-job-search/blob/master/.claude/skills/job-application-assistant/01-candidate-profile.md"
click node_evaluation "https://github.com/isarojpandit/ai-job-search/blob/master/.claude/skills/job-application-assistant/04-job-evaluation.md"
click node_writing "https://github.com/isarojpandit/ai-job-search/blob/master/.claude/skills/job-application-assistant/03-writing-style.md"
click node_cv_templates "https://github.com/isarojpandit/ai-job-search/blob/master/.claude/skills/job-application-assistant/05-cv-templates.md"
click node_letter_templates "https://github.com/isarojpandit/ai-job-search/blob/master/.claude/skills/job-application-assistant/06-cover-letter-templates.md"
click node_interview_guidance "https://github.com/isarojpandit/ai-job-search/blob/master/.claude/skills/job-application-assistant/07-interview-prep.md"
click node_scrape_state "https://github.com/isarojpandit/ai-job-search/blob/master/tools/scrape_state.py"
click node_job_key "https://github.com/isarojpandit/ai-job-search/blob/master/tools/job_key.py"
click node_rank_state "https://github.com/isarojpandit/ai-job-search/blob/master/tools/rank_state.py"
click node_posting_guard "https://github.com/isarojpandit/ai-job-search/blob/master/tools/posting_guard.py"
click node_fetch_page "https://github.com/isarojpandit/ai-job-search/blob/master/tools/fetch_page.py"
click node_robots "https://github.com/isarojpandit/ai-job-search/blob/master/tools/robots_check.py"
click node_page_decode "https://github.com/isarojpandit/ai-job-search/blob/master/tools/page_decode.py"
click node_report_data "https://github.com/isarojpandit/ai-job-search/blob/master/tools/report_data.py"
click node_html_report "https://github.com/isarojpandit/ai-job-search/blob/master/tools/html_report.py"
click node_salary "https://github.com/isarojpandit/ai-job-search/blob/master/salary_lookup.py"
click node_posting_records "https://github.com/isarojpandit/ai-job-search/tree/master/job_scraper"
click node_application_docs "https://github.com/isarojpandit/ai-job-search/tree/master/documents/applications"
click node_cv_docs "https://github.com/isarojpandit/ai-job-search/tree/master/documents/cv"
click node_letters "https://github.com/isarojpandit/ai-job-search/tree/master/cover_letters"
click node_gmail_sync "https://github.com/isarojpandit/ai-job-search/blob/master/.claude/commands/gmail-sync.md"
click node_notion_sync "https://github.com/isarojpandit/ai-job-search/blob/master/.claude/commands/notion-sync.md"
click node_report_command "https://github.com/isarojpandit/ai-job-search/blob/master/.claude/commands/html-report.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_setup,node_scrape,node_rank,node_apply,node_interview,node_outcome toneBlue
class node_profile,node_evaluation,node_writing,node_cv_templates,node_letter_templates,node_interview_guidance toneAmber
class node_scrape_state,node_job_key,node_rank_state,node_posting_guard,node_fetch_page,node_robots,node_page_decode,node_report_data,node_html_report,node_salary toneMint
class node_posting_records,node_application_docs,node_cv_docs,node_letters toneRose
class node_external_portals,node_gmail_sync,node_notion_sync,node_report_command,node_user,node_claude toneIndigo
```

## Components

### Job-search workflow

- [Profile setup](https://github.com/isarojpandit/ai-job-search/blob/master/.claude/commands/setup.md): `.claude/commands/setup.md`
- [Posting search](https://github.com/isarojpandit/ai-job-search/blob/master/.claude/skills/job-scraper/SKILL.md): `.claude/skills/job-scraper/SKILL.md`
- [Fit ranking](https://github.com/isarojpandit/ai-job-search/blob/master/.claude/commands/rank.md): `.claude/commands/rank.md`
- [Application drafting](https://github.com/isarojpandit/ai-job-search/blob/master/.claude/commands/apply.md): `.claude/commands/apply.md`
- [Interview prep](https://github.com/isarojpandit/ai-job-search/blob/master/.claude/commands/interview.md): `.claude/commands/interview.md`
- [Outcome tracking](https://github.com/isarojpandit/ai-job-search/blob/master/.claude/commands/outcome.md): `.claude/commands/outcome.md`

### Profiles and guidance

- [Candidate profile](https://github.com/isarojpandit/ai-job-search/blob/master/.claude/skills/job-application-assistant/01-candidate-profile.md): `.claude/skills/job-application-assistant/01-candidate-profile.md`
- [Evaluation guidance](https://github.com/isarojpandit/ai-job-search/blob/master/.claude/skills/job-application-assistant/04-job-evaluation.md): `.claude/skills/job-application-assistant/04-job-evaluation.md`
- [Writing guidance](https://github.com/isarojpandit/ai-job-search/blob/master/.claude/skills/job-application-assistant/03-writing-style.md): `.claude/skills/job-application-assistant/03-writing-style.md`
- [CV templates](https://github.com/isarojpandit/ai-job-search/blob/master/.claude/skills/job-application-assistant/05-cv-templates.md): `.claude/skills/job-application-assistant/05-cv-templates.md`
- [Letter templates](https://github.com/isarojpandit/ai-job-search/blob/master/.claude/skills/job-application-assistant/06-cover-letter-templates.md): `.claude/skills/job-application-assistant/06-cover-letter-templates.md`
- [Interview guidance](https://github.com/isarojpandit/ai-job-search/blob/master/.claude/skills/job-application-assistant/07-interview-prep.md): `.claude/skills/job-application-assistant/07-interview-prep.md`

### Workflow tools

- [Scrape state](https://github.com/isarojpandit/ai-job-search/blob/master/tools/scrape_state.py): `tools/scrape_state.py`
- [Posting identity](https://github.com/isarojpandit/ai-job-search/blob/master/tools/job_key.py): `tools/job_key.py`
- [Ranking state](https://github.com/isarojpandit/ai-job-search/blob/master/tools/rank_state.py): `tools/rank_state.py`
- [Posting integrity gate](https://github.com/isarojpandit/ai-job-search/blob/master/tools/posting_guard.py): `tools/posting_guard.py`
- [Page fetcher](https://github.com/isarojpandit/ai-job-search/blob/master/tools/fetch_page.py): `tools/fetch_page.py`
- [Robots policy check](https://github.com/isarojpandit/ai-job-search/blob/master/tools/robots_check.py): `tools/robots_check.py`
- [Page decoding](https://github.com/isarojpandit/ai-job-search/blob/master/tools/page_decode.py): `tools/page_decode.py`
- [Report data](https://github.com/isarojpandit/ai-job-search/blob/master/tools/report_data.py): `tools/report_data.py`
- [Offline dashboard](https://github.com/isarojpandit/ai-job-search/blob/master/tools/html_report.py): `tools/html_report.py`
- [Salary lookup](https://github.com/isarojpandit/ai-job-search/blob/master/salary_lookup.py): `salary_lookup.py`

### Workspace records

- [Posting records](https://github.com/isarojpandit/ai-job-search/tree/master/job_scraper): `job_scraper`
- [Application documents](https://github.com/isarojpandit/ai-job-search/tree/master/documents/applications): `documents/applications`
- [CV documents](https://github.com/isarojpandit/ai-job-search/tree/master/documents/cv): `documents/cv`
- [Cover letters](https://github.com/isarojpandit/ai-job-search/tree/master/cover_letters): `cover_letters`

### Optional integrations

- **Job portals**
- [Gmail sync](https://github.com/isarojpandit/ai-job-search/blob/master/.claude/commands/gmail-sync.md): `.claude/commands/gmail-sync.md`
- [Notion sync](https://github.com/isarojpandit/ai-job-search/blob/master/.claude/commands/notion-sync.md): `.claude/commands/notion-sync.md`
- [Report command](https://github.com/isarojpandit/ai-job-search/blob/master/.claude/commands/html-report.md): `.claude/commands/html-report.md`

### Other components

- **Job seeker**
- **Claude Code**

## Connections

- Job seeker → Claude Code: uses (evidence: `README.md`)
- Claude Code → Profile setup: runs (evidence: `README.md`)
- Profile setup → Candidate profile: builds (evidence: `README.md`)
- Claude Code → Posting search: runs (evidence: `README.md`)
- Posting search → Job portals: searches (evidence: `README.md`)
- Posting search → Scrape state: records candidates
- Scrape state → Posting identity: keys postings (evidence: `tools/scrape_state.py`)
- Scrape state → Posting records: stores history (evidence: `tools/scrape_state.py`)
- Claude Code → Fit ranking: runs (evidence: `README.md`)
- Fit ranking → Evaluation guidance: evaluates with
- Fit ranking → Ranking state: records scores
- Claude Code → Application drafting: runs (evidence: `README.md`)
- Application drafting → Writing guidance: drafts with
- Application drafting → CV templates: uses
- Application drafting → Letter templates: uses
- Application drafting → CV documents: produces
- Application drafting → Cover letters: produces
- Claude Code → Interview prep: runs (evidence: `README.md`)
- Interview prep → Interview guidance: prepares with
- Claude Code → Outcome tracking: runs (evidence: `README.md`)
- Outcome tracking → Application documents: tracks results
- Page fetcher → Robots policy check: checks policy (evidence: `tools/fetch_page.py`)
- Page fetcher → Page decoding: decodes content (evidence: `tools/fetch_page.py`)
- Posting integrity gate → Page decoding: decodes posting (evidence: `tools/posting_guard.py`)
- Offline dashboard → Report data: loads figures (evidence: `tools/html_report.py`)
- Report command → Offline dashboard: renders
- Salary lookup → Job portals: benchmarks against
- Gmail sync → Application documents: syncs
- Notion sync → Application documents: syncs
