---
name: generate-application-packet
description: Generate a repeatable application packet folder, tailored resume artifacts, analysis notes, and draft outreach artifacts for a role.
---

# Generate Application Packet

Use this skill when the user wants local artifacts for a specific application. Packet creation is agent-authored: Codex reads the JD, copies the master resume into the packet, tailors the packet-local resume text/source, renders the final resume, and saves browser artifacts without delegating resume strategy to a Python generator.

## Steps

1. Confirm the target role, company, application URL, and whether the current user request gives run-level authorization to submit.
2. Read the actual job page/JD directly and analyze required skills, preferred skills, role responsibilities, selection signals, missing facts, and form questions.
3. Create the application packet under `application_packets/` before writing resume output.
4. Copy the master resume text into the application packet from `resumes/master/hemang_master.txt`; name it clearly, such as `master-resume-copy.txt`.
5. If PDF rendering uses TeX, also copy `resumes/master/hemang_doshi_resume.tex` into the packet as the baseline render source. Never overwrite files in `resumes/master/`.
6. Author `tailored-resume.txt` in the packet from the copied master resume and JD analysis. Keep it factual, one page, ATS-friendly, and deeply tailored to the role; do not invent facts or include DOB/photo.
7. Author the render source, such as `tailored-resume.tex`, from the same selected content as `tailored-resume.txt`. The final PDF and plain text must match in substance.
8. Render the final resume for this application before opening the application form. Use direct rendering tools such as `tectonic` when TeX is used; Python may be used only for contract validation/render checks, not for resume tailoring.
9. Store generated assets in both the packet and `resumes/generated/` when useful: `.pdf`, `.txt`, and render-source trace artifacts.
10. Write `metadata.json`, `job-analysis.md`, `resume-brief.md`, `learning-log.json`, `outreach-email.md`, and `followup-email.md` in the packet.
11. Record `Packet Path`, `Resume Filename`, `Text Resume Filename`, and `Last Agent Update` in `Applications` automatically when appropriate.
12. Create or refresh `Generated Assets` rows for rendered packet artifacts automatically.
13. If browser autofill is requested, write agent-authored `browser-autofill.json` and `browser-autofill.md` with resume upload paths, deterministic profile fields, unresolved questions, retry policy, fallback browser method, and the run-level authorization status so applications can be run sequentially.
14. Packet artifacts must support resuming the same application after a blocker without regenerating work.
15. Do not call any resume-generation script or any regex/keyword-array resume rewriter. The tailoring decision belongs to Codex analyzing the JD and the copied master resume.
