Repository navigation
feat(resume): write Chinese and English resumes that cite Facts - #17
Merged
Merged
Conversation
Add tailored resumes for evaluated Applications. The agent writes each line in both languages with the Facts it comes from; the script checks it, writes resume.zh.md and resume.en.md, and prints both to PDF with a headless Chrome, Chromium or Edge. - hh.py: resume plan/save/pdf; resumes start from a current Role profile; refuses inferred or inactive Facts, numbers not in the cited Facts, titles and schools not in them, names missing from or inconsistent with glossary.yml, Chinese in the English resume, and words of requirements the Candidate lacks; validate checks resumes; candidate show lists them; the PDF text layer maps Kangxi radicals back to ideographs and ligatures are off - SKILL.md: resume format and checks, PDF tool and fonts, optional contact in profile.yml, the Write resumes workflow - CONTEXT.md: Tailored resume starts from the Role profile - README.md / README.zh-TW.md: the resume feature and the browser it needs Closes #5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements Tailored resumes from #5: for an evaluated Application, a Chinese and an English resume in Markdown and PDF that start from the Role profile, use only sourced Facts, and cite them line by line.
skills/headhunter/scripts/hh.py:resume plan,resume save,resume pdf; resume checks (Facts, numbers, titles, schools, Glossary names, Chinese in English, words of lacking requirements, start from the positioning);validatechecks resumes;candidate showlists them; PDF printing through a headless Chrome, Chromium or Edge, with the text layer's Kangxi radicals mapped back to ideographsskills/headhunter/SKILL.md: the resume format and its checks, the PDF tool and fonts, optionalcontactinprofile.yml, and the Write resumes workflowCONTEXT.md: a Tailored resume starts from the Role profile and cites FactsREADME.md/README.zh-TW.md: the resume feature and the browser it needsRelated Issues
Closes #5
Type of Change
Decisions
HEADHUNTER_BROWSER; the script turns the Markdown into HTML itselfprofile.ymlandglossary.yml, headings and skills, and refuses anything it can check<!-- f-003 -->(or<!-- profile -->for the header); the comments are stripped from the PDFglossary.ymlhas itresume saveandresume pdfrefuse the labels and aliases of the lacking requirement's Tags and its proposed terms (missingorto-confirmgaps and failed hard requirements), unless a sourced Fact uses the wordglossary.yml; a Glossary name in one language requires its pair in the other; the English resume may contain no Chineseresume planshows the positioning and evidence order to start fromcontact(email,phone,links) inprofile.yml, written in the header--replace;resume pdfprints edited Markdown again after checking itMigration
profile.ymlgains an optionalcontact; existing profiles stay valid without it. Resumes go inapplications/<job-id>/, whichevaluation savecreates. No existing file changes, and the Index schema is unchanged.Validation
All runs used the fictional Candidates 王小明
c-001and 林小華c-002with the Evaluations from #4 against real Yourator Jobs, in a scratchHEADHUNTER_DATA_DIRoutside any repository, on Python 3.9 unless noted, with Google Chrome on macOS. I acted as the agent followingSKILL.md, and as the user for answers and Glossary additions.Preconditions
resume plan c-1 j-yourator-39119→the Role profile senior-backend-engineer is out of date (role.yml changed); rebuild it with role build first(its requirements changed throughrole refinein [Feature] Job evaluation against Candidates' Roles #4); rebuilt both Role profiles →Every Role profile is current.resume plan c-2 j-jobs-lever-co-91b1946a(evaluated without a Role) → refused, pointing to creating a Role from the Jobresume plan c-1 j-yourator-39119→ positioning, evidence order, the Facts the Evaluation cites per requirement, five lacking requirements with their words (FastAPI, Flask, Linux, Git, concurrency, machine learning, system design …), usable Facts by kind (supersededf-004under "Never use"), the Glossary, and the headerRefusals
後端工程師) its Fact does not state, a superseded Fact, a number (75%) not in its Fact, a school missing from the Glossary, a skill no Fact has (tool/flask), an unknown Tag,FastAPIfrom the lacking requirement must-3, Chinese in the English text, andExample Techwritten in the Chinese text where the Glossary says 範例科技glossary.yml names Backend Engineer as '後端工程師' in Chinese; rewordedorg: 範例金融→add the company '範例金融' to glossary.yml; used the Glossary name 範例金融股份有限公司, which matches the Facts' short form--replace→ refusedResumes written
--replaceon Python 3.13PDF checks
⼠ ⼤ ⼩ ⼯ ⽤ ⽰ ⾄ ⾦in the text layer; afterfix_pdf_text→ none, nothing left over, still one pageHEADHUNTER_BROWSER=/nonexistent/chrome→HEADHUNTER_BROWSER is '/nonexistent/chrome', which is not a browser that can run; the Chrome path → printedHand edits
f-099, and Chinese in an English line →validate c-2andresume pdfname all three; no PDF written熟悉資料庫設計 <!-- f-011 -->and每週節省 8 小時 <!-- f-003 -->→validatenames the number;resume pdfalso refuses資料庫設計from the lacking requirement must-6resume pdfprints both PDFs;candidate show c-2listsresumes: zh, enChecks
validate→ OK on Python 3.9 and 3.13; the data folders from [Feature] Candidate database: import, quality check, tags, CRUD and search #1, [Feature] Job reading: Listings and Job snapshots #12, [Feature] Role profiles: link a Candidate's Facts to each target Role #9 and [Feature] Job evaluation against Candidates' Roles #4 still validateprofile.ymlandglossary.ymlI changed parses the same with PyYAML andhhyaml(dates compared as ISO strings); the YAML examples inSKILL.mdparse with bothclaude plugin validate .→ passed;claude plugin validate .claude-plugin/plugin.json→ passed with the expectedCLAUDE.mdwarningruff check --select E,F,W,B --line-length 130 skills/headhunter/scripts→ all checks passed; scripts parse on Python 3.9Not run
claude --plugin-dir .Checklist
skills/headhunter/SKILL.md,README.mdandREADME.zh-TW.mdupdated when behavior or data layout changed🤖 Generated with Claude Code