Application of the ask tool to automate job application document generation. Takes job descriptions (from JobServe emails or web copies) and generates tailored CVs and cover letters in DOCX format using AI.
1. Job posting arrives via JobServe email to john.js@critchley.biz2. PopIt3 processes email, stores in jobs table, generates report3. You copy job description from report or use saved file4. Run: ./apply.sh <job_description.txt>5. apply.sh calls ask_with_files_structured.py → JSON output (saved to file via -o)6. apply.sh then calls document_generator.py on that JSON → DOCX files7. Upload to JobServe or keep for recordsapply.sh is a complete pipeline - JSON generation and DOCX conversion in one command.
Four apply scripts for different role types:apply.sh - Operations/DevOps roles. System prompt inline. Uses gpt-4o.apply_ai.sh - AI/ML roles. Supports custom prompt file or default prompt-ai.txt.apply_ai_gpt45.sh - AI/ML roles using GPT-4.5. Inline system prompt.apply_v2.sh - Operations/DevOps roles. Supports custom prompt file or default prompt-ops.txt.All scripts use:• CV source: ~/CV/cv_llm_optimized.md• Schema: ../schema.json• --no-document-references flag
External prompt files (used by apply_ai.sh and apply_v2.sh):prompt-ai.txt - AI/ML positioning (transitioning into AI/ML)prompt-ops.txt - Operations/DevOps/SRE positioningprompt-AI_no-SC.txt - AI/ML variant (no security clearance mention)prompt-ops_no-SC.txt - Operations variant (no security clearance mention)All prompts reference cv_llm_optimized.md as authoritative CV source.
Job descriptions come from:• Manual copy-paste from PopIt3 report at home.critchley.biz/jobs• PopIt3 job handler auto-saving to directory• extract_job.py extracting text from JobServe .eml email filesSee popit3/job-analysis for email processing and job table details.
apply.sh / apply_ai.sh / apply_v2.sh / apply_ai_gpt45.sh - Pipeline entry pointsdocument_generator.py - JSON/YAML → DOCX conversion (442 lines)extract_job.py - Extract job text from JobServe .eml files (160 lines)prompt-*.txt - External system prompts for different role types~/CV/cv_llm_optimized.md - Authoritative CV source file (external)../schema.json - JSON schema defining output structure
ask/jobs/workflow - Step-by-step usage and examplesask/jobs/schema - Schema structure for CV and cover letter outputask/jobs/document-generation - DOCX generation detailspopit3/job-analysis - Job data origin and storage