# madslorentzen/ai-job-search architecture

> Architecture diagram of the GitHub repository madslorentzen/ai-job-search, 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/madslorentzen/ai-job-search
- Repository: https://github.com/madslorentzen/ai-job-search

## Overview

AI Job Search is a local, Claude Code-based job-application workflow, with Danish job-portal search skills and a country-agnostic profile/evaluation/drafting process. The documented path is profile setup, portal search and fit ranking, then a gated posting evaluation and reviewed application. The graph also preserves documented salary benchmarking and the sampled fetch/decoding safeguards. Source excerpts are partial; unsampled workflow links are included only where the README documents them.

Main entry points: [`.claude/commands/apply.md`](https://github.com/madslorentzen/ai-job-search/blob/master/.claude/commands/apply.md) (Application orchestration), [`.claude/skills/job-scraper/SKILL.md`](https://github.com/madslorentzen/ai-job-search/blob/master/.claude/skills/job-scraper/SKILL.md) (Job search), [`tools/fetch_page.py`](https://github.com/madslorentzen/ai-job-search/blob/master/tools/fetch_page.py) (Web page fetch), [`.agents/skills`](https://github.com/madslorentzen/ai-job-search/tree/master/.agents/skills) (Portal search skills)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_search["Job discovery"]
  node_portal_skills["Portal search skills<br/>[skills]"]
  node_portal_sites["Job portals"]
  node_scrape["Job search<br/>[SKILL.md]"]
  node_rank["Fit ranking<br/>[rank.md]"]
  node_rank_state["Ranking state<br/>[rank_state.py]"]
end

subgraph group_apply["Application workflow"]
  node_apply["Application orchestration<br/>[apply.md]"]
  node_posting_fetcher["Posting fetcher<br/>[posting-fetcher.md]"]
  node_posting_guard["Posting integrity gate<br/>[posting_guard.py]"]
  node_evaluation["Fit evaluation"]
  node_drafting["CV and letter drafting<br/>[05-cv-templates.md]"]
  node_reviewer["Application review"]
  node_interview["Interview preparation<br/>[interview.md]"]
end

subgraph group_profile["Candidate resources"]
  node_setup["Profile setup<br/>[setup.md]"]
  node_profile_data["Profile documents<br/>[README.md]"]
end

subgraph group_tools["Supporting tools"]
  node_fetch_page["Web page fetch<br/>[fetch_page.py]"]
  node_robots["Robots policy check<br/>[robots_check.py]"]
  node_decode["Page decoding<br/>[page_decode.py]"]
  node_salary["Salary benchmarking<br/>[salary_lookup.py]"]
  node_salary_convert["Salary data conversion"]
  node_salary_data[("User salary dataset")]
end

node_candidate(("Job seeker"))

node_candidate -->|"sets up"| node_setup
node_setup -->|"prepares profile"| node_profile_data
node_candidate -->|"searches jobs"| node_scrape
node_scrape -->|"uses portals"| node_portal_skills
node_portal_skills -.->|"searches"| node_portal_sites
node_scrape -->|"offers batch scoring"| node_rank
node_candidate -->|"ranks matches"| node_rank
node_candidate -->|"selects posting"| node_apply
node_apply -->|"fetches posting"| node_posting_fetcher
node_apply -->|"gates posting"| node_posting_guard
node_apply -->|"evaluates fit"| node_evaluation
node_apply -->|"drafts materials"| node_drafting
node_apply -->|"requests critique"| node_reviewer
node_candidate -.->|"prepares interviews"| node_interview
node_fetch_page -->|"checks policy"| node_robots
node_fetch_page -->|"decodes response"| node_decode
node_posting_guard -->|"decodes saved page"| node_decode
node_candidate -.->|"looks up benchmarks"| node_salary
node_salary -.->|"reads dataset"| node_salary_data
node_salary_convert -.->|"produces lookup data"| node_salary_data

click node_setup "https://github.com/madslorentzen/ai-job-search/blob/master/.claude/commands/setup.md"
click node_profile_data "https://github.com/madslorentzen/ai-job-search/blob/master/documents/README.md"
click node_portal_skills "https://github.com/madslorentzen/ai-job-search/tree/master/.agents/skills"
click node_scrape "https://github.com/madslorentzen/ai-job-search/blob/master/.claude/skills/job-scraper/SKILL.md"
click node_rank "https://github.com/madslorentzen/ai-job-search/blob/master/.claude/commands/rank.md"
click node_rank_state "https://github.com/madslorentzen/ai-job-search/blob/master/tools/rank_state.py"
click node_apply "https://github.com/madslorentzen/ai-job-search/blob/master/.claude/commands/apply.md"
click node_posting_fetcher "https://github.com/madslorentzen/ai-job-search/blob/master/.claude/agents/posting-fetcher.md"
click node_posting_guard "https://github.com/madslorentzen/ai-job-search/blob/master/tools/posting_guard.py"
click node_evaluation "https://github.com/madslorentzen/ai-job-search/blob/master/.claude/skills/job-application-assistant/04-job-evaluation.md"
click node_drafting "https://github.com/madslorentzen/ai-job-search/blob/master/.claude/skills/job-application-assistant/05-cv-templates.md"
click node_reviewer "https://github.com/madslorentzen/ai-job-search/blob/master/.claude/agents/application-reviewer.md"
click node_interview "https://github.com/madslorentzen/ai-job-search/blob/master/.claude/commands/interview.md"
click node_fetch_page "https://github.com/madslorentzen/ai-job-search/blob/master/tools/fetch_page.py"
click node_robots "https://github.com/madslorentzen/ai-job-search/blob/master/tools/robots_check.py"
click node_decode "https://github.com/madslorentzen/ai-job-search/blob/master/tools/page_decode.py"
click node_salary "https://github.com/madslorentzen/ai-job-search/blob/master/salary_lookup.py"
click node_salary_convert "https://github.com/madslorentzen/ai-job-search/blob/master/tools/convert_salary_excel.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_portal_skills,node_portal_sites,node_scrape,node_rank,node_rank_state toneBlue
class node_apply,node_posting_fetcher,node_posting_guard,node_evaluation,node_drafting,node_reviewer,node_interview toneAmber
class node_setup,node_profile_data toneMint
class node_fetch_page,node_robots,node_decode,node_salary,node_salary_convert,node_salary_data toneRose
class node_candidate toneIndigo
```

## Components

### Job discovery

- [Portal search skills](https://github.com/madslorentzen/ai-job-search/tree/master/.agents/skills): `.agents/skills`
- **Job portals**
- [Job search](https://github.com/madslorentzen/ai-job-search/blob/master/.claude/skills/job-scraper/SKILL.md): `.claude/skills/job-scraper/SKILL.md`
- [Fit ranking](https://github.com/madslorentzen/ai-job-search/blob/master/.claude/commands/rank.md): `.claude/commands/rank.md`
- [Ranking state](https://github.com/madslorentzen/ai-job-search/blob/master/tools/rank_state.py): `tools/rank_state.py`

### Application workflow

- [Application orchestration](https://github.com/madslorentzen/ai-job-search/blob/master/.claude/commands/apply.md): `.claude/commands/apply.md`
- [Posting fetcher](https://github.com/madslorentzen/ai-job-search/blob/master/.claude/agents/posting-fetcher.md): `.claude/agents/posting-fetcher.md`
- [Posting integrity gate](https://github.com/madslorentzen/ai-job-search/blob/master/tools/posting_guard.py): `tools/posting_guard.py`
- [Fit evaluation](https://github.com/madslorentzen/ai-job-search/blob/master/.claude/skills/job-application-assistant/04-job-evaluation.md): `.claude/skills/job-application-assistant/04-job-evaluation.md`
- [CV and letter drafting](https://github.com/madslorentzen/ai-job-search/blob/master/.claude/skills/job-application-assistant/05-cv-templates.md): `.claude/skills/job-application-assistant/05-cv-templates.md`
- [Application review](https://github.com/madslorentzen/ai-job-search/blob/master/.claude/agents/application-reviewer.md): `.claude/agents/application-reviewer.md`
- [Interview preparation](https://github.com/madslorentzen/ai-job-search/blob/master/.claude/commands/interview.md): `.claude/commands/interview.md`

### Candidate resources

- [Profile setup](https://github.com/madslorentzen/ai-job-search/blob/master/.claude/commands/setup.md): `.claude/commands/setup.md`
- [Profile documents](https://github.com/madslorentzen/ai-job-search/blob/master/documents/README.md): `documents/README.md`

### Supporting tools

- [Web page fetch](https://github.com/madslorentzen/ai-job-search/blob/master/tools/fetch_page.py): `tools/fetch_page.py`
- [Robots policy check](https://github.com/madslorentzen/ai-job-search/blob/master/tools/robots_check.py): `tools/robots_check.py`
- [Page decoding](https://github.com/madslorentzen/ai-job-search/blob/master/tools/page_decode.py): `tools/page_decode.py`
- [Salary benchmarking](https://github.com/madslorentzen/ai-job-search/blob/master/salary_lookup.py): `salary_lookup.py`
- [Salary data conversion](https://github.com/madslorentzen/ai-job-search/blob/master/tools/convert_salary_excel.py): `tools/convert_salary_excel.py`
- **User salary dataset**

### Other components

- **Job seeker**

## Connections

- Job seeker → Profile setup: sets up (evidence: `README.md`)
- Profile setup → Profile documents: prepares profile (evidence: `README.md`)
- Job seeker → Job search: searches jobs (evidence: `README.md`)
- Job search → Portal search skills: uses portals (evidence: `README.md`)
- Portal search skills → Job portals: searches (evidence: `README.md`)
- Job search → Fit ranking: offers batch scoring (evidence: `README.md`)
- Job seeker → Fit ranking: ranks matches (evidence: `README.md`)
- Job seeker → Application orchestration: selects posting (evidence: `README.md`)
- Application orchestration → Posting fetcher: fetches posting (evidence: `README.md`)
- Application orchestration → Posting integrity gate: gates posting (evidence: `README.md`)
- Application orchestration → Fit evaluation: evaluates fit (evidence: `README.md`)
- Application orchestration → CV and letter drafting: drafts materials (evidence: `README.md`)
- Application orchestration → Application review: requests critique (evidence: `README.md`)
- Job seeker → Interview preparation: prepares interviews
- Web page fetch → Robots policy check: checks policy (evidence: `tools/fetch_page.py`)
- Web page fetch → Page decoding: decodes response (evidence: `tools/fetch_page.py`)
- Posting integrity gate → Page decoding: decodes saved page (evidence: `tools/posting_guard.py`)
- Job seeker → Salary benchmarking: looks up benchmarks (evidence: `README.md`)
- Salary benchmarking → User salary dataset: reads dataset
- Salary data conversion → User salary dataset: produces lookup data
