How feder-cr/lib_resume_builder_aihawk works
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: resume_generator.py Resume generator · module_loader.py Module loader · manager_facade.py Manager facade · gpt_resume.py GPT resume
Components 19
Inputs & Config
External YAML inputs and runtime configuration boundaries.
- Resume YAML · Primary resume content source used by the library.
plain_text_resume.yaml - Sample config · Example runtime settings for the library.
lib_resume_builder_AIHawk/unit-test/yaml_example/config.yaml - Sample resume · Example resume data used in tests and demos.
lib_resume_builder_AIHawk/unit-test/yaml_example/plain_text_resume.yaml - Secrets YAML · 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 · Main coordination boundary for the end-to-end build flow.
lib_resume_builder_AIHawk/manager_facade.py - Resume generator · 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 · Core resume structure consumed by generation and rendering.
lib_resume_builder_AIHawk/resume.py - Template base · 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 · General-purpose prompt and LLM-based resume content generation.
lib_resume_builder_AIHawk/gpt_resume.py - Job-tailored GPT · Job-description-specific resume tailoring path.
lib_resume_builder_AIHawk/gpt_resume_job_description.py - Resume prompt · Prompt text for generic resume generation.
lib_resume_builder_AIHawk/resume_prompt/strings_feder-cr.py - Job prompt · 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 · Selects and applies a resume style/theme.
lib_resume_builder_AIHawk/style_manager.py - CSS themes · Collection of selectable resume stylesheet variants.
lib_resume_builder_AIHawk/resume_style
Support
Shared loading and utility infrastructure.
- Config · Loads and exposes runtime configuration and secrets.
lib_resume_builder_AIHawk/config.py - Module loader · Loads prompt/style/template modules dynamically.
lib_resume_builder_AIHawk/module_loader.py - Utils · Shared helper functions used across the library.
lib_resume_builder_AIHawk/utils.py
Examples & Tests
Contribution guidance and validation fixtures.
- PDF example · Example script demonstrating PDF generation/output validation.
lib_resume_builder_AIHawk/unit-test/pdf_generation.py - Contrib docs · Project guidance split across prompt engineering and web design.
how_to_contribute
Connections 20
- 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.