# feder-cr/lib_resume_builder_aihawk architecture

> Architecture diagram of the GitHub repository feder-cr/lib_resume_builder_aihawk, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-05-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/feder-cr/lib_resume_builder_aihawk
- Repository: https://github.com/feder-cr/lib_resume_builder_aihawk

## Overview

1. `lib_resume_builder_AIHawk` is a Python library, not a standalone web service. Its architecture centers on turning structured resume data plus optional job-description input into a styled resume artifact, likely via an interactive CLI or programmatic facade.

2. The main entry/control boundary appears to be `manager_facade.py`, which likely coordinates the end-to-end flow: load configuration, read resume data, optionally fetch job details, invoke the GPT-based generator, and select a visual style.

3. The core domain model lives in `resume.py` and `template_base.py`. These files likely define the resume data structure and the rendering/template abstraction that other parts of the system consume.

4. Resume generation is split into prompt/AI subsystems:
   - `gpt_resume.py` for generating resume content from general input
   - `gpt_resume_job_description.py` for tailoring content to a specific job description
   - `resume_prompt/` and `resume_job_description_prompt/` for the actual prompt text
   This separation suggests the AI logic is prompt-driven and supports both generic and job-specific generation paths.

5. Style rendering is isolated from content generation. `style_manager.py` and `resume_style/` hold CSS themes such as `style_cloyola.css`, `style_josylad_blue.css`, and others. This indicates a distinct presentation layer that can be swapped without changing resume content logic.

6. Configuration and input data are YAML-based. `config.py`, the root `plain_text_resume.yaml`, and the sample files under `unit-test/yaml_example/` imply that resume content, secrets, and runtime settings are externalized from the code. This is an important boundary for the architecture: data/config enters the library separately from code.

7. `module_loader.py` and `utils.py` are support infrastructure. `module_loader.py` likely handles dynamic loading of prompt/style modules or templates, while `utils.py` contains shared helpers used across generation and styling workflows.

8. The external integrations are material to the architecture:
   - OpenAI/LangChain stack for LLM interaction
   - Selenium + webdriver-manager for browser automation, likely used when extracting job descriptions from URLs
   - FAISS, which suggests retrieval or similarity lookup may be used in the resume/job-description matching workflow
   These dependencies indicate the library is not just text formatting; it also integrates AI and browser-driven data acquisition.

9. The data flow is probably:
   structured resume YAML + config/secrets -> facade/manager -> optional job-description extraction -> prompt assembly -> LLM generation -> resume model/template -> selected CSS style -> output artifact.
   The job-description path is a separate branch that feeds tailoring logic before final rendering.

10. The repository includes unit-test assets and a PDF-generation example under `unit-test/pdf_generation.py`, which implies the output side likely includes PDF or document rendering validation. The `unit-test/yaml_example/` directory is a useful cue that the architecture is designed around testable input fixtures.

11. The `how_to_contribute/` docs split contributions into prompt engineering and web design, which matches the codebase’s two big seams: content quality via prompts and appearance via CSS/templates. That division is a good indicator of the project’s subsystem boundaries for diagramming.

12. In diagram terms, the most important boxes are: input/config layer, resume/domain model, AI prompt/generation layer, job-description acquisition layer, style/template layer, and output/test harness. The primary boundary crossings are YAML/config into Python objects, objects into prompts, and generated text into styled output.

Main entry points: [`lib_resume_builder_AIHawk/resume_generator.py`](https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/resume_generator.py) (Resume generator), [`lib_resume_builder_AIHawk/module_loader.py`](https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/module_loader.py) (Module loader), [`lib_resume_builder_AIHawk/manager_facade.py`](https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/manager_facade.py) (Manager facade), [`lib_resume_builder_AIHawk/gpt_resume.py`](https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/gpt_resume.py) (GPT resume)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Inputs & Config"]
  node_plain_yaml["Resume YAML<br/>structured input"]
  node_sample_config["Sample config<br/>yaml fixture<br/>[config.yaml]"]
  node_sample_resume["Sample resume<br/>yaml fixture"]
  node_secrets_yaml["Secrets YAML<br/>yaml fixture<br/>[secrets.yaml]"]
end

subgraph group_control["Orchestration"]
  node_facade["Manager facade<br/>orchestrator<br/>[manager_facade.py]"]
  node_generator["Resume generator<br/>build pipeline"]
end

subgraph group_domain["Domain Model"]
  node_resume_model[("Resume model<br/>data model<br/>[resume.py]")]
  node_template_base["Template base<br/>render abstraction<br/>[template_base.py]"]
end

subgraph group_generation["AI Generation"]
  node_gpt_resume["GPT resume<br/>ai generator<br/>[gpt_resume.py]"]
  node_gpt_jobdesc["Job-tailored GPT<br/>ai generator"]
  node_resume_prompt["Resume prompt<br/>prompt pack"]
  node_job_prompt["Job prompt<br/>prompt pack"]
end

subgraph group_presentation["Styling & Output"]
  node_style_manager["Style manager<br/>theme selector<br/>[style_manager.py]"]
  node_styles["CSS themes<br/>style assets"]
end

subgraph group_support["Support"]
  node_config["Config<br/>[config.py]"]
  node_loader["Module loader<br/>dynamic loader<br/>[module_loader.py]"]
  node_utils["Utils<br/>helpers<br/>[utils.py]"]
end

subgraph group_docs["Examples & Tests"]
  node_pdf_example["PDF example<br/>output example<br/>[pdf_generation.py]"]
  node_contrib_docs["Contrib docs<br/>guidance"]
end

node_plain_yaml -->|"input resume"| node_facade
node_sample_config -->|"loads"| node_config
node_secrets_yaml -->|"loads"| node_config
node_config -->|"runtime settings"| node_facade
node_facade -->|"coordinates"| node_generator
node_generator -->|"builds"| node_resume_model
node_resume_model -->|"renders via"| node_template_base
node_generator -->|"generic path"| node_gpt_resume
node_generator -->|"job path"| node_gpt_jobdesc
node_gpt_resume -->|"uses prompt"| node_resume_prompt
node_gpt_jobdesc -->|"uses prompt"| node_job_prompt
node_generator -->|"selects style"| node_style_manager
node_style_manager -->|"applies"| node_styles
node_loader -->|"loads"| node_gpt_resume
node_loader -->|"loads"| node_gpt_jobdesc
node_loader -->|"loads"| node_styles
node_utils -->|"shared helpers"| node_generator
node_pdf_example -->|"exercises"| node_generator
node_contrib_docs -->|"guides"| node_resume_prompt
node_contrib_docs -->|"guides"| node_styles

click node_plain_yaml "https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/plain_text_resume.yaml"
click node_sample_config "https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/unit-test/yaml_example/config.yaml"
click node_sample_resume "https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/unit-test/yaml_example/plain_text_resume.yaml"
click node_secrets_yaml "https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/unit-test/yaml_example/secrets.yaml"
click node_facade "https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/manager_facade.py"
click node_generator "https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/resume_generator.py"
click node_config "https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/config.py"
click node_loader "https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/module_loader.py"
click node_utils "https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/utils.py"
click node_resume_model "https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/resume.py"
click node_template_base "https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/template_base.py"
click node_gpt_resume "https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/gpt_resume.py"
click node_gpt_jobdesc "https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/gpt_resume_job_description.py"
click node_resume_prompt "https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/resume_prompt/strings_feder-cr.py"
click node_job_prompt "https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/resume_job_description_prompt/strings_feder-cr.py"
click node_style_manager "https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/style_manager.py"
click node_styles "https://github.com/feder-cr/lib_resume_builder_aihawk/tree/main/lib_resume_builder_AIHawk/resume_style"
click node_pdf_example "https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/unit-test/pdf_generation.py"
click node_contrib_docs "https://github.com/feder-cr/lib_resume_builder_aihawk/tree/main/how_to_contribute"

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_plain_yaml,node_sample_config,node_sample_resume,node_secrets_yaml,node_pdf_example,node_contrib_docs toneBlue
class node_facade,node_generator toneAmber
class node_resume_model,node_template_base toneMint
class node_gpt_resume,node_gpt_jobdesc,node_resume_prompt,node_job_prompt toneRose
class node_style_manager,node_styles toneIndigo
class node_config,node_loader,node_utils toneTeal
```

## Components

### Inputs & Config

External YAML inputs and runtime configuration boundaries.

- [Resume YAML](https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/plain_text_resume.yaml): structured input · Primary resume content source used by the library. · `plain_text_resume.yaml`
- [Sample config](https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/unit-test/yaml_example/config.yaml): yaml fixture · Example runtime settings for the library. · `lib_resume_builder_AIHawk/unit-test/yaml_example/config.yaml`
- [Sample resume](https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/unit-test/yaml_example/plain_text_resume.yaml): yaml fixture · Example resume data used in tests and demos. · `lib_resume_builder_AIHawk/unit-test/yaml_example/plain_text_resume.yaml`
- [Secrets YAML](https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/unit-test/yaml_example/secrets.yaml): yaml fixture · Example secret/config input for local runs. · `lib_resume_builder_AIHawk/unit-test/yaml_example/secrets.yaml`

### Orchestration

Entry and coordination layer for the resume build flow.

- [Manager facade](https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/manager_facade.py): orchestrator · Main coordination boundary for the end-to-end build flow. · `lib_resume_builder_AIHawk/manager_facade.py`
- [Resume generator](https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/resume_generator.py): build pipeline · High-level generation pipeline that bridges inputs, AI, and output. · `lib_resume_builder_AIHawk/resume_generator.py`

### Domain Model

Core resume data and template abstractions.

- [Resume model](https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/resume.py): data model · Core resume structure consumed by generation and rendering. · `lib_resume_builder_AIHawk/resume.py`
- [Template base](https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/template_base.py): render abstraction · Base abstraction for turning resume data into a renderable form. · `lib_resume_builder_AIHawk/template_base.py`

### AI Generation

Prompt-driven content generation paths.

- [GPT resume](https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/gpt_resume.py): ai generator · General-purpose prompt and LLM-based resume content generation. · `lib_resume_builder_AIHawk/gpt_resume.py`
- [Job-tailored GPT](https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/gpt_resume_job_description.py): ai generator · Job-description-specific resume tailoring path. · `lib_resume_builder_AIHawk/gpt_resume_job_description.py`
- [Resume prompt](https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/resume_prompt/strings_feder-cr.py): prompt pack · Prompt text for generic resume generation. · `lib_resume_builder_AIHawk/resume_prompt/strings_feder-cr.py`
- [Job prompt](https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/resume_job_description_prompt/strings_feder-cr.py): prompt pack · Prompt text for job-description-aware generation. · `lib_resume_builder_AIHawk/resume_job_description_prompt/strings_feder-cr.py`

### Styling & Output

Style selection and rendered artifact output.

- [Style manager](https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/style_manager.py): theme selector · Selects and applies a resume style/theme. · `lib_resume_builder_AIHawk/style_manager.py`
- [CSS themes](https://github.com/feder-cr/lib_resume_builder_aihawk/tree/main/lib_resume_builder_AIHawk/resume_style): style assets · Collection of selectable resume stylesheet variants. · `lib_resume_builder_AIHawk/resume_style`

### Support

Shared loading and utility infrastructure.

- [Config](https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/config.py): runtime config · Loads and exposes runtime configuration and secrets. · `lib_resume_builder_AIHawk/config.py`
- [Module loader](https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/module_loader.py): dynamic loader · Loads prompt/style/template modules dynamically. · `lib_resume_builder_AIHawk/module_loader.py`
- [Utils](https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/utils.py): helpers · Shared helper functions used across the library. · `lib_resume_builder_AIHawk/utils.py`

### Examples & Tests

Contribution guidance and validation fixtures.

- [PDF example](https://github.com/feder-cr/lib_resume_builder_aihawk/blob/main/lib_resume_builder_AIHawk/unit-test/pdf_generation.py): output example · Example script demonstrating PDF generation/output validation. · `lib_resume_builder_AIHawk/unit-test/pdf_generation.py`
- [Contrib docs](https://github.com/feder-cr/lib_resume_builder_aihawk/tree/main/how_to_contribute): guidance · Project guidance split across prompt engineering and web design. · `how_to_contribute`

## Connections

- Resume YAML → Manager facade: input resume · Structured resume data enters the orchestration boundary.
- Sample config → Config: loads · Example configuration feeds runtime config loading.
- Secrets YAML → Config: loads · Secrets and credentials are externalized from code.
- Config → Manager facade: runtime settings · Facade uses configuration to choose paths and behavior.
- Manager facade → Resume generator: coordinates · Facade delegates the actual build pipeline.
- Resume generator → Resume model: builds · Generation produces or enriches the resume data model.
- Resume model → Template base: renders via · Template abstraction consumes the resume model.
- Resume generator → GPT resume: generic path · Default generation path goes through the general GPT module.
- Resume generator → Job-tailored GPT: job path · Tailoring path uses job-description-aware generation.
- GPT resume → Resume prompt: uses prompt · Generic generation is driven by prompt text assets.
- Job-tailored GPT → Job prompt: uses prompt · Job-specific generation is driven by dedicated prompts.
- Resume generator → Style manager: selects style · Pipeline chooses a presentation theme for the artifact.
- Style manager → CSS themes: applies · Style manager resolves a concrete CSS theme asset.
- Module loader → GPT resume: loads · Dynamic loading supports modular prompt/generation code.
- Module loader → Job-tailored GPT: loads · Dynamic loading supports specialized generation modules.
- Module loader → CSS themes: loads · Style assets can be discovered dynamically.
- Utils → Resume generator: shared helpers · Common utility functions support the pipeline.
- PDF example → Resume generator: exercises · Example script validates the output generation path.
- Contrib docs → Resume prompt: guides · Contribution docs reflect prompt engineering as a major seam.
- Contrib docs → CSS themes: guides · Contribution docs reflect styling as a major seam.
